I'm new to arduino, but I need to get a project done quickly
The task: as soon as the arduino receives power, it starts playing an mp3 file and keeps repeating this one piece of music.
I don't think it's too complicated, but I don't know where to start.
Can someone help me?
Maybe someone already knows a solution to my problem?
I don't have the tool yet, I was hoping to get help here, what should be bought for this project, and possibly code help.
Also, what can be done to start the music as soon as it receives power.
The Arduino boards that I am familiar with like the Uno, Nano or equivalent have a 1 second, or so, delay at power up to wait for the bootloader to check for code upload. After that it will start to execute code. It would take a small amount of time to set things up to be ready to load a sound file from and SD card to the MP3 player and begin to play the sound. I cannot exactly quantify how long, but I believe it would be much less than 1 second. So I would estimate that the sound would begin to play within about a second and a half of applying power. That can be shortened by uploading code with a programmer and so not writing a bootloader. That would eliminate the second wait for upload to begin.
Maybe I'm not putting it completely right, it doesn't have to be immediately, a 1-second delay fits, that's no problem, but I can already see that starting the music immediately is a basic thing, if there are no buttons, so this problem seems to be solved.
I don't know how to solve the endless repetition of that one song, but I think it could be a one-line code, but I can't find it.
With the MP3 player and library that I mention, you can loop one song, play a sequence of songs or play one song and stop plus more. What is it that you want to do?
It would be the case that there is only one mp3 file on the sd card that starts, and when it ends, the same song starts again, so I have to play that one music file repeat forever.
Hi.
I'm jumping in here as it sounds like the sort of thing I need too.
I am creating a multimedia art piece for my degree which I want to have sound constantly playing through headphones.
The piece will be in an exhibition for a week so it needs to be a simple case of someone flicking a switch on a usb power supply each morning.