Shop by category
Shop all componentsMotors & mechanics
Pulse = Pmin + (angle ÷ range) × (Pmax − Pmin)Duty = pulse ÷ periodPCA9685 tick = pulse ÷ period × 4096With a 500–2500 µs servo over 180°: 90° is 1500 µs, which is 7.5% duty at 50 Hz, or tick 307 on a PCA9685. 0° is 500 µs and 180° is 2500 µs.
Hobby servos read the width of a pulse that repeats 50 times a second. About 1500 µs is the centre, and the extremes are normally 1000 and 2000 µs, though many cheap servos such as the SG90 accept 500–2500 µs for a wider swing.
The Arduino Servo library defaults to 544–2400 µs. If your servo hits its end stops, narrow the range with servo.attach(pin, min, max). Power the servo from its own supply, not the microcontroller’s pin.
About 1.5 ms on a standard servo using 1 to 2 ms for 0 to 180°.
50 Hz, a 20 ms period.
Many servos need about 0.5 to 2.5 ms for the full range. Adjust min and max pulse in the calculator.
Pulse = Pmin + (angle ÷ range) × (Pmax − Pmin); Duty = pulse ÷ period; PCA9685 tick = pulse ÷ period × 4096.
With a 500–2500 µs servo over 180°: 90° is 1500 µs, which is 7.5% duty at 50 Hz, or tick 307 on a PCA9685. 0° is 500 µs and 180° is 2500 µs.
Geekobot builds that use it include Joystick pan-tilt camera mount, Tilt-controlled servo wand, Automatic chicken coop door and Pico servo controlled by a knob (MicroPython). Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators