Step-by-Step Charger Circuit Diagram Schematic and Explanation

circuit diagram of charger

Start with a linear regulator configuration for low-noise applications under 2A output. Use an LM7805 or similar for fixed 5V schemes–ensure input capacitance of 0.33µF and output capacitance of 0.1µF to stabilize transient response. For variable voltage setups, replace the regulator with an LM317, pairing it with a 240Ω resistor between the output and adjustment pin and a 5kΩ potentiometer for fine-tuning. Avoid exceeding 35V input unless using a heat sink with a thermal resistance below 5°C/W.

Switch-mode designs achieve higher efficiency at the cost of complexity. A buck converter with an LM2596 handles 4.5–40V input, delivering 3A at 1.2–37V adjustable output. Wire feedback through a voltage divider: use a 1kΩ resistor from output to feedback pin and a 3.3kΩ resistor from feedback to ground for 5V targets. Add a Schottky diode like 1N5822 and a 47µH inductor to minimize ripple. For higher currents, upgrade to an XL6009 module, which supports 4A continuous load with built-in overcurrent protection.

Protection circuits prevent catastrophic failures. Place a PTC resettable fuse rated for 120% of expected current on the input line. Add a TVS diode (SMAJ5.0A) across the output to clamp voltage spikes. Reverse polarity protection requires a P-channel MOSFET (e.g., IRF9540N) on the input–gate tied to ground, source to positive rail, and drain to the circuit. For battery-fed designs, include a low-voltage cutoff using a comparator (LM393) to disconnect load when input drops below 6.5V.

PCB layout determines stability. Keep high-current traces (2oz copper, 5mm width for 3A) short and direct. Separate analog and switching nodes–place the feedback divider within 5mm of the regulator/adjustment pin. Use a ground plane tied to a single point near the output capacitor. For switching designs, route the inductor and diode in a tight loop to reduce EMI. Test with an oscilloscope: ripple should stay under 50mV peak-to-peak at full load. If not, increase output capacitance to 470µF or add a 100nF ceramic across the electrolytic cap.

Designing a Power Supply Schematic for Battery Replenishment

Begin with a transformer rated for the required output voltage plus an additional 20% margin to account for losses. For a 5V output, select a 6V secondary winding transformer with a current rating at least 30% higher than the expected load–this prevents overheating during prolonged operation. The primary winding should match regional voltage standards (e.g., 230V for EU, 110V for US) and include reinforced insulation if the device will operate in humid or high-altitude environments.

Bridge rectifiers must use diodes with reverse recovery times under 50ns to handle high-frequency switching without excessive voltage drops. Schottky diodes are preferable for outputs below 12V due to their lower forward voltage (0.2V vs. 0.7V for silicon). Place a 100nF ceramic capacitor immediately after the rectifier to filter high-frequency noise, followed by a 1000μF electrolytic for smoothing–values scaled proportionally for higher currents (e.g., 4700μF for 3A outputs). Ensure the capacitor’s voltage rating exceeds the peak input by 25% to avoid dielectric breakdown.

For linear regulation, LM317 or LM78xx series ICs provide stable output but require a heatsink for currents above 500mA. Switching converters (e.g., MP2307) achieve 85-95% efficiency with minimal heat generation; select an inductor with low DCR (under 0.2Ω) and saturation current 1.5x the max load. PWM controllers demand precise timing–use a 10kΩ-100kΩ potentiometer for feedback adjustment, but verify stability with an oscilloscope to prevent ripple exceeding 50mV. Include a 1A resettable fuse on the input side and a 500mA slow-blow fuse on the output to protect against short circuits.

Layout prioritizes ground planes with separate analog and power grounds connected at a single star point. Trace widths should carry 10-15A/mm²; for 2A, use 1.5mm minimum. Place decoupling capacitors (0.1μF) within 2mm of IC power pins and route high-current paths away from control signals to avoid EMI. Test with a dummy load matching the device’s maximum draw before connecting batteries–lithium-ion cells require CC/CV charging curves, so implement a dedicated protection IC (e.g., TP4056) with over-voltage (4.2V ± 0.05V) and under-voltage (2.5V) thresholds.

Key Components in a Basic Power Supply Assembly

circuit diagram of charger

Begin with a transformer rated at 230V/12V AC for primary voltage reduction–ensure the secondary winding matches the required output load within ±10% tolerance. Core saturation must not exceed 1.6T for standard silicon steel laminations; verify with a BH curve calculator before finalizing specifications. For compact designs, consider toroidal transformers with 30% lower leakage flux than EI types, though thermal dissipation requires active monitoring.

Bridge rectifier demands Schotty diodes (e.g., 1N5822) for low forward voltage drop (~0.3V) or ultrafast recovery diodes (UF4007) for high-frequency applications. Below is a comparison of suitable rectifier configurations:

Type Forward Voltage (Vf) Recovery Time (ns) Max Current (A) Use Case
1N4007 1.1 3500 1 Low-frequency bulk conversion
1N5822 0.38 N/A 3 Efficiency-focused designs
UF4007 1.0 50 1 High-speed switching (PWM)

