Components / Integrated circuits / 74HCT245 level shifter (for WS2812)

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 specValue
FunctionOctal transceiver with TTL inputs
Supply voltage4.5 to 5.5 V
PackageDIP-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

Alternatives

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.