EasyManuals Logo

SunFounder ESP32 User Manual

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #61 background imageLoading...
Page #61 background image
SunFounder ESP32 Starter Kit
The previous code directly sets the two pins of the motor to high or low voltage levels to control the motors rotation
and stopping.
Here we use the (LED control) peripheral to generate PWM signals to control the motor’s speed. Through two for
loops, the duty cycle of channel A is increased or decreased from 0 to 255 while keeping channel B at 0.
This way, you can observe the motor gradually increasing its speed to 255, then decreasing to 0, infinitely looping like
this.
If you want the motor to rotate in the opposite direction, simply swap the values of channel A and channel B.
1.15 4.2 Pumping
In this intriguing project, we will delve into controlling a water pump using the L293D.
In the realm of water pump control, things are a bit simpler compared to controlling other motors. The beauty of this
project lies in its simplicity - there’s no need to worry about the direction of rotation. Our primary goal is to successfully
activate the water pump and keep it running.
Required Components
In this project, we need the following components.
Its definitely convenient to buy a whole kit, heres the link:
Name ITEMS IN THIS KIT LINK
ESP32 Starter Kit 320+
You can also buy them separately from the links below.
COMPONENT INTRODUCTION PURCHASE LINK
ESP32 WROOM 32E
ESP32 Camera Extension -
Breadboard
Jumper Wires
Centrifugal Pump -
L293D -
Available Pins
Here is a list of available pins on the ESP32 board for this project.
Available Pins IO13, IO14, IO27, IO26, IO25, IO33, IO32, IO15, IO2, IO0, IO4, IO5, IO18, IO19, IO21,
IO22, IO23
Schematic
1.15. 4.2 Pumping 55

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SunFounder ESP32 and is the answer not in the manual?

SunFounder ESP32 Specifications

General IconGeneral
BrandSunFounder
ModelESP32
CategoryController
LanguageEnglish