Waveshare AlphaBot User Manual page 34

Table of Contents

Advertisement

share awesome hardware
AlphaBot User Manual
Click File -> Example -> AlphaBot -> E04 Infrared_Remote_Control to open the
project. Compile and download the program to the Arduino development board.
Connect the jumper of motor in A area to the Arduino, and the jumper of the
Infrared receiver IR in G area to the jumper D4 on Arduino.
Expectation result: When pressed the key on the Infrared remote controller, you can
control the smart robot. The key 2 is for go forwards, 8 for go backwards, 4 for turn
left, 6 for turn right, 5 for stop, - for speed down and + for speed up. (Notes: The
key encoding may change with different Infrared remote controller. You can modify
the program as required. )
Ultrasonic distance measurement program
Click File-> Example->AlphaBot-> E05_Ultrasonic_Ranging 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. (The tracking
line function will use these pins as well, so please remove the corresponding
jumpers, avoiding interruption). Turn on the power adapter, the screen will show
the distance measured by the Ultrasonic unit currently.
Ultrasonic obstacle avoidance program (without servo)
Click File-> Example -> AlphaBot -> E06_Ultrasonic_Obstacle_Avoidance1 to open
the project. Compile and download the program to the Arduino development
34

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot

Table of Contents