Electric Fences are designed to create an electrical circuit when touched by person (or animal). The circuits proposed in this article release 10kV electrical pulses to the fence-line and monitor the line status. This entire system is design to drive using 25V (5A) single-rail DC power source (using 5A power supply unit or pair of 12.6V Lead-Acid batteries).

PCB of Electric Fence Controller
PCB of Electric Fence Controller

Main controller of this system is Microchip PIC12F675 – 8bit microcontroller. All the line monitoring, pulse generation and alarm system controlling is performed by this microcontroller.

Some of the most notable features of this system are Built-in audible alarm system, contactless fence line monitoring system, Support for wide range of step-up transformers (up to maximum of 10kV) and compact 10cm × 10cm PCB design.

This system use standard electronic components (through-hole components) and SMD components in this provided PCB layout.

Project Related Downloads

All the PCB patterns, schematic diagrams and source codes of electric fence controller


PIC12F675 - 8-Pin FLASH-Based 8-Bit CMOS Microcontroller
LM393 - Low Power Low Offset Voltage Dual Comparators
TDA7052 - 1 W BTL mono audio amplifier
NE555 - Single Timer
HEF4017 - Decade Counter/Divider with 10 Decoded Outputs
IRFZ44 - Advanced Power MOSFET
TIP122 - NPN Epitaxial Darlington Transistor
2SC3611 - NPN Epitaxial Planar Type Transistor
MMBT3904 - NPN Switching Transistor
BC557 - PNP General Purpose Transistors