Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Servo library for more standard default pulse widths #2509

Closed
bri-huang opened this issue Dec 23, 2014 · 1 comment
Closed

Update Servo library for more standard default pulse widths #2509

bri-huang opened this issue Dec 23, 2014 · 1 comment
Assignees
Labels
Library: Servo The Servo Arduino library

Comments

@bri-huang
Copy link

bri-huang commented Dec 23, 2014

The Servo library uses a default pulse width of 544 uS to 2400 uS -- with a zero/neutral position at 1472 uS?

This does not coincide with any standard servos that I've seen. Most servos (like HiTech or other generic ones) operate on a rage from 900 uS to 2100 uS with a neutral position (90 deg) at 1500 uS. The "default pulse width" is set to 1500, but this is not the same as 90 degrees on the servo.

Suggest changing the default settings to align with 900 uS and 2100 uS --

# define MIN_PULSE_WIDTH       900     // the shortest pulse sent to a servo
# define MAX_PULSE_WIDTH      2100     // the longest pulse sent to a servo
# define DEFAULT_PULSE_WIDTH  1500     // default pulse width when servo is attached
@sandeepmistry sandeepmistry added the Library: Servo The Servo Arduino library label Jul 12, 2016
@agdl
Copy link
Member

agdl commented Jul 12, 2016

This issue was moved to arduino-libraries/Servo#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Library: Servo The Servo Arduino library
Projects
None yet
Development

No branches or pull requests

4 participants