I know that but when it does the test only front right works. Front left does not make any noise. I have rebooted and run the script multiple times and front left does not work. Is this normal? I have attached the installation log below.
rk@raspberrypi:~ $ sudo apt update
Hit:1 Index of /debian trixie InRelease
Hit:2 Index of /debian trixie-updates InRelease
Hit:3 Index of /debian-security trixie-security InRelease
Hit:4 Index of /debian trixie InRelease
24 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
rk@raspberrypi:~ $ sudo apt full-upgrade
Upgrading:
chromium libfm-extra4t64 lpplug-ejecter raindrop
chromium-common libfm-gtk-data lpplug-power rpi-imager
chromium-l10n libfm-gtk3-4t64 lpplug-volumepulse wfplug-bluetooth
chromium-sandbox libfm-modules pcmanfm wfplug-ejecter
firefox libfm4t64 pplug-ejecter-data wfplug-power
libfm-data lpplug-bluetooth pplug-power-data wfplug-volumepulse
Summary:
Upgrading: 24, Installing: 0, Removing: 0, Not Upgrading: 0
Download size: 297 MB
Freed space: 13.6 MB
Continue? [Y/n] y
Get:1 Index of /debian trixie/main arm64 chromium-l10n all 1:142.0.7444.175-1~deb13u1+rpt1 [19.4 MB]
Get:2 Index of /debian trixie/main arm64 chromium arm64 1:142.0.7444.175-1~deb13u1+rpt1 [106 MB]
Get:3 Index of /debian trixie/main arm64 chromium-common arm64 1:142.0.7444.175-1~deb13u1+rpt1 [36.0 MB]
Get:4 Index of /debian trixie/main arm64 chromium-sandbox arm64 1:142.0.7444.175-1~deb13u1+rpt1 [113 kB]
Get:5 Index of /debian trixie/main arm64 firefox arm64 145.0.1-1+rpt1 [96.0 MB]
Get:6 Index of /debian trixie/main arm64 libfm-data all 1.4.0-2+rpt8 [488 kB]
Get:7 Index of /debian trixie/main arm64 libfm-extra4t64 arm64 1.4.0-2+rpt8 [30.8 kB]
Get:8 Index of /debian trixie/main arm64 libfm-gtk-data all 1.4.0-2+rpt8 [32.9 kB]
Get:9 Index of /debian trixie/main arm64 libfm-gtk3-4t64 arm64 1.4.0-2+rpt8 [199 kB]
Get:10 Index of /debian trixie/main arm64 libfm4t64 arm64 1.4.0-2+rpt8 [159 kB]
Get:11 Index of /debian trixie/main arm64 libfm-modules arm64 1.4.0-2+rpt8 [65.5 kB]
Get:12 Index of /debian trixie/main arm64 lpplug-bluetooth arm64 1.6 [35.7 kB]
Get:13 Index of /debian trixie/main arm64 pplug-ejecter-data arm64 1.5 [7,454 B]
Get:14 Index of /debian trixie/main arm64 lpplug-ejecter arm64 1.5 [14.8 kB]
Get:15 Index of /debian trixie/main arm64 pplug-power-data arm64 1.3 [21.8 kB]
Get:16 Index of /debian trixie/main arm64 lpplug-power arm64 1.3 [11.8 kB]
Get:17 Index of /debian trixie/main arm64 lpplug-volumepulse arm64 1.6 [34.0 kB]
Get:18 Index of /debian trixie/main arm64 pcmanfm arm64 1.4.0-1+rpt7 [496 kB]
Get:19 Index of /debian trixie/main arm64 raindrop arm64 1.13 [66.3 kB]
Get:20 Index of /debian trixie/main arm64 rpi-imager arm64 2.0.1 [37.7 MB]
Get:21 Index of /debian trixie/main arm64 wfplug-bluetooth arm64 1.6 [38.2 kB]
Get:22 Index of /debian trixie/main arm64 wfplug-ejecter arm64 1.5 [25.3 kB]
Get:23 Index of /debian trixie/main arm64 wfplug-power arm64 1.3 [14.2 kB]
Get:24 Index of /debian trixie/main arm64 wfplug-volumepulse arm64 1.6 [37.2 kB]
Fetched 297 MB in 1min 26s (3,465 kB/s)
Reading changelogs… Done
(Reading database … 120705 files and directories currently installed.)
Preparing to unpack …/00-chromium-l10n_1%3a142.0.7444.175-1~deb13u1+rpt1_all.deb …
Unpacking chromium-l10n (1:142.0.7444.175-1~deb13u1+rpt1) over (1:142.0.7444.162-1~deb13u1+rpt1) …
Preparing to unpack …/01-chromium_1%3a142.0.7444.175-1~deb13u1+rpt1_arm64.deb …
Unpacking chromium (1:142.0.7444.175-1~deb13u1+rpt1) over (1:142.0.7444.162-1~deb13u1+rpt1) …
Preparing to unpack …/02-chromium-common_1%3a142.0.7444.175-1~deb13u1+rpt1_arm64.deb …
Unpacking chromium-common (1:142.0.7444.175-1~deb13u1+rpt1) over (1:142.0.7444.162-1~deb13u1+rpt1) …
Preparing to unpack …/03-chromium-sandbox_1%3a142.0.7444.175-1~deb13u1+rpt1_arm64.deb …
Unpacking chromium-sandbox (1:142.0.7444.175-1~deb13u1+rpt1) over (1:142.0.7444.162-1~deb13u1+rpt1) …
Preparing to unpack …/04-firefox_145.0.1-1+rpt1_arm64.deb …
Unpacking firefox (145.0.1-1+rpt1) over (144.0-1+rpt1) …
Preparing to unpack …/05-libfm-data_1.4.0-2+rpt8_all.deb …
Unpacking libfm-data (1.4.0-2+rpt8) over (1.4.0-2+rpt7) …
Preparing to unpack …/06-libfm-extra4t64_1.4.0-2+rpt8_arm64.deb …
Unpacking libfm-extra4t64:arm64 (1.4.0-2+rpt8) over (1.4.0-2+rpt7) …
Preparing to unpack …/07-libfm-gtk-data_1.4.0-2+rpt8_all.deb …
Unpacking libfm-gtk-data (1.4.0-2+rpt8) over (1.4.0-2+rpt7) …
Preparing to unpack …/08-libfm-gtk3-4t64_1.4.0-2+rpt8_arm64.deb …
Unpacking libfm-gtk3-4t64:arm64 (1.4.0-2+rpt8) over (1.4.0-2+rpt7) …
Preparing to unpack …/09-libfm4t64_1.4.0-2+rpt8_arm64.deb …
Unpacking libfm4t64:arm64 (1.4.0-2+rpt8) over (1.4.0-2+rpt7) …
Preparing to unpack …/10-libfm-modules_1.4.0-2+rpt8_arm64.deb …
Unpacking libfm-modules:arm64 (1.4.0-2+rpt8) over (1.4.0-2+rpt7) …
Preparing to unpack …/11-lpplug-bluetooth_1.6_arm64.deb …
Unpacking lpplug-bluetooth (1.6) over (1.5) …
Preparing to unpack …/12-pplug-ejecter-data_1.5_arm64.deb …
Unpacking pplug-ejecter-data (1.5) over (1.4) …
Preparing to unpack …/13-lpplug-ejecter_1.5_arm64.deb …
Unpacking lpplug-ejecter (1.5) over (1.4) …
Preparing to unpack …/14-pplug-power-data_1.3_arm64.deb …
Unpacking pplug-power-data (1.3) over (1.2) …
Preparing to unpack …/15-lpplug-power_1.3_arm64.deb …
Unpacking lpplug-power (1.3) over (1.2) …
Preparing to unpack …/16-lpplug-volumepulse_1.6_arm64.deb …
Unpacking lpplug-volumepulse (1.6) over (1.5) …
Preparing to unpack …/17-pcmanfm_1.4.0-1+rpt7_arm64.deb …
Unpacking pcmanfm (1.4.0-1+rpt7) over (1.4.0-1+rpt6) …
Preparing to unpack …/18-raindrop_1.13_arm64.deb …
Unpacking raindrop (1.13) over (1.12) …
Preparing to unpack …/19-rpi-imager_2.0.1_arm64.deb …
Unpacking rpi-imager (2.0.1) over (1.9.4) …
Preparing to unpack …/20-wfplug-bluetooth_1.6_arm64.deb …
Unpacking wfplug-bluetooth (1.6) over (1.5) …
Preparing to unpack …/21-wfplug-ejecter_1.5_arm64.deb …
Unpacking wfplug-ejecter (1.5) over (1.4) …
Preparing to unpack …/22-wfplug-power_1.3_arm64.deb …
Unpacking wfplug-power (1.3) over (1.2) …
Preparing to unpack …/23-wfplug-volumepulse_1.6_arm64.deb …
Unpacking wfplug-volumepulse (1.6) over (1.5) …
Setting up libfm-extra4t64:arm64 (1.4.0-2+rpt8) …
Setting up libfm-gtk-data (1.4.0-2+rpt8) …
Setting up pplug-power-data (1.3) …
gtk-update-icon-cache: Cache file created successfully.
Setting up lpplug-volumepulse (1.6) …
Setting up firefox (145.0.1-1+rpt1) …
Setting up lpplug-bluetooth (1.6) …
Setting up wfplug-power (1.3) …
Setting up raindrop (1.13) …
Setting up chromium-sandbox (1:142.0.7444.175-1~deb13u1+rpt1) …
Setting up libfm-data (1.4.0-2+rpt8) …
Setting up lpplug-power (1.3) …
Setting up chromium-common (1:142.0.7444.175-1~deb13u1+rpt1) …
Setting up rpi-imager (2.0.1) …
Setting up wfplug-bluetooth (1.6) …
Setting up chromium (1:142.0.7444.175-1~deb13u1+rpt1) …
Setting up wfplug-volumepulse (1.6) …
Setting up pplug-ejecter-data (1.5) …
gtk-update-icon-cache: Cache file created successfully.
Setting up libfm4t64:arm64 (1.4.0-2+rpt8) …
Setting up wfplug-ejecter (1.5) …
Setting up libfm-gtk3-4t64:arm64 (1.4.0-2+rpt8) …
Setting up chromium-l10n (1:142.0.7444.175-1~deb13u1+rpt1) …
Setting up lpplug-ejecter (1.5) …
Setting up pcmanfm (1.4.0-1+rpt7) …
Setting up libfm-modules:arm64 (1.4.0-2+rpt8) …
Processing triggers for libc-bin (2.41-12+rpt1) …
Processing triggers for man-db (2.13.1-1) …
Processing triggers for shared-mime-info (2.4-5+b2) …
Processing triggers for mailcap (3.74) …
Processing triggers for desktop-file-utils (0.28-1) …
Processing triggers for hicolor-icon-theme (0.18-2) …
Processing triggers for gnome-menus (3.36.0-3) …
rk@raspberrypi:~ $ cd ~/
git clone -b 2.5.x GitHub - sunfounder/robot-hat: Robot Hat python library --depth 1
cd robot-hat
sudo python3 install.py
Cloning into ‘robot-hat’…
remote: Enumerating objects: 201, done.
remote: Counting objects: 100% (201/201), done.
remote: Compressing objects: 100% (166/166), done.
remote: Total 201 (delta 71), reused 121 (delta 29), pack-reused 0 (from 0)
Receiving objects: 100% (201/201), 6.39 MiB | 3.90 MiB/s, done.
Resolving deltas: 100% (71/71), done.
Robot Hat Python Library v2.5.1
Install dependencies with apt-get:
- update apt-get … Done
- install raspi-config … Done
- install i2c-tools … Done
- install espeak … Done
- install libsdl2-dev … Done
- install libsdl2-mixer-dev … Done
- install portaudio19-dev … Done
- install sox … Done
- install libttspico-utils … Done
Install dependencies with pip3:
pip3 install with --break-system-packages
- update pip3 … Done
- install smbus2 … Done
- install gpiozero … Done
- install pyaudio … Done
- install spidev … Done
- install pyserial … Done
- install pillow … Done
- install ‘pygame>=2.1.2’ … Done
Setup interfaces
- turn on I2C … Done
- turn on SPI … Done
Copy dtoverlay
- copy dtoverlay … Done
- install robot_hat package … Done
Finished
rk@raspberrypi:~/robot-hat $ cd ~/
git clone GitHub - sunfounder/vilib: Vision library for python
cd vilib
sudo python3 install.py
Cloning into ‘vilib’…
remote: Enumerating objects: 837, done.
remote: Counting objects: 100% (132/132), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 837 (delta 96), reused 93 (delta 82), pack-reused 705 (from 2)
Receiving objects: 100% (837/837), 32.24 MiB | 4.82 MiB/s, done.
Resolving deltas: 100% (479/479), done.
Start installing vilib 0.3.18 for user rk
Python version: 3.13.5
Raspbian version: 13 (64bit)
mediapipe is only supported on 64bit system with python 3.12 or older.
tflite-runtime is only supported on python 3.12 or older.
Install vilib python package
- pip3 install ./ … Done
- cleanup … Done
apt install dependency:
- dpkg configure … Done
- update apt-get … Done
- install python3-libcamera … Done
- install python3-picamera2 … Done
- install rpicam-apps … Done
- install python3-pyqt5 … Done
- install python3-opengl … Done
- install python3-opencv … Done
- install opencv-data … Done
- install ffmpeg … Done
- install libgtk-3-0 … Done
- install libxcb-shm0 … Done
- install libcdio-paranoia-dev … Done
- install libsdl2-2.0-0 … Done
- install libxv1 … Done
- install libtheora0 … Done
- install libva-drm2 … Done
- install libva-x11-2 … Done
- install libvdpau1 … Done
- install libharfbuzz0b … Done
- install libbluray2 … Done
- install libzbar0 … Done
- install libopenblas-dev … Done
pip3 install dependency:
pip3 install with --break-system-packages
- update pip3 … Done
- install Flask … Done
- install imutils … Done
- install qrcode … Done
- install pyzbar … Done
- install pyzbar[scripts] … Done
- install readchar … Done
- install protobuf>=3.20.0 … Done
- install numpy … Done
mediapipe is not supported on this platform… Skip
ai-edge-litert is not supported on this platform… Skip
Create workspace
- create dir … Done
- copy workspace … Done
Finished
rk@raspberrypi:~/vilib $ cd ~/
git clone GitHub - sunfounder/vilib: Vision library for python
cd vilib
sudo python3 install.py
fatal: destination path ‘vilib’ already exists and is not an empty directory.
Start installing vilib 0.3.18 for user rk
Python version: 3.13.5
Raspbian version: 13 (64bit)
mediapipe is only supported on 64bit system with python 3.12 or older.
tflite-runtime is only supported on python 3.12 or older.
Install vilib python package
- pip3 install ./ … Done
- cleanup … Done
apt install dependency:
- dpkg configure … Done
- update apt-get … Done
- install python3-libcamera … Done
- install python3-picamera2 … Done
- install rpicam-apps … Done
- install python3-pyqt5 … Done
- install python3-opengl … Done
- install python3-opencv … Done
- install opencv-data … Done
- install ffmpeg … Done
- install libgtk-3-0 … Done
- install libxcb-shm0 … Done
- install libcdio-paranoia-dev … Done
- install libsdl2-2.0-0 … Done
- install libxv1 … Done
- install libtheora0 … Done
- install libva-drm2 … Done
- install libva-x11-2 … Done
- install libvdpau1 … Done
- install libharfbuzz0b … Done
- install libbluray2 … Done
- install libzbar0 … Done
- install libopenblas-dev … Done
pip3 install dependency:
pip3 install with --break-system-packages
- update pip3 … Done
- install Flask … Done
- install imutils … Done
- install qrcode … Done
- install pyzbar … Done
- install pyzbar[scripts] … Done
- install readchar … Done
- install protobuf>=3.20.0 … Done
- install numpy … Done
mediapipe is not supported on this platform… Skip
ai-edge-litert is not supported on this platform… Skip
Create workspace
- create dir … Done
- copy workspace … Done
Finished
rk@raspberrypi:~/vilib $ cd ~/
git clone GitHub - sunfounder/pidog: Raspberry Pi Robot Dog from SunFounder --depth 1
cd pidog
sudo pip3 install . --break
Cloning into ‘pidog’…
remote: Enumerating objects: 91, done.
remote: Counting objects: 100% (91/91), done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 91 (delta 5), reused 43 (delta 2), pack-reused 0 (from 0)
Receiving objects: 100% (91/91), 832.91 KiB | 3.39 MiB/s, done.
Resolving deltas: 100% (5/5), done.
Processing /home/rk/pidog
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … done
Building wheels for collected packages: pidog
Building wheel for pidog (pyproject.toml) … done
Created wheel for pidog: filename=pidog-1.3.10a1-py3-none-any.whl size=38270 sha256=b8c2b50a8b405489ef47e55364c18fa3535931eed240e2e9902792fe09ebda71
Stored in directory: /tmp/pip-ephem-wheel-cache-rknpbbg9/wheels/00/66/e6/fbd635c97f1bd7c30ed15a568ebcfe9cbe6a4fd6268f5bcd39
Successfully built pidog
Installing collected packages: pidog
Successfully installed pidog-1.3.10a1
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.14.0 documentation. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
rk@raspberrypi:~/pidog $ cd ~/robot-hat
sudo bash i2samp.sh
install robot-hat soundcard driver >>>
script version: 0.0.4
user: rk
apt update…
Hit:1 Index of /debian trixie InRelease
Hit:2 Index of /debian trixie-updates InRelease
Hit:3 Index of /debian-security trixie-security InRelease
Hit:4 Index of /debian trixie InRelease
All packages are up to date.
install alsa-utils …
alsa-utils is already the newest version (1.2.14-1+rpt1).
alsa-utils set to manually installed.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install pulseaudio …
Installing:
pulseaudio
Installing dependencies:
libasound2-plugins libpulsedsp pulseaudio-utils rtkit
Suggested packages:
pavumeter pavucontrol paprefs
Summary:
Upgrading: 0, Installing: 5, Removing: 0, Not Upgrading: 0
Download size: 2,210 kB
Space needed: 12.0 MB / 20.5 GB available
Get:1 Index of /debian trixie/main arm64 libasound2-plugins arm64 1.2.12-2+b1 [67.1 kB]
Get:2 Index of /debian trixie/main arm64 rtkit arm64 0.13-5.1+b1 [32.2 kB]
Get:3 Index of /debian trixie/main arm64 libpulsedsp arm64 17.0+dfsg1-2+rpt1 [41.2 kB]
Get:4 Index of /debian trixie/main arm64 pulseaudio-utils arm64 17.0+dfsg1-2+rpt1 [109 kB]
Get:5 Index of /debian trixie/main arm64 pulseaudio arm64 17.0+dfsg1-2+rpt1 [1,961 kB]
Fetched 2,210 kB in 2s (1,438 kB/s)
Selecting previously unselected package libasound2-plugins:arm64.
(Reading database … 126043 files and directories currently installed.)
Preparing to unpack …/libasound2-plugins_1.2.12-2+b1_arm64.deb …
Unpacking libasound2-plugins:arm64 (1.2.12-2+b1) …
Selecting previously unselected package libpulsedsp:arm64.
Preparing to unpack …/libpulsedsp_17.0+dfsg1-2+rpt1_arm64.deb …
Unpacking libpulsedsp:arm64 (17.0+dfsg1-2+rpt1) …
Selecting previously unselected package pulseaudio-utils.
Preparing to unpack …/pulseaudio-utils_17.0+dfsg1-2+rpt1_arm64.deb …
Unpacking pulseaudio-utils (17.0+dfsg1-2+rpt1) …
Selecting previously unselected package pulseaudio.
Preparing to unpack …/pulseaudio_17.0+dfsg1-2+rpt1_arm64.deb …
Unpacking pulseaudio (17.0+dfsg1-2+rpt1) …
Selecting previously unselected package rtkit.
Preparing to unpack …/rtkit_0.13-5.1+b1_arm64.deb …
Unpacking rtkit (0.13-5.1+b1) …
Setting up rtkit (0.13-5.1+b1) …
Setting up libasound2-plugins:arm64 (1.2.12-2+b1) …
Setting up libpulsedsp:arm64 (17.0+dfsg1-2+rpt1) …
Setting up pulseaudio-utils (17.0+dfsg1-2+rpt1) …
Setting up pulseaudio (17.0+dfsg1-2+rpt1) …
Created symlink ‘/etc/systemd/user/default.target.wants/pulseaudio.service’ → ‘/usr/lib/systemd/user/pulseaudio.service’.
Created symlink ‘/etc/systemd/user/sockets.target.wants/pulseaudio.socket’ → ‘/usr/lib/systemd/user/pulseaudio.socket’.
Processing triggers for man-db (2.13.1-1) …
Processing triggers for dbus (1.16.2-2) …
install pulseaudio-utils …
pulseaudio-utils is already the newest version (17.0+dfsg1-2+rpt1).
pulseaudio-utils set to manually installed.
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install jq …
Installing:
jq
Installing dependencies:
libjq1 libonig5
Summary:
Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0
Download size: 406 kB
Space needed: 1,297 kB / 20.5 GB available
Get:1 Index of /debian trixie/main arm64 libonig5 arm64 6.9.9-1+b1 [181 kB]
Get:2 Index of /debian trixie/main arm64 libjq1 arm64 1.7.1-6+deb13u1 [148 kB]
Get:3 Index of /debian trixie/main arm64 jq arm64 1.7.1-6+deb13u1 [77.2 kB]
Fetched 406 kB in 0s (1,056 kB/s)
Selecting previously unselected package libonig5:arm64.
(Reading database … 126424 files and directories currently installed.)
Preparing to unpack …/libonig5_6.9.9-1+b1_arm64.deb …
Unpacking libonig5:arm64 (6.9.9-1+b1) …
Selecting previously unselected package libjq1:arm64.
Preparing to unpack …/libjq1_1.7.1-6+deb13u1_arm64.deb …
Unpacking libjq1:arm64 (1.7.1-6+deb13u1) …
Selecting previously unselected package jq.
Preparing to unpack …/jq_1.7.1-6+deb13u1_arm64.deb …
Unpacking jq (1.7.1-6+deb13u1) …
Setting up libonig5:arm64 (6.9.9-1+b1) …
Setting up libjq1:arm64 (1.7.1-6+deb13u1) …
Setting up jq (1.7.1-6+deb13u1) …
Processing triggers for man-db (2.13.1-1) …
Processing triggers for libc-bin (2.41-12+rpt1) …
install sox …
sox is already the newest version (14.4.2+git20190427-5+b3).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
check robothat 5 …
hat_dir:/proc/device-tree/hat
Found:
Product: Robot Hat 5
Product ID: 1902 (0x076e)
Version: 50 (0x0032)
Vendor: SunFounder
UUID: 9daeea78-0000-076e-0032-582369ac3e02
robothat_spk_en: 12
is_with_mic: true
config soundcard with mic …
add dtoverlay googlevoicehat-soundcard in /boot/firmware/config.txt …
add dtoverlay googlevoicehat-soundcard …
dtoverlay=googlevoicehat-soundcard
Trying to load dtoverlay googlevoicehat-soundcard …
get_soundcard_index …
soundcard sndrpigooglevoi index: 3
config /etc/asound.conf with mic …
set ALSA speker volume to 100% …
Simple mixer control ‘robot-hat speaker’,0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
set ALSA mic volume to 100% …
Simple mixer control ‘robot-hat mic’,0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 255
Front Left: Capture 255 [100%] [25.00dB]
Front Right: Capture 255 [100%] [25.00dB]
config pulseaudio …
raspi-config enable pulseaudio …
run pulseaudio …
get_sink_index …
sink index not found.
Sometimes you need to reboot to activate the soundcard.
set default sink …
sink index is null
get_source_index …
source index not found.
Sometimes you need to reboot to activate the soundcard.
set default source …
source index is null
set default Pulseaudio volume to 100% …
Do you wish to test speaker now? [y/N] y
testing speaker …
speaker-test 1.2.14
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy
All done!
rk@raspberrypi:~/robot-hat $ cd ~/robot-hat
sudo bash i2samp.sh
install robot-hat soundcard driver >>>
script version: 0.0.4
user: rk
apt update…
Hit:1 Index of /debian trixie InRelease
Hit:2 Index of /debian trixie-updates InRelease
Hit:3 Index of /debian-security trixie-security InRelease
Hit:4 Index of /debian trixie InRelease
All packages are up to date.
install alsa-utils …
alsa-utils is already the newest version (1.2.14-1+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install pulseaudio …
pulseaudio is already the newest version (17.0+dfsg1-2+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install pulseaudio-utils …
pulseaudio-utils is already the newest version (17.0+dfsg1-2+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install jq …
jq is already the newest version (1.7.1-6+deb13u1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install sox …
sox is already the newest version (14.4.2+git20190427-5+b3).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
check robothat 5 …
hat_dir:/proc/device-tree/hat
Found:
Product: Robot Hat 5
Product ID: 1902 (0x076e)
Version: 50 (0x0032)
Vendor: SunFounder
UUID: 9daeea78-0000-076e-0032-582369ac3e02
robothat_spk_en: 12
is_with_mic: true
config soundcard with mic …
add dtoverlay googlevoicehat-soundcard in /boot/firmware/config.txt …
activated dtoverlay googlevoicehat-soundcard …
Trying to load dtoverlay googlevoicehat-soundcard …
- Failed to apply overlay ‘3_googlevoicehat-soundcard’ (kernel)
get_soundcard_index …
soundcard sndrpigooglevoi index: 3
config /etc/asound.conf with mic …
set ALSA speker volume to 100% …
Simple mixer control ‘robot-hat speaker’,0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
set ALSA mic volume to 100% …
Simple mixer control ‘robot-hat mic’,0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 255
Front Left: Capture 255 [100%] [25.00dB]
Front Right: Capture 255 [100%] [25.00dB]
config pulseaudio …
raspi-config enable pulseaudio …
run pulseaudio …
get_sink_index …
sink index: 107
set default sink …
get_source_index …
source index: 108
set default source …
set default Pulseaudio volume to 100% …
Do you wish to test speaker now? [y/N] y
testing speaker …
speaker-test 1.2.14
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Periods = 4
was set period_size = 1024
was set buffer_size = 4096
0 - Front Left
1 - Front Right
Time per period = 2.959804
0 - Front Left
1 - Front Right
Time per period = 2.986686
0 - Front Left
1 - Front Right
Time per period = 3.007682
All done!