Tracker Sensor - Waveshare Alphabot2 User Manual

For micro:bit
Table of Contents

Advertisement

Alphabot2 for micro:bit User Manual

TRACKER SENSOR

The tracker sensor helps the robot move along the black line on the ground. There are
five detectors at the bottom of the sensor, and the infrared LED light is used to project
infrared light to the ground to detect the deviation of the module relative to the black
line.
In
Alphabot2
package:
SensorCalibrated
block is used to calibrate the sensor for accurate Min and Max value.
AnalogRead
block is used to read original data from infrared tacker sensor.
ReadCalibrated
block is used to read the calibrated data
ReadSenorMax
block is used to read the Max calibrated value
ReadSensorMin
block is used to read the Min calibrated value
ReadLine
block is used to get the position of black line in range 0~4000. 0: Robot is
on the extreme left; 2000: Robot is on the center; 4000: Robot is on the extreme right.
70 / 76

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents