I know this isn’t related to the Spark directly, but I am looking to use the WS2812 in one of my projects and just wanting to confirm the wiring on the modules before purchasing them and to make sure they will work with the Particle (when it arrives)
Basically the above module has 6 pins IN, OUT, VCC, GND, VCC and GND
My question comes into the IN and OUT pins, basically I want to know if there is any difference between IN and OUT? eg. can I link 6 of these modules and share a common cable going to the IN (eg. not daisy chaining)
@semaja2, these modules are designed to be daisy chained. While power and ground can be connected from module to module, the IN on the first module in the chain would go to the Photon. Then the OUT of that module goes to the IN of the next and so on to your last module. I have driven a 60-LED string of WS2812 (Neopixel) LEDs directly from a pin on the Core/Photon but you may want to use a level shifter to boost the 3.3v output to 5v for the modules. Also, remember that turning on all the LED on a WS2812 at full brightness will take about 60ma so 7 x 6 modules x 60ma = 2.5Amps! Make sure you have enough power for you anticipated use
@peekey123 so it wouldn’t be possible to run them direct and not daisy chained? eg. 6 cables come out of D0 on the Photon and each cable goes to the IN pin on the WS2812?
As for power I will most likely use a 5V 2A power supply for both the Photon and the power rail to the LEDs, hopefully this will be enough amperage for my setup (as long as I never take them all to full brightness…)
I'm doing something similar, where I need to feed the Photon 5v 2a through VIN. I have a level shifter to boost the 3.3v output to 5v, but when reading the datasheet under "power" for the photon, it says:
Likewise, the power source should be sufficient enough to source 1A of current to be on the safe side.
@njonas I ended up putting a 5V 2A power supply direct to the VIN pin on the Spark Core and then connected my strip of WS2812b to the VIN pin.
My understanding of electronics would say this bypasses the Spark Core/Photon for the most part and thus you don’t need to worry about overloading the Core/Photon (Originally I was going to supply 5V 2A through the USB port but this would overload the Core)
Of course the Core/Photon will still use some power so out of the 2A you would only have about 1.7A? left for the lights etc
I will upload a instructable on my project I completed
@kennethlimcp Good to see there’s a supported library! I was just simply wondering what pins on the Photon I connect the clock and data line from the RGB lights to?