I'm building an MP3 player into a photo frame for an art project. The frame is being mounted with three LEDs. When power is turned on, it will play an mp3 track too.
I'm waiting for the kit to arrive but I really don't know if I should just use a 9V battery off the shelf or lithium rechargeable - what and where capacitors are needed.
I'm a bit lost.
Does anyone have any advice?
Three 3V LEDs (pre soldered resistors)
I mocked this up:
I've been given this as a plan of action:
- Connect the positive (red) wire from your 9V battery to the VIN pin on your LDO regulator.
- Connect the negative (black) wire from your 9V battery to the GND pin on your LDO regulator, as well as to the GND pin on each of your LED lights and your MP3 player.
- Connect a 10µF capacitor between the VIN and GND pins on your LDO regulator.
- Connect a 1µF capacitor between the VOUT and GND pins on your LDO regulator.
- Connect a 330Ω resistor in series with each of your LED lights, connecting one end of the resistor to the LED's positive pin and the other end to GND.
- Connect the positive pin of your MP3 player to the VOUT pin on your LDO regulator, and the negative pin to GND.
- Connect a button between the VIN pin and a digital input pin on your microcontroller. When the button is pressed, the digital input will read high, and you can turn on the LEDs and play the MP3.