Hello.
I am looking at a project in which the WS2812/NeoPixels and FadeCandy would work really well. I have watched your tutorial on FadeCandy it is awesome. I do have a question however. You show FadeCandy working with the NeoMatrix. However in my project, the LEDs will be apart from each other (inside glass bottles).
How can you wire individual LEDs/NeoPixels to the FadeCandy system?
Does anyone have any ideas?
FadeCandy, NeoMatrix and WS2812
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: FadeCandy, NeoMatrix and WS2812
In general terms, you can't.
NeoPixels are made to operate in strips. Each one consumes the first 24 bits of input it sees on its DI pin and then copies everything else to its DO pin. The next pixel in the string will consume the first 24 bits of what's left and send the remainder on to the next one, and so on.
It's possible to control NeoPixels one at a time, but you'd need separate control hardware and software for each one. The FadeCandy's hardware and software can't support that.
No matter how you control the LEDs in your project, you'll need at least a VCC line, a GND line, and a data line. Wiring your pixels as a string will only add one more line, carrying data out of one bottle and into the next.
NeoPixels are made to operate in strips. Each one consumes the first 24 bits of input it sees on its DI pin and then copies everything else to its DO pin. The next pixel in the string will consume the first 24 bits of what's left and send the remainder on to the next one, and so on.
It's possible to control NeoPixels one at a time, but you'd need separate control hardware and software for each one. The FadeCandy's hardware and software can't support that.
No matter how you control the LEDs in your project, you'll need at least a VCC line, a GND line, and a data line. Wiring your pixels as a string will only add one more line, carrying data out of one bottle and into the next.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: FadeCandy, NeoMatrix and WS2812
How far apart are we talking with the bottles? And are they staying fixed in one place, or need to move?
- mikeclegg123
- Posts: 7
- Joined: Wed Oct 01, 2014 9:04 pm
Re: FadeCandy, NeoMatrix and WS2812
The actual LED's, which will be in the top of the bottles, pointing downwards will all be different lengths apart. However, they will all be around 300mm-800mm apart (in length of wire between each bottle) as the bottle is hanging, the LEDs wire has to go up the support wire, across then back down the next support wire for the next bottle and so on.
I am basically needing the ability to control them all, but also fire off individual LEDs if need be.
I am basically needing the ability to control them all, but also fire off individual LEDs if need be.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: FadeCandy, NeoMatrix and WS2812
This sounds reasonable. Each bottle will need four wires: 5V, ground, data in and data out. Data out from one bottle will connect to data in on the next. First bottle's data in connects to the Fadecandy. (Bonus tip: use a separate cable to bear the load of the hanging bottle...don't use the power or data wires for this.)
I don't believe there's an Official Word for the maximum distance between pixels (it's dependent on many factors including wire gauge), but I've heard of folks spacing them a meter apart sometimes. You might just need to prototype and test. If the distance is too much, a trick you can use is to add extra pixel(s) in the middle of a longer span, and just always write an "off" color value to those points so they don't show.
I don't believe there's an Official Word for the maximum distance between pixels (it's dependent on many factors including wire gauge), but I've heard of folks spacing them a meter apart sometimes. You might just need to prototype and test. If the distance is too much, a trick you can use is to add extra pixel(s) in the middle of a longer span, and just always write an "off" color value to those points so they don't show.
- mikeclegg123
- Posts: 7
- Joined: Wed Oct 01, 2014 9:04 pm
Re: FadeCandy, NeoMatrix and WS2812
Excellent
Ok, so If I wanted to have say 10 different programs, and have some form of a rotary switch (or something) for the user to change between them. Would fade candy (or the controller, Raspberri Pi or something) support this? What about App control, from say an Iphone or Android?
Ok, so If I wanted to have say 10 different programs, and have some form of a rotary switch (or something) for the user to change between them. Would fade candy (or the controller, Raspberri Pi or something) support this? What about App control, from say an Iphone or Android?
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: FadeCandy, NeoMatrix and WS2812
Fadecandy is just the messenger between the computer and NeoPixels. Any specific behavior (such as responding to a rotary switch) would be a function of the software on the computer. This could be done using the GPIO header on the Raspberry Pi. Depending on the complexity of what you want to display, an Arduino (instead of Pi + Fadecandy) might be sufficient. Some Arduino projects use the Bluefruit LE to work with iOS or Android apps.
Please be positive and constructive with your questions and comments.