← Projects
electronics intermediate 14 hr ago ◯ 5 min read

Building a Simple DIY Metal Detector: Coil Design and BFO/VLF Circuits

Build time: 4-8 hours
Tools needed: Soldering iron, multimeter, oscilloscope (helpful but not required), wire winding jig or printed coil form, hot glue gun
Parts List
metal detectorBFOVLFinduction balancesearch coil555 timerLM386electronics project

Metal detectors look like black-box consumer electronics, but the core circuit behind the cheapest beach-sweeping detector and the one your grandfather might have built from a magazine schematic in the 1970s is simple enough to build from a handful of through-hole parts in an evening. This project covers the two classic approaches — the beat-frequency oscillator (BFO) design, which is the easiest to understand and get working, and a basic very-low-frequency (VLF) induction-balance design, which is what every modern commercial detector actually uses and performs dramatically better. Both are genuinely useful once built, not just educational: a BFO detector will reliably find a buried pipe, rebar, or a dropped tool, and a well-tuned VLF unit gets respectably close to entry-level commercial detector performance.

How Metal Detection Actually Works

Both designs rely on the same physical principle: a coil of wire carrying an alternating current generates an oscillating magnetic field, and a conductive object (metal) sitting in that field has eddy currents induced in it, which in turn generate their own opposing magnetic field. That secondary field is what the detector senses. The two approaches differ entirely in how they detect that disturbance. A BFO design uses two separate oscillators tuned to nearly the same frequency — one driving the search coil, one as a fixed reference — and listens to the audible beat frequency between them; metal near the coil shifts the coil oscillator's frequency and changes the beat note. A VLF induction-balance design transmits at a fixed frequency through one coil and uses a second, electrically balanced receive coil to null out the transmitted signal entirely, so that only the much weaker signal re-radiated by a buried target gets through to the amplifier. This is why VLF detectors can discriminate between target types (ferrous vs. non-ferrous) by phase shift and BFO detectors fundamentally cannot.

Building the BFO Detector

A basic BFO detector needs two 555-timer or simple transistor oscillator stages, one connected to a search coil (a flat, roughly 8-inch diameter loop of 20–24 AWG wire, 20–30 turns) forming an LC tank with a parallel capacitor, and one fixed reference oscillator built with stable components and no coil. Mix the two oscillator outputs with a basic diode or transistor mixer stage and feed the result into a small audio amplifier (an LM386 is the standard, cheap choice) driving a speaker or headphones. Tune the reference oscillator's trimmer capacitor until you hear a slow, low beat note with no target present — that's your "null" baseline. Any metal near the coil shifts the pitch up or down from that baseline. The entire build fits on a single small perfboard and can be housed in a 3D printed enclosure mounted to a length of PVC pipe or wooden dowel as a search shaft.

DesignComplexityApproximate DepthDiscrimination BFO (beat frequency)Low — two oscillators and a mixer4–8 inches for coin-sized targetsNone — all metal sounds the same VLF induction balanceModerate — balanced coil pair and phase-sensitive detection8–12 inches, better for this coil sizeBasic ferrous/non-ferrous by phase shift, with added circuitry

Stepping Up to a VLF Induction-Balance Design

A VLF build replaces the single search coil with a concentric or D-shaped dual-coil assembly: a larger outer transmit coil driven at a fixed frequency in the 3–20kHz range by a crystal-stabilized oscillator, and a smaller, carefully wound receive coil positioned and phased so that in free air its output nulls to near zero against the transmit field. This null is the hard part of the build — it typically requires a trim coil or variable capacitor in the receive loop that you adjust empirically until the null is deep, and coil geometry that's genuinely finicky to get right without some trial and error. Once nulled, any disturbance from a nearby target produces an output that a synchronous (phase-sensitive) demodulator stage can extract and amplify, and comparing the phase of that output against the transmitted reference phase is what lets you distinguish a ferrous nail from a non-ferrous coin, in principle, once you add a reference-phase comparator stage. Building a fully temperature-stable, well-discriminating VLF detector from scratch is a genuinely deep rabbit hole; treat a first build as a proof-of-concept that detects metal reliably, and iterate toward discrimination as a second project.

Winding and Housing the Search Coil

Coil winding quality matters more than almost any other part of either build. Wind on a rigid form (a 3D printed coil spool works well, held together with hot glue or small screws to keep turns from shifting), keep turns tight and even, and seal the finished coil in epoxy or heat-shrink to protect it from moisture and mechanical flex — a coil that shifts shape in the field will drift and false-trigger. Mount the finished coil at the end of a shaft (PVC, aluminum tube, or a 3D printed frame) far enough from the control box and any batteries that their own metal and magnetic fields don't interfere with detection.

Safety and Legal Notes

These builds run on low-voltage batteries (typically a 9V or a small battery pack) and present no electrical shock hazard. The practical safety and legal issues are all about where and what you dig: treasure hunting on private property requires the owner's permission, many parks and all federally protected archaeological and historic sites in the US prohibit metal detecting entirely, and anywhere you dig, fill the hole back in and dispose of any dangerous trash (broken glass, rusty metal, sharps) you unearth. If you're detecting anywhere near utility lines, call 811 (in the US) before digging — a detector finding a buried line is exactly the point, but striking one while digging is a real hazard.

A homemade BFO detector won't out-detect a modern commercial unit with digital signal processing and automatic ground balance, and that's fine — the point of this build is understanding induction-based sensing well enough that when you do pick up a commercial detector (or troubleshoot one that's acting strange), the beeps and tones actually mean something concrete to you rather than being a black box.