5. Install All the Modules(Important)ΒΆ

  1. Update your system.

    Make sure you are connected to the Internet and update your system:

    sudo apt update
    sudo apt upgrade


    Python3 related packages must be installed if you are installing the Lite version OS.

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

    cd ~/
    git clone -b v2.0 https://github.com/sunfounder/robot-hat.git
    cd robot-hat
    sudo python3 setup.py install
  3. Install vilib module.

    cd ~/
    git clone -b picamera2 https://github.com/sunfounder/vilib.git
    cd vilib
    sudo python3 install.py
  4. Download the code.

    cd ~/
    git clone https://github.com/sunfounder/pidog.git
  5. Install pidog module.

    cd pidog
    sudo python3 setup.py install

    This step will take a little time, so please be patient.

  6. Run the script i2samp.sh.

    Finally, you need to run the script i2samp.sh to install the components required by the i2s amplifier, otherwise the robot will have no sound.

    cd ~/pidog
    sudo bash i2samp.sh

    Type y and press Enter to continue running the script.


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


    Type y and press Enter to restart the machine.


    If there is no sound after restarting, you may need to run the i2samp.sh script multiple times.