mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 14:00:51 +00:00
pwm
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<section id="direction-and-speed">
|
||||
<h3>Direction and Speed<a class="headerlink" href="#direction-and-speed" title="Link to this heading">¶</a></h3>
|
||||
<p>The pairs of DC motors on the left side are wired to the dedicated PWM channels. This means that <em>ESP32-C3 Breadboard DevBoard</em> can control rotation speed and direction of DC motors in pairs only (i.e. left and right side).
|
||||
Consequently, only four PWM channels are used for controlling the direction of the RC car.
|
||||
Consequently, only four PWM channels are sufficient for controlling the direction of the RC car.
|
||||
Based on this constraint, the RC car can only move front, back, and turn/rotate left and right. Any other movements are not possible (i.e. diagonal or sideways).</p>
|
||||
<p>A pair of PWM channels are required for defining rotation speed and direction of the DC motors on each side.
|
||||
In particular, <strong>GPIO6</strong> and <strong>GPIO5</strong> provide PWM to the left- and right- side DC motors to rotate in a <strong>clockwise</strong> direction.
|
||||
|
Reference in New Issue
Block a user