Continuous Rotation Servo Won't Stop / Servo Jitter


i have continuous rotation servo i'm trying control using arduino nano , servo library.

this servo hsr-2645cr continuous rotation digital robot servo:
http://hitecrcd.com/products/servos/robotic-servos/hsr-2645cr-continuous-rotation-digital-robot-servo/product

it has narrow dead band may contributing issues.


i can go full speed in either direction using myservo.write(0) or myservo.write(180), can't stop using myservo.write(90), myservo.write(89) myservo.write(91), or myservo.writemicroseconds(1500).


when try set it's midpoint servo jitters , forth 1 degree. if comment out servo related code, servo static. if leave myservo.attach(servopin); in setup block servo jitters without writing speed/position it.


the nano running 12 neopixels , 2 leds powered own 5v 10a dc power supply.

the servo powered own 7.4 v 2s lipo.

all circuits connected common ground.

i swapped cr servo out normal 180 servo , worse jitter after setting angle.


after set servo position, write if incoming target position different current position:

code: [select]
f(receive_data.swivel==89){
          currentservopos = 90;
        } else {
          currentservopos = receive_data.swivel;
        }
       
        //serial.println(currentservopos);

        if(lastservopos!=currentservopos){
           myservo.write(currentservopos);
           //myservo.writemicroseconds(1500);
           lastservopos = currentservopos;
           
           serial.println("currentservopos");
           serial.println(currentservopos);
           serial.println("lastservopos");
           serial.println(lastservopos);
        }



to make things more confusing found utility sketch testing servo angles:

http://pastebin.com/apgy706p

i can servo go max speed @ myservo.write(20) , myservo.write(160);

servo not budge using  myservo.write(0) , myservo.write(180).

also once start turning can stop using  myservo.write(92) or myservo.write(93).


since servo behaves ok utility sketch, possible it's picking noise load of leds? next step add 220 uf capacitor directly across servo:

http://electronics.stackexchange.com/questions/77502/is-there-a-way-to-stop-servos-from-shaking


does have other tips try?


have tried short program has nothing servo in - maybe control of neopixels affecting ability control servo. (i have never used neopixels).

...r


Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > Continuous Rotation Servo Won't Stop / Servo Jitter


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'