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. 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. Changing PWM on each channel determines the speed and direction of the RC car.
+-----------+-------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIOs | State | Function | | GPIOs | State | Description | Function |
+===========+=======+==========+ +===========+=======+=======================================+==========+
| GPIO6 & | PWM | Forward | | GPIO6 & | PWM | Left & Right DC Motors | Forward |
| GPIO4 | | | | GPIO4 | | spin clockwise | |
+-----------+-------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIO5 & | PWM | Reverse | | GPIO5 & | PWM | Left & Right DC Motors | Reverse |
| GPIO7 | | | | GPIO7 | | spin counterclockwise | |
+-----------+-------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIO6 & | PWM | Left | | GPIO6 & | PWM | Left DC Motors spin clockwise | Left |
| GPIO7 | | | | GPIO7 | | Right DC Motors spin counterclockwise | |
+-----------+-------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIO4 & | PWM | Right | | 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.). The following images illustrate various PWM duty cycles registered by oscilloscope (duty cycles 0%, 48% and 91%, resp.).

View File

@@ -66,6 +66,7 @@ Changing PWM on each channel determines the speed and direction of the RC car.</
<thead> <thead>
<tr class="row-odd"><th class="head"><p>GPIOs</p></th> <tr class="row-odd"><th class="head"><p>GPIOs</p></th>
<th class="head"><p>State</p></th> <th class="head"><p>State</p></th>
<th class="head"><p>Description</p></th>
<th class="head"><p>Function</p></th> <th class="head"><p>Function</p></th>
</tr> </tr>
</thead> </thead>
@@ -73,21 +74,29 @@ Changing PWM on each channel determines the speed and direction of the RC car.</
<tr class="row-even"><td><p>GPIO6 &amp; <tr class="row-even"><td><p>GPIO6 &amp;
GPIO4</p></td> GPIO4</p></td>
<td><p>PWM</p></td> <td><p>PWM</p></td>
<td><p>Left &amp; Right DC Motors
spin clockwise</p></td>
<td><p>Forward</p></td> <td><p>Forward</p></td>
</tr> </tr>
<tr class="row-odd"><td><p>GPIO5 &amp; <tr class="row-odd"><td><p>GPIO5 &amp;
GPIO7</p></td> GPIO7</p></td>
<td><p>PWM</p></td> <td><p>PWM</p></td>
<td><p>Left &amp; Right DC Motors
spin counterclockwise</p></td>
<td><p>Reverse</p></td> <td><p>Reverse</p></td>
</tr> </tr>
<tr class="row-even"><td><p>GPIO6 &amp; <tr class="row-even"><td><p>GPIO6 &amp;
GPIO7</p></td> GPIO7</p></td>
<td><p>PWM</p></td> <td><p>PWM</p></td>
<td><p>Left DC Motors spin clockwise
Right DC Motors spin counterclockwise</p></td>
<td><p>Left</p></td> <td><p>Left</p></td>
</tr> </tr>
<tr class="row-odd"><td><p>GPIO4 &amp; <tr class="row-odd"><td><p>GPIO4 &amp;
GPIO5</p></td> GPIO5</p></td>
<td><p>PWM</p></td> <td><p>PWM</p></td>
<td><p>Left DC Motors spin counterclockwise
Right DC Motors spin clockwise</p></td>
<td><p>Right</p></td> <td><p>Right</p></td>
</tr> </tr>
</tbody> </tbody>

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
# Sphinx build info version 1 # Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. # This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: fb0788d5a1f893b7e3c3f696413a5487 config: d926a5bb60ced0af1fff872097d223ce
tags: 62a1e7829a13fc7881b6498c52484ec0 tags: 62a1e7829a13fc7881b6498c52484ec0

View File

@@ -385,6 +385,11 @@ Changing PWM on each channel determines the speed and direction of the RC car.
State State
</p> </p>
</th> </th>
<th class="head">
<p>
Description
</p>
</th>
<th class="head"> <th class="head">
<p> <p>
Function Function
@@ -405,6 +410,12 @@ GPIO4
PWM PWM
</p> </p>
</td> </td>
<td>
<p>
Left &amp; Right DC Motors
spin clockwise
</p>
</td>
<td> <td>
<p> <p>
Forward Forward
@@ -423,6 +434,12 @@ GPIO7
PWM PWM
</p> </p>
</td> </td>
<td>
<p>
Left &amp; Right DC Motors
spin counterclockwise
</p>
</td>
<td> <td>
<p> <p>
Reverse Reverse
@@ -441,6 +458,12 @@ GPIO7
PWM PWM
</p> </p>
</td> </td>
<td>
<p>
Left DC Motors spin clockwise
Right DC Motors spin counterclockwise
</p>
</td>
<td> <td>
<p> <p>
Left Left
@@ -459,6 +482,12 @@ GPIO5
PWM PWM
</p> </p>
</td> </td>
<td>
<p>
Left DC Motors spin counterclockwise
Right DC Motors spin clockwise
</p>
</td>
<td> <td>
<p> <p>
Right Right

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. 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. Changing PWM on each channel determines the speed and direction of the RC car.
+-----------+-------+-------------+----------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIOs | State | Description | Function | | GPIOs | State | Description | Function |
+===========+=======+========================+==========+ +===========+=======+=======================================+==========+
| GPIO6 & | PWM | Left & Right DC Motors | Forward | | GPIO6 & | PWM | Left & Right DC Motors | Forward |
| GPIO4 | | spin clockwise | | | GPIO4 | | spin clockwise | |
+-----------+-------+------------------------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIO5 & | PWM | Left & Right DC Motors | Reverse | | GPIO5 & | PWM | Left & Right DC Motors | Reverse |
| GPIO7 | | spin counterclockwise | | | GPIO7 | | spin counterclockwise | |
+-----------+-------+---------------------------------------+----------+ +-----------+-------+---------------------------------------+----------+
| GPIO6 & | PWM | Left DC Motors spin clockwise | Left | | 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 | | 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.). The following images illustrate various PWM duty cycles registered by oscilloscope (duty cycles 0%, 48% and 91%, resp.).