Files
Fabien Chouteau b1b3d1dfe2 MicroBit: Add console package
Provides an interface to send and receive character on the UART over USB
line of the MicroBit.
2019-10-28 11:02:44 +01:00
..
2019-10-28 11:02:44 +01:00

Servos Example

In this example we will see how to control servo-motors. This is a special case of PWM output where the period is a fixed 50 Hz, and the pulse width varies from 500 to 1500 µs to denote a setpoint between 0° and 180°.

For continuous servos, setpoints 0 and 180 correspond to full speed in either direction, and 90 corresponds to neutral (stopped).