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

DC Voltage Regulator Circuit Using IRF840 MOSFET

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

Push Button Switch

A simple mechanical switch used to make or break a circuit when pressed. It returns to its original position once released. Commonly used in doorbells, calculators, reset buttons, and control panels.

2m Fixed Resistor 1/4W

2M Fixed Resistor 1/4W

A 2 Megaohm fixed resistor with a ¼ Watt power rating, used for limiting current, voltage division, biasing circuits, and signal conditioning in electronic applications.

IRF840 MOSFET

IRF840 MOSFET

An N-channel power MOSFET with 500V drain-to-source voltage and 8A current capacity, commonly used in SMPS, inverters, power supplies, and motor control 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!

DC Voltage Regulator

Regulate DC voltage efficiently using the IRF840 MOSFET. Smooth and stable output with adjustable voltage control, ideal for power supply and electronics projec...

adjustable DC power supply MOSFET

IRF840 DC voltage regulator. A DC voltage regulator is made by using IRF840, which can provide a stable DC voltage controlled by the gate voltage of the MOSFET. It is suitable for electronic projects, do-it-yourself power supplies, and battery-driven equipment.

Overcharge protection battery circuit

One DIY electronics project that is a necessity to ensure safety is a 12 V battery charger with an automatic cutoff. Excessive charging of a battery may cut off its life or even ruin it. In this project, the voltage sensing circuit is used to signal when the battery is fully charged,a nd it would automatically switch off the supply of charging.

The project is a DIY, and therefore best suited to hobbyists, students, and electronic enthusiasts. With just a few components, such as a relay, voltage divider, transistor, and LED indicator, you can create a smart 12V battery charger that automatically shuts off the power flow to the battery as soon as it is completely charged.

Here, we discuss the parts, the working principle, the circuit diagram, step-by-step assembly, tips, and safety measures of an automatic cut-off charger, 12 V battery charger, and therefore, you buy it and create a reliable piece of equipment at home.

Applications of Automatic Cut Off 12V Charger

  • Charging 12V lead-acid batteries safely
  • DIY solar battery charging projects
  • Automotive battery charging
  • Backup UPS batteries
  • Small electronics projects requiring 12V supply

Components Required

Component Specification
Transformer12V AC, 1–2A
Bridge Rectifier1A or higher
Capacitor1000µF/25V for smoothing DC
Relay12V DC, SPDT
NPN TransistorBC547 or 2N2222
Zener Diode12V for voltage sensing
Resistors1kΩ, 10kΩ
LEDCharging indicator
Fuse1–2A for protection
Wires & PCBFor assembly

Working Principle

Voltage Detection

A voltage divider and zener diode detect the battery’s full charge level (around 13.8V). When voltage exceeds the zener threshold, the sensing signal activates the transistor.

Relay Switching Mechanism

The transistor energizes the relay, disconnecting the charger output from the battery once the full charge level is reached.

LED Indicator for Charging Status

The LED glows during charging and turns off when the relay disconnects power.

Circuit Diagram of 12V Auto Cut Off Charger

  • AC mains to transformer primary
  • Transformer secondary to bridge rectifier
  • Capacitor smooths rectified DC
  • Battery connected to relay output
  • Zener-resistor network detects voltage
  • Transistor drives relay coil
  • LED shows charging status

Step-by-Step Construction Guide

  1. Connect transformer and rectifier to AC mains.
  2. Add smoothing capacitor across DC output.
  3. Build voltage sensing network using zener and resistors.
  4. Connect transistor to sensing circuit.
  5. Wire relay between charger and battery.
  6. Add LED charging indicator.
  7. Install fuse on transformer secondary.
  8. Test with multimeter and calibrate cutoff voltage.

Tips for Better Performance

  • Use a relay rated for battery current.
  • Ensure correct zener value for 12V battery.
  • Mount relay and transistor with ventilation.
  • Test without battery first.
  • Use high-quality fuse and wiring.

Safety Precautions

  • Disconnect AC mains before building.
  • Use insulated wires and PCB.
  • Avoid touching live AC terminals.
  • Always use a fuse.
  • Ensure proper orientation of components.

Troubleshooting Common Issues

Charger Not Stopping at Full Charge

  • Check zener voltage and resistor values
  • Verify transistor and relay wiring

Relay Not Switching

  • Check transistor biasing
  • Ensure relay coil is 12V rated

Battery Not Charging

Frequently Asked Questions - DC Voltage Regulator:

What is IRF840?

It is an N-channel power MOSFET used for voltage regulation.

Can it regulate high voltage DC?

Yes, IRF840 handles high voltage and moderate current.

Is it adjustable?

Yes, output voltage can be adjusted using gate control.

Do I need a heat sink?

Yes, recommended for continuous operation under load.

Can it handle motors?

Yes, suitable for motor drivers within current rating.

Is it beginner-friendly?

Intermediate level; requires knowledge of MOSFETs and voltage regulation.

Do I need protective components?

Yes, use flyback diodes and fuses for safety.

Can it be used in DIY power supplies?

Yes, ideal for small lab or hobby power supplies.

Does it provide smooth voltage?

Yes, proper gate control ensures stable output voltage.

Is it cost-effective?

Yes, uses readily available IRF840 MOSFET and simple components.

Comments

Please login to comment.

Rojony Khatun

Rojony Khatun

Calculator Tools Project

Rojony Khatun is the creator of a free online tools website designed to simplify everyday and engineering-related calculations for students, professionals, and hobbyists. The platform offers a wide variety of basic and advanced calculators across key categories, including Electrical Calculators, Electronic Calculators, and Time & Date Calculators, helping users solve problems quickly and accurately.