5V -> 3.3V Level Shift

Voltage Divider Calculator

Step down 5V sensor outputs (like HC-SR04 Echo or UART TX) to safe 3.3V logic for ESP32 and STM32 pins, or scale battery voltages into ADC range.

Common 5V to 3.3V Presets

Output Voltage Vout

3.33 V

Divider Current

1.67 mA

Attenuation Ratio

66.7%

Vin 5VR1 1 kΩ3.33VR2 2 kΩGND

Safe for 3.3V ESP32 / STM32 GPIO input (<= 3.35V)

Voltage Divider Equation

Vout = Vin * R2 / (R1 + R2)

Use a 1 kOhm (R1) + 2 kOhm (R2) pair to step a 5V HC-SR04 Echo or Arduino TX signal safely down to 3.33V for ESP32 or STM32 inputs. Note: resistive dividers are for signal inputs, not powering high-current motors or boards.

Voltage Divider Equation

Vout = Vin * (R2 / (R1 + R2))

Use a 1 kOhm (R1) + 2 kOhm (R2) pair to step a 5V HC-SR04 Echo or Arduino TX signal safely down to 3.33V for ESP32 or STM32 inputs. Note: resistive dividers are for signal inputs, not powering high-current motors or boards.

Frequently Asked Questions

What resistor pair converts 5V safely to 3.3V for ESP32?

R1 = 1 kOhm (top) and R2 = 2 kOhm (bottom) outputs 3.33V, or R1 = 10 kOhm and R2 = 18 kOhm outputs 3.21V with even lower current draw.

Can I power an ESP32 from a 5V supply using a resistor voltage divider?

No. Resistor dividers only work for high-impedance logic or ADC signal inputs. Always use a proper 3.3V voltage regulator (LDO or buck converter) for power.

Explore all hardware & embedded dev tools

Compare IDEs

Chrome USB WebSerial + 300 Free Credits

Test Your Circuit & Flash Real Hardware Free in Chrome

Open Gokino in Chrome, let AI generate interactive /wiring circuit diagrams, fix C++ bugs in 1 click, and upload directly to Arduino, ESP32, or STM32 with zero installation.

Launch Gokino IDE Free