EasyManua.ls Logo

SunFounder 3in1 Kit - Page 118

Default Icon
351 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder 3in1 Kit
Code
Note:
You can open the file 3.3.detect_the_obstacle.ino under the path of 3in1-kit\learning_project\
3.3.detect_the_obstacle.
Or copy this code into Arduino IDE.
When the IR obstacle avoidance module detects something blocking in front of it, [0] will appear on the serial monitor,
otherwise [1] will be displayed.
4.3.5 3.4 Detect the Line
The line tracking module is used to detect whether there are black areas on the ground, such as black lines pasted with
electrical tape.
One of its LEDs emits appropriate infrared light to the ground, and the black surface has a relatively strong ability to
absorb light and a weaker reflection ability. White surfaces are the opposite. If it detects reflected light, it means the
ground is currently white. If not detected, it means black.
Thats how it works.
Required Components
In this project, we need the following components.
Its definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
3 in 1 Starter Kit 380+
You can also buy them separately from the links below.
114 Chapter 4. Basic Projects

Related product manuals