When I only put servo.write(45), it starts turn aroung with no pause.
QuoteWhen I only put servo.write(45), it starts turn aroung with no pause.Uh-oh...this sounds like an ex-servo, aka "continuous rotation servo".Are you saying it never hits hard end-stops?
Have you connected the ground to the Arduino?How are you powering the servo?
Have you tried just running the servo sweep demo?You should not really be running the servo off the 5V pin. Try powering the servo from four AA batteries, and remember to connect the grounds.
Why is not good idea to use 5V?
And how I power it with four AA?
Quote from: elseine on May 15, 2013, 12:59 pmWhy is not good idea to use 5V?Because the servos can draw more current than the Arduino's 5V pin can comfortably source.QuoteAnd how I power it with four AA?By connecting the four AA batteries in series to the Servo.
I have a HK15298 Servo. It need the bateries too? Now i am using the USB power.