Treasure Finder

This guide has more recent changes. Switch to the latest unverified version.

Weekend Project

Weekend Project

This project is part of RadioShack's The Great Create.

Build a sensitive metal detector for a fraction of the cost of a commercial one.

  • Author: Steve Hobley
  • Time required: A weekend
  • Difficulty: Moderate
  • Add Note x

Who hasn't dreamed about owning their own metal detector and searching for buried treasure, or at least a few dropped coins? In this project, we will build a metal detector based on a dual oscillator circuit. One oscillator is fixed, and the other varies depending upon the proximity of metal objects. The beat frequency between these two oscillator frequencies is in the audible range, and as the detector passes over metal objects, you will hear a shift in this beat frequency. Different metal types will cause a positive or negative shift, raising or lowering the audible frequency.

This "heterodyning" principle is used in many applications - radio, scientific measurements, even the Theremin!

Check out more Weekend Projects.

first image

Add Note Edit Step 1 — Make the Printed Circuit Board  ¶ 

  • Download the PCB design from here (credit: easytreasure.co.uk)

  • Print the design out on a laser printer, then etch it onto plain copper clad board using the Toner Transfer method. Here's a good page on the technique.

    • With Toner Transfer, you print a mirror-image of the board design using an ordinary laser printer, then transfer the pattern onto the copper cladding using an electric iron. During the etching step, the toner acts as a mask, keeping the copper traces underneath while the rest of the copper dissolves away in a chemical bath.

    • If you don't want to do any etching, you can build the circuit by stringing it up with wires on plain perf board-- although this won't be as neat.

  • I made my board approximately twice as large as it needs to be. This was due to a print scaling error on my part, but the board will still work just fine.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 2 — Populate the board - transistors and electrolytic caps  ¶ 

  • Begin by soldering in the 6 NPN transistors.

    • Note the orientation of the transistors. Refer to the transistor packaging or datasheet to confirm their correct orientation -- specifically, which pins are the collector (C) and emitter (E). Different transistors have different pin configurations. (The base pin (B) is almost always in the middle.)

  • I backlit all of the circuit board assembly photographs - just to make it clearer where each part goes.

  • Next, add the two 220μF capacitors -- these are polarized, and will only go in one way 'round. Look for a stripe on the capacitor, with marks the cathode (-) side.

  • Unlike most schematics, the diagram here actually matches the layout of the PCB.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 3 — Populate the board (cont'd) - caps and resistors  ¶ 

  • After the big capacitors, add five 0.1μF polyester capacitors in the locations shown. These are not polarized and can go in either way.

  • Add the five smaller 0.01μF capacitors - again, these can go in either way 'round.

  • Start adding the resistors - first were six 10KΩ resistors (Brown, Black, Orange, Gold).

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 4 — Populate the board (cont'd) - resistors and offboard leads  ¶ 

  • Add the 2.2MΩ (Red, Red, Green, Gold) and the two 39KΩ (Orange, White, Orange, Gold) resistors.

  • The last resistor is a 1KΩ (Brown, Black, Red, Gold).

  • Finally, add wire pairs for power (red/black), audio out (green/green), reference coil (black/black), and detector coil (yellow/yellow).

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 5 — Wind the reference coil  ¶ 

  • Next up is winding the two coils that are part of the LC oscillator circuit. The first coil is the reference (or tuning) coil. I used #26 wire for this.

  • Cut a piece of dowel (about 1/2 diameter and 2" long). Drill three holes in the dowel to pass the wire through: one lengthwise through the middle of the dowel, and two more perpendicular at each end.

  • Slowly and carefully wind as many turns of wire as you can around the dowel in a single layer. Leave 1/8" of bare wood each end.

    • TIP: Put the spool of wire on the floor with some unused leftover dowel through it. Rest your feet on either end of the spool dowel and apply gentle pressure to adjust the spool's tension as you dispense and wind more wire.

    • Resist the temptation to "twist" the wire as you wind - this is the most intuitive way of winding, but it's the wrong way. You should rotate the dowel and let it pull the wire from the spool.

  • Thread each wire end through the perpendicular holes in the dowel, and then one of them through the lengthwise hole. Secure the wire with tape once you are done.

  • Finally, use some 100-grit sandpaper to remove the coating on the two exposed ends of the coil wire.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 6 — Make the detector coil  ¶ 

  • Cut a coil holder from 1/4" plywood. I've included a template you can print out and use as a cutting guide.

    • Sandwiching the smaller ring between two larger ones creates the groove to wind the detector coil in.

  • Using the same #26 wire as the reference coil, wind 10 turns around the groove. My coil has a diameter of 6".

  • Use a 1/4" wooden dowel peg to attach the handle to the holder. Don't use a metal bolt, or you'll be detecting treasure everywhere!

  • Again, use 100-grit sandpaper to remove the coating on the wire ends.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 7 — Tune the reference coil  ¶ 

  • Now we need to tune the frequency of the reference coil in our circuit to 100 kHz, by gradually shortening it and measuring its frequency.

    • I used an oscilloscope to do this, but many multimeters have a frequency counter and this will do the job just as well.

  • Start by connecting the coil into the circuit and connecting power. Connect probes from a 'scope or multimeter to both ends of the coil and measure its frequency. It should be less than 100 kHz.

  • Unwind some wire to shorten the coil. This reduces the coil's inductance, raising its frequency. Then retest. Repeat until it's at about 100 kHz.

    • Once I was done, my coil measured 1.23 inches in length.

  • Here is a video of me unwinding turns on the coil until the scope read 100 kHz.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 8 — Build the electronics enclosure  ¶ 

  • Cut the pieces for a simple 3/4 box from plywood (a template is included in the project files). Assemble and glue the box together.

    • My enclosure needed to be bigger than normal because I made the circuit board too large.

    • Ignore the pattern "etched" into the back plane template. This was my original idea for a reference coil mount, but instead, fitting it into PVC pipe was too clever to pass up.

  • Drill one hole in the box to hold a 1/2" PVC pipe fitting that will carry the reference coil, and another hole for the speaker.

  • Epoxy the PVC fitting into the box and let it set.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 9 — Put it all together  ¶ 

  • Tuck the reference coil inside the PVC and screw the brass nut onto the outer threads. Attach it (black wires) to the PCB.

    • TIP: If the nut or coil comes loose, try wrapping some Teflon tape (available from the plumbing section of the hardware store) around the threads.

  • Cut a 3' length of 3/4" hardwood dowel for the handle. Drill a 1/4" hole through one end and connect the detector coil with a 1/4" dowel peg. Thread the two large holes in the electronics enclosure over the handle.

  • Loosely wrap some some speaker wire around the handle and connect it between the detector coil and the PCB (yellow wires).

  • I hooked up the 8Ω speaker to the green output wires and a 9V battery to the power wires. Be careful of the polarity: red is (+) and black is (-).

    • I also wired in a switch on the red wire, which makes it much easier to turn on and off!

  • And last, but by no means least, you need to adjust the brass nut on the reference coil to create the right kind of tone. Here's a video that explains this.

first image
thumb image 1
thumb image 2
thumb image 3

Add Note Edit Step 10 — Improvements - volume control and headphone jack  ¶ 

  • To improve the "human factors" of your metal detector, add a volume control. The screeching and squealing that this device can make can be "upsetting" for anyone that might be around you.

  • Even better, add a headphone jack! Then you can use your treasure finder anywhere without disturbing others. I had to drill a couple more holes into the case to fit these.

  • I've included a schematic for the additional parts, which you add onto the two speaker connections. If you wire up the jack correctly it will mute the speaker when you plug the headphones in.

This project uses a phenomenon called "heterodyning" to combine two high-frequency signals to generate a much lower-frequency audio signal. Radio communication, precision rangefinders, and the Theremin all use this principle. You can learn more about heterodyning here.

Note: The idea of putting a small coil inside of a PVC pipe and tuning it by turning a brass nut is brilliant - I will definitely be using this in future projects.

For more information, check out the Circuits category page.

Did you successfully follow this guide?

This guide has been completed 2 times.

Comments Add Note Comments are onturn off

Guide Add Note

I completed this project in about 4 days. I made things harder for myself by not bothering with an etched circuitboard, just wired up on perfboard. Worked first time though!

A couple things I noticed: The schematic shows 10 capacitors the same value but the parts list and actual circuit show 5 of 0.1 uF and 5 of 0.01 uF.

My capacitors on the coils are very temperature sensitive. If i touch them with my finger the tone goes crazy. Not sure if this is because I fried them when soldering though.

I was going to use a friends oscilloscope but when I wired things up it just worked and I could fine tune with the brass locknut.

Great guide!

Robert Davies, · Reply

Yes the schematic does show them all the same - but the original design called for 2 types. The text and pictures are correct.

Steve Hobley,

Um, something I noticed trying to make this project. Why have you connected the wire that was supposed to go to the detector coil (black, black) onto the reference coil. And you've connected the wires that were supposed to go to the reference coil (yellow, yellow), onto the detector coil?

Aayush Pokhrel, · Reply

Yes that was a bit misleading - I updated the text to match the pictures - it actually doesn't matter which way round you put the coils, as the circuits are symmetrical.

Steve Hobley,

I have made everything and put everything together but there isn't anything coming out of the speakers. I used transistors BC 547, which had the orientation of E,B,C instead of C,B,E so to i just turned the flat side of the transistor to the opposite orientation than what it was on the instructions here. And I connected only a potentiometer to the speaker, so i didn't connect a headphone jack.

I have made the two coils roughly the same size as yours, so why do you thinks it's not working? Where do you think I have gone wrong?

Thanks in advance

Aayush Pokhrel, · Reply

It's not easy to determine what might be wrong - although the circuit is quite simple so there are really only a few things that could go wrong.

The first things to check are basic:

1. Make sure all your solder joints are good.

2. Make sure you haven't used a PNP where an NPN transistor is required.

Next you need to check the coils - make sure you have removed the enamel coating properly - test the resistance to make sure you have good connectivity.

The next tests involve an oscilloscope/frequency meter - measure across the coils and see if they are oscillating.

Steve Hobley, · Reply

I have discovered that the coils don't seem to be oscillating, I connected the two probes from the oscilloscope and connected power, when I do that it shows me a flat line across the screen. Not the type of waves as you see in your video.

Why do you think they aren't oscillating?

Appreciate all your help.

Aayush Pokhrel,

Just finished building the metal detector with a large group of preschool and kindergarten students. We've had a blast and are very excited to test it but we are only getting a constant tone(no clicking)? Adjusting volume and brass nut have no effect. Any suggestions? Could you post a pic of the detector coil? I'm a little unclear of how that is supposed to look and be positioned.

I do want to say thanks for the great guide. we have a had a blast from making the circuit board to wrapping and testing the coils. tons of fun!

ben chickadel, · Reply

Hi Ben,

If you are getting an audio tone, I would say it's working - since the oscillators themselves operate above human hearing.

So... somehow the brass nut is not shifting its oscillator since you can't get it to alter the pitch of the tone.

I would examine this part of the circuit and check for faults in the connections.

Steve Hobley,