Detect The Line - SunFounder ESP32 Manual

Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

# Print values of the obstacle avoidance module
print(ir_avoid.value())
time.sleep(0.1)
While the program is running, if the IR obstacle avoidance module detects an obstacle in front of it, the value "0" will
be shown on the Serial Monitor, otherwise, the value "1" will be shown.

3.22 5.4 Detect the Line

The line-tracking module is used to detect the presence of black areas on the ground, such as black lines taped with
electrical tape.
Its emitter emits appropriate infrared light into the ground, which is relatively absorbed and weakly reflected by black
surfaces. The opposite is true for white surfaces. If reflected light is detected, the ground is currently indicated as
white. If it is not detected, it is indicated as black.
Required Components
In this project, we need the following components.
It's definitely convenient to buy a whole kit, here's the link:
Name
ESP32 Starter Kit
You can also buy them separately from the links below.
COMPONENT INTRODUCTION
ESP32 WROOM 32E
ESP32 Camera Extension
Jumper Wires
Line Tracking Module
Available Pins
• Available Pins
Here is a list of available pins on the ESP32 board for this project.
Available Pins
• Strapping Pins (Input)
Strapping pins are a special set of pins that are used to determine specific boot modes during device
startup (i.e., power-on reset).
Strapping Pins
3.22. 5.4 Detect the Line
ITEMS IN THIS KIT
320+
IO13, IO14, IO27, IO26, IO25, IO33, I35, I34, I39, I36, IO4, IO18, IO19,
IO21, IO22, IO23
IO5, IO0, IO2, IO12, IO15
SunFounder ESP32 Starter Kit
(continued from previous page)
LINK
PURCHASE LINK
-
365

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Related Products for SunFounder ESP32

Table of Contents