All paths

Interfacing and level shifting

Make a 3.3 V board talk to 5 V logic and switch 12 V loads: logic thresholds, level shifters, transistor and MOSFET drivers, the ULN2803A, optocouplers and isolation, and a 12 V panel run from an ESP32-C3.

Free7 lessons5 h7 chapters1,435 XPElectrical · Intermediate+150 XP

0 of 7 done

What you will build

0 projects, built step by step

7 lessons in 7 chapters, about 5 hours on a simulated breadboard. Free, in your browser, every step checked by the simulator.

The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

3.3 V meets 5 V

Thresholds, an HCT part, a divider and a clamp diode.

  1. Open236 XP

    3.3 V meets 5 V

    Logic thresholds decide whether a high is a high: a 3.3 V output into 5 V CMOS, a sagging high it misses, the HCT part that accepts it, a divider for the other direction, and the clamp diode that a bare 5 V signal pushes current through.

    0 of 6 steps

3 questions, graded as you go.
Chapter 2

Level shifters

The BSS138 shifter both ways, and one-way buffers.

  1. Locked205 XP

    Level shifters

    The BSS138 bidirectional shifter on every breakout board, worked both ways round, and the one-way buffers that do the job for push-pull signals: a 74HCT125 up, a CD4050 down.

    0 of 5 steps

3 questions, graded as you go.
Chapter 3

Transistor drivers

NPN, logic-level MOSFET and a high-side P-FET.

  1. Locked205 XP

    Transistor drivers

    A 3.3 V pin switching 12 V loads: an NPN with the right base resistor, what too big a base resistor does, a MOSFET that is not logic level against one that is, and a high-side P-MOSFET switch.

    0 of 5 steps

3 questions, graded as you go.
Chapter 4

ULN2803A

Eight sinks, a Darlington drop and built-in clamps.

  1. Locked205 XP

    ULN2803A

    Eight Darlington sinks with their own base resistors and flyback diodes: one input on, the Darlington's saturation drop, three channels at once, a coil clamped by the chip's COM pin, and the 1.4 V input threshold.

    0 of 5 steps

3 questions, graded as you go.
Chapter 5

Optocouplers

LED current, CTR and the pull-up.

  1. Locked174 XP

    Optocouplers

    An LED and a phototransistor in one package: the LED current a pin supplies, the output pulled low across a gap with no wire, current transfer ratio, and the pull-up that makes it saturate.

    0 of 4 steps

3 questions, graded as you go.
Chapter 6

Isolation

A 24 V field input, and grounds that disagree.

  1. Locked174 XP

    Isolation

    A 24 V industrial input read safely by 3.3 V logic through an optocoupler: the field side's LED current, the logic side's clean low, a reverse-protection diode, and a ground difference between the two sides that changes nothing.

    0 of 4 steps

3 questions, graded as you go.
Chapter 7

Boss build

A 12 V panel with an isolated interlock.

  1. Locked236 XP

    Boss: a 12 V panel from 3.3 V

    An ESP32-C3 runs a 12 V control panel: a transistor, a logic-level MOSFET and a ULN2803A switch lamps and a solenoid lock, and an optocoupler brings an isolated 12 V door switch back in as an interlock. Then add a channel of your own.

    0 of 6 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

3.3 V meets 5 V

  1. 3.3 V meets 5 VLogic thresholds decide whether a high is a high: a 3.3 V output into 5 V CMOS, a sagging high it misses, the HCT part that accepts it, a divider for the other direction, and the clamp diode that a bare 5 V signal pushes current through.
Chapter 2

Level shifters

  1. Level shiftersThe BSS138 bidirectional shifter on every breakout board, worked both ways round, and the one-way buffers that do the job for push-pull signals: a 74HCT125 up, a CD4050 down.
Chapter 3

Transistor drivers

  1. Transistor driversA 3.3 V pin switching 12 V loads: an NPN with the right base resistor, what too big a base resistor does, a MOSFET that is not logic level against one that is, and a high-side P-MOSFET switch.
Chapter 4

ULN2803A

  1. ULN2803AEight Darlington sinks with their own base resistors and flyback diodes: one input on, the Darlington's saturation drop, three channels at once, a coil clamped by the chip's COM pin, and the 1.4 V input threshold.
Chapter 5

Optocouplers

  1. OptocouplersAn LED and a phototransistor in one package: the LED current a pin supplies, the output pulled low across a gap with no wire, current transfer ratio, and the pull-up that makes it saturate.
Chapter 6

Isolation

  1. IsolationA 24 V industrial input read safely by 3.3 V logic through an optocoupler: the field side's LED current, the logic side's clean low, a reverse-protection diode, and a ground difference between the two sides that changes nothing.
Chapter 7

Boss build

  1. Boss: a 12 V panel from 3.3 VAn ESP32-C3 runs a 12 V control panel: a transistor, a logic-level MOSFET and a ULN2803A switch lamps and a solenoid lock, and an optocoupler brings an isolated 12 V door switch back in as an interlock. Then add a channel of your own.
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Interfacing and level shifting

Is Interfacing and level shifting free?

Yes. All 7 lessons of Interfacing and level shifting are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need any parts?

No. Every circuit is built on a simulated breadboard, and the simulator checks each step as you go. When you want to build it for real, the same parts and wiring work on a real bench.

How long does Interfacing and level shifting take?

About 5 hours: 7 lessons in 7 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

Where do I start?

With "3.3 V meets 5 V", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.