breadboard
docs

Example project · Analog & circuits

5 V regulated supply

A 7805 turns the 12 V barrel jack into a clean 5 V rail. Watch the voltmeter hold 5 V as you change the input.

The 5 V regulated supply circuit as rendered by the simulator

How it works

A 12 V barrel jack feeds a 7805 linear regulator that supplies about 5 V. The regulator holds its output at 5 V as long as the input stays roughly 2 V above it, burning the difference as heat: honest but inefficient (compare the buck converter in the fume-extractor build). The voltmeter reads the regulated rail live, and the LED runs from it through a 220 Ω resistor as a load.

The 7805 has three legs: IN, GND and OUT. The barrel jack feeds the + rail, a wire takes the rail to IN, and GND goes to the − rail. The regulator keeps OUT at 5 V by dropping the rest of the input voltage across itself. The LED draws about 15 mA, so the pass element dissipates about 0.10 W across the 7 V drop. The model also draws 5 mA through GND, adding about 0.06 W at 12 V. The simulation holds junction temperature fixed. On hardware, heatsink needs depend on load and cooling.

What to watch

The voltmeter shows about 5.0 V while the jack supplies 12 V, and the LED lights steadily. Change the input voltage and watch the reading: it hardly moves until the input falls too close to 5 V.

What's on the bench

  • 7805 Reg
  • DC Jack
  • LED
  • Resistor
  • Voltmeter

How it's wired

  • hole B+4→hole a10
  • hole a11→hole B-4
  • hole a17→hole B-8
  • hole d14→hole B-13

Try this

  • Watch the voltmeter: ~5.0 V from a 12 V input.
  • Select 9 V for the barrel jack in the Inspector: the output stays near 5 V. That is regulation.
  • Now select 5 V and watch the rail sag: a 7805 needs ~2 V of headroom.
  • Select 12 V again and hover the IN and OUT pins: the 7 V difference is being dropped inside the regulator as heat.

Related projects