Smoothing capacitance must be calculated using C = Iload / (2 × f × Vripple), where f is the ripple frequency (100Hz for full-wave). For a 1A load with 0.1V ripple, use 5000µF aluminum electrolytic capacitors; alternate with low-ESR polymer types if thermal stability is critical. Remember to derate voltage by 20% above nominal (e.g., 25V for 12V output).

Voltage regulation hinges on the linear regulator (e.g., LM7812) or switching converter (e.g., LM2596). Linear types dissipate P = (Vin – Vout) × Iload as heat–mount on a 15°C/W heatsink for 15W loads. Switching regulators improve efficiency (>85%) but require input/output filtering (pp ripple) and proper PCB layout (short, wide traces for high-current paths). For adjustable outputs, pair an LM317 with precision resistors (1% tolerance) and bypass capacitors (0.1µF) near the IC pins.

Protection components include a polyfuse (resettable, e.g., 1.1A hold) for overcurrent and a flyback diode (fast recovery, e.g., 1N4148) across inductive loads. Input surge suppression mandates a varistor (e.g., 275VAC MOV) and X/Y capacitors (0.1µF) to clamp transients under EN 61000-4-5 standards. Never omit a bleeder resistor (1kΩ, 1W) across large capacitors to prevent residual voltage hazards during maintenance.

Step-by-Step Assembly of a Transformer-Powered Energy Supply

Select a toroidal or EI-core transformer rated for 12VAC at 2A minimum. Verify the input matches your local mains voltage (230V or 110V) by checking the label near the primary winding pins. Desolder any existing leads or terminals–clean the connections with isopropyl alcohol before proceeding. Use a multimeter in continuity mode to confirm the secondary winding taps before mounting.

Mount the transformer securely on a phenolic or fiberglass board with #4 screws and nylon washers. Space it at least 15mm from adjacent components to prevent eddy current interference. Align the primary winding terminals toward the incoming AC lines, ensuring the secondary faces the rectification section. Twist the secondary leads to reduce electromagnetic noise.

  • Rectifier: Bridge type, 4A 50V minimum (KBPC3510 or similar)
  • Filter capacitor: 2200µF 25V electrolytic, low ESR
  • Voltage regulator: LM7812 or equivalent, bolted to a heatsink
  • Protection diode: 1N4007 across regulator input/output

Solder the rectifier directly to the transformer’s secondary terminals–avoid jumper wires longer than 3cm. Position the filter capacitor within 2cm of the rectifier to minimize ripple; observe polarity strictly. Attach the regulator’s input to the capacitor’s positive terminal, its ground to the negative, and secure the heatsink with thermal paste and M3 screws torqued to 0.5Nm.

For output connections, use 18 AWG silicone wire for currents above 1A. Install a 1A fuse in series with the primary winding, enclosed in a snap-action holder. Test initial power-up with a variac, monitoring DC output with an oscilloscope; expect <100mVpp ripple at full load. If voltage drops below 11.8V under load, increase capacitor value to 3300µF or add a 0.1µF ceramic bypass across the regulator.

  1. Label all terminals with heat-shrink tubing
  2. Enclose the assembly in a vented plastic housing, input and output separated by at least 50mm
  3. Apply conformal coating to PCB traces if operating in humid environments
  4. Final QC: Verify no-load voltage (14.2V ±0.5V), then proceed to 1.5A load test for 30 minutes

How to Select Resistors and Diodes for Voltage Regulation

Prioritize resistors with a power rating at least 50% higher than the calculated dissipation. For a 5V, 1A linear stabilizer, a 1/2W resistor (e.g., 220Ω) will operate at ~70% of its limit, reducing thermal stress. Carbon film resistors (±5% tolerance) suffice for most designs, but metal film (±1%) minimize drift in precision applications.

Choose diodes based on forward current and reverse breakdown. A 1N4007 (1A, 1000V PIV) handles most low-power tasks, while Schottky types (e.g., 1N5822) cut forward voltage drop to ~0.3V, improving efficiency in high-current paths. For transient protection, avalanche-rated diodes (e.g., P6KE200A) absorb spikes beyond their nominal voltage without failing.

Matching Components to Load Requirements

Calculate resistor values using Ohm’s law with worst-case scenarios. A 5V-to-3.3V drop at 500mA requires a 3.4Ω resistor (500mW), but derate to 1W to prevent overheating. Bypass resistors with ceramic capacitors (0.1µF) near sensitive ICs to filter noise; film capacitors (1µF) stabilize voltage references.

Diode selection hinges on peak inverse voltage (PIV). A half-wave rectifier with 12V AC demands a diode with ≥35V PIV (e.g., 1N4004). For switching regulators, ultrafast recovery diodes (e.g., FR107) prevent reverse recovery losses, cutting electromagnetic interference (EMI) by 20-30%. Always verify datasheet specs for junction temperature limits–Schottky diodes degrade rapidly above 125°C.