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 #358 background imageLoading...
Page #358 background image
SunFounder ESP32 Starter Kit
(continued from previous page)
motor1A.value(0)
motor2A.value(0)
try:
while True:
rotate() # Rotate the motor clockwise
time.sleep(5) # Pause for 5 seconds
stop() # Stop the motor
time.sleep(2)
except KeyboardInterrupt:
stop() # Stop the motor when KeyboardInterrupt is caught
During the script execution, you will see the pump working and water coming out of the tube, then stopping for 2
seconds before starting to work again.
3.18 4.3 Swinging Servo
A Servo is a type of position-based device known for its ability to maintain specific angles and deliver precise rotation.
This makes it highly desirable for control systems that demand consistent angle adjustments. It’s not surprising that
Servos have found extensive use in high-end remote-controlled toys, from airplane models to submarine replicas and
sophisticated remote-controlled robots.
In this intriguing adventure, we’ll challenge ourselves to manipulate the Servo in a unique way - by making it sway!
This project offers a brilliant opportunity to dive deeper into the dynamics of Servos, sharpening your skills in precise
control systems and offering a deeper understanding of their operation.
Are you ready to make the Servo dance to your tunes? Lets embark on this exciting journey!
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 -
Jumper Wires
Servo
Available Pins
Here is a list of available pins on the ESP32 board for this project.
352 Chapter 3. For MicroPython User

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