This is my first Arduino/electrical project, but I have a lot of experience making all kinds of stuff and some pretty in-depth coding work... just not using Arduino. I have done a lot of research to prepare for this, but would love some insight and direction!
THE PROJECT: I am adding lights to a dance costume. Obviously it needs to be battery operated. I plan to run individually addressable lights off of 4 pins, with each pin controlling 8-12 lights. When the lights are turned on via the switch on the battery pack, they will run through a simple loop, allowing the lights to be a part of the costume when not dancing. When a button is pressed, the lights will run through a 2 minute sequence, the length of the song, that will create the effect we want through the dance routine. I plan to place a button on the costume that can be pressed on a specific beat in the beginning of the dance so that the code will run in time with the song. When the sequence is over, it will return to the initial loop.
CAVEAT: I want to prevent any accidental button pressing while dancing from messing with the lights, but I also want a way to override the sequence in order to return to it's initial loop, ready to begin again. My plan is to use 2 buttons. Button A starts the dance routine sequence. Once started, if either button A or B are pressed, nothing happens. To exit the sequence, both buttons must be pressed at the same time. I would have no trouble coding an app with this sort of logic, so I assume this is possible and, with some diligence, I can figure it out on Arduino. Let me know what you think.
SET-UP: My primary questions right now are in regard to set up. I have attached my wiring layout, and I'd really appreciate confirmation or advice on my approach. I also have a few questions:
-
Is one diode ok, or should I instead use 5 diodes (after the fork)? I saw a similar project using the one diode, but the 1A concerns me since 48 lights drawing up to 60 mA each needs almost 3A, right?
-
Once the battery pack is connected to the Metro, are there any concerns about plugging in the USB to transfer data (getting power from 2 sources)? I was planning on not making the + connection to the Metro until after it’s coded and I’m ready to get it into the costume, but I will likely tweak things and download new data after it’s up and running.
-
Regarding the buttons: I’m uncertain where the ground wires connect. Can they connect to any other ground wire at any point?
CODE: Finally, if you have some direction to point me in regarding code, I'd be very grateful! I've found some stuff, but would love links to code running in a sequence like I explained, making it easier for me to make my own adjustments. Same with the buttons.
Thanks!!