Data Sheet
AlphaBot 2 User Manual     
15 
share awesome hardware
sensor. And then, the measured values of sensors are displayed as well. The larger 
value means the deeper color. The last column of values indicate the position of the 
black line, in which “2000” means the black line is in the middle of the robot, 
“0” means the black line is on the leftmost side of the robot, and “4000” means 
the black line is on the rightmost side of the robot.     
When this program runs well, the line tracking sensor works properly. Or else, the 
sensor cannot perform line tracking.   
Infrared line tracking   
Compile  and  download  the  program  Infrared-Line-Tracking.  Turn  on  the  power 
adapter, and hold the robot in the middle of the black line and close to the ground, 
then swing the robot from side to side. The smart robot goes into the calibration 
mode, identifying the Max. and the Min. threshed of each sensor. Calibration can 










