I need to know if there's a way to control two servos at the same time, one going from 0-180 and the other going from 180-0.
This is for a project that i am doing, i need a rapid response, the project is due tomorrow!!
THANK YOU
I need to know if there's a way to control two servos at the same time, one going from 0-180 and the other going from 180-0.
This is for a project that i am doing, i need a rapid response, the project is due tomorrow!!
THANK YOU
Yes. I had 18 servos all moving independently.
Hi,
Look up the servo library examples in the IDE.
Did you google arduino two servo
Tom...
Jutox:
I need to know if there's a way to control two servos at the same time, one going from 0-180 and the other going from 180-0.
Sure. Use the standard Servo library then
servo1.write(0)
servo2.write(180)
wait a bit then
servo1.write(180)
servo2.write(0)
Unless there's something more to the problem that you haven't mentioned.
Steve
for (int x = 0; x <= 180; x++)
{
servo1.write(x);
servo2.write(180 - x);
}