I'm pretty new to the world of Arduino and I hope I'm posting in the right section.
I'm trying to complete a very simple project: 2 Adafruit Neopixel rings (24 led each) connected to an Arduino Uno that turn on and off with a pushbutton switch. One push the rings stay on, one push they stay off. The rings should not change and be a specific RGB colour.
I've started with the coding of the first ring (hoping it makes sense):
but when it comes to connect the pushbutton and the resistor in the circuit I get lost! I've been looking everywhere for a similar project but everything seems to be slightly different and not very helpful for this project in particular.
Would anyone be able to help with the circuit? If I follow the connection from positive to negative at what point do I interrupt it with a push button? And how do I connect that to the correct pin on the Arduino?
vinceherman:
If both rings are going to behave the same, do you even need 2 instances?
I would think one instance, and connect both rings to the same pin.
That was my first thought, too. But, I'm sure that the requirements will change as soon as the OP discovers that the rings can do more than light up one specific color.
Another thought... Don't those rings have another pin to daisy chain more rings?
Still one data pin from the arduino, but drive a string of twice as many individual pixels?
vinceherman:
Another thought... Don't those rings have another pin to daisy chain more rings?
Still one data pin from the arduino, but drive a string of twice as many individual pixels?
Believe me. At this point, don't introduce the idea of daisy chaining them.