Waveshare AlphaBot User Manual page 39

Table of Contents

Advertisement

share awesome hardware
AlphaBot User Manual
Install the Infrared Proximity Sensors to the left side and the right side of the smart
robot. Connect the jumpers IN1, IN2, ENA, ENB, IN3 and IN4 of motor in A area to
the pins P12, P13, P6, P26, P20 and P21 of the Raspberry Pi, respectively. And
connect the jumpers DL and DR of the infrared unit in E area to the pins P19 and
P16.
Enter the Linux terminal, and input the following lines:
cd ~/AlphaBot/python
sudo python Infrared_Obstacle_Avoidance.py
Expectation result: 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
Install the Infrared Proximity Sensors to the left side and the right side of the smart
robot. Connect the jumpers IN1, IN2, ENA, ENB, IN3 and IN4 of motor in A area to
the pins P12, P13, P6, P26, P20 and P21 of the Raspberry Pi, respectively. And
connect the jumpers DL and DR of the infrared unit in E area to the pins P19 and
P16.Enter the Linux terminal, and input the following lines:
cd ~/AlphaBot/python
sudo python Infrared_Tracking_Objects.py
Expectation result: 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.
39

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot

Table of Contents