Data Sheet
AlphaBot 2 User Manual     
27 
share awesome hardware
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 Infrared_Obstacle_Avoidance.py  
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. 
RGB LED 
Copy the file rpi_ws281x-master.zip into your Raspberry Pi, and run the following 
command to extract the file.   
unzip rpi_ws281x-master.zip 
Install the depended-upon software. 
sudo apt-get build-essential python-dev install scons swig 
Compile the program. 
cd rpi_ws281x-master 
sudo scons 










