Close

Modelling the Flip Coil

A project log for Pulse Induction Metal Detector

My take on an Arduino based PIMD

agpcooperagp.cooper 05/07/2021 at 06:201 Comment

Modelling the Flip Coil

Here is a schematic based on Mirko Pavleski's Pulse Induction Metal Detector (PIMD) (https://hackaday.io/project/176291-diy-simple-sensitive-arduino-metal-detector):

(Note: I think the 62k/47k output resistor divider should be moved from the inverter input of the op-amp to the output of the op-amp?).

Mirko's design really appeals to me because of its simplicity.

The main problem I see is that power supply is not isolated from the inductive voltage spikes from the coil. It would work with a low internal resistance battery but an electronic power supply could be a problem. There is a risk that the inductive voltage spike could be upset and/or damage the op-amp and/or the Nano.

Here is Lammert Bies' PIMD (https://www.lammertbies.nl/electronics/pi-metal-detector):

Here he isolated the coil from the battery using the 10R resistor and the 4m7 F capacitor. He also adds a positive power supply for the op-amp (otherwise the op-amp would be operating near its power supply voltage should DC signal processing be considered).


My favourite however, is the "Flip Coil" by JorBi (https://www.instructables.com/Arduino-Based-Pulse-Induction-Detector/):

Here he uses R1 to ground the negative inductive voltage side of the coil during the receive period. He also isolates the coil by switching off both MOSFETs during the receive period. This is very clever!

He also uses the ATMega's analog comparator to time the decay of the signal to reference voltage (40mV). Rather than the analog to digital converter (ADC). Again, a very clever solution.

Some notes/faults with his design are:

MOSFET Types

As I was researching this project it took a while to realize that there are "normal" MOSFETs (i.e. IRF540) with a gate threshold between 2 and 4 volts (read 4 volts) and "logic" MOSFETs (i.e. IRL540) with a gate threshold between 1 and 2 volts (read 2 volts).

In my case I used an IRF540 and an IRF740 until I realized benefit of using the IRLxxx series for this application. Unfortunately I had already sent of a PCB for manufacture.

My Schematic

My schematic does not reflect the use of the IRLxxx series of MOSFETs:

Some novel features are:

    // Check for power down and restart loop();
    if (analogRead(A6)<=511) {
      while (analogRead(A6)<=511);      // Wait for buton release
      delay(20);                                     // Wait for debounce
      Start=false;                                   // Set flag off
    }

My PCB Layout

Here is the board I sent off to be made:


Modelling the Schematic
I used TINA to model the schematic:

The spice models have limitations, one being the MOSFET breakdown voltage, thus the two series zeners across the IRF740.

The schematic has been optimized to determine the resistor values for critical damping of the signal.

Checking the voltage drop over the power MOSFETs indicated that the IRF540 needs to be upgraded to an IRL540 type. The voltage drop across the IRF540 was about 4 volts, while the voltage drop across the IRL540 would be about 2 volts.

Here is the modelled receive signal (coil voltage decay only):

The graph shows a critically damped signal (blue) and the 40mv threshold (red). The initial jump up just after 180.500 ms is the coil pulse being switched off and limited by the protection diodes. The modelling suggest that the coil voltage decay will be practically zero after 14 us.

The Target Signal

What does the target signal look like? This image is from Jozef Froniewski of Silego Technology

(https://www.dialog-semiconductor.com/sites/default/files/an-1080_greenpak4_pulse_induction_metal_detector-security_wand.zip):

Note that the "no metal" curve maps reasonably with my modelled curve.

Ground Effect

Although Corbyn in his March 1980 Wireless World paper states he had not found any gold with his PIMD, he did find several nuggets up to 1 oz in size by 1981.

His design looked at removing the "ground effect" of the iron rich lateritic soils of the Eastern Goldfields of Western Australia. He modelled the ground response as:

    g(t) = A*((1-P)*exp(-t/T1)+P*exp(-t/T2)) 

where:

    A = signal amplitude

    P = 0.08 to 0.3

    T1 = 0.75us

    T2 = 550us to 800us

Here is a graph using mid values for the parameters:

Clearly, in Eastern Goldfields the ground effect will swamp everything other than a "large" target.

In those days I did look at using an i8085 as a base for a ground effect discriminating PIMD based on Corbyn's paper, but technology, and my resources, knowledge and time were not adequate for the task.

To take on ground effect discrimination would require using the ADC, which is not the focus of this project.

AlanX

Discussions

David Forrest wrote 01/15/2022 at 01:26 point

One thing I found very interesting when modeling the coils it to also model the target -- If you add a matching coil and coil resistance (a floating loop), and link them (like with a Spice ".K L1 L2 1" transformer constant,) you can easily vary the target coupling (or target material by varying the coil inductance and resistance) and see how the circuit responds.

Prototyping-wise, if you make an identical coil and short it through a pot, you can experiment with how well the impedance of a target matches the detecting coil.

  Are you sure? yes | no