Society of Robots - Robot Forum

Software => Software => Topic started by: Adityav95 on December 26, 2010, 10:13:16 AM

Title: HS-425BB centering
Post by: Adityav95 on December 26, 2010, 10:13:16 AM
Can anybody tell me how exactly to modify a Hitec HS-425BB servo using a ROBODUINO using arduino IDE? I have to modify the servo for continuous rotation.

Once u send the signal which is programmed, does the servo automatically center itself on connecting it to the roboduino with the battery or like do u have do some other action like pressing some button etc? I'm a total beginner, so pls bear with me.

Thnx
Title: Re: HS-425BB centering
Post by: greasemonkey94 on December 28, 2010, 09:41:52 AM
you have to send a pwm signal to the servo to centre it.
the pwm should have width of 1.5 ms to centre it.It depends on the serov ou are using
but i assume its the same for this servo.

look at this-------------->http://www.societyofrobots.com/actuators_servos.shtml (http://www.societyofrobots.com/actuators_servos.shtml)
and this---------------->http://arduino.cc/en/Tutorial/Sweep (http://arduino.cc/en/Tutorial/Sweep)

In the arduino IDE the command should be something like

servo servo1;
servo1.write(90);

Title: Re: HS-425BB centering
Post by: Adityav95 on January 03, 2011, 04:41:46 AM
thanks greasemonkey94! i was able to center my servo for modification :)
This was the exact code i used:

#include <Servo.h>
Servo servo1;
int pos = 0;
void setup()
{servo1.attach(9);}
void loop()
{servo1.write(90);
}