Waveshare AlphaBot 2 User Manual page 26

Table of Contents

Advertisement

share awesome hardware
AlphaBot 2 User Manual
keys on the infrared remote controller, in which, "2"is for go forwards, "8" for
go backwards, "4" for turn left, "6" for turn right, and "5" for stop. Keys
"-" and "+" can adjust the speed of the robot, and "EQ" can restore the
default setting of the speed.
(Note: The key encoding may change with different Infrared remote controller. You
can modify the program as required.)
Infrared obstacle avoidance
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python Infrared_Obstacle_Avoidance.py
When there is no obstacle ahead of the robot, the green LED on the robot is off.
When the obstacle is detected, the green LED will light up. In case that the LED is
always off or always on, you can try to adjusted the potentiometers on the bottom
of the robot to make the LED work properly.
Expectation result: The robot goes straight when there is no obstacle detected by
the sensor on the left, and turns right when obstacle is detected.
Ultrasonic distance measurement (Raspberry Pi 3B kit does not
contain ultrasonic unit)
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python Ultrasonic_Rangeing.py
Expectation result: The terminal will display the current measured distance.
26

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot 2

Table of Contents