View Single Post
  #14   Spotlight this post!  
Unread 27-03-2012, 01:40
Dale(294engr]'s Avatar
Dale(294engr] Dale(294engr] is offline
Mentor/Sponsor since '98
FRC #0294 (Beach Cities Robotics)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Redondo Beach, CA
Posts: 92
Dale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of lightDale(294engr] is a glorious beacon of light
Re: Controlling Jaguar with c code

try 50Hz rep rate of 1-2 mS positive pulse 0-5v

20 ms period = 50 Hz PWM frequency but this can vary and is NOT critical

kHz may be way too high might produce weird result such as you have

traditional PWM R/C signal is 1ms to 2ms with 1.5ms as neutral.

Servos swing 90 degrees on either side of neutral

-90 deg = 1 mS
neutral = 1.5mS (define a +-few% say 20 - 40 us deadband to avoid chatter)
+90deg = 2.0 mS

For a 555 based hardware driver solution:
http://pcbheaven.com/wikipages/How_RC_Servos_Works/