Homemade Metal Detector Kit


Avoid Disaster When Drilling at Home


By Ben Godfrey

Description: Velleman Metal Detector Kit
Assembly Time: 1 to 2 hours
Skill Level: Intermediate


A simple home project can turn catastrophic quickly if you come up against an electric cable, gas and water pipes, or your central heating system. With a handy metal detector you can check beforehand whether there are metal objects in a wall, ceiling or floor. An LED indicates if a metal object is in the vicinity and keeps your home projects simple and safe.

Step 1: Wrapping the Coils

Metal detector
When wrapping the coils, do not worry about looks. There is not enough room on the core to keep the coils from overlapping. However, make sure you wrap each one in the same direction. When you solder the coil onto the PC board, make sure to strip the insulation off the ends of the coil. Either a razor blade or a fine-toothed file works great for this.

Separate the coilsThe Primary and Secondary Coils
Silicon diode1N4148 Silicon Diode


Step 2: Inserting the Diodes

For this kit, there are two types of diodes: silicon and Zener. Because they look the same, read the outer casing to be sure that you are putting in the right diode. The silicon diode has 4148 on it, while the Zener's casing reads 3V9. I mistakenly exchanged the diodes and it took a lot of time to figure out I had put them in the wrong holes. Also, make sure to match up the band on the diode to the band on the silkscreen.

If you suspect a misplaced or bad diode, measure the forward voltage drop across them, which should be about 0.6V for each diode. The reverse breakdown voltage for the Zener diode should be about 3.9V.

Step 3: Adding Capacitors, Transistors and LEDs


CapacitorsFrom left to right the capacitors values are:
1.2nF, 3.3nF, and 0.047µF labeled 122, 332 and 473, respectively.
(Either 122 or 332 may be used for C1)
BC547B transistorBC547B Transistor
LEDLED




It can be difficult to tell which capacitor is which. Make sure to check the number on the capacitor with the number in the instruction manual.

As with the diodes, line up the transistors with the pictures on the silkscreen.

Be sure to match the flat side of the LED with the flat side in the picture on the silkscreen. Since it can be hard to see the flat side, the short lead on the LED indicates the flat side. If the LED is not turning on, measure the voltage drop across the LED. If it is 0 volts, you probably have put the LED in the wrong way.

Step 4: Enclosing Your Detector

The Velleman Metal Detector Kit needs a case, especially if you plan to move it around. I chose a Serpac enclosure because of its included battery bay, which keeps the battery as far away from the coil as possible. Below details the assembling of this box.

Drilling the PC Board

There are no mounting holes in the PCB, so I found the spot with the most space, made a hole and held the board to a bright light to see the traces. This ensures that you are not drilling through any of them.

The kit provides a small tube that fits into the large potentiometer for easy calibration. Enclosing the kit means you'll have to drill to accommodate that tube but lining up holes on both sides of the enclosure can be tricky. To make sure my drilled holes lined up properly, I put four nails through the screw holes on one half of the enclosure (see picture). Then I dusted the top of the calibration tube with chalk dust, positioned the second half of the enclosure onto the nails and pushed. The result was a chalk mark showing where the tube was located and therefore where to drill. I used a 1/4" drill bit for this hole and the tube fits quite snugly.

Mounting Hole in the PCBMounting Hole in the PCB
Nail-support systemNail-Support System


Power Button

Since the power button is rectangular, I used a 3/8" drill-bit and a small file to cut the hole. It is not perfectly square, but you can comfortably push the power button down.

To make the hole for the light from the LED to escape, I put a small piece of a drinking straw on the LED and used the aforementioned nail trick. Another way to have done this would have been to extend the LED so it sticks through the hole.

Square hole for the power buttonSquare Hole for the Power Button
Making the hole for the LEDMaking the Hole for the LED

Troubleshooting



One of the problems I had was getting the LED to turn off. I discovered that I had switched the diodes. This troubleshooting process can be made easier if you have some understanding of how the circuit works.

C1 and the 120-turn primary create a 200 kHz oscillator inducing varying voltages on T2 (like in the oscillator pictured to the right). At the positive peaks of the oscillation, T2 is turned on causing the voltage on the collector of T2 to drop. These negative excursions also bias the base of T3, which causes T3, and therefore the LED, to turn off.

The reason why the LED does not turn on and off is that C2 and R5 create an integrator that integrates all the pulses making it look like a DC signal. When the coil is brought near a piece of metal, the oscillation frequency drops decreasing the number of negative "blips" raising the voltage on T3, turning it on (and the LED).
Output of the oscillatorOutput of the oscillator: X-axis: 10 Ás per division; Y-axis: 0.5 volts per division.


Circuit DiagramCircuit Diagram


Final Notes

Sometimes the notation is a bit difficult to understand. If you see a value like 2K7, the first number is the largest power of 10's spot. The second number is what spot that actually is (in this case 'K' stands for thousand). The second number is the next power of 10. So, in this case 2K7 stands for 2,700. Also, on the Zener diode 3V9 stands for 3.9 volts.

I recommend a power source of 9V battery.

Finally, remember to have fun!
The metal detector in actionThe Metal Detector in Action


Ben Godfrey is an electrical engineering student at the University of California, Davis. Ben has written iPhone applications and is a ham radio operator.