Waveshare AlphaBot User Manual page 35

Table of Contents

Advertisement

share awesome hardware
AlphaBot User Manual
board. Install the steering gear and Ultrasonic module to the smart robot. Connect
the jumpers TRIG, ECHO of Ultrasonic unit in D area to the pins D11 and D12 on the
Arduino.
Turn on the power adapter, the smart cat can perform ultrasonic obstacle
avoidance. When there is obstacle in front of the robot, it will move to the side that
far away from the obstacle.
Ultrasonic obstacle avoidance program (with servo)
Click File-> Example -> AlphaBot -> E07_Ultrasonic_Obstacle_Avoidance2 to open
the project. Compile and download the program to the Arduino development
board. Install the servo and Ultrasonic module to the smart robot. Connect the
jumpers TRIG, ECHO of Ultrasonic unit in D area to the pins D11 and D12 on the
Arduino. Connect the jumpers S1 and S2C of servo in C area to the pins D9 and D10
on the Arduino. (The tracking line function will use these pins as well, so please
remove the corresponding jumpers, avoiding interruption).
Turn on the power adapter, the smart cat can perform ultrasonic obstacle
avoidance. When there is obstacle in front of the robot, the Ultrasonic module will
measure the distance from the right side and the left side of the robot to the
obstacle, respectively. Then, it will move to the side that far away from the obstacle.
Infrared tracking line program
Click File -> Example -> AlphaBot -> E08_Infrared_Line_Tracking to open the
35

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot

Table of Contents