Can I Use a 4050IC to connect my teensy 4.0 to a WS2812 matrix?

Status
Not open for further replies.

deeptime

New member
I think I need to step up the voltage for Din on the ws2812 from 3.3V coming
out the teensy to 5v going into the Ws2812.

thanks, Charles
 
Hi Charles,
What you are looking for is a so-called level-shifter. See this one for example: [url]https://www.adafruit.com/product/1787[/URL]. A HEF4050B won't work properly.
You will need to power the chip with 5V [as you do with the WS2812 LEDs].
The chip will accept 3V3 signals as input. And will output 5V signals.
Be careful with wiring up the chip: don't let the 5V power or outputs contact the Teensy 4 pins - your Teensy will be fried.

Paul
 
Hi Charles,
What you are looking for is a so-called level-shifter. See this one for example: [url]https://www.adafruit.com/product/1787[/URL]. A HEF4050B won't work properly.
You will need to power the chip with 5V [as you do with the WS2812 LEDs].
The chip will accept 3V3 signals as input. And will output 5V signals.
Be careful with wiring up the chip: don't let the 5V power or outputs contact the Teensy 4 pins - your Teensy will be fried.

Paul

CD4050 is not a level shifter?
 
CD4050 is not a level shifter?
Yes, it's a level-shifter but is used for handling input voltages larger than its power supply voltage.
From the datasheet:

CD4050.PNG

The problem with this level-shifter is the property in the red circle:

CD4050-2.PNG

When you power the CD4050 with 5V, the minimum voltage at the input to correctly detect a HIGH level is 3.5V. But the Teensy 4.x won't ever output a voltage higher than its power supply voltage, being 3.3V.

This is the spec for the 74AHCT125:

74AHCT125.PNG

A Teensy 4.x will output a HIGH level close to 3.3V, so that meets the specified minimum 2V.

Paul
 
Status
Not open for further replies.
Back
Top