Society of Robots - Robot Forum
Electronics => Electronics => Topic started 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
-
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.
-
brilliant :)
thanks