I currently have a elegoo uno along with 4 arduino speakers, 2 amplifiers, a breadboard and an mp3 tf card reader. I have lights similar to the ones you can buy for an emergency vehicle as well as a dome push button. I want to be able to push the button which activates one song as well as the lights for a set amount of time. I have got the button and lights to work before but none of the sound. I need help with the code and wiring
Welcome to the forums. Do you have links to the speakers, amps and mp3 tf card reader you have? People will need that to help you. If you have speakers, you most likely will need an external power supply to drive them, not your Uno board. It is not a power supply for external components.
Show the wiring diagram of this, and the code. The lights sound power hungry... show the power requirements for the lights, too.
The TF card reader might only be for data files. Perhaps you could use a DFPlayerMini by DFRobots. With this player, you can play audio files.
That sounds like an interesting project that could be a lot of fun! However, please keep in mind that we are not a free design or code-writing service. We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with an explanation of what’s not working properly. There is also a for hire section if you want to pay for it.
I would assume the teacher/professor expects you to learn how to do this and understand what you did. This is basic material and if you do not master this you will have an increasingly difficult time.
-
Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
-
Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
-
Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
-
Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum. Of course one of the better sources of information (in my opinion) is the Arduino Cookbook. Skim it cover to cover and stop on any project that interests you.
I do have the speakers hooked up to their own external power. As for the lights, they are flashing lights like you can buy for any vehicle, so they are lower on power. For the wiring for the lights, I just have a button with the power and ground connected to a breadboard which connects to the lights. I have tried many times to do the speakers as well but can not get it.
Here are the links to the items I have:
DF Player: Amazon.com: DFPlayer - A Mini MP3 Player : Electronics
where is the hire section at?