Go Down

Topic: How to turn a servo, wait, then turn it the other way (newbie question) (Read 211 times) previous topic - next topic

thetalkingjeff

Hi, I am an newbie at arduino, and I have made an automatic fish feeder with one before. However, I am new to c and c++ so I don't really know how to get a timer involved. I can do all the turning and stuff, but I don't know how to get a timer in there. Can someone help?

jremington

If the Arduino has nothing else to do, just use the delay() function. Otherwise, study the Using Millis() for Timing tutorial.

Don't try to power the servo from the 5V Arduino output, as that can cause the Arduino to malfunction. Use a separate servo power supply and connect the grounds.


Go Up