Skip to main content
1 of 4
Grapsus
  • 206
  • 1
  • 2

The Servo library doesn't use PWM. When you call write() it computes a pulse width in microseconds and stores it in a global array. Then there is a single timer that regularly triggers an interrupt which changes the output signals according to each channel's desired pulse width.

You can find the source code below : https://github.com/arduino/Arduino/blob/master/libraries/Servo/Servo.cpp

Grapsus
  • 206
  • 1
  • 2