Waveshare AlphaBot 2 User Manual page 29

Table of Contents

Advertisement

share awesome hardware
AlphaBot 2 User Manual
Tracker sensor testing
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python TRSensors.py
Expectation result: You can see five set of data printed on the terminal, they are
corresponding to five sensors. When the smart robot is placed on the white KT
board, the data value will be in the range of 800~900. When it is held in the air, the
value can be in the range of 0~100. And, when it on the black line, the value can be
in the range of 100~300.
Infrared line tracking
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python LineFollow.py
Expectation result: While the program is running, the smart robot goes into the
calibration mode, moving to left and then right. When the calibration finished, you
can swing the smart robot side to side, and the terminal will display the current
position of the black line and the values of five sensors. Place the smart robot on
the black line, and press down the center key on the joystick. Now, you can see the
smart robot run along with the black line, and the RGB LEDs on the bottom of the
robot display different colors.
Servo
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python PCA9685.py
29

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot 2

Table of Contents