
AlphaBot User Manual
32
share awesome hardware
Example programs
We provide the control programs of Arduino and Raspberry Pi, enabling to
implement tracking line, obstacle avoidance, remote control and video monitoring.
The following example programs are available from Waveshare WIKI., Copy the
library file under the directory of Arduino to the libraries folder under the
installation directory of Arduino IDE. Then, reboot Ariduino IDE, and click File->
Example to check whether there are the options of AlphaBot, TRSensor and Servo.
If there are, the library has been exported successfully. Extract the Raspberry Pi
program from the package, and place it under the directory of /home/pi in the
Raspbian.
Arduino example program
Smart robot testing program
Click File-> Example -> AlphaBot -> E01_Run_Test to open the project. Compile
and download the program to the Arduino development board. Connect the
Jumpers IN1, IN2, ENA, ENB, IN3 and IN4 in the A area to the A0, A1, D5, D6, A2
and A3, respectively. Turn on the power adapter, you can see that the smart robot
run straight forward. If the wheels of the smart robot are not forward running, you
can try to change the wiring of the motor, or modify the pin setting in the
AlphaBot.c file.
Infrared obstacle avoidance program
Summary of Contents for AlphaBot
Page 1: ...AlphaBot User Manual 1 share awesome hardware AlphaBot User Manual Feb 2017 V1 2...
Page 14: ...AlphaBot User Manual 14 share awesome hardware...
Page 25: ...AlphaBot User Manual 25 share awesome hardware...
Page 29: ...AlphaBot User Manual 29 share awesome hardware interface is not provide in our application kit...