#NeoPixel & MakeCode

1 messages · Page 1 of 1 (latest)

patent bobcat
grand stone
#

Are you using a level shifter for the data line ?

patent bobcat
#

No not at all!

grand stone
#

Some neopixel strips use a version of neopixels are want 5V data signals

patent bobcat
#

Yes I've read something like this in documentation but don't understand how to implement.

#

Also super appreciate your attention!!

grand stone
#

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

patent bobcat
#

Hmm how does this incorporate with a CPX?

grand stone
#

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

patent bobcat
#

Thank you!!

#

I was in paint trying to draw a schematic

grand stone
patent bobcat
#

Also if I'm understanding correctly, my issue boils down to powering the strip, is that right?

grand stone
#

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:)

patent bobcat
#

Okay lemme watch this 5 min vid then bother you with more questions! Bless you for being online!!

grand stone
#

You’re very welcome! I do a lot with neopixels anymore so I’ve found and revisit these videos frequently 🙂

patent bobcat
#

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?

grand stone
#

Looks right

patent bobcat
#

Awesome, thanks so much!!!