Creators
Earth Bondhon Author
Earth Bondhon
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: January 14, 2026

5V Voltage Regulator Circuit using LM340 IC

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German

Components List

Single phase Light

LM340 Voltage Regulator

Fixed positive voltage regulator (commonly 5V, 12V, 15V)

Single Phase DP ELCB

0.47µF Capacitor

Medium-value film or ceramic capacitor for AC/DC circuits

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

5V Voltage Regulator

Build a stable 5V DC power supply using the LM340 voltage regulator. Ideal for microcontroller circuits and small electronics projects.

5v fixed voltage regulator

LM340 is a regulated voltage (regulated voltage = 5V) transistor that maintains a stable supply of power to the electronic components. It is usually applied in embedded systems, Arduino installations, and digital electronics. The LM340 was easy to use and relatively small, and with built-in protection, makes it simple to regulate voltage in anything DIY.

bridge rectifier power supply

The DIY AC to DC Power Supply Circuit is a project aimed at converting the alternating current (AC) on the mains into a stable direct current (DC) voltage, which can then be used on electronic projects. The simple circuit comprises a step-down transformer, a bridge rectifier (diodes), a filter capacitor, and a voltage regulator, which is optional, so as to provide a smooth DC output. The high AC voltage is lowered by the transformer to a lower value. The bridge rectifier makes AC into pulsating DC and the capacitor filter eliminates ripples. To get an accurate voltage output, an adjustable LM317 or a regulator IC (such as 7805, 7812, or adjustable) may be used. The circuit is suited to introduction to electronics projects, microcontroller projects, battery charging, and battery powering of small devices. When dealing with mains AC voltage, proper fuses, safety measures, and insulation should be in use.

Work / Installation (Inputs → Outputs)

  • AC Input → Mains supply (e.g., 220V AC).
  • Step-down Transformer → Reduces voltage to desired level.
  • Bridge Rectifier → Converts AC to pulsating DC.
  • Filter Capacitor → Smooths voltage ripples.
  • Voltage Regulator (Optional) → Provides stable DC output.
  • Output → Usable DC voltage for electronic devices.
  • Installation → Assemble on PCB/enclosure; use fuses and insulation for safety.

Testing & Final Adjustments

Once assembled, be careful when connecting the AC input and measure the DC output using a multimeter. Make sure that the output voltage is within the envisaged range. Raise adjustor (when necessary) to fine voltage. Positioning of check capacitors and connection of diodes to avoid failures. Load test using a small device or resistor to ensure stability and ripple reduction. Make sure that there is no overheating of the transformer, diodes, or regulator. Proper insulation and fuse protection should be used to avoid short circuiting or electric shock. Last testing produces a safe, stable and efficient AC to DC power supply that would be used in a hobby, microcontroller or small electronics project.

Frequently Asked Questions - 5V Voltage Regulator:

What is LM340 voltage regulator?

A fixed 5V linear voltage regulator IC used for stable power supply.

How to wire LM340 for 5V output?

Connect Vin to input, GND to ground, and Vout gives regulated 5V.

What capacitors are needed with LM340?

Use 0.33µF at input and 0.1µF at output for stability.

Can LM340 be used for Arduino?

Yes, it provides a clean 5V output suitable for Arduino boards.

Is LM340 same as 7805?

Yes, functionally they are similar 5V regulators with slight variations.

What is max input voltage for LM340?

Typically up to 35V, but check datasheet for your variant.

Does LM340 need a heatsink?

Yes, when current exceeds 500mA or under high input voltage.

What is the output current of LM340?

Varies by model, commonly 1A or 1.5A.

Is LM340 suitable for battery circuits?

Yes, for regulated 5V output from higher voltage sources.

What is the dropout voltage of LM340?

Typically around 2V, so input should be at least 7V.

Comments

Please login to comment.

Earth Bondhon

Earth Bondhon

Calculator Tools Project

Md. Jony Islam is a highly skilled professional with expertise in electronics, electrical, mechanical, and civil engineering, as well as finance. Specializing intransformer service and maintenance for 33/11kV substations, he ensures reliable and efficient electrical systems. His mechanical engineering skills drive innovative designs, while his financial acumen supports effective project budgeting. With a strong foundation in civil engineering, he contributes to robust infrastructure development. Md. Jony Islam's multidisciplinary approach ensures efficiency, quality, and reliability across all projects.