Skip to content

Instantly share code, notes, and snippets.

@gbili
Created August 13, 2023 17:25
Show Gist options
  • Save gbili/8003da8677fa8f07a559da7a9f0259b2 to your computer and use it in GitHub Desktop.
Save gbili/8003da8677fa8f07a559da7a9f0259b2 to your computer and use it in GitHub Desktop.
Pulse Induction (PI) metal detector

Creating a Pulse Induction (PI) metal detector is an exciting project that combines electronics and programming. Here's a step-by-step guide to help you build one:

1. Understand the Principle:

Pulse Induction metal detectors work by sending a short pulse of current through a coil of wire. After the pulse ends, the coil "listens" for the echo of the pulse. If there's a metal object nearby, it will induce a current in the object, which will then produce its own magnetic field. When this field collapses, it induces a small current in the coil, which can be detected.

2. Gather the Materials:

  • A coil of wire (for the search coil)
  • An oscillator (to create the pulse)
  • A microcontroller (like Arduino)
  • A speaker or headphones (to hear the signal)
  • Amplifier circuit (to amplify the weak signals)
  • Power source (battery)
  • Waterproof casing (since you're using it in a lake)

3. Building the Circuit:

  1. Search Coil: Wind the coil of wire to create the search coil. The size and number of turns will affect the sensitivity and depth range.

  2. Oscillator Circuit: This will generate the pulse. You can use a simple 555 timer circuit for this.

  3. Amplifier Circuit: After the pulse, the signal received by the coil will be weak. Use an operational amplifier to amplify this signal.

  4. Microcontroller: Use an Arduino or any other microcontroller to control the pulse generation, listen for the return signal, and process it.

  5. Output: Connect a speaker or headphones to the microcontroller. When metal is detected, it can produce a tone.

4. Programming:

  1. Pulse Generation: Program the microcontroller to send a short pulse to the oscillator circuit.

  2. Listening Phase: After sending the pulse, switch the microcontroller to listen mode. Measure the voltage across the coil.

  3. Signal Processing: If there's a sudden change in the voltage (indicating a metal object), produce a tone on the speaker.

  4. Tuning: You might need to adjust the pulse duration, listening time, and threshold values to optimize the detection.

5. Testing:

Before taking it to the lake, test your metal detector on various metals to ensure it's working correctly. Adjust the sensitivity if necessary.

6. Waterproofing:

Since you'll be using the metal detector in a lake, ensure that all electronic components are well protected from water. Use a waterproof casing and ensure that the search coil is also waterproof.

7. Using the Metal Detector:

Move the search coil slowly over the ground of the lake. Listen for the tone, which indicates the presence of metal.

Tips:

  • The larger the search coil, the deeper it can detect, but it might lose sensitivity for smaller objects.
  • The frequency of the pulse can affect the depth and sensitivity. Experiment with different frequencies.
  • Ensure that the battery and other components are safely housed to avoid any risk in the water.

Remember, building a metal detector requires a lot of tuning and experimentation. It might not work perfectly on the first try, but with persistence and adjustments, you can make it effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment