Waveshare AlphaBot 2 User Manual page 16

Table of Contents

Advertisement

share awesome hardware
AlphaBot 2 User Manual
have a direct influence to the tracking line capability of the robot. When the wheels
of the robot begin to move, you can release the robot and it will run along with the
black line.
RGB LEDs
Compile and download the program W2812. There are 4 RGBn LEDs (red, green,
blue and yellow, respectively) on the bottom of the robot.
To run this program, you should import the corresponding library to Arduino IDE.
OLED
Compile and download the program OLED. The example program demonstrates
the basic functions of character display and drawing operation, including drawing
line, cycle, rectangle box and the likes. To run this program, you should import the
corresponding library to Arduino IDE.
Comprehensive program
Compile and download the program Line-Tracking. Turned on the power adapter,
you can see the OLED display the characters "AlphaBot2". Then, place the robot
on the black line and press down the key. Now, the smart robot goes into the
calibration mode, moving to left and then right. And the RGB LED is in green. When
the calibration finished, the RGB LED is in blue. OLED shows the information as the
figure below on the right, in which "**"indicates the current position of the black
line. When the smart robot moves to left or right, this symbol will be moved along.
16

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot 2

Table of Contents