Wednesday, 29 April 2020

Use a digital Read function to input a signal from a switch, and a analog Write function to output a signal to a servo.

Objective: Use a digital Read function to input a signal from a switch, and a analog Write 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 analog Write 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

No comments:

Post a Comment