User Manual

42
Step 2 Wiring
Connect the line follower module to the Robot HATS with a 4-pin anti-reverse cable as shown
below.
Line Follower
Robot HATS
SCL
SCL
SDA
SDA
VCC
3.3V
GND
GND
Test for Line Follower
Get into the directory example:
cd ~/SunFounder_PiCar-S/example
Check whether any i2c device is recognized or not via i2c-tools
sudo i2cdetect y 1
pi@raspberrypi:~ $ cd ~/SunFounder_PiCar-S/example/
pi@raspberrypi:~/SunFounder_PiCar-S/example $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- 11 -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --