MP3 shield hangs up
by ganderson on Sat Oct 12, 2019 12:00 am
I've got a weird issue with an Adafruit MP3 shield running off an Arduino Uno. The shield will play various sound files without issue in the main loop function, but the shield will randomly hang up on me when I trigger sounds via I2C. Only one other I2C slave on the bus, runs endlessly without interruptions or hang ups. Sounds are triggered to play when receiving an I2C event, and it plays sound files nicely for a random number of times, until it hangs, usually between 5 and 15 audio plays. The Arduino I2C slave doesn't hang and continues to receive I2C events, logging them in the serial console, but the shield becomes unresponsive and won't play audio anymore unless the Arduino is reset. I disable the main void loop audio playback when using I2C event playback. Any ideas why the shield would play audio on a loop endlessly but randomly hang when playing files with I2C events?
- Attachments
-
R2D2-AudioController-ArduinoUno_20190918.ino
- (6.14 KiB) Downloaded 23 times