Robot Hat V4 (w/ speaker mounted to the TOP of hat)

Why can’t I find documentation on the expansion board that came with my PiCar-X?

The speaker once worked, but now stopped. I can’t find anything on the Robot Hat V4…help?

I am interested in utilizing the Hat’s pins that are not being used.

  1. Sorry, the documentation of this version of robot hat is basically the same as that of the previous version of robot hat.
    We just moved the speaker from the bottom to the top, and other interface functions have not been modified.
    SunFounder Robot HAT — SunFounder Robot HAT documentation
  2. It is recommended that you reinstall the bookworm system, install all library codes, and run the sound sample code to see if the speaker can sound normally.
    If the installation of i2samp.sh fails, it is recommended to install it several times and then run the sound sample.
    When running related scripts, you need to add sudo to obtain management permissions.

Does it depend on which folder we run the script i2Samp.sh? This file exists in ~/robot-hat, As well as ~/Picar-X. Be honest, is it stupid to think that executing these, seemingly different files (they are in different folders), would have different outcomes?

Please follow our tutorial steps to install.
If you are using picar-x product, you need to install i2samp.sh in the picar-x directory:
cd ~/picar-x
sudo bash i2samp.sh