14)
Program upload
Well, take off the USB cable, put your robot on the ground and see what will happen, it avoid the
obstalce itself, doesn’t it?
4.Pin Map of Connecting
Line follow sensor
:
A0--IR0
(
No.1 count from the left
)
A1--IR1
(
No.2 count from the left
)
A2--IR2
(
in middle
)
A3--IR3
(
No.2 count from the right
)
A4--IR4
(
No.1 count from the right
)
Follow light: A5
Motors
D5-- PWM control from left motor D12--EN1 direction control from left motor
D6-- PWM control from right motor D7--EN2 direction control from right motor
RGB LED : D10
Infrared obstacle avoidance
:
Download Button
Download Successfully