Servo callibration?
pdmart
Posts: 4
I have around 40 BoEs and Javelin Stamps, and about 10 of the robots are experiencing difficulties when trying to run the servos. The servos are calibrated when sending a pulseOut of 173, and they seem to be calibrated but on reset they become uncalibrated. In fact, on sequential resets the servos go one way and then the other way without changing any code. Any ideas? These robots are working fine with the BASIC stamp.
Thanks in advance.
Thanks in advance.
Comments
Can you send an example of the code that you are using?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
please ignore them.
In addition to an "ON" time pulse ranging from 1ms to 2ms, you also need to have an "OFF" time of 15ms to 25ms (Typically 20ms). You may be setting the "OFF" time somewhere else in your code, but I don't see it in the code you have provided. The "ON" time looks ok to me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Value 115 represents 1 msec
Value 173 represents 1.5 msec
Value 230 represents 2 msec
Value 2304 represents 20 msec
PWM servo = new PWM(CPU.pin0,173,2304)
servo.update(115,2304) 'full left
servo.update(173,2304) 'center
servo.update(230,2304) 'full right
Using pulseOut() is too awkward as pulses must be generated every 20 msec.
The PWM VP does that·for·you in the background.
regards·peter