Skip to the content
2 layersAUTO CUT OFF CHARGER, the printed circuit board in 3D

PCB-based charging circuit with automatic cut-off; optimized for safe long-term operation

Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
14
Pads
39
Tracks, vias
142, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
16 Jun 2026
Updated
16 Jun 2026

Overview

AUTO CUT OFF CHARGER is an open-source printed circuit board by arhamjaffer, from the arhamjaffer/auto-cutoff-battery-charger repository on GitHub. It is a 2-layer board with 17 parts on 14 nets, routed with 142 tracks and 0 vias.

It is built around the BD139. Its parts include 5 diodes, 4 resistors, 3 connectors, 2 capacitors and 1 IC. It belongs with the power boards of this library.

Main components

1

README

README.md

auto-cutoff-battery-charger

PCB-based charging circuit with automatic cut-off; optimized for safe long-term operation

KiCad Battery [blocked] Status [blocked] License [blocked]


📌 Overview

An automatic battery charger with cut-off protection — designed to safely charge a 12V lead-acid battery and automatically disconnect when fully charged, preventing overcharging and extending battery life.

This project covers the full PCB design cycle: circuit design, schematic capture in KiCad, component selection, PCB layout, and fabrication-ready Gerber export.

Designed as part of my circuit design & PCB prototyping work at NUST-PNEC.


🖼️ Board Preview

(Add your PCB layout screenshot or 3D render here)

SchematicPCB Layout3D View
SchematicPCB3D

⚙️ Specifications

ParameterValue
Input Voltage14–15V DC (from transformer + rectifier)
Output / Charging Voltage13.8V – 14.4V (12V battery)
Cut-Off Voltage~14.4V (fully charged threshold)
Max Charging Current~1A
Battery Type12V Lead-Acid / SLA
Cut-Off MechanismComparator-based (LM358 / LM393)
IndicationLED — Charging (Red) / Full (Green)
ProtectionOvercharge cut-off, Reverse polarity
PCB Layers2-Layer
EDA ToolKiCad

🔋 How It Works

text
AC Mains Input
      ↓
Transformer (Step-Down)
      ↓
Bridge Rectifier (1N4007 × 4)
      ↓
Filter Capacitor (Smoothing)
      ↓
Voltage Regulator / Charging Stage
      ↓
Comparator Circuit (LM358)
   monitors battery voltage continuously
      ↓
   Battery Voltage < 14.4V  →  Relay ON  →  Charging continues  🔴 LED
   Battery Voltage ≥ 14.4V  →  Relay OFF →  Charging stops      🟢 LED
      ↓
Battery (12V Lead-Acid)

The heart of this circuit is the LM358 op-amp comparator — it compares the battery terminal voltage against a fixed reference (set via a voltage divider using a potentiometer). When battery voltage crosses the threshold, the comparator output switches, triggering the relay to cut off charging automatically.


🗂️ Project Structure

text
auto-cutoff-battery-charger/
│
├── 📁 Schematic/
│   └── battery_charger.kicad_sch      # Full schematic
│
├── 📁 PCB/
│   └── battery_charger.kicad_pcb      # PCB layout
│
├── 📁 Gerbers/
│   ├── battery_charger-F_Cu.gbr       # Front copper
│   ├── battery_charger-B_Cu.gbr       # Back copper
│   ├── battery_charger-F_Silkscreen.gbr
│   ├── battery_charger-B_Silkscreen.gbr
│   ├── battery_charger-F_Mask.gbr
│   ├── battery_charger-B_Mask.gbr
│   ├── battery_charger-Edge_Cuts.gbr  # Board outline
│   └── battery_charger.drl            # Drill file
│
├── 📁 BOM/
│   └── BOM.csv                        # Bill of Materials
│
├── 📁 images/
│   ├── schematic.png
│   ├── pcb_layout.png

🔩 Bill of Materials

#ComponentValue / PartPackageQty
1Op-Amp ComparatorLM358 / LM393DIP-8 / SOP-81
2Relay12V SPDTPCB Mount1
3Relay Driver TransistorBC547 / 2N2222TO-921
4Rectifier Diodes1N4007DO-414
5Flyback Diode1N4007DO-411
6Voltage RegulatorLM7812 / LM317TO-2201
7Trimmer Potentiometer10kΩ3296W1
8Resistors1kΩ, 4.7kΩ, 10kΩ0805 / TH6
9Filter Capacitor1000µF / 25VElectrolytic1
10Decoupling Capacitor100nF08052
11LED (Charging)Red3mm / 08051
12LED (Full)Green3mm / 08051
13LED Resistors470Ω08052
14Screw Terminals2-pin5.08mm3
15Fuse Holder + Fuse1APCB Mount1

Full BOM available in /BOM/BOM.csv


🛠️ Design Workflow

text
1. Circuit Design & Hand Calculations
        ↓
2. Schematic Capture (KiCad Schematic Editor)
        ↓
3. Component Selection & Footprint Assignment
        ↓
4. Netlist Export → PCB Editor
        ↓
5. PCB Layout & Component Placement
        ↓
6. Trace Routing (Power traces wider — 1.5mm+)
        ↓
