Hello everyone,
I recently purchased one of those large gumball machines that has the spiral piece in the middle where the gumball can roll down. This particular machine came equipped with neon lights that were controlled by a microcontroller. But the controller is no longer functional. I would like to replace this with an arduino and various WS2818b LED's
From a functional point of view I think I have all the parts that I need and understand the voltage requirements of each of the parts. But, of course, I would like for people who know more than I do to review, if possible.
I would like to have a single power supply that will supply both the LED's and the Arduino as well.
Parts List:
1x Arduino Uno R3
1x USB cable
1x 5V 15A 75W Power supply
1x MT3608 Step-Up Adjustable DC-DC
3x 40 LED strip (2 ft long each)
1x 100 LED strip (10 ft long, will need power at both ends)
1x coin “switch”
Each LED pixel draws 0.3W. So the total power need would be a little less than 67W (220 LED's + the Arduino) if everything was on simultaneously. Since I will be having the LED's chase, that will be improbable, but it should be able to handle it. The power supply recommends an 80% max draw, which would be 60W, so the max draw of 67 would be on occasion (90%) which the supply can tolerate. I will just have to program the LED's to not all be on at the same time in that case to keep it below the 80% threshhold.
The USB cable will essentially be permanently attached, but rarely connected to a computer. The 5v power supply will supply the power to the LED strips directly, but to power the Arduino i am running it through the Step-Up converter since the barrel connector requires 7-12V. (I will target 9v, but anything above 7 is ok). This will allow me to also limit the amperage that goes into the Arduino while keeping the USB cable and the power attached (relying on the auto switching capability in the Arduino to keep both attached simultaneously, may not be wise, I know).
The schematic I have come up with is below.
From the programming side, I am good. But just to explain, the 3x 40 strips will all be doing the same thing, either chasing or a slow pulsing. I left each with it's own data connection so that should I want to I can cycle through with different patterns and colors if I want later. The 10ft one goes down the spiral and will only be on occasionally, "attract mode" essentially, but will definitely be on when the coin "switch" is triggered (put in a coin, spin the dial, get a gumball).
My questions are as follows:
- Since everything is a constant voltage, I don't need to put any resistors in, do I? The examples I have seen deal mostly with a single LED, so those are obvious, but I don't think that is necessary with a WS2818 strip.
- The voltage drop on the 10ft one is enough that I will need to put power at both ends, that should be straight forward. Anything special I should know here?
- Do I need to connect the ground from the Arduino to the LED's? I don't think so, since it is not the thing powering the strips, but just want to check.
- Questions on how step-up modules work:
- The MT3608 Step-Up module limits the output amperage to 4A, which is way more than the Arduino needs, and if I understand the way current works it will only draw what it needs, regardless of the max. Is this correct? I don't want to fry the module since the power supply could produce 15A, but the Arduino won't draw that.
- How much current am I going to lose by increasing the voltage or is that a non-issue (see power requirements above)?
- Is there something else that should be obvious but I am missing because this is all new to me?