Just assembled a pidog for the first time. Two issues so far:
-
Invariably, while running the example scripts (which they all work btw), its head starts shaking rapidly - almost like the servo is quickly connecting/disconnecting. I can stop the shaking it by just touching the head. But then it starts again after another command.
-
I get this error while running various commands: ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
Any ideas?
Using the ‘run command’… I am not sure I understand how to do this… Thanks.
It is the Python code script that you run, you need to add “sudo” in front to run.
For example, 1_wake_up.py will run as follows:
sudo python3 1_wake_up.py
I knew that part but what confuses me is that in the documentation, in section 3 - Fun Python Projects - 2 Function demonstation, there is a banner that says ‘Need to run with sudo’ . I can run the program fine but, since I have not yet figured out how to get the sounds to work (that is for later), I was wondering…
Can you please run the alsamixer command, go to settings and adjust the volume of the speakers to maximum, and then go run the sound example to see how it works.
What version of the 64-bit Raspberry Pi system are you currently using? Please let us know. (We are using the bookworm version 64-bit system)
Please run the uname -a command and provide us with a screenshot of the information so that we can reproduce your problem.
Please remove robot-hat, and check if the speaker on the back is good. --please provide pictures for us to see.
We are very sorry that we have not reproduced the problem you are experiencing.
We suggest you to install all the library code successfully (i2samp.sh), reboot your system, and then go to run the sound example to see if the speakers can sound properly yet. E.g. run the 9_howling.py example and see what works.
I will go through the steps you are suggesting. But, before doing so, I would like to confirm that I am using the Legacy 32 bits version of the OS as instructed in the documentation. That could be the cause? If so, is there a way to upgrade the OS without erasing everything?
Thanks
Danmarion, I have successfully used both the legacy 32 Bit Raspberry Pi and the 64 Bit OS to produce sound output from the speaker. I have most recently discovered that the speaker on my system quit working. I cut the wires from the PiHat going to the speaker and patched in an external speaker and found everthing working as designed. So amazing what this thing can do using the ChatGPT APIs! I sent an email to the Sunfounder support folks and they are in the process of sending me a new speaker so I will be able to make PiDog portable again. Right now it is teathered to a large external speaker. I wish the best of luck to you.
It does not directly update to a new version of an older 32-bit operating system.
Instead, a new installation is required. If you can’t get your speakers to work properly even on a new system.
We will arrange for a replacement speaker to be shipped to you.
You can also cut the wire from the PiHat to the speakers as jonhurdibm did and hook up an external speaker to see if it works. This will verify if the problem is with the hat or if the speaker is damaged.
I will use a spare SD card and reinstall, then proceed from there as you suggested.
Thank you.
Envoyé de mon iPad
Thanks. I will follow that route.
I have created a new disk under the 64 bit version of the OS. That was fun…
After trying a number of things, I cannot get the speaker to work I suspect a faulty speaker. Can you send a new one? The rest seems to work fine.
Thanks
Daniel Marion
54 rue du Grand Coteau
Sainte-Julie, QC, J3E 2X2
Canada
Normalement il faut les contacter par courriel au service@sunfounder.com 
Oups! Je n’avais pas vu que vous m’aviez répondu en français… 
Envoyé de mon iPad