Metal detection using an inductor instead of a clock crystal.

This project from a few years back is an interesting take on a metal detector. Instead of building a detection circuit, [Bruno Gavand] replaced the external clock crystal with an inductor. Here you can see the inductor coil next to the PIC 12F683. You can see two components jumping from one breadboard to the other. These are smoothing capacitors on the inductor lines.

The watchdog timer for the chip is run by the internal RC oscillator. When the external crystal receives a pulse due to metal inducing a current in the coil, the value of the watchdog timer is compared to it. This data is filtered and if the proper parameters are present the green LED blinks. This is bicolor LED. If the inductor circuit is functioning properly it will blink red at power up. [Bruno] says that results will vary based on that inductor so you may need to try a few to get the calibration light to blink.

We’re thinking this would make a simple stud finder (by detecting where the nails/screws are in the wall). Check out the demo after the break, then let us know what you would use this for by leaving a comment.

http://www.youtube.com/watch?v=usPjDbKQkRw

[Thanks Abend]

Comments

  1. truskava says:

    oh man thats old ;D

  2. Addidis says:

    The stop lights with sensors use these too. Usually the give away is a box shape cut into the pavement. You can usually give your bike a bit of a boost with those sensors with a rare earth magnet on the bottom frame of your bike.

  3. Tom says:

    I think the presence of the metal changes the inductance of the coil slightly which in turn changes the frequency at which it oscillates.

    It has never occured to me that you could use anything other than a crystal or a resonator for the clock of a micro, has anyone got any more info on how the oscillator in a micro works?

    • Camerin says:

      you could use any number of things as a clock… if you were adventurous you could use a push button, each time you push the button it would cycle the clock. really anything that toggles high low could be used. i am really drawing a blank for what you would want to do, but 555 would work, you could used dam near anything.

    • Camerin says:

      I wonder if you could reliably remove the PIC and use a 567 tone detector. I may have to do some playing. But I think the PIC is just over kill Could probably drop the price in half.

      • fightcube says:

        They are about the same price at digikey for soic-8 in single quantities… I’m sure you could skew this answer slightly if you played some games with the numbers/packages/websites…

        Just saying… sometimes there isn’t a BETTER solution, just ANOTHER solution 😉 In which case, sometimes the FIRST solution is the BETTER one.

  4. bio says:

    and im suddenly in the 80s O.o

  5. AussieTech says:

    a) the link is broken.

    b) I think you will find that the “smoothing capacitors” are actually part of the resonant LC circuit (in LP, XT, or HS modes). See Microchip PIC12F683-E/MD datasheet and Microchip application notes AN826, AN849, AN943, AN949.

    RTFM! GIYF! Get curious!

  6. spiralbrain says:

    Bruno is an Ace!

    Here is the link: http://www.micro-examples.com/articles/index.php/PicoDetector
    He also has a wonderful PWM calculator tool that I use all the time: http://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator.html
    I also made a small metal detector using a PIC but was much more complicated http://www.youtube.com/watch?v=1zyuHqi_lxY

  7. barryronaldo says:

    I’ve done the AM radio/ CD case metal detector and built a BFO detector a few years back that was of poorer quality than the AM radio one lol. This looks interesting, but makes my brain curl into a question mark.
    @spiralbrain thanks for the links 🙂

Speak Your Mind

*

Related Hacks in Microcontrollers

  • Morse Code interpreter
  • One wire reads the keypad from the APRS radio mic
  • Level conversion with plenty of options
  • Music visualization generator with a Propeller
  • Metal detection using an inductor instead of a clock crystal.