Preface: This is my first ever custom Arduino project, so I realize I may be doing something totally idiotic.
Background:
I'm building "light boxes" for my Mom and her sisters for Christmas (they're miniature replicas of a contraption their dad built in the 50's). See attached diagram. Yes, the LED strips are correctly hooked up (they work as intended but only temporarily). Yes, there are two relays, neither of which are attached to anything- I wanted the lights to audibly "click" when they turn on/off, and some electronics-minded friends suggested I trigger relays like this. Two for stereo sound. The momentary pushbutton is used to cycle through four different lighting modes.
Problem:
The first half-dozen times I plug it in, everything works perfectly- the relays, pushbutton, LED's, all flawless and as intended.
The next half-dozen times I plug it in, the lights may or may not work (everything else- relays, pushbutton- works perfectly). At this point, testing the LED strip separate from the rest of the system shows that it is still fully functional.
At some point in those next half-dozen times, though, the LED strip stops working permanently, and testing it separately shows it is completely "burnt out". None of the pixels work.
This issue is frustratingly repeatable; it happened a few months ago with three different strips- I had assumed at the time I had some wiring wrong somewhere, triple-checked, and then it worked again with new strips, so I figured I had fixed the problem. But that was apparently only temporary; now it's happened again w/ three more strips on three different but identically wired boxes. These strips cost $40 each, so you can imagine my frustration!
Any ideas would be greatly appreciated! I've been working on this for months and would really really really love to be able to get this solved so I can give my Mom a working version for Christmas!
My only idea right now is that perhaps the exposed ends of the trimmed LED strips (I only needed 18 of the 25 pixels in a strand, so cut off the rest) could be somehow shorting out the strips? They were neatly trimmed, but not insulated. Could that cause the entire strand to eventually burn out like this?
Let me know any other information I can provide that might be relevant. Thanks!
Materials/Methods
Wiring diagram: see attached
Here are the components I am using:
LED strips: WS2810, 12mm Diffused Flat Digital RGB LED Pixels (Strand of 25)
Relays: DC 5V Coil Relay
Power adapter: female DC power adapter
Power supply: 5V 2A switching power supply
Arduino: Uno
I'm fairly certain this not a software problem but I've attached the code as well just in case.
Jack_FINAL.ino (9.23 KB)
