madhephaestus / ESP32Servo

Arduino-compatible servo library for the ESP32
140 stars 55 forks source link

How to test servos that have 12 bit resolution #33

Open gjhaynes opened 1 year ago

gjhaynes commented 1 year ago

From what I understand about this library, the only values that can be sent to the servo are integers representing either a position in degrees or a value in microseconds. A servo with 12 bit resolution needs to receive 4096 values of pulse width within the range of ~900-2200 microseconds in order to achieve this level of resolution. I am struggling to see how I can test the 12 bit resolution servos if I cannot send fractional values of degrees or microseconds. Am I missing something here?