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!

Install All the Modules (Important)๏ƒ

  1. Prepare the system

    Make sure your Raspberry Pi is connected to the Internet, then update the system:

    sudo apt update
    sudo apt upgrade
    

    Note

    If you are using Raspberry Pi OS Lite, install the required Python 3 packages first:

    sudo apt install git python3-pip python3-setuptools python3-smbus
    
  2. Install robot-hat

    Download and install the robot-hat module:

    cd ~/
    git clone -b 2.5.x https://github.com/sunfounder/robot-hat.git --depth 1
    cd robot-hat
    sudo python3 install.py
    
  3. Install vilib

    Download and install the vilib module:

    cd ~/
    git clone https://github.com/sunfounder/vilib.git --depth 1
    cd vilib
    sudo python3 install.py
    
  4. Install picar-x

    Download and install the picar-x module:

    cd ~/
    git clone -b 2.1.x https://github.com/sunfounder/picar-x.git --depth 1
    cd picar-x
    sudo pip3 install . --break
    

    This step may take a little while. Please be patient.

  5. Enable sound (I2S amplifier)

    To enable audio output, run the i2samp.sh script to install the required I2S amplifier components:

    cd ~/robot-hat
    sudo bash i2samp.sh
    

    Follow the on-screen prompts by typing y and pressing Enter to continue, run /dev/zero in the background, and restart the Picar-X.

    Note

    If there is no sound after restarting, try running the i2samp.sh script several times.