Example Programs; Arduino Example Program - Waveshare AlphaBot User Manual

Table of Contents

Advertisement

share awesome hardware
AlphaBot User Manual

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
32

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot

Table of Contents