Can I Connect 5V to a 3.3V Pin? Logic Levels and Level Shifters
Series navigation: Episode 1: The Roadmap · Episode 11
The problem: A 5 V module and a 3.3 V controller have matching signal names, but direct wiring may fail or damage an input.
The goal: Check voltage limits and logic thresholds in both directions.
The result: A decision process for direct connection, dividers, buffers, and level translators.

AI-generated illustration of a mixed-voltage workbench. Verify every connection against the exact device data sheets.
The connector fit, so I almost connected it
The peripheral board had VCC, GND, TX, and RX. The microcontroller had pins with the same names. One board used 5 V and the other used 3.3 V.
Matching names describe functions, not electrical compatibility. Before joining the wires, I needed answers to two separate questions:
- Will a HIGH output be recognized as HIGH by the receiver?
- Can the receiver safely tolerate the maximum voltage?
Passing the first test does not guarantee the second.
Four data-sheet values decide the interface
| Symbol | Meaning | What to compare |
|---|---|---|
VOH(min) |
Guaranteed minimum output HIGH | Must exceed receiver VIH(min) |
VOL(max) |
Guaranteed maximum output LOW | Must be below receiver VIL(max) |
VIH(min) |
Minimum reliably recognized HIGH | Compare with sender VOH(min) |
| Absolute maximum input voltage | Damage boundary, not an operating target | Sender must not exceed it |
Use guaranteed limits over voltage, temperature, and load—not a typical voltage measured once on a bench.
Direction matters
3.3 V output to 5 V input
This may work directly when the 3.3 V transmitter's guaranteed VOH exceeds the 5 V receiver's VIH. It may also fail when a 5 V CMOS input demands a higher HIGH threshold. Check the receiver specification.
5 V output to 3.3 V input
This is the dangerous direction. Unless the exact pin is documented as 5 V tolerant under the relevant power condition, a 5 V HIGH can exceed its rating. Raspberry Pi GPIO, for example, is 3.3 V logic rather than a general 5 V-tolerant interface.
Choosing a translation method
| Method | Appropriate use | Important limitation |
|---|---|---|
| Direct connection | Thresholds and maximum ratings explicitly overlap | Must be proven in both directions |
| Resistor divider | One-way, moderate-speed signal into a high-impedance input | Edges slow; not bidirectional; recalculate loading |
| Buffer or translator IC | Fast or production digital interfaces | Choose direction, voltage range, bandwidth, and power sequencing |
| MOSFET translator | Some open-drain bidirectional buses | Not a universal push-pull SPI/UART solution |
| Protocol transceiver | RS-232, RS-485, CAN, USB, and similar physical layers | Use the correct transceiver, not only voltage division |
Powering a module from 5 V does not prove that its signal pins use 5 V. Some breakout boards contain a regulator, some contain level shifters, some contain neither. Find the module schematic.
A practical pre-wire checklist
- Record the supply voltage of both devices.
- Identify the signal direction for every wire.
- Find absolute maximum input ratings.
- Compare guaranteed output and input thresholds.
- Check whether pins are 5 V tolerant and whether that tolerance applies while unpowered.
- Check power-up order, default pin state, speed, and edge rate.
- Select a translator whose topology matches push-pull, open-drain, or bidirectional behavior.
- Verify ground reference and measure before connecting the final receiver.
Completion checklist
- [ ] Same pin name has not been mistaken for electrical compatibility.
- [ ] Every signal direction is known.
- [ ]
VOH,VOL,VIH, andVILprovide valid noise margin. - [ ] Absolute maximum ratings are not used as normal operating values.
- [ ] Any 5 V tolerance is documented for the exact pin and power state.
- [ ] The translator suits the protocol and speed.
Next experiment
Once voltage levels are safe, a mechanical button can still produce several digital edges from one press. Next, I will separate contact bounce from software events.
Comments
Post a Comment