go away spammer

Author Topic: Servo problem!  (Read 1268 times)

0 Members and 1 Guest are viewing this topic.

Offline jakx12Topic starter

  • Robot Overlord
  • ****
  • Posts: 183
  • Helpful? 2
Servo problem!
« 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
Need help with an algorithm or a maths related problem? Ill be glad to help :)

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: Servo problem!
« Reply #1 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.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline jakx12Topic starter

  • Robot Overlord
  • ****
  • Posts: 183
  • Helpful? 2
Re: Servo problem!
« Reply #2 on: May 25, 2009, 01:42:34 AM »
brilliant :)

thanks
Need help with an algorithm or a maths related problem? Ill be glad to help :)

 


Get Your Ad Here