This commit is contained in:
2025-07-02 22:35:56 -04:00
parent c3f9de11fb
commit 95d61b037d
5 changed files with 16 additions and 8 deletions

View File

@@ -28,15 +28,19 @@ In particular, **GPIO6** and **GPIO5** provide PWM to the left- and right- side
Similarly, **GPIO4** and **GPIO7** provide PWM to the left- and right- side DC motors to rotate in a **counter-clockwise** direction.
Changing PWM on each channel determines the speed and direction of the RC car.
The following images illustrate various PWM duty cycles registered by oscilloscope (duty cycles 0%, 50% and 95%, resp.).
The following images illustrate various PWM duty cycles registered by oscilloscope (duty cycles 0%, 48% and 91%, resp.).
.. figure:: _static/ESP-IDF_Robot_PWM_Duty-0.bmp
DC Motor PWM duty cycle 0%.
DC Motor PWM duty cycle 0%
.. image:: _static/ESP-IDF_Robot_PWM_Duty-50.bmp
.. figure:: _static/ESP-IDF_Robot_PWM_Duty-50.bmp
.. image:: _static/ESP-IDF_Robot_PWM_Duty-95.bmp
DC Motor PWM duty cycle 47.6%
.. gigure:: _static/ESP-IDF_Robot_PWM_Duty-95.bmp
DC Motor PWM duty cycle 90.8%.
.. raw:: html