Waveshare AlphaBot 2 User Manual page 27

Table of Contents

Advertisement

share awesome hardware
AlphaBot 2 User Manual
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
27

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot 2

Table of Contents