12V to 5V Converter
Learn how a 5V voltage regulator circuit works, circuit diagram, applications, and how to regulate 12V or higher voltage down to stable 5V DC for electronics.
5v fixed voltage regulator
The 5V voltage regulator circuit is the most popular circuit that is commonly taking voltages down and stabilizing voltages in electronic equipment. Be it a linear 7805 IC or switching modules such as LM2596, these types of regulators take larger input voltages (such as 9V or 12V) and step it down to 5V DC safely known as a regulated 5V DC power supply source. This prevents overvoltage of sensitive micro controllers and sensors and gives smooth performance. Get to know various types of regulators, wiring and real life applications in DIY and professional circuits.
LM358 18650 charger DIY
The following circuit LM358 1s2s battery charger, is intended to be a safe charger of either a single-cell (1s) or a dual-cell (2s) 18650 Li-ion battery with the LM358 operational amplifier as the central control component. It offers constant voltage (CV) and constant current (CC) charging phases and has primitive battery protection measures to avoid overcharge, overcurrent and reverse polarity.
This can build a reliable battery charger using the LM358 utility, a component that is well-realised, using this DIY guide to include the parts, the principle of work, the circuit diagram, and instructions. This circuit can be well assembled to provide an efficient and safe way to charge 18650 Li-ion cells in power banks, LED projects, and small portable devices and other electronics requiring batteries.
Components Required for the Circuit
- LM358 operational amplifier IC
- 18650 Li-ion battery (1s or 2s configuration)
- N-channel MOSFET (e.g., IRFZ44N) for load switching
- Resistors (1kΩ–10kΩ for voltage sensing and current control)
- Capacitors (10µF–100µF for smoothing and timing)
- Diodes (Schottky for reverse polarity protection)
- Potentiometer (for current/voltage adjustment)
- Power supply (5V–12V DC input)
- PCB, wires, and connectors
Working Principle of LM358 Battery Charger
Constant Current (CC) Stage
The LM358 monitors battery voltage and regulates charging current through MOSFET control. The battery receives a constant current until it reaches the target voltage.
Constant Voltage (CV) Stage
Once the battery reaches the maximum voltage (4.2V per cell), LM358 maintains voltage and gradually reduces current. Prevents overcharging while topping up the battery.
Battery Protection Features
Reverse polarity protection prevents damage if the battery is inserted incorrectly. Overcurrent and short-circuit protection ensure safety for both the battery and circuit. Optional thermal protection can prevent overheating during charging.
LM358 1s–2s Battery Charger Circuit Diagram
- Connect the LM358 in comparator mode for voltage monitoring.
- Connect the MOSFET in series with the battery's positive terminal to control current.
- Connect resistors for voltage sensing and current limit adjustment.
- Connect capacitors for voltage stabilization.
- Connect the power supply input and output to the battery terminals.
- Optional LEDs can indicate charging status (charging/fully charged).
Step-by-Step DIY Construction Guide
- Place LM358, resistors, capacitors, and MOSFET on a PCB or breadboard.
- Connect voltage sensing resistors to battery terminals.
- Connect MOSFET drain to battery positive, source to load/charging path.
- Adjust potentiometer for desired charging current.
- Connect the power supply to the circuit input.
- Test with a multimeter before connecting the battery.
- Verify LED status indicators if included.
- Secure battery and insulate all exposed connections.
Applications of LM358 Charger Circuit
- Charging single or dual 18650 Li-ion batteries
- DIY power banks
- LED or small portable electronics
- Educational electronics projects
- Battery maintenance and backup systems
Safety Precautions
- Always check battery polarity before connecting.
- Avoid charging damaged or swollen cells.
- Use a fuse for added safety in high-current circuits.
- Do not touch terminals while charging.
- Ensure adequate ventilation for heat dissipation.
Troubleshooting Common Issues
Battery Not Charging
- Verify input voltage and circuit connections.
- Check LM358, MOSFET, and resistor network.
Overheating Battery
- Reduce charging current or check heat dissipation.
- Ensure proper MOSFET rating.
Incorrect Voltage Output
- Check voltage sensing resistor values.
- Verify LM358 and potentiometer adjustment.
Frequently Asked Questions - 12V to 5V Converter:
What is a 5V voltage regulator?
It's a circuit/device that maintains a steady 5V output regardless of input voltage fluctuations.
How does the 7805 regulator work?
It steps down input voltage to 5V using linear regulation and dissipates excess power as heat.
What is the minimum input voltage for a 7805?
Typically around 7V for proper regulation.
Can I use 7805 for 12V to 5V?
Yes, but it will get hot, so use a heat sink.
What is the difference between 7805 and LM2596?
7805 is linear (less efficient); LM2596 is a switching regulator (more efficient).
Is a heat sink required for 7805?
Yes, especially under high current or 12V input.
How much current can 7805 supply?
Up to 1A, with proper heat dissipation.
Can I use 7805 for Arduino?
Yes, it's commonly used to supply 5V to Arduino boards.
What are switching regulators?
Efficient converters like LM2596 that use pulse-width modulation to drop voltage.
Is 5V enough for sensors?
Yes, most digital sensors operate well on 5V supply.