7. Design Rule Check (DRC) — 0 errors
        ↓
8. Gerber Export (Fabrication-ready)

⚠️ Safety Features

FeatureImplementation
Overcharge ProtectionRelay cuts off at ~14.4V via comparator
Reverse Polarity ProtectionDiode at battery input
Overcurrent ProtectionInline fuse (1A)
Flyback ProtectionFreewheeling diode across relay coil
Visual IndicationRed = Charging, Green = Full

🏭 How to Fabricate

  1. Download the /Gerbers/ folder
  2. Zip all .gbr and .drl files
  3. Upload to your preferred PCB fab:
  4. Recommended settings: 2 layers, 1.6mm thickness, HASL finish

🔓 How to Open in KiCad

bash
# Clone the repository
git clone https://github.com/arhamjaffer/auto-cutoff-battery-charger.git

# Open in KiCad
# File → Open Project → select battery_charger.kicad_pro

⚠️ Requires KiCad 6.0 or later. KiCad 10.0 recommended.


📸 Design Highlights

  • ✅ Comparator-based automatic cut-off — no microcontroller needed
  • ✅ Adjustable cut-off voltage via onboard trimmer pot
  • ✅ Clear dual-LED charging status indication
  • ✅ Power traces sized for current capacity (1A+)
  • ✅ Proper relay flyback protection
  • ✅ Screw terminals for easy battery & input connection
  • ✅ Fabrication-ready Gerbers included

🧪 Testing & Calibration

Once assembled:

  1. Set cut-off voltage — connect a bench power supply set to 14.4V, adjust the trimmer pot until the relay clicks OFF and green LED lights
  2. Test charging — connect a discharged 12V battery; red LED should glow and current should flow
  3. Verify cut-off — as battery reaches full charge (~14.4V), relay should disconnect automatically
  4. Check fuse — replace with correct 1A rating before use with mains-derived supply

⚡ Warning: If using with a mains transformer, ensure proper isolation and follow electrical safety practices. High voltage is dangerous.


🙋 Author

Arham Jaffer B.E. Electrical Engineering — NUST-PNEC, Karachi 🇵🇰 Co-Founder @ GenXi Tech Solutions

LinkedIn Email WhatsApp


📄 License

This project is open-source under the MIT License. Feel free to use, modify, and build upon it — just give credit!


Parts

17
QtyValueFootprintReferences
2Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1, J3
2LEDLED_THT:LED_D5.0mmD4, D5
10.1uCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC2
110Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4
11000uCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC1
110kPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1
11N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3
1220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
12kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
1BD139Package_TO_SOT_THT:TO-126-3_VerticalQ1
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1D_Bridge_+-AADiode_THT:Diode_Bridge_Round_D9.8mmD1
1D_ZenerDiode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD3
1LM317_TO-220Package_TO_SOT_THT:TO-220-3_VerticalU1

Similar boards

  • 2 layersESP32Anglerfish, the printed circuit board in 3D

    ESP32Anglerfish

    Matchboxscope/Matchboxscope

    ESP32-based mini microscope for fluidic device observation

    7 parts103
  • 2 layers49.8 × 63 mmPiHat, the printed circuit board in 3D

    PiHat

    joelkoz/QwicktracePCB

    UI for PCB smart exposure table

    15 parts16MIT
  • 2 layers100 × 100 mmAmply, the printed circuit board in 3D

    Amply

    T76-org/amply

    A $10 desktop Bluetooth amplifier you'll love

    67 parts14GPL-3.0
  • 2 layers84.5 × 82.6 mmClassab amp, the printed circuit board in 3D

    Classab amp

    prydin/classab-amp-mosfet

    MOSFET-based 50W Class AB amplifier

    67 parts9
  • 2 layers100 × 79 mmPower board, the printed circuit board in 3D

    Power board

    Dominik-Workshop/dw3005t

    Linear power supply, with digital control

    23 parts8GPL-3.0
  • 2 layers95.9 × 112.6 mmLab supply, the printed circuit board in 3D

    Lab supply

    prydin/lab-supply

    Linear 0-30V, 2A lab supply

    90 parts8
  • 2 layers40 × 99 mmOutput mixer, the printed circuit board in 3D

    Output mixer

    mohoyt/output_mixer

    Simple 4 channel Eurorack output mixer

    114 parts7CERN-OHL-S-2.0
  • 2 layers135.8 × 56.1 mmPower board, the printed circuit board in 3D

    Power board

    xtarke/automated_buggy

    This shield connects microcontroller (MSP-EXP430FR2355) pins to the car's power board. Go to Power Board for more hardware information.

    87 parts5GPL-3.0

Questions

What parts does the AUTO CUT OFF CHARGER use?

17 parts, built around the BD139. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the AUTO CUT OFF CHARGER KiCad files?

From the arhamjaffer/auto-cutoff-battery-charger repository on GitHub, at the commit this page was made from: the board is AUTO CUT OFF CHARGER.kicad_pcb and its schematic AUTO CUT OFF CHARGER.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AUTO CUT OFF CHARGER design in my own project?

Its repository states no licence, so its author keeps all rights: ask arhamjaffer before reusing the design.