PDA

View Full Version : Wacky Servo Bugs!



RubrChicken
01-13-2009, 01:56 PM
I made an accelerometer program. I get TV output just fine, but the servo only goes one direction. I made another demo, and it goes the right direction. Whats up???????

Beau Schwabe
01-13-2009, 02:45 PM
RubrChicken,

The servo's that you are using don't seem to be standard servo's, or at least they are not being correctly driven which could explain the strange behavior you are noticing.
Standard hobby servos expect a signal ranging from 1ms to 2ms with a rest period of at least 20ms. What I see in your program under the servo.spin program is that the pulse duration "ON" is 150us for pulsedown and 300us for pulseup with a restperiod of 3.75ms for both.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe (mailto:bschwabe@parallax.com)

IC Layout Engineer
Parallax, Inc.

RubrChicken
01-14-2009, 02:18 AM
Hmmm... I'm using spektrum servos. I know I'm doing it wrong, but I was wondering why one worked and the other didn't.