Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
👉 Ready to explore and create with us? Click [here] and join today!
Download and Run the Code¶
First download and run the robot-hat
module.
cd /home/pi/
git clone https://github.com/sunfounder/robot-hat.git
cd robot-hat
sudo python3 setup.py install
Note
Running setup.py
will download some necessary components. Due to network problems, you may not be able to download successfully. You may need to download it again.
In this case, type Y and press Enter.
Then download the code and install the piarm
library.
cd /home/pi/
git clone -b 2.0.0 https://github.com/sunfounder/piarm.git
cd piarm
sudo python3 setup.py install
This step will take a little time, so please be patient.
Finally you need to run the script i2samp.sh
to install the components needed for the i2s amplifier, otherwise it may not have sound.
cd /home/pi/piarm
sudo bash i2samp.sh

Type y
and press Enter
to continue running the script.

Type y
and press Enter
to make /dev/zero
run in the background.

Enter y
and press Enter
to restart the robot.
Note
If there is no sound after a restart, you may need to run the i2samp.sh script several times.