74HCT245 level shifter (for WS2812)
Shifts 3.3 V data to 5 V for LED strips.
FunctionOctal transceiver with TTL inputs
Supply voltage4.5 to 5.5 V
PackageDIP-20
Integrated CircuitsReviewedMPN SN74HCT245NUsed in 2 projects
In short
What is the 74HCT245 level shifter (for WS2812) and what is it used for?
Shifts 3.3 V data to 5 V for LED strips. Makers use it for driving WS2812 from an ESP32.
How it works
A 74HC245 with TTL-compatible input thresholds.
Key specifications
| Integrated circuit spec | Value |
|---|---|
| Function | Octal transceiver with TTL inputs |
| Supply voltage | 4.5 to 5.5 V |
| Package | DIP-20 |
Pinout
1DIR, tie HIGH for A to B
2to 9A1 to A8 inputs
10GND
11to 18B8 to B1 outputs
19OE, tie LOW
20VCC, 5 V
How to use it
Power it from 5 V. Its TTL-level inputs accept 3.3 V signals as HIGH, so it turns an ESP32's 3.3 V LED data into a clean 5 V signal. Put it close to the strip's first LED.
Applications
Driving WS2812 from an ESP32
Builds that use it
Alternatives
- Logic Level Converter 4-channelBidirectional, slower, for I2C
Common questions
What is the 74HCT245 level shifter (for WS2812) used for?
In maker projects: driving WS2812 from an ESP32.
How does the 74HCT245 level shifter (for WS2812) work?
A 74HC245 with TTL-compatible input thresholds.
What voltage does the 74HCT245 level shifter (for WS2812) need?
4.5 to 5.5 V.
What can I use instead of the 74HCT245 level shifter (for WS2812)?
Logic Level Converter 4-channel.
