Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: jakx12 on May 24, 2009, 04:01:23 PM

Title: Servo problem!
Post by: jakx12 on May 24, 2009, 04:01:23 PM
Ok so im not particularly new to robotics but i have had this on going 'problem' and would like your take on why its happening.
So i use two futaba s3004 modified servos, controlled by a bx-24 chip.
To send pulses to the servos id use this function (its like in visual basic):
call (5, 0.0010, 1)

This tells pin 5 to send a high voltage (1) with a pulse duration of 1ms. This should turn the servo clockwise and does to the servo connected to pin 5. However if i change 5 pin to pin 6 and do the same thing the servo turns anti-clockwise. Essentially its not a big deal when moving the robot forwards id just do this:
call (5, 0.0010, 1)
call (6, 0.0020, 1)

but its a bit odd, any ideas as to why this is happening,

many thanks

jakx12
Title: Re: Servo problem!
Post by: Soeren on May 24, 2009, 05:24:24 PM
Hi,

One servo is mounted mirror-image of the other and it's supposed to go in either CW or CCW on 1 ms and the opposite on 2 ms (seen from directly onto the servo horn/wheel.
When they both rotate in the same direction (looking directly on the wheel), the result is your vehicle is spinning in one place.
Title: Re: Servo problem!
Post by: jakx12 on May 25, 2009, 01:42:34 AM
brilliant :)

thanks