Project 9

profileabdulaziz1995

 

Objective: Use a digitalRead function to input a signal from a switch, and a analogWrite function to output a signal to a servo.

Project: When the user pushes a button, the servo turns to the position that corresponds to the analogWrite command outputting 200, and stays there as long as the user holds down on the button otherwise it move to the position that corresponds to the analogWrite command outputting 128.

  • 6 years ago
  • 20
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    code1.jpeg
  • attachment
    code2.jpeg
  • attachment
    circuit.jpeg
  • attachment
    workingvideo.mp4