I had PiDog working as advertised then ran a RPi system update and overall everything worked but I started getting errors. I tried re-installing all the PiDog modules to no avail and even generated a brand new system on a new SD card with all the modules and am still getting the following errors.
***********
$ sudo python3 12_app_control.py
vilib 0.3.18 launching …
picamera2 0.3.34
config_file: /home/carbone/.config/pidog/pidog.conf
robot_hat init … done
imu_sh3001 init … fail
rgb_strip init … fail
dual_touch init … done
sound_direction init … done
sound_effect init … done
ultrasonic init … done
ip : 192.168.1.78
ALSA lib pcm.c:8772:(snd_pcm_recover) underrun occurred
**********
Any ideas?
also when I install vilib I get the following warnings:
**********
Start installing vilib 0.3.18 for user carbone
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.
*************
Do I have to downgrade my python to 3.12?
Based on your error messages, the issues are related to RGB Strip and IMU initialization failures.
This is likely caused by one of the following:
- Wiring issue – Check the 4‑pin cable
Please check and re‑connect the 4‑pin cable between the Robot HAT and the RGB Strip (see the attached photo for reference).
A loose or disconnected cable will cause the initialization failures.
After reconnecting, run the following command to check whether the Robot HAT is properly detected:
i2cdetect -y 1
You should see three I2C addresses: 15, 34, and 74.
If you see fewer than three addresses, the connection is still not correct.
- I2C interface not enabled
Make sure I2C is enabled on your Raspberry Pi. Run:
sudo raspi-config
Then navigate to: Interface Options → I2C → enable it.
Reboot after enabling.
About the mediapipe warnings
The warnings about mediapipe are not critical.
PiDog does not use these libraries, so you can safely ignore them – they will not affect the normal operation of your PiDog.
Please try the steps above and let me know if the issue persists.
Thank you! Cable from light strip had pulled slightly out of its socket! All’s well. Thanks.