![Waveshare AlphaBot User Manual Download Page 41](http://html1.mh-extra.com/html/waveshare/alphabot/alphabot_user-manual_3872313041.webp)
AlphaBot User Manual
41
share awesome hardware
obstacle.
Ultrasonic Ranging program
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 P17 and P5 on the
Raspberry Pi.
Enter the Linux terminal, and input the following lines:
cd ~/AlphaBot/python
sudo python Ultrasonic_Ranging.py
Expectation result: The screen will show the distance measured by the Ultrasonic
unit currently.
Ultrasonic obstacle program
Install the servo and Ultrasonic module to the smart robot. Connect the jumpers
TRIG, ECHO of Ultrasonic unit in D area to the pins P17 and P5 on the Raspberry Pi.
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).
Enter the Linux terminal, and input the following lines:
cd ~/AlphaBot/python
sudo python Ultrasonic_Obstacle_Avoidance.py
Expectation result: 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,
Summary of Contents for AlphaBot
Page 1: ...AlphaBot User Manual 1 share awesome hardware AlphaBot User Manual Feb 2017 V1 2...
Page 14: ...AlphaBot User Manual 14 share awesome hardware...
Page 25: ...AlphaBot User Manual 25 share awesome hardware...
Page 29: ...AlphaBot User Manual 29 share awesome hardware interface is not provide in our application kit...