Please help with hint

hasi@raspberrypi:~ $ cd ~/pidog/examples

sudo python3 servo_zeroing.py

Traceback (most recent call last):

File “/home/hasi/pidog/examples/servo_zeroing.py”, line 3, in

from robot_hat.utils import reset_mcu

ImportError: cannot import name ‘reset_mcu’ from ‘robot_hat.utils’ (/usr/local/lib/python3.13/dist-packages/robot_hat-2.2.1-py3.13.egg/robot_hat/utils.py)

hasi@raspberrypi:~/pidog/examples $

Could you please let us know which system image version you are currently using?

Please be advised that we have recently updated our codebase, and the official tutorials have not yet been fully synchronized. Please follow the commands below to install all the necessary libraries.

We recommend starting with a fresh system installation before proceeding:

Step 1: Install robot-hat

cd ~/
git clone -b 2.5.x GitHub - sunfounder/robot-hat: Robot Hat python library --depth 1
cd robot-hat
sudo python3 install.py

Step 2: Install vilib

cd ~/
git clone GitHub - sunfounder/vilib: Vision library for python
cd vilib
sudo python3 install.py

Step 3: Install PiDog

cd ~
sudo rm -rf pidog
git clone -b dev GitHub - sunfounder/pidog: Raspberry Pi Robot Dog from SunFounder --depth 1
cd pidog
sudo pip3 install . --break

Important: Please note that the correct command is sudo pip3 install . --break, not sudo pip3 install . --break-system-packages.

Step 4: Configure I2S AMP

cd ~/robot-hat
sudo bash i2samp.sh

Thank you problem solved!!

Camera is at every restart freezing after app. 30 sec.

To help us investigate the problem where the camera freezes approximately 30 seconds after each reboot, could you please provide the following information?

Which specific example code are you running when this problem occurs?

Could you please send us a short video showing the issue? This would be very helpful for our analysis.

Please confirm if your network signal is stable. We also recommend trying a different network connection to see if the problem persists.

We look forward to your reply.

Code:

cd ~/pidog/examples
sudo python3 12_app_control.py

Video : Sorry, new users can not upload attachments.

Network stabil

Thanks for a hint!:slight_smile:

If the video file is large, we recommend uploading it to your own OneDrive, then sharing the video link with us. Please also grant us access permission to the video link so we can help you analyze and resolve the issue.

the video:

IMG_6885.MOV

Which model of Raspberry Pi are you currently using?

We have recently updated the code.
We recommend that you reinstall the latest 64-bit Raspberry Pi OS (Trixie), then follow the tutorial steps to install all library codes, and finally run the examples to check how it works.
Guide: 5. Install All the Modules(Important) — SunFounder PiDog Kit 1.0 documentation

If the installation of the Robot Hat library fails during the process, we suggest running the installation command a second time to see if it completes successfully.

You can also refer to our installation logs for further details.https://drive.google.com/file/d/1OBvNZogCo1lk3uWl9whQFUSkQl1yEeqO/view?usp=sharing

Raspberry Pi 4 4GB

Trixie including updates installed

Moduls installed new

operated via App: The freezing of the camera is now after the first Head movement and disappears after a restart

Just checking in to see if the issue has been resolved now?

Sometimes network instability can cause lag or delays in the app’s video feed or controls.

NO, see the repeated comment below. :

We have conducted tests and verified that all controls on the APP interface are functioning properly.

May I ask which version of your PiDog is, V1 or V2?

We have updated the software code. If possible, we recommend reinstalling the system and then following the tutorial steps to install all library codes:

After successfully installing all the library codes, please run the APP example again to check the control results.

The Pidog is V1.

The only remaining problem is, when I move the head with the App, the camera freezes until the next restart of the Pidog.
Look at the movie posted same days ago.

If the PiDog stops working and the Raspberry Pi restarts whenever you control it with the app, the issue is likely that the Robot HAT isn’t providing enough power for both the Raspberry Pi and all the connected modules.

Please make sure the battery is fully charged.

I use the original battery and a Raspberry Pi 4 USB-C Black power supply 5.1V, 3A / 15W.
Is this enough?

The power supply you mentioned should, in theory, be sufficient.Please contact service@sunfounder.com for further help.