59Views4Replies

Author Options:

Unable to reverse direction of servo using arduino Answered

I have arduino and a perfect code for moving servo to bidirection, but now i have facing problem of reversing the servo. I have replace three servos but having same problem. please help to detect is there is error in my arduino or servos?

Tags:arduino

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
Downunder35m
Downunder35m

4 years ago

Usually in the code not in the hardware but we really don't do guesswork here and without any vital details....

0
akshaydodkade
akshaydodkade

Answer 4 years ago

thnk u for your opinion but what should i prefer to replace arduino uno or servo?

0
rickharris
rickharris

Answer 4 years ago

Post your code then we may be able to help.

1. has it ever worked in both directions?

2. The output is a pulse between 0.5 ms and 2.5 ms wide. IF your servo only goes between one end and the middle then your pulse width is wrong. IF it goes from end to end but only one way then your pulse width is wrong. A pulse width of 1.5 ms will put the servo in the middle.

3. Your pulse has to be repeated in a 20 ms time frame or the servo will forget where it is supposed to be..

Almost certainly you have messed up the software so post it so we can see.

0
Quadrifoglio
Quadrifoglio

Answer 4 years ago

Try Google with your title Unable to reverse direction of servo using arduino. Lots of results.