Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 10788

Troubleshooting • Entire Pi loses audio after running a script containing a BME680

$
0
0
Second time posting here, let me know if Im missing something.

I have a raspberry pi 3a with an innomaker amp hat that Im using to build a custom star wars project. Basically what this pi does is play a sound file when a connected sensor loses external power (from the wall). When the pi is playing a sound it displays text on an OLED display. This is just context for what isnt working. When I create a 2nd script to control the speed of PWM fans based on the readout of a BME 680 sensor. The Problem lies within running these scripts together. When I run fanscript.py (the one that controls the temp and fans), it disables the innomaker sound card. At first I thought this was because they were both on the i2c pins and therefor causing a conflict. Once I changed the pins to SPI and/or software I2C, the temperature started working slower, but there is still the same issue outputting audio.

Code:

aplay -l 
shows the card,

Code:

aplay Gonk3.wav
works until I run the fanscript then it wont work after that.

Specs:
Model: Raspberry Pi 3a
Hat: Innomaker AMP (using hifiberry drivers)
OS: Raspberry Pi OS 64-bit with desktop
Sensor: BME680 Adafruit sensor

Statistics: Posted by D3D Creations — Sat Mar 29, 2025 8:35 pm



Viewing all articles
Browse latest Browse all 10788

Trending Articles