Servo default values?

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
Posts: 36
Joined: Wed Aug 09, 2017 3:52 pm

Servo default values?

Post by mwm » Fri Sep 08, 2017 10:42 pm

I'm working on a Python version of the Pyboard Servo drivers, and wonder where the default values for pulse_min and pulse_max came from. I'd expect them to be 100 and 200, that being the expected values for hobby servos. Are they maybe for some specific servo?

User avatar
Posts: 3601
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada

Re: Servo default values?

Post by dhylands » Sat Sep 09, 2017 12:06 am

Nominally, hobby servos expect a pulse with in the range 1 msec to 2 msec. Some will accept 0.5 msec to 2.5 msec (see some plots I did on 3 servos I happened to have: ... tions.html). The values 64 and 242 correspond to 640 msec and 2420 msec which is probably what Damien measured for the servos he sells through the MicroPython store:

Even 2 servos of the same kind will have slighty different curves (the blue and pink curves in my plot are from the exact same brand/model of servo) so if you want accuracy, you really need to measure your servos and calibrate them individually.

Post Reply