Arduino Obstacle Avoiding Robot?
leftservo.write(-100);
rightservo.write(100);
And even then it goes in a big circle to the left. I have tried to code it less for the right motor but it just goes backwards.
Can you please tell me why this happens and how to fix it.
10
answers
|
Answer it!
|
Put a little sticker or something on the edge of the wheel to make a timing mark.
Is a drive slipping ?
What happens to the wheel speed if you send -50 to a motor ? Does it run at half speed ? Should it ?
Steve
Did you make these servos up yourself ?
Did you put a trimmer in place of the pot ?
Did you adjust the zero speed, with a "position demand" of zero from the Arduino with the trimmer ?
Steve
You and others like us, who want to know Why, as we build a library of causes and effects.
I wonder when kids get interested in details, maybe late teens as I don't remember.
A
A large left circle tells me the Left-Servo is going Forward but not as fast as the
Right-Servo.
That is why Steve wants you to check out the Wheels. A
![]() |

































