Go Down

Topic: multi tasking with ardiuno (Read 997 times) previous topic - next topic

Ghostbusters

i want to make 2 servo turn at the same time. i don't know if there is a specific format that you need or that it is included in library but i need to be able to make 2 servos move at the same time with arduino

aarondc

Just do it.

And if it doesn't work, show us the code.

aarondc

Servo movement is PWM-based, which is an asynchronous action for the Arduino. Using the (servo) library, you write the position (for example), and the position is maintained via a PWM signal. The micro does not need to wait for one servo movement to complete before you can issue another one (on a separate pin, of course).

Ghostbusters

ok i am gonna try it and if it doesnt work i will show you guys the code thx

Go Up