This document provides instructions for building an electric fence controller circuit. It begins with a safety warning about working with hazardous materials. It then describes the main components of the circuit, including a microcontroller that generates electric pulses and controls alarms. Instructions are provided for connecting the various components, calibrating the system, and testing voltages. Safety precautions for high voltages are also listed.
2. DC Power supply input terminals
Progress indicators and
feedback indicator
Connectors to the step‐up
transformer
Test Point A
Test Point B
Probe terminal
230V peripheral interface
terminals
GND (test) terminal
Speaker connector
Alarm reset switch
Probe limit Setup
control
Alarm status indicator
Alarm audio output level
controller
Fig. 1.1 - Controls and terminals of Electric Fence Controller PCB
alarm and peripheral interface terminals)
System Controls and Terminals
As reference to Fig. 1.1, here are the list of controls
Alarm status indicator: Indicator to show the
alarm status.
and terminal descriptions of Electric Fence Controller
PCB,
Progress indicators and feedback indicators:
Progress indicator is used to display the active
time of the electric fence line(s). This indicator
starts when the fence line(s) get electrify.
DC Power supply input terminals: Attach 15 ‐
25V DC (5A) power source to this terminal. (24V
is recommended)
Step‐up transformer connectors: Connect step‐
Fig. 1.2 - Transformer and fence line connectivity
up transformer’s primary winding to these
terminals. (refer the TRANS1 and TRANS2
Probe limit setup control: Use this variable
terminals of fig. 1.2)
resistor to control the triggering limit of the
230V Peripheral interface terminals: Connect the
probe sensor.
230V (or less) peripheral to these terminals. This
Alarm audio output level controller: Use this
line got activated when the alarm system get
triggered.
potentiometer to control the audio output level
(volume) of the alarm.
Alarm reset switch: Press this push button to
reset the entire alarm system. (including audible
‐ 2 ‐
Speaker Connector: Attach 4Ω or 8Ω (1W)
speaker to this terminal.
3. Probe terminal: Attach 4cm ‐ 8cm 13 S.W.G ‐ 12
we test this system successfully with 100m long
S.W.G copper wire to this terminal. Do not
galvanized fence wire.
connect the probe wire to the high voltage fence
line(s). When installing the probe wire try to
install it with minimum length as possible. If the
High voltage safety
Most of the parts of this project contains high
voltage. AC or DC, more than 500V is consider as high
voltage. There fore, experimenters must take extra
Wire loop
precautions to avoid painful shocks and possible
electrocution. Here are some points which user/
Fence wire
designer must consider while implementing, installing
and testing this system,
Install several “High Voltage” labels in HV wires,
transformer, etc. Keep children, pets, and
Probe wire (J3)
curiosity seekers away from the apparatus.
Cover all bare leads, wires, connection terminals,
and possible points of contact with suitable
Fig. 1.3 - Probe attachment to the fence wire
(not to the scale)
insulator.
probe attachment is too noisy, increase the value
Use neon lamps to check the high voltage lines.
Do not connect multimeters, oscilloscopes and
of the R12 variable resistor. Some recommended
other precision test instruments to the high
probe design is illustrated in fig. 1.3.
voltage lines.
Always pull the plug of power supply unit when
System construction and installation
working on a high voltage circuit unless you must
Attached PCB design of “Electric Fence” system use
test it.
standard through‐hole components and SMD
Work in a dry location. Locate your apparatus
components. When soldering the PCB it is highly
away from appliances, metal doors and windows
recommended to place all the wire‐links (jumpers)
sinks, water‐pipes, etc. All the above items can
first. Most of the resistors and transistors are in SMD
become a deadly ground if your body comes
packaging. It is recommended to solder all these SMD
between them and high voltage.
parts at the final stages of soldering.
When installing the heat‐sink place suitable insulators
to Q1 (TIP122), IC6(7805TV) and IC7(7812TV). Q3 and
Q2 (IRFZ44) can be directly connected to the heat‐
sink.
When installing the transformer connect one of it’s
output terminal to ground (neutral) and remaining
pin (live) to the fence wire(s). Recommended
materials for this earth electrode(s) are copper or
galvanized steel. This earth electrode should drive at
least 1.5m into the ground. At the prototyping stages
Fig. 1.4 - Electric Fence controller with transformer
‐ 3 ‐
4. System calibration and testing
Majority of the components in this project are fixed
values and user need to calibrate only the few
IC1
controllers.
IC
Use R12 variable resistor to control the probe
triggering limit. If your sensor probe is too noisy
increase the value of R12 variable resistor to 100kΩ
IC2
IC3
or 200kΩ.
IC4
IC5
Pins
1
8 (GND)
4 (GND)
8
1 (GND)
8
1
6 (GND)
8 (GND)
16
Voltage
4.5V ‐ 5.2V
4.5V ‐ 5.2V
4.5V ‐ 5.2V
9.5V ‐ 12.3V
4.5V ‐ 5.2V
Table 1.1 - Supply voltages to the selected ICs
on the system with step‐up transformer and probe.
Using Hi voltage voltmeter check voltages of the
fence lines.
Fence wiring system
Electric fence wires can be arrange into two designs.
Fig. 1.5 - Test point waveforms and voltages.
Channel 1 : Test Point A & Channel 2 : Test Point B
1. Single electrified wire
2. Using multiple electrified wires
To calibrate the transformer oscillation frequency
change the values of C2 and C3 capacitors. Core
Both these methods had special applications,
oscillation frequency of this system can be monitor
advantages and disadvantages. Single electrified
through the Test Point A (TP1).
wiring is suitable for animals. This wiring is not
Use Test Point B (TP2) to monitor the primary
oscillation of the audible alarm.
When taking the voltage measurements (of the
control board), it is highly advisable to remove step‐
up transformer from the system. Sometimes back
E.M.F of the high voltage transformer may
permanently
damage
your
sensitive
testing
instruments.
After soldering the control board it is highly
suitable for vermin control. Multiple electrified wiring
is good for vermin control and dry areas. One of
advantage of multiple wired fence is it can be extend
up to 500m‐1000m. In the single wire fence it is
impossible to send electrical impulse through more
than 1000m of soil.
For fence wiring use galvanized wires. If the length of
the fence is less than 300m, use poly wires or poly
tapes.
recommended to test supply voltages to IC1, IC2, IC3,
IC4 and IC5. Expected supply voltages to those ICs are
listed in table 1.1. When taking these supply voltages
disconnect the step‐up transformer from the main
board. If all the voltage readings are correct attach
IC1, IC2, IC3, IC4 and IC5 to the IC sockets and power
‐ 4 ‐