This commit is contained in:
2025-07-05 23:43:14 -04:00
parent c8aa262b67
commit 6a750fcb85
8 changed files with 67 additions and 29 deletions

View File

@@ -39,21 +39,21 @@ 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.
+-----------+-------+-------------+----------+----------+
| GPIOs | State | Description | Function |
+===========+=======+========================+==========+
| GPIO6 & | PWM | Left & Right DC Motors | Forward |
| GPIO4 | | spin clockwise | |
+-----------+-------+------------------------+----------+
| GPIO5 & | PWM | Left & Right DC Motors | Reverse |
| GPIO7 | | spin counterclockwise | |
+-----------+-------+---------------------------------------+----------+
| GPIOs | State | Description | Function |
+===========+=======+=======================================+==========+
| GPIO6 & | PWM | Left & Right DC Motors | Forward |
| GPIO4 | | spin clockwise | |
+-----------+-------+---------------------------------------+----------+
| GPIO5 & | PWM | Left & Right DC Motors | Reverse |
| GPIO7 | | spin counterclockwise | |
+-----------+-------+---------------------------------------+----------+
| GPIO6 & | PWM | Left DC Motors spin clockwise | Left |
| GPIO7 | | Right DC Motors spin sounterclockwise | |
+-----------+-------+----------+
| GPIO7 | | Right DC Motors spin counterclockwise | |
+-----------+-------+---------------------------------------+----------+
| GPIO4 & | PWM | Left DC Motors spin counterclockwise | Right |
| GPIO5 | | |
+-----------+-------+----------+
| GPIO5 | | Right DC Motors spin clockwise | |
+-----------+-------+---------------------------------------+----------+
The following images illustrate various PWM duty cycles registered by oscilloscope (duty cycles 0%, 48% and 91%, resp.).