Waveshare AlphaBot User Manual page 33

Table of Contents

Advertisement

share awesome hardware
AlphaBot User Manual
Click File -> Example -> AlphaBot -> E02_Infrared_Obstacle_Avoidance to open the
project. Compile and download the program to the Arduino development board.
Install the Infrared Proximity Sensors to the left side and the right side of the smart
robot. Connect the jumper of motor in A area to the Arduino, and the jumpers DL
and DR of E area to D7 and D8, respectively. Turn on the power adapter, you can see
that the smart robot can perform infrared obstacle avoidance. When the sensor
detected the obstacle ahead of the robot, the green LED will light up. The detection
distance can be adjusted by potentiometer. When the left sensor detects the
obstacle, the smart robot will turn to right. When the right sensor detects the
obstacle, the smart robot will turn to left.
Infrared tracking program
Click File -> Example -> AlphaBot -> E03_Infrared_Tracking_Objects to open the
project. Compile and download the program to the Arduino development board.
Install the Tracker Sensor to the smart robot. Connect the jumper of motor in A area
to the Arduino, and the jumpers DL and DR of E area to D7 and D8, respectively.
Turn on the power adapter, you can see that the smart robot can perform object
tracking. If there is an object in front of the smart robot, the robot will run forward.
If there is nothing in front of the robot, the smart robot will stand. The detection
distance can be adjusted by potentiometer.
Infrared remote control program
33

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot

Table of Contents