Shop OBEX P1 Docs P2 Docs Learn Events
Metal detector uses Propeller, active LC generator, high-resolution frequency c — Parallax Forums

Metal detector uses Propeller, active LC generator, high-resolution frequency c

Christof Eb.Christof Eb. Posts: 1,163
edited 2011-04-02 05:14 in Robotics
Hi,

ist this a "completed project" ? At least to some extend for me.... Perhaps this is interesting for others.

I was amazed of the simplicity of the metal detector of the Kit Lab Series.
See: http://forums.parallax.com/forums/default.aspx?f=25&m=202898&g=203382#m203382

Beau, if you read this post, I thought counters and frequency measurement is a specific strength of the prop. ADC is limited. Therefore I decided to use an active generator and no filters.

The statistical method "Doppel- Sigma- Detector" is used to find small deviations in data with noise using dynamic limits. The link describes the method to find pollution in water. I thought, that this might be interesting for other sensor data too?
http://www.umweltbundesamt.de/anlagen/EASE/german/auftest.htm


Frequency input at PIN 1 will be measuered.
There is an active frequency generator (18kHz) connected, which uses an LC-circuit, that will react to metals
neareby. (Oszill2.doc) A low frequency (<=18kHz) is needed to find the difference between ferrous and nonferrous metals.

The frequency counter actually gives the time in clock ticks for a given number (MCYCLES) of cycles.
This gives fast measurement with high resolution.

A statistics routine will calculate average and standard- deviation of the last NSAMPLES samples.

The beeper will sound after a significancy- test "Doppelsigma": the value has to be
consecutively twice out of limits, which are calculated dynamicly using the average of NSAMPLES samples plus/minus
a factor SFAK multiplied with the standard- deviation of the samples.

The LCD-display shows:
1st row: TITEL
2nd row: Average tics, actual frequency (float)
3rd row: Difference of the actual tics to the average; Standard- Deviation; something like a Log-value of the dif
4th: row: log-bargraph

Negative values of the difference show nonferrous, positive show steel

In Oszill2.doc there is the circuit of the generator. The generator reacts to small temperature differences.

The sensivity is now at least:
110mm for a bolt M8*40 mm
95mm for a coin 2 Euro
For this you need a noise level at a standard deviation of tics for 5000 cycles = 45/2240000 = 0.0002% (!) The frequency-shift caused by the metall is really very small!

At last some questions:
* Does anyone know a method to improve the temperature stability of the LC frequency-generator?
* Is anyone working on similar projects?

Have fun and find all that gold! cool.gif (In this case, this icon means: don't tell the others how and where to find the g...)
Christof

Comments

Sign In or Register to comment.