![]() ![]() Myservo. Servo myservo // create servo object to control a servo That same leg of the button connects through a pull-down resistor (here 10K ohm) to ground. The third wire goes from digital pin 2 to one leg of the pushbutton. ![]() ![]() I'm new to Arduino and I'm following this tutorial: but the problem is the servo just keeps moving back and forwards on it own and the button is doing nothing when pressed please help. The first two, red and black, connect to the two long vertical rows on the side of the breadboard to provide access to the 5 volt supply and ground. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |