กลับไปหน้ารวมไฟล์
squirreliminator-humane-electric-fence-driver-1aa675.md

Low cost electric fence humanely protects valuable urban gardens


🛠️ เจาะลึกเบื้องหลังการทำงาน (Deep Dive / Technical Analysis)

The Humane Electric Fence Driver takes the concept of pest deterrents away from simple ultrasonic buzzers and builds an industrial-grade physical barrier. It uses high-voltage physics and transformer step-up circuitry to generate a sharp, extremely low-amperage shock that scares pests away without causing any permanent harm.

The High Voltage Flyback Transformer

The Arduino operates on 5 Volts. A squirrel will completely ignore 5 Volts. The electric fence requires 5,000 to 10,000 Volts.

  1. The Circuitry: The system employs a high-voltage boost generator (often salvaged from bug zappers or old CRT televisions—the Flyback Transformer).
  2. The Physics: The Arduino does not touch the 5,000V. It controls the primary coil of the transformer.
  3. The Pulsing Code: You cannot leave an electric fence ON constantly; it must pulse. The Arduino runs a very aggressive digitalWrite() loop.
    • It fires a massive IRLZ44N MOSFET or an IGBT transistor for 10 milliseconds, dumping current from a 12V car battery into the primary transformer coil.
    • The magnetic field rapidly collapses, converting the 12V 5A current into an astonishing 10,000V 0.005A spike out the secondary coil to the fence wire!
    • The Arduino waits 1 second, and repeats the pulse. SNAP.... SNAP.... SNAP....

Safety and Grounding Architecture

Building a 10kV circuit requires extreme caution.

  • The fencing wire must be suspended on plastic or ceramic insulators.
  • The system must have a robust Earth Ground Rod driven deep into the dirt. When an animal steps on the damp soil and touches the wire, they complete the 10kV circuit instantly, receiving a shocking warning.
  • The 0.005A (5mA) limit ensures the shock is just a sting, not a lethal threat.

Components of the Perimeter

  • Arduino Uno/Nano: The micro-second pulse generator.
  • High-Voltage Boost Module / Coil.
  • Heavy Duty IGBT or Logic-Level MOSFET.
  • A reliable 12V battery and Solar panel charger.
  • (Warning: High voltage projects are extremely dangerous to build. You must know exactly how to handle capacitors and transformers safely before attempting).

ข้อมูล Frontmatter ดั้งเดิม

title: "Squirreliminator® Humane Electric Fence Driver"
description: "A humane way to use Arduino to construct an effective an inexpensive electric fence charger using easilly available items. Typical build cost about 20-30 dollars for an average DIY. Typical time to build, 3-4 hours (not including installation of actual fence)"
author: "coolblueglow"
category: "Home & Automation"
tags:
  - "Animals"
  - "Garden"
  - "Greener Planet"
  - "Home Automation"
  - "Human Welfare"
views: 3602
likes: 0
price: 699
difficulty: "Easy"
components:
  - "1x Automotive Ignition Coil"
  - "1x 400V PIV rated minimum diode"
  - "1x L298 driver for DC/Stepper motors"
  - "1x 12V automotive Ignition Coil"
  - "1x MIG welding Wire"
  - "1x Arduino Nano R3"
  - "1x 12V battery"
  - "1x binding post terminals"
  - "1x 12VDC POWER SUPPLY 3A MINIMUM"
tools: []
apps:
  - "1x Arduino 1.8.19"
downloadableFiles:
  - "https://projects.arduinocontent.cc/b24037a2-f4a8-4fdb-8c6a-40b93837121e.ino"
documentationLinks: []
passwordHash: "117ec5b91fa383e002e7fec21716ceaa6fbecbdbfc55f417dba50c4f3f2b5ce3"
encryptedPayload: "U2FsdGVkX18GSB1eHuzlXdGPopKDrUGlPeIkQtcE5eEyRwvIEvmBd7OturdEvXsyvGzX3fanjRy44YO4EyFBIXF+52WuLwLLu19P3Fk8ug4="
seoDescription: "Build a low-cost, humane Arduino Electric Fence Driver for $20-30. Easy DIY project using available parts, takes 3-4 hours."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/squirreliminator-humane-electric-fence-driver-1aa675_cover.png"
lang: "en"