Skip to the content
2 layers131 × 78 mmFirst half pcb, the printed circuit board in 3D

A fully custom-built Solar Powered Electric Fence Circuit designed by ECE project team. The system uses a solar panel to charge a 12V battery via an LM317L regulator and generates controlled high-voltage pulses using a CD4047 astable multivibrator (f = 46–58 Hz). IRF3205 MOSFETs drive a step-up transformer to deliver electric pulses along the fence

Size
131 × 78 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
14
Pads
47
Tracks, vias
103, 0
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
6 Dec 2025
Updated
5 May 2026

Overview

First half pcb is an open-source printed circuit board by bchethan24, from the bchethan24/Solar-Power-Electric-Fence-Circuit-Design repository on GitHub, published under the MIT licence. It is a 2-layer board of 131 × 78 mm with 23 parts on 14 nets, routed with 103 tracks and 0 vias.

Its parts include 8 resistors, 4 diodes, 3 capacitors, 3 connectors and 2 switches. It belongs with the power boards of this library.

README

README.md

Solar Powered Electric Fence Circuit

A high-voltage, renewable energy-based perimeter security system using CD4047 pulse generation and MOSFET power switching.


Overview

This project features a fully custom-built Solar Powered Electric Fence, designed to deliver controlled, safe high-voltage pulses for agricultural and perimeter protection. It integrates a solar charging system with a battery backup to ensure 24/7 off-grid operation without reliance on the power grid.


System Architecture

text
┌────────────────────────────┐       ┌────────────────────────────┐
│   Solar Charging Stage     │       │   Pulse Generation Stage   │
│ • 12V Solar Panel          │       │ • CD4047 Multivibrator     │
│ • LM317L Voltage Regulator │◄─────►│ • Adjustable Frequency     │
│ • 12V 7Ah Battery Storage  │       │ • 46 Hz – 58 Hz Range      │
└────────────────────────────┘       └─────────────┬──────────────┘
                                                   │
                                                   ▼
┌────────────────────────────┐       ┌────────────────────────────┐
│   High-Voltage Stage       │       │      Switching Stage       │
│ • Step-up Transformer      │◄─────►│ • Dual IRF3205 MOSFETs     │
│ • High-Voltage Pulse Out   │       │ • High-Current Handling    │
│ • Safe Deterrent Shocks    │       │ • Low-Loss Power Switching │
└────────────────────────────┘       └────────────────────────────┘

⚙ Working Principle

  1. Energy Harvesting: The solar panel generates DC power, which is regulated by the LM317L to provide a constant charging voltage to the 12V 7Ah Lead-Acid battery.
  2. Pulse Timing: A CD4047 IC is configured in astable mode to produce a continuous square wave. The frequency is adjustable (46–58 Hz) via a variable resistor to fine-tune the deterrent intensity.
  3. Power Switching: The logic-level signal from the IC drives the gates of two IRF3205 MOSFETs. These MOSFETs switch the battery current through the primary winding of the transformer.
  4. Inductive Boost: The Step-up Transformer converts the low-voltage switched DC into high-voltage, short-duration pulses suitable for long-distance fencing wires.

🧩 Detailed Hardware Information

🧮 Pulse Generation (CD4047)

The timing is governed by the RC network connected to the astable multivibrator pins.

ComponentValueFunction
Resistor (R)390 kΩ + 100 kΩ PotFrequency Tuning
Capacitor (C)10 nFTiming Constant
Pulse Period (T)17.16 – 21.56 msT = 4.4RC
Frequency (f)46 Hz – 58 HzOutput Pulse Rate

🔋 Power & Switching

ComponentSpecificationRole
Voltage RegulatorLM317LBattery Charge Control
Storage12V, 7Ah BatteryLead-Acid Energy Storage
Switching MOSFETIRF3205High-Current Driver ($V_{DSS}=55V$)
ProtectionSchottky DiodesReverse Polarity & Surge Protection

📐 Design Features

  • Fully Custom Design: Optimized schematics and PCB layouts specifically for high-current pulse switching.
  • Off-Grid Optimized: Designed for outdoor operation with minimal maintenance.
  • Safety Integrated: Intermittent pulse generation ensures shocks are deterrent but safe for livestock and humans.
  • Modular Layout: Segmented circuit stages for charging, control, and high-voltage output for easier troubleshooting.

📂 Repository Contents

  • /hardware: Schematics, PCB layouts and 3D PCB layout visualizations.
  • /docs: component datasheets and project report.
  • /manufacturing: Gerber files of the PCB layouts.

🧠 Learning Outcomes

  • Designing Battery Charging Circuits with voltage regulation.
  • Implementing Astable Multivibrators for precise signal timing.
  • Managing High-Voltage switching
  • Integrating Renewable Energy into practical security applications.

🧾 License

MIT License Permission is granted to use, modify, and distribute under MIT terms.


✅ Summary

A robust, solar-powered security solution that demonstrates the practical application of Power Electronics and Analog Design. The system provides a sustainable, cost-effective deterrent for livestock and perimeter management, verified through rigorous testing and custom PCB fabrication.

Parts

23
QtyValueFootprintReferences
3LEDLED_THT:LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O1.27mm_Z1.6mmD5, D6, D7
2560Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5, R7
2SW_SPSTButton_Switch_THT:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W7.62mm_P2.54mm_LowProfileSW1, SW2
10.01Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
10.1Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6
11000ufCapacitor_THT:CP_Axial_L10.0mm_D4.5mm_P15.00mm_HorizontalC5
1100uCapacitor_THT:C_Axial_L3.8mm_D2.6mm_P7.50mm_HorizontalC1
110uCapacitor_THT:C_Axial_L3.8mm_D2.6mm_P7.50mm_HorizontalC2
1125Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
112V 7AhConnector_Phoenix_GMSTB:PhoenixContact_GMSTBA_2,5_2-G-7,62_1x02_P7.62mm_HorizontalBT1
112vConnector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G-5,08_1x02_P5.08mm_HorizontalJ2
115A 45VDiode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR8
12750Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3
1330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR9
1LM317L_SOT-89Package_TO_SOT_THT:TO-220-3_VerticalU1
1Solar_CellsConnector_Phoenix_GMSTB:PhoenixContact_GMSTBA_2,5_2-G-7,62_1x02_P7.62mm_Horizontalsolarpanel1
1to gndConnector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G-5,08_1x02_P5.08mm_HorizontalJ3
1to ic 4047Connector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G-5,08_1x02_P5.08mm_HorizontalJ1

More from bchethan24/Solar-Power-Electric-Fence-Circuit-Design

2
  • 2 layers98 × 91.1 mmSecond part, the printed circuit board in 3D

    Second part

    bchethan24/Solar-Power-Electric-Fence-Circuit-Design

    A fully custom-built Solar Powered Electric Fence Circuit designed by ECE project team. The system uses a solar panel to charge a 12V battery via an LM317L regulator and generates controlled high-voltage pulses using a…

    11 partsMIT
  • 2 layers80 × 67.5 mmThird part, the printed circuit board in 3D

    Third part

    bchethan24/Solar-Power-Electric-Fence-Circuit-Design

    A fully custom-built Solar Powered Electric Fence Circuit designed by ECE project team. The system uses a solar panel to charge a 12V battery via an LM317L regulator and generates controlled high-voltage pulses using a…

    10 partsMIT

Similar boards

  • 2 layers65 × 56 mmPi servo hat, the printed circuit board in 3D

    Pi servo hat

    earthtojake/text-to-cad

    Design physical products with AI

    23 parts26kMIT
  • 2 layers14 × 100 mmYunomi, the printed circuit board in 3D

    Yunomi

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    23 parts3kApache-2.0
  • 2 layers50.8 × 52.2 mmFuhhni, the printed circuit board in 3D

    Fuhhni

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    23 parts915
  • 2 layers138.8 × 89.8 mmKeyboard pcb, the printed circuit board in 3D

    Keyboard pcb

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    23 parts756GPL-3.0
  • 2 layers32.9 × 53.3 mmGoatgdo, the printed circuit board in 3D

    Goatgdo

    Kaldek/rat-ratgdo

    Open source schematics for ratgdo PCB

    23 parts511MIT
  • 2 layers35.5 × 50 mmTobo, the printed circuit board in 3D

    Tobo

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    23 parts463
  • 2 layers19 × 19 mmKeybit, the printed circuit board in 3D

    Keybit

    notaroomba/keybytes

    A truly modular keyboard

    23 parts444
  • 2 layers88.5 × 28 mmExpBreakout, the printed circuit board in 3D

    ExpBreakout

    Duet3D/Duet-2-Hardware

    The KiCAD source for the Duet 3d printer controller see www.duet3d.com

    23 parts258

Questions

How big is the First half pcb PCB?

It measures 131 × 78 mm and has 2 copper layers, 1.6 mm thick.

What parts does the First half pcb use?

23 parts. 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 First half pcb KiCad files?

From the bchethan24/Solar-Power-Electric-Fence-Circuit-Design repository on GitHub, at the commit this page was made from: the board is Hardware/Main_Control_Board/Hardware_Design/first_part/first half pcb.kicad_pcb and its schematic Hardware/Main_Control_Board/Hardware_Design/first_part/first half pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the First half pcb design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).