Hi, so I'm new to the Arduino, I've done only one project so far and now -with my second..I ran into some trouble-
I am tring to make my robot arm do something repeatedly - like a Factory robotic arm - assembling stuff.The problem is that I have 2 servos on 1 axis and I cant make them rotate at the same direction. here's the code I made (I used the library)
void loop()
{
for(pos = 0; pos < 180; pos += 1)
{
myservo.write(pos);
myservo1.write(pos);
delay(15);
}
}
how to reverse one of them?
also this wont work at all :
void loop()
{
myservo.write(90);
myservo1.write(90);
myservo.write(0);
myservo1.write(0);
}
and when I add the delay it works but not at the same time.
Thanks in advance!