How to Build a DIY Metal Detector Circuit Step-by-Step Guide

Build an inductance-based finder using a TL072 op-amp, a BC547 transistor, and two homemade coils: a 50-turn search loop (8 cm diameter, 0.5 mm enameled wire) and a 75-turn reference loop (same wire, 6 cm diameter). Power the setup with a 9 V battery; current draw under 25 mA ensures portability without frequent replacements.
Wound side-by-side on a 5 mm PVC former, the coils must be positioned orthogonally to minimize mutual coupling. Capacitor C1 (10 nF) forms a resonant tank with the search loop, tuned to 8 kHz. Adjust R2 (10 kΩ potentiometer) to null the op-amp output baseline voltage to < 50 mV before sweeping, reducing false triggers from soil minerals.
When a buried object alters the tank’s inductance, the resonance shifts, unbalancing the bridge. The differential signal is amplified by the op-amp (gain = 150), then rectified by the transistor, driving a piezo buzzer (3–5 V max). Calibrate sensitivity by burying an 18 mm ferrous sphere at 10 cm; detection range drops exponentially beyond 15 cm for non-ferrous targets.
For stability, twist all wiring and solder 10 µF decoupling capacitors across the power rails near each active component. Avoid aluminum foil shielding–it introduces microphonic noise; use mu-metal foil (0.1 mm thick) grounded to the battery negative instead. Test on varied terrains: dry sand (< 5% error), wet clay (+20% signal drift), and saline soil (requires recalibration).
Fine-tune the reference loop’s position to compensate for temperature drift–coil impedance rises 0.38% per °C. For extended searches, add a 2.2 kΩ pull-down resistor to the transistor base to prevent false latching during battery voltage sag. A fresh alkaline cell maintains regulation; rechargeable NiMH cells cause erratic behavior due to voltage dips.
Building a Functional Search Coil System: Step-by-Step Assembly

Begin by winding the inductive coil with 120 turns of 0.3mm enameled copper wire around a 15cm diameter non-conductive former, ensuring uniform spacing between each loop to maintain precise resonant frequency (typically 3–15 kHz). Secure the winding with insulating tape at 3 equidistant points to prevent shifting. Connect the coil to a Colpitts oscillator configuration using a 2N3904 transistor, pairing it with a 0.01µF feedback capacitor and a 100kΩ resistor for stable oscillation. Test impedance with a multimeter–values should stabilize near 1.2–1.8 kOhms at rest. For calibration, place a 5cm steel disc 10cm above the coil; the oscillator’s frequency shift should exceed 200Hz to ensure detectable signal disruption. Fine-tune sensitivity by adjusting the 47kΩ potentiometer in series with the base transistor until false triggers from soil mineralization drop below 1 per 10-second interval.
| Component | Specification | Purpose |
|---|---|---|
| Inductive coil | 120 turns, 0.3mm Cu wire, 15cm Ø | Generates alternating magnetic field |
| 2N3904 transistor | NPN, 40V, 200mA | Oscillator core driver |
| Feedback capacitor | 0.01µF ceramic | Stabilizes feedback loop |
| 100kΩ resistor | 1/4W carbon film | Bias current setter |
| 47kΩ potentiometer | Linear taper | Sensitivity adjustment |
Ground the oscillator to a common rail alongside a simple comparator stage (LM358 op-amp) configured with a 10kΩ reference resistor. The comparator output triggers a 555 timer (monostable mode, 1µF timing capacitor) whenever coil-induced frequency drifts exceed pre-set thresholds. Route the 555’s output to an 8Ω speaker through a 220µF coupling capacitor to convert detections into audible pulses. Shield the entire assembly in a grounded aluminum enclosure to minimize RF interference–critical for sub-50g target discrimination. Position the coil at least 2cm above any conductive shielding to prevent eddy current cancellation.
Core Elements for Constructing a Simple Locator Device
Begin with a search coil consisting of 20-30 turns of enameled copper wire (0.3-0.5 mm diameter) wound in a circular or elliptical shape (15-20 cm diameter). Use Litz wire for reduced skin effect at frequencies above 5 kHz. Pair this with a matching capacitor (1-10 nF) to form a resonant tank operating between 3-15 kHz–opt for ceramic or polypropylene types with low ESR.
The oscillator stage demands a stable frequency source. A Colpitts configuration using two capacitors (C1=10nF, C2=1nF) and a single inductor (coil) achieves this with minimal components. Bias the active element–typically a BC547 or 2N3904 transistor–with a 10kΩ resistor and a 1kΩ emitter resistor. Include a 100nF coupling capacitor to isolate DC while allowing AC signals to pass.
Signal amplification requires a low-noise op-amp like the TL072 or NE5532. Configure it with a non-inverting gain of 50-100x using resistors Rf=1MΩ and Rin=10-20kΩ. Add a 10nF feedback capacitor to limit bandwidth and reduce high-frequency noise. For discrete solutions, a second BC547 stage with similar biasing can substitute, though with higher distortion.
- Power supply: Use a 9V battery with a 100µF electrolytic capacitor across the rails to stabilize voltage. Include a 100nF bypass capacitor near each IC/Vcc pin.
- Rectification: A 1N4148 diode followed by a 10µF smoothing capacitor converts AC to detectable DC pulses.
- Indicator: Drive an LED or piezo buzzer via a 2N2222 transistor; adjust sensitivity with a 500kΩ potentiometer.
Avoid PCB traces longer than 2 cm for the coil connections to prevent parasitic inductance. Shield the oscillator section with a grounded copper foil enclosure if operating near switching power supplies or fluorescent lights. For discrimination, add a second frequency (e.g., 10 kHz and 15 kHz) and compare amplitudes–iron targets will show minimal difference, while copper/aluminum will vary significantly.
Calibrate by placing a 1 cm diameter aluminum disk at 5 cm depth–adjust the trimmer capacitor until the output peaks. For soil compensation, implement a slow-response low-pass filter (R=1MΩ, C=1µF) to ignore gradual mineral changes while retaining sudden target responses. Test with different coil shapes: concentric designs improve depth for small objects, while wide elliptical coils cover more ground per sweep.
Step-by-Step Assembly of a BFO Frequency-Based Seeker
Select a stable oscillator design as the foundation–consider a Colpitts or Hartley configuration for reliability. These setups minimize drift and ensure consistent beat signals when near conductive targets. Begin with a 10 MHz reference oscillator built around a 2N3904 transistor or equivalent, paired with precision capacitors (100 pF polypropylene) to reduce thermal noise.
Wind the search coil using 0.3 mm enameled copper wire on a 20 cm diameter former. Aim for 100 turns, evenly spaced to prevent parasitic capacitance. Lacquer the coil immediately after winding to stabilize inductance. Connect it via shielded cable to the oscillator’s input, ensuring minimal stray coupling–solder joints must be smooth and flux-free to avoid signal loss.
Construct the mixer stage using an NE602 or a discrete diode ring (1N4148). This stage compares the search oscillator’s output with a fixed reference frequency, typically 50-100 Hz offset. Use low-ESR capacitors (e.g., 1 µF film) to couple signals without phase distortion. Ground the mixer’s reference input through a 10 kΩ resistor to prevent DC bias from skewing the beat tone.
Assemble the audio amplification stage around an LM386 IC, configured for 20x gain. Connect the mixer’s output to the IC’s input via a 0.1 µF coupling capacitor. Add a 10 kΩ potentiometer between the output and ground to control volume–this also doubles as a sensitivity limiter for strong signals. Power the circuit with a regulated 9V supply, bypassed with 100 µF and 0.1 µF capacitors to suppress high-frequency noise.
Calibrate the unit by adjusting the trimmer capacitor (5-30 pF) on the reference oscillator until the beat frequency disappears in air (null point). Fine-tune with a metallic test piece at 5 cm–optimal settings produce a clear, rising tone without harmonics. Secure all components on a perfboard, keeping leads short and orthogonal to minimize cross-talk.
Encase the electronics in a shielded aluminum enclosure, connecting the search coil’s shield to the circuit ground. Test performance across soil types–dry sand (10-15 cm depth) and clay-heavy earth (3-5 cm) require recalibration of the reference frequency. For enhanced stability, replace the reference oscillator with a crystal-controlled module (e.g., 10.000 MHz) if precision is critical.
Troubleshooting Common Issues in Homemade Search Coil Builds

If the device emits a continuous high-pitched whine with no target response, check the oscillator transistor’s base resistor. Values above 22kΩ often cause instability in 555-based designs–replace with a 15kΩ carbon film resistor and retest. For discrete BJT stages, verify the emitter bypass capacitor isn’t leaky; a faulty 47μF electrolytic can mimic coil shorts. Probe the collector voltage with a DMM–readings below 3V suggest incorrect biasing, typically caused by reversed diode polarity in the feedback loop.
False Signals on Mineralized Ground

Ground balance drift manifests as erratic beeping over hot rocks or iron-rich patches. Reduce the search coil’s sweep speed–fast motions below 10cm/s induce eddy current noise in poorly shielded loops. If using a concentric design, ensure the outer coil’s winding direction opposes the inner one; same-phase windings cancel depth penetration. For PCB-based regulators, a missing 10nF decoupling cap near the LM317 input can amplify audio-stage interference–add a ceramic cap directly between Vin and GND, soldered within 3mm of the IC.
Coil overheating during prolonged use often stems from inadequate wire gauge–replace 0.3mm enamel with 0.5mm for search loops exceeding 20cm diameter. Thermal failure in MOSFET drivers (IRFZ44) occurs when gate resistors exceed 100Ω; swap for 47Ω metal film types. If the system cuts out after 20 minutes, inspect the voltage reference diode: a 1N4735A should hold 6.2V–deviations indicate a faulty zener, causing supply sag to 4.8V and triggering undervolt lockout.
Intermittent detection or weak signal strength often traces to cracked PCB traces near coil connectors. Use a continuity tester to check paths between the tuning capacitor and coil–resistance above 0.5Ω suggests microfractures. For twin-T oscillator designs, a capacitive imbalance as small as 2pF between sensor plates can shift the null point; recalibrate by adjusting the trimmer pot in 1pF increments while monitoring waveform symmetry on an oscilloscope. If the issue persists, replace the tuning capacitor–ceramic types fail silently under humidity, prefer film polyester for outdoor builds.