Hey everyone,
I hope I’m posting this in the correct group
I’m really excited about this project that I’m working on, but I am new to Arduino and I have a few questions. Currently, I am able to run four sensors and record their data to an SD card, via the Data Logging Sheild, on the Arduino Uno. I am also able to play mp3 music out of a separate microSD card on the Music Maker Shield. However, I’m having trouble playing the mp3 music while simultaneously being able to record the sensor data to the SD card. How can I combine both of these features? In other words, how can I play the music in the background? I tried to combine the player_interupts code, from the Adafruit VS1053 Library to my data logging code by putting the readings of the sensors into a while loop, but now both the data isn’t being recorded and the music isn’t playing.
If anyone has any ideas that would be really helpful.
Attached is my code that works with the Data Logger (no music).
The code I will be running is the MasterSensorNoMusic.
Thanks
MasterSensorNoMusic.zip (10.6 KB)