Wednesday, July 22, 2015

Metal Detector Circuit


An induction balance (IB) metal locator has a good depth of penetration and distinguishes well between ferrous and non-ferrous metals. It is also capable, to a large extent, of rejecting iron and also tin foil This is a boon for anyone who is searching for coins or noble metals. My aim with this design was to create a 'minimalist' device — one that would work well but without all the bells and whistles of the expensive, commercial designs. I found that it was possible, with just a handful of components, to design a high-quality metal locator.

Simple, but it works
An IB metal locator is usually far more complex than the design shown here. The reason for the simplicity is that I have dispensed with analogue circuitry, and instead used a digital transmitter and receiver. As the search coils pass over metal, only digital signals of a certain amplitude break through to a peak detector (IClb). Since these are in the audio range, they are immediately transferred to the piezo sounder or headphones. On testing the sensitivity of this design in air, with optimal tuning and using a 25mm-diameter brass coin, it gave a clear signal at 150mm, and a 'screaming' signal at 110mm. It was also able to detect a pin at 30mm.


Metal Detector Circuit Diagram


Note that these figures may not apply in the ground, where depth of penetration will depend largely on the mineralisation present.
In contrast, the locator is far more reluctant to pick up tin foil. A tin foil disk of the same size as the brass coin was only detected at half the distance in air. This rejection of tin foil is due in part to the metal locator's low frequency, which avoids what is called skin effect.
Besides this, if the two coils are positioned as described, ferrous metals (iron) are, to a very large extent, rejected — to such an extent, in fact, that a 25mm diameter brass coin weighing seven grams looks the same to the metal locator as a lump of iron weighing 20 times as much. Large nonferrous objects are detected at half a metre distance and more.
The locator's power consumption is conveniently low. It draws around 10mA, which means that it may be powered off a small 9V battery. If an alkaline battery is used, this will provide about 48 hours' continuous use. In my experience, the number of coins that are found on a beach in an hour or two should easily make up for the cost of batteries!
Finally, while the stability of the locator is not the best, it's by no means the worst either. Re-tuning is necessary from time to time, especially in the first few minutes of use. One soon becomes accustomed to giving the Fine Tune knob an occasional tweak — perhaps with every 40 or 50 sweeps of the search head.
Circuit description
The search head of a typical IB metal locator contains two coils: a transmitter (Tx) coil and receiver (Rx) coil.
In this case, the Tx coil is driven by a square wave oscillator, which sets up an alternating magnetic field in the coil. The Rx coil is then positioned in such a way that it partly overlaps the Tx coil. By adjusting the amount of overlap, a point can be found where the voltages in the Rx coil 'null' or cancel out, so that little or no electrical output is produced. A metal object which enters the field then causes an imbalance, resulting in a signal.
The transmitter (IC1a) is a standard 555 oscillator configuration, using one half of the ICM7556IPD dual low power CMOS version of this IC.
Do NOT use the  NE556N IC, by the way.
IC1a oscillates at about 700Hz, determined by R/C components around pins 1, 2 and 6. The 680R resistor limits the current passing through the Tx coil.

The receiver section (IC1b) is pre­ceded by a simple yet sensitive preamplifier stage, based on Q1, which amplifies the signal received from the Rx coil. This is fed directly to IC1b, which is used here as a high-perfor­mance sine-square converter. Its input at pins 8 and 12 is biased by the divider formed by the 10k resistor and pots VR1-VR3, so that only pulses of a certain amplitude break through to output pin 9.
There is a point at which, with careful adjustment, the signal is just breaking through in the form of a crackling sound. When the locator's output is adjusted to a fast crackle, the presence of metal turns this into a 'scream'. This is heard from the piezo sounder or through standard headphones. The 7556 IC allows up to 100mA of output current, therefore no further amplification is required.
Winding the coils
The one drawback to any IB metal locator design is its need for two coils, which must be very carefully and rigidly positioned in relation to one another. Sometimes there's no room even for a fraction-of-a-millimetre error in positioning these coils. While this particular design makes things easier than usual, the placement of the coils will still require some patience. On the other hand, the winding of the coils is relatively easy. Each coil also includes a electrostatic (Faraday) shield, which helps to minimise ground effect.
The winding of the (identical) coils is not critical and a little give and take is permissible.
I used 30SWG (0.315mm) enamelled copper wire, winding 70 turns on a circular former, 120mm in diameter.
I created the former with a sheet of stiff cardboard with 12 pins stuck through it at a suitable angle (the heads facing slightly outwards). The coil was wound clockwise around the pins, then temporarily held together with stubs of insulating tape passed under the coil and pressed together over the top. The coil may be jumble-wound (that is, you don't have to wind the turns on side-by-side in neat layers).
Once this has been done, the pins are removed, and a second coil is wound in the same way. In each case, mark the beginning and end wires. Each coil is then tightly bound by winding insulating tape around its entire circumference.
Now we add a Faraday shield to each coil. This is accomplished with some long, thin strips of aluminium foil. First scrape the enamel off each coil's end wire. Solder a 100mm length of bare wire to the winding wire, and twist this around the coil, over the insulating tape. This provides electrical contact for the Faraday shield.
Beginning at the base of this lead, the foil is wound around the circumference of the coil, so that no insulating tape is still visible under the foil but the foil should not complete a full 360°. Leave a small gap (say 10mm) so that the end of the foil does not meet the start after having gone most of the way around. Do this with both coils. Each coil is now again tightly bound with insulating tape around its entire circumference.
Attach each of the coils to its own length of quality single-core screened audio cable, with the Faraday shield in each case being soldered to the screen. Do not use stereo or twin-core microphone wire to run both leads together; this may cause interference between the coils.
Gently bend the completed coils until each one is reasonably flat and circular, with each end wire facing away from you, and to the right of the beginning wire. Now bend them further until they form lopsided ovals like capital Ds (see Fig. 2). The backs of the Ds overlap each other slightly in the centre of the search head. This is the critical part of the operation, which we shall complete after having constructed the circuit.
Last of all, wind strips of absorbent cloth around each coil (I used strips of thin dishwashing cloth such as Chux), using a little all-purpose glue to keep them in place. Later, when epoxy resin is poured over the coils, this cloth meshes the coils into the resin.
Construction
The PC board of the Matchless Metal Locator measures 48mm x 42mm, and is coded 04106021. There are not many components, so it should be easy to assemble the board using the PC board overlay diagram in Fig. 3.
With the exception of the CMOS IC, component values and types are not critical. The one critical component is the ICM7556IPD CMOS IC. I also tried the TS556CN IC in this position — it worked, but not as well.
Begin board assembly by soldering the nine terminal pins, the 14-pin dual-in-line socket for IC1 and the resistors. Continue with the capacitors, diodes and Q1.
Once soldering is complete, carefully check the board for any solder bridges, then use some short lengths of quality screened microphone wire to attach the piezo sounder, VR2 and VR3, with the screen (or braid) always being wired to 0V. If you wish, add a socket for headphones in parallel with or in place of the piezo sounder. Use insulated hookup wire to attach the battery and switch S1, keeping the leads short. Finally, attach the screened cables from the coils, with the screen again going to 0V, and insert IC1 in the DIL socket. Note that IC1 is static sensitive, and requires careful handling (discharge your body to earth before handling).
Fig. 5 shows the suggested hardware construction, using PVC piping and joints. Bend the base of the metal locator's shaft under very hot water to obtain the angle shown. Alternatively, a swivel joint may be made.
The entire electronics (apart from the search coils) is mounted in a metal case, ensuring that no part of the underside of the PC board is touching the case. The adjustment slot for VR1 should be accessible via a small hole in the case. Mount VR2 and VR3 where quick and easy adjustment is possible.
A metal case is essential, otherwise the circuit is affected by electrostatic coupling (or capacitive effects). The metal case is connected to 0V, through the tab on the copper side of the PC board.
I was unable to obtain a purpose-made metal case in my city (Cape Town), but found that good quality metal sweet tins were readily available, so I used one of these. They are also considerably cheaper than similarly sized electronics enclosures and of course you get the sweets as well!
Setting the coils
A completed PC board is needed before we can 'pot' the coils. These are potted with epoxy resin in a hard plastic dinner plate, the sort you'd find in a picnic set. Any plastic plate of suitable size will do, on condition that it is rigid. (A tip: don't pinch them from the family picnic set....)

First place the coils on top of one another — ensuring that they are correctly orientated, with each end wire facing away from you, and to the right of the beginning wire. Adjust both VR2 and VR3 to their midpoint. Adjust VR1 to about 90kQ. Then attach a 9V battery and switch on. The circuit will most likely be screaming; that is, beeping loudly and continuously. Now slowly move the coils apart. When they are somewhere past the halfway point, the headphones will fall silent. This is where the voltages in the Rx coil 'null'. Continue to move the coils apart. At a precise point just before the coils no longer overlap at all — the headphones will begin to scream again (there may or may not be a low-level beep just before this).
It is at this precise point, and not a fraction of a millimetre either way, that the coils need to be set.
Take an indelible marker pen and mark out holes in the lower plate around both coils. These holes are used to pass cable ties through, to hold the coils tightly to the plate. Also use a cable tie to hold the audio cables to the plate. Use some Blu-tak to tightly seal the holes underneath the plate before pouring in the resin — epoxy resin can be very 'runny' and sticks faster than many glues.
Also at this point carefully bend the coils at the centre of the plate until you reach the exact balance at which there is neither silence nor screaming in the piezo sounder/headphones, but just a crackle. A little drift should not matter at this point.
Now you are ready to mix and pour the resin. Use a modest amount of catalyst, so that there will be not too much heat and shrinkage in the resin. Pour the resin over the cloth which surrounds the coils, so as to soak it, and keep on pouring at least until the entire bottom of the plate is covered with resin.
The circuit may no longer function correctly at this point until the resin has hardened, so make no more adjustments at this stage, but switch the circuit off and leave it for 24 hours or so.
I potted two sets of coils (that is, two complete search heads). The first worked perfectly, precisely as I had set it in the plate. The second contracted slightly as the resin set, so that no settings of VR2 or VR3 would produce a tone in the headphones. However, this is where the design of the Matchless Metal Locator shows its flexibility. By turning VR1 clockwise, the circuit was again functioning normally when VR2 and VR3 were set to their midpoint.
How to use it
Keep the search head away from all metal — and "noisy" computer equipment — and switch on. Adjust potentiometers VR2 (Tune) and VR3
(Fine Tune) to their mid-points. Then adjust VR1 with a screwdriver or plastic alignment tool until the metal locator is just at the point where a crackle is heard, between silence and a scream (or between a low-level hum and a scream). Use the tune and fine-tune knobs for any further tuning.
A fast crackling sound produces the best results. Move a coin over the search head and the piezo sounder should scream.
In actual use, the adjustment of the metal locator will be affected by the mineralisation of the ground you are searching, as well as temperature and voltage variations. So as mentioned earlier, readjustments to VR3 and VR2 are inevitable from time to time.
That's really all there is to it.

No comments:

Post a Comment