Notifications
Clear all

Rotary Encoder to control Servo Motor Help

1 Posts
1 Users
0 Likes
1,128 Views
(@camcknight14)
Member
Joined: 4 years ago
Posts: 3
Topic starter  

Hello All!

I am using the Arduino Servo Control Sketch from DroneBot Workshop Code to move a Servo Motor with a Rotary Encoder using an Arduino Nano that is being powered from a 9V battery.

This servo, from Amazon, works just fine. I turn the Rotary Encoder an incremental rotation and the Servo corresponds to the movements at about 1 deg of movement in either direction as it should: https://www.amazon.com/gp/product/B07L4NRS22/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1

This servo, also from amazon, does not work as well. I turn the Rotary Encoder one incremental turn and the servo jumps say 20 deg, then if I turn the Rotary Encoder an incremental turn the other way, the servo jumps the other direction again 20 deg. If I turn the Rotary Encoder more than one incremental turn, it freezes and does not respond: https://www.amazon.com/gp/product/B07L4PH12N/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1

 

Any ideas the first servo works just fine and the second one does not??  


   
Quote