mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-09 16:35:27 +00:00
descriptions
This commit is contained in:
@@ -14,7 +14,7 @@ The GPIO numbers correspond to those on the ESP32-C3 WROOM microcontroller. The
|
||||
x- and y- axis
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
The GPIO0 and GPIO1 assigned to measuring the voltage of x- and y- axis of the Joystick. Lastly, there is a group of GPIO pairs responsible for PWM for DC motors.
|
||||
The **GPIO0** and **GPIO1** assigned to measuring the voltage of x- and y- axis of the Joystick. Lastly, there is a group of GPIO pairs responsible for PWM for DC motors.
|
||||
|
||||
Direction and Speed
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
@@ -24,8 +24,8 @@ Consequently, only four PWM channels are required for controlling the direction
|
||||
Based on this constraint, the RC car can only move front, back, and rotate left and right. Any other movements are not possible (i.e. diagonal).
|
||||
|
||||
A pair of PWM channels are required for defining rotation speed and direction of the DC motors on each side.
|
||||
In particular, __GPIO6__ and GPIO5 provide PWM to the left- and right- side DC motors to rotate in a clockwise direction.
|
||||
Similarly, GPIO4 and GPIO7 provide PWM to the left- and right- side DC motors to rotate in a counter-clockwise direction.
|
||||
In particular, **GPIO6** and **GPIO5** provide PWM to the left- and right- side DC motors to rotate in a **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.
|
||||
|
||||
+------+-----+---------------------------------------------------------+----------------+
|
||||
|
Reference in New Issue
Block a user