Fork me on GitHub

Project Notes

#134 Bidirectional Level Shifter Module

Test a bi-directional 5/3.3V level shifter module.

The Modules

Notes

3.3/5V level-shifting modules are quite common, as the need to interface 5V microcontrollers with 3.3V devices/sensors (or vice versa) is pretty common. Often these are billed for I²C or SPI, although they are non-specific and can be used for level-shifting any kind of digital signal. Note: yes, digital high/low signals only; they do not provide an analog scaling of voltages.

I got some of these modules from a seller on aliexpress

The modules have two pairs of “transmit” and “receive” lines. It turns out that transmit and receive are handled differently:

  • TXD/TXI uses a standard MOSFET level shifting circuit, so is usable in either direction with accurate levels
  • RXD/RXI uses a simple voltage divider. This is OK for signals from high side to low side, but not in the reverse direction.

module_internal_schematic

Construction

This circuit is a quick test of their behaviour: a switch in the 5V circuit controlling a load (LED + resistor) in the 3.3V circuit.

This is identical to the test circuit used in the BidirectionalLevelShifter project, which demonstrates the basic FET trick used by these modules.

All good! Now to put them to work…

Breadboard

The Schematic

The Build

Credits and References

About LEAP#134 FET

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader