Skip to the content
PCBKitNew board
4 layers50 × 86 mmMetal detector prototype, the printed circuit board in 3D

Metal detector prototype

tor1kk/rockmd7

STM32 Based VLF Metal Detector Experiment

Size
50 × 86 mm
Copper layers
4
Thickness
1.6 mm
Parts
82
Nets
147
Pads
326
Tracks, vias
620, 132
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
5 Aug 2024
Updated
7 Aug 2024

Overview

Metal detector prototype is an open-source printed circuit board by tor1kk, from the tor1kk/rockmd repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 50 × 86 mm with 82 parts on 147 nets, routed with 620 tracks and 132 vias.

It is built around the MMBD7000 and AO3402. Its parts include 30 capacitors, 10 resistors, 7 connectors, 7 inductors and 3 ICs. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

STM32 Based VLF Metal Detector Experiment(Ongoing)

Introduction

The goal of this project is to develop a custom board with an STM32 microcontroller and utilize an existing commercial search coil. The working principle is as follows: a sinusoidal signal of a specific frequency is generated on the transmitting coil. The search coil is balanced so that in the absence of metal under it, the amplitude of the sinusoid on the receiving coil is minimal. If metal appears under the coil, the amplitude of the sinusoid on the receiving coil increases. The closer the metal or the larger the metal, the greater the amplitude. Additionally, it is possible to differentiate between metals by calculating the phase shift of the sinusoid on the receiving coil relative to the transmitting coil. This requires simultaneous reading of signals from both the transmitting and receiving coils, achieved using ADC dual regular simultaneous mode.

The information about the phase shift and the power of the received signal is displayed on the screen. In this project, LVGL was used to create the graphical interface.

Project Overview

Goals

The primary objective is to create a functioning metal detector using an STM32 microcontroller, with the capability to display signal data on a screen using LVGL.

Challenges

During the project, significant difficulties were encountered. When connecting the coil, the transmitted signal became distorted. This is likely due to an improperly designed matching circuit, although the exact cause was not determined. Any suggestions or ideas are welcome.

Hardware

  • Microcontroller: STM32H723ZGT6 was used to ensure sufficient processing power for rapid calculations. ADC1 and ADC2 were used in dual regular simultaneous mode to acquire signals from the coils. DAC was used to generate the signal for the coil and another DAC channel for sound generation.
  • Display: A 2.8 inch display with an ILI9341 controller with a resistive touch screen on XPT2046 was used.
  • Schematic: The schematic can be viewed in the Hardware folder in PDF format. View Schematic

Software

  • Code: The code related to this project is located in the Program folder.
  • Documentation: The code is commented, and Doxygen documentation was generated. View Doxygen Documentation

Test Videos

Working Test

A video demonstration of the working test can be found below: View Test Video

Signal Distortion

A video showing the signal distortion when the coil is connected can be found below:View Signal Distortion Video

Images

PCB Photo

PCB Photo

Conclusion

This project has been a valuable learning experience, despite the challenges faced. Further work is required to resolve the signal distortion issue and improve the overall performance of the metal detector.

Parts

82
QtyValueFootprintReferences
14100nFCapacitor_SMD:C_0603_1608MetricC1, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16
13TestPointTestPoint:TestPoint_Loop_D1.80mm_Drill1.0mm_BeadedTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9, TP10, TP11, TP12, TP13
81uFCapacitor_SMD:C_0805_2012MetricC2, C18, C19, C22, C23, C24, C25, C28
715uHInductor_SMD:L_0603_1608MetricL1, L2, L3, L4, L5, L6, L7
4100RResistor_SMD:R_0603_1608MetricR2, R3, R6, R7
412pFCapacitor_SMD:C_0603_1608MetricC20, C21, C26, C27
4MountingHoleMountingHole:MountingHole_2.7mm_M2.5_ISO7380H1, H2, H3, H4
347KResistor_SMD:R_0603_1608MetricR4, R8, R10
3MMBD7000Package_TO_SOT_SMD:SOT-23D1, D2, D3
210KResistor_SMD:R_0603_1608MetricR1, R5
22.2uFCapacitor_SMD:C_0805_2012MetricC29, C30
12.2RResistor_SMD:R_0603_1608MetricR9
132.768kHzCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY2
14.7uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC3
147nFCapacitor_SMD:C_0603_1608MetricC17
1600R_100MHzResistor_SMD:R_0603_1608MetricFB1
18002lib:SOIC8U2
1AO3402Package_TO_SOT_SMD:SOT-23Q1
1Conn_01x02_SocketConnector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_HorizontalJ4
1Conn_01x02_SocketConnector_JST:JST_XH_S2B-XH-A-1_1x02_P2.50mm_HorizontalJ2
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ7
1Conn_01x04_SocketConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ5
1Conn_01x06_SocketConnector_JST:JST_XH_S6B-XH-A_1x06_P2.50mm_HorizontalJ3
1Conn_01x14_SocketConnector_PinSocket_2.54mm:PinSocket_1x14_P2.54mm_VerticalJ1
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1MCP1700x-330xxTTPackage_TO_SOT_SMD:SOT-23U1
1STM32H723ZGTxPackage_QFP:LQFP-144_20x20mm_P0.5mmU3
1SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1

Questions

How big is the Metal detector prototype PCB?

It measures 50 × 86 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Metal detector prototype use?

82 parts, built around the MMBD7000 and AO3402. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Metal detector prototype KiCad files?

From the tor1kk/rockmd repository on GitHub, at the commit this page was made from: the board is hardware/metal_detector_prototype.kicad_pcb and its schematic hardware/metal_detector_prototype.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Metal detector prototype design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers170 × 55 mmPTuP 2026 displayLCD 8Zonas 4Salidas, the printed circuit board in 3D

    PTuP 2026 displayLCD 8Zonas 4Salidas

    edgranzella/PTuP_2026_displayLCD_8Zonas_4Salidas

    Este repositorio contiene el diseño electrónico y ruteado de PCB avanzado desarrollado en KiCad para el módulo PTuP 2026.

    100 parts
  • 2 layers65 × 56 mmBigp4ppa, the printed circuit board in 3D

    Bigp4ppa

    gcormier/bigp4ppa

    A Raspberry Pi 5-channel PWM, PT100 and ADXL345 board.

    28 parts28
  • 4 layers40 × 76 mmGuac, the printed circuit board in 3D

    Guac

    taciturnaxolotl/holy-guacamole

    meltybrain avacado 🥑

    66 parts13
  • 2 layersOpenMQTTGatewayPCB, the printed circuit board in 3D

    OpenMQTTGatewayPCB

    ebrithiljonas/OMG_PCB

    All in One PCB for the OpenMQTTGateway Project

    36 parts7GPL-3.0
  • 4 layers75 × 136 mmMynd Main, the printed circuit board in 3D

    Mynd Main

    Prototype-Fund-Hardware/MYND-Hardware

    Inofficial hardware repository for the Teufel MYND loudspeaker: https://teufel.de/mynd-107002004

    561 parts3
  • 4 layers48 × 50 mmTheftShield Tracker, the printed circuit board in 3D

    TheftShield Tracker

    tor1kk/TS_Tracker

    GPS tracker with SMS communication

    73 parts3GPL-3.0
  • 2 layers86 × 50 mmCYD NMEA, the printed circuit board in 3D

    CYD NMEA

    Mate8/NMEA-Tester

    Nmea0183 Sniffer basen on CYD PCB

    76 parts2
  • 2 layers80 × 150 mmStepper mouse-2025b, the printed circuit board in 3D

    Stepper mouse-2025b

    daisuke-ym/micro-mouse

    [^1]: Unistep2 ライブラリを用いてほぼ最高速度で回しても約15rpmなので、 1区画進むのに約4秒かかります。 大会では16x16区画、256区画あるので、全探索するのに15分以上かかるため、 偶然を除いて競技時間10分以内に完走することは不可能です。

    108 parts