Update: Uh, so I was plugging the Photon into the wrong data wire on the WS2812. Fixing that fixed everything. So, for reference: I’m able to control a strip of WS2812 LEDs directly from the Photon. The Photon is powered via USB and I’ve connected the +5V WS2812 wire to the VIN pin on the Photon, and GND to GND. The WS2812 data wire is connected directly to an output pin on the Photon. Finally, I’m using the NeoPixel fork to control everything. Blinky Lights!
I’m troubleshooting lighting up an LED strip (this one from Sparkfun). I’ve got it hooked up to my Photon…and no luck. So, let me cover some basics:
- I’ve read that this strip needs 5V. A lot of the Particle info relates to the Core, which outputs 3.3V, but the Photon will do 5V when powered via USB, right?
- Which NeoPixel / FastLED library should I be using? There seem to be forks of these specifically for the Particle environment. I used the NeoPixel fork and got everything to compile, but nothing lights up. When I tried to use the FastLED library, I couldn’t get it to compile because it has nested directories and files, and Particle Dev doesn’t seem to like that.
- I have seen the LEDs flash when I plug in the power and ground, so it seems like it’s potentially getting power.
- I am powering the Photon via USB, and then I’ve got the Photon plugged into a breadboard and I’m powering the LED strip with the VIN from the Photon, connecting to GND (next to VIN), and driving data from A0.
- I’m only trying to light 5 or so of the LEDs, not the full strip of 60, so I don’t think current is an issue.
- Ultimately, the plan is to power the LED strip in parallel with the Photon, both being powered from a 5V, 2A wall wart. But for now, I’m just testing with USB power.
Does any of this sound wrong? Any sort of beginner/basic mistake I’m making here? Does anyone have an example project that I could compile and test on my Photon? I just want to see the pretty lights…