Need help with a Christmas gift involving led lights and music

Hello everyone!

I am trying build a Christmas gift project that when a battery pack is switched on, a set of led lights light up, then with the lights still on, when a button is pushed a song is played through a speaker.

This is what I have right now

  1. Adafruit Pro Trinket 5v or Arduino Nano 5v (if needed)
  2. DFPlayer Mini
  3. Makerhawk 3watt 8ohm mini speaker
  4. 3xAAA battery pack and 4xAA battery pack (will be using regular Duracell batteries)
  5. 12mm push button momentary switch
  6. Adafruit mono 2.5w class D audio amplifier (if needed)
  7. Neopixel led strip : Maximum 5V @ 80mA draw per Led. (I am only using 18 led lights)

Am I on the right path or do I need something more or better to accomplish what I am wanting to do? I am still pretty new to all of this but I am determined to make this gift.

Any help that would save me headache and time would be very appreciated. Thank you so much in advance.

Thank you

Only. It is almost 1.5A, dunno if batteries could handle it or how long they will last

Why two different sizes? You may want to consider batteries with more power like 18650s, or even better a premade rechargeable battery pack.

Which Neopixel strip exactly, can you link it? 80mA seems a bit high.

This has an amplified output so you shouldn't need the other amp. It also is >= to 4ohm so you can get more sound with a 4ohm speaker connected directly to it than your spec'd 8ohm.

Ohh? I thought batteries would work for all of this. From all the things I have seen on YouTube with led lights. I may have to rethink my power then.

I am using Adafruit NeoPixel Digital RGBW LED Strip - Black PCB 30 LED/m : ID 2824 : $89.75 : Adafruit Industries, Unique & fun DIY electronics and kits this led strip

I will look into getting the 4 ohm speaker =)

I forgot to put that I was only going to use one of the battery packs, not both.

Thank you so much

Does it need to be battery operated?

I am trying to do battery operated but if an adapter plug would be better, I will go that route.

Let's get rid of the XY problem. Please provide more detail about this gift.

1 Like

well LEDs are 5v and you don’t seem to have any 5v converter on your list, I only assume you are planning to add smoke effect to your gift by powering LEDs directly from the Arduino

So basically this is the gift I want to make but with a hogwarts castle instead Rob's Model Shop - Episode 7 - "Winterfell" - YouTube
With the push button audio music track after the lights are on.

Very cool.
Here's how I would start.

  1. Go back an check out and answer all of my questions from the previous post.
  2. Plan on using a nano 328
  3. Plan on making one piece at a time work
  4. Plan on buying a few extra parts for power

I'm cooking now, but I will link a couple tutorials later that will help.
Others will give you advice too, be sure to answer questions in detail.

Most 5mm LED Lights only use 20ma, 18 LED's gives a total of 360ma. Are you including the other hardware in your calculations for the required current?

Oh, hi, did you read the specs OP posted or you just reply to random people with random facts?

I meant to say that I had this one or that one, I wasn't going to use them both. I wasn't sure which one would work better.

I am using this one Adafruit Neopixel Led Strip

I will get a 4ohm instead, I want to do this right.

This doesn't necessarily have to be battery powered, I thought that would be the easiest. However, it is looking more and more like this might need to be powered by a wall adapter.

Thank you for letting me know, I am still really new at this. I know it is a big project for a newbie, but I am determined to do it and learn in the process. Then build upon my knowledge :slight_smile:

If I start using a wall adapter and the Nano 328 instead, will I still need a 5v converter?

Here's a good resource on the mini player:
Wiring DFPlayer Mini (MP3 Module) to Arduino. Stereo/Mono Diagrams. - Circuit Journal

I see where you got the 80mA, but if you look at the datasheet for the SK6812RGBW It's actually only 50mA. That on full blast white, most colors will be much lower.

Here is the software for the SK6812.

Combined with the mini player you should be good with a 5V 2A power adapter.
This is a barrel connector inline switch:


It's cheap and effective for beginners.

This is a barrel connector screw terminal:
image
It will work well to break out your power directly to your LED strip and to the 5V and ground pins of your Nano and mini player. That's important! Run a power and ground to each of your three devices directly from the screw terminals so they all draw from the power supply and not through the Nano itself.

You can use a button module and avoid soldering all together, but you will need a 1K resistor at least for the connection as the button modules are made to pass power I think. I don't have any on hand to test.

Wait at least a day before ordering stuff so others can offer opinions as well.

You'll turn it on and off with the switch, the button will serve to activate the lights and the sounds as you'd like.

Battery power is virtually never the easiest.

By definition, batteries have a limited capacity. This means the primary consideration of your project immediately becomes how long the batteries can continue to operate it, which is according to the battery capacity divided by the current drain, So you have to look at what the capacity of each candidate battery is, and what how much current each design option will draw. You then have an ongoing juggling act.

If you operate from the mains, your only concern is to find an adequately rated power supply. In this case, the NeoPixels, Nano and I believe other components require 5 V, so you want a 5 V power supply.

18 NeoPixels will draw 18 mA when dark, and one Amp at full white brightness.

@er_name_not_found I ordered all the parts you listed

I also created a little bit in illustrator to illustrate and map a layout. I haven't added any resisters or wiring to the image yet, this is my starting point. (i forgot to label the push button)

I am able to begin this from all of the help you all have graciously given me. I appreciate it so much! I am working hard on learning more and more.

1 Like

Work on one thing at a time. Try it first and if you can't figure it out then continue this thread.

First and foremost, THANK YOU everyone for helping me through this. I have been able to prototype the lights and audio, everything works!

I currently have 2 different wire sizes.
24awg and 20awg

My question is: Is it safe to use the 24awg with the whole setup (wiring/soldering 19 neopixels together, wiring to pcb, and the other components) or should I try and use the 20awg? I am using the 5v 2a power adapter to power this thing (as suggested).

Thank you again!

I have wired similar amounts of components using #24 single conductor copper wire, worked fine.

IMO as long as you aren’t using long runs of it to deliver significant current the #24 will be OK.

Have you looked to see what the in-use actual current required for your project turned out to be? I ask because standard recommended supplies for LEDs always seem to think we are interested in running them all at full brightness from power up to power down.

a7