#NeoPixel & MakeCode
1 messages · Page 1 of 1 (latest)
Are you using a level shifter for the data line ?
No not at all!
Some neopixel strips use a version of neopixels are want 5V data signals
Yes I've read something like this in documentation but don't understand how to implement.
Also super appreciate your attention!!
So like ws2812b or the RGBW versions of them which I think is ws2813 would need to shift the logic level from 3.3V of the CPX and the strip
Something like this would work perfect
John Park has a few good videos on level shifting neopixels
Hmm how does this incorporate with a CPX?
So what you do is put 3V to the low voltage side, 5V from the neopixel strip to the high voltage side
Then take your data line from the CPX to the low voltage side, and then take the high voltage data signal and put it to the neopixel strip with a 330ohm or 470ohm resistor
Let me find the video from John park. He explains it very well
Solve microcontroller-to-NeoPixel mismatches with a level shifter. 3v3 micros can talk with 5V NeoPixels, they just need a translator. That translator is the ever handy logic level shifter. Often, a mismatch of logic levels can cause strange behavior, such as dim or wrong-colored pixels -- especially on longer wire runs or in projects that use l...
Also if I'm understanding correctly, my issue boils down to powering the strip, is that right?
Well, the strip will need 5V, preferably from a separate source than the CPX
Connect the ground of the CPX to the ground of the 5V neopixel source. Then use that level shifter to shift your data signal to the neopixel strip
The video explains everything:)
Okay lemme watch this 5 min vid then bother you with more questions! Bless you for being online!!
You’re very welcome! I do a lot with neopixels anymore so I’ve found and revisit these videos frequently 🙂
Okay this video was helpful in terms of demystifying the process. And it looks like no additional code necessary, just be mindful of where you plug things in. I realize now that I'm going to need a breadboard to hold the level shifter in place and solder my CPX leads into place, so something new I hadn't expected but doable.
I made a circuit diagram on paper, do you mind looking it over?
Looks right
Awesome, thanks so much!!!