52
Experiment 4 Line Following
Experimental Principle
The line follower module is an 8-channel IR sensor one. It will send different signals when it
detects the black line and white surfaces. When a certain sensor detects a black line, the
corresponding signal will be generated and then passed to the car, thus the car would turn
its direction accordingly to follow the line by servo rotation.
Experimental Procedures
Connect the SunFounder Uno board to your computer. Upload the sketch under the path
Smart Car V2.0 for Arduino\Code\Car_4_LineFollowing
, and then remove the USB cable.
Pressed the button on the switch module.
Notes
:
1. If the surrounding is too dark, you can turn on the LED built in the module as shown below (no
need to turn on normally).
SunFounder