|
arduino IDEArduino
|
|
|
Soldering Iron Kit |
DIY Sensitive STM32 Pulse Indiction Metal Detector (Arduino IDE)
This time I will show you how to make a sensitive Pulse Induction metal detector which is based on ARM STM32 microcontroller, which has significantly better features than Arduino and is also cheaper. It can detect metal coih at distance of 30cm, and big metal object at distance of more than 80 cm.
The positive thing is that you can install an Arduino bootloader on it, after that you can use it as a regular Arduino. This is my first project with this microcontroller and the experiences are very positive, and actually after flashing the bootloader there is no difference between STM and Arduino.

This time I will focus more on the project itself, and for how to install bootloader and sketch on STM32 you can find many tutorials and instructions, *** and I specifically used the tutorial from:
https://www.instructables.com/Using-a-STM32-Like-an-Arduino-Tutorial-STM32F103C8/
The project is taken from the cxem.net site, in that there is a small error in the given schematic, and instead of the B9 pin, B8 should be used. I have corrected that in the Schemаtic diagram given below. Also, the original project uses STM32F103C8, but the metal detector works quite regularly with STM32F103C6, which is a cheap clone version of the original.

So the device is relatively simple to make and consists of the following components:
- STM32F103C8T6 microcontroller
- TL072 Operational amplifier IC
- three Transistors BC847 or similar
- power mosfet IRF740
- 7805 Regulator
- Rotary encoder
- Buzzer
- WS2812 led strip with 8 leds
- resistors and capacitors

I made this device for testing purposes on a universal PCB, but If you want to make a custom PCB for this project, or for any other electronic project, PCBway (www.pcbway.com) is a great choice for you. PCBway is one of the most experienced PCB manufacturing company in China in field of PCB prototype and fabrication. They provide completed PCB assembly service with worldwide free shipping , and ISO9001 quality control system. Also, on their site there is an online gerber viewer where you can upload your gerber and drill files to render your board.

As a power source, I use three Li-Ion cells connected in series (about 12V) , and 7805 Regulator for powering Microcontroller.

The indication is made on a WS2812B module of eight LEDs and a buzzer. The control is carried out using the rotary encoder. When the power is turned on, the search coil must be moved away from metal objects, as the sensitivity is automatically adjusted.

Further, the sensitivity of the metal detector is adjusted manually by rotating the encoder knob. There is also a menu mode. The first press on the encoder knob enters the LED brightness adjustment mode. Second press, buzzer on/off mode. Second press, buzzer on/off mode. The fourth press, we enter the adjustment mode for large or small objects. The fifth press, exit the menu mode and auto-adjust the sensitivity.

The coil is wound with wire 0.7 mm, with a 20 cm diameter, and consist of 25 turns, but as you can see, during the testing I used a sensor consisting of two serially connected coils with a diameter of 12 and 23 cm, each containing 20 windings.

It is very important to mention that when the device is switched on, it is automatically calibrated, so there must not be any metal objects near the coil at that time. On the video you can see how the device works in real conditions in the air, and a brief description of the method of manufacturing the metal detector.
DIY Sensitive STM32 Pulse Indiction Metal Detector (Arduino IDE)
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(5)
-
Jakas98
Mar 25,2026
-
Engineer
Aug 18,2024
-
breeze
Nov 22,2023
-
Meows21
Jun 26,2023
-
Mr Eddie Bannister
May 29,2023
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
Arduino 3D Printed self Balancing Cube
Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Building a Mini Fostex Horn Speaker with a 2-Inch Full-Range Driver
A back-loaded horn speaker is a loudspeaker design that channels the rear sound wave of a driver th...
-
ESP32 Moon Lamp That Shows the Real Moon Phase on Crowpanel Round Dispaly
Recently on the Hackaday portal I came across a very interesting project called Moon Display by aut...
-
40-Year-Old DIY Power Amplifiers – Do They Still Work - 500W MOSFET & Transistor Amps
This time I want to describe my two DIY super powerful audio amplifiers that I made about 40 years ...
-
Wi-Fi HaLow Explained! Long-Range Camera Test up to 300m (ESP32 + ThinkNode G4 from ELECROW)
I recently needed to install a security camera at a relatively large distance from my home, more pre...
-
Simple Object Recognition with the UNIHIKER K10 – No TensorFlow, No Internet, No Cloud AI
Object recognition has become one of the most popular applications of artificial intelligence and em...
-
DIY PCL82 Tube Amplifier, Single-Ended Amp with Amazing Sound
The idea for this project came from a local electronics magazine called EMITER, issue 12/13 from 20...
-
Simple MCP2036 SDR Radio - The Most Unusual Software Defined Radio
SDR (Software Defined Radio) is a radio communication system where many of the key electronic compo...
-
Elecrow All-in-One Arduino Starter Kit Review - 20 Projects & 16 Modules
This time I will describe a simple and practical way to enter the world of microcontrollers, specif...
-
ESP32-C3 Color Detector with TCS34725, Real-Time RGB Detection & Web Interface
Color detection is a fundamental task in many embedded systems – from industrial sorting machines t...
-
DIY ESP32 Telegram Flood Protection System - Smart Home Automation
Recently I had an unpleasant experience in my home, specifically my ground floor was flooded as a r...
-
Real-Time Air Traffic Radar using ESP32 + ADS-B Data
ADS-B, which stands for Automatic Dependent Surveillance-Broadcast, is the modern standard for trac...
-
DIY Green Laser Night Sky Object Finder - Find Stars & Galaxies Instantly with great accuracy
As an amateur astronomer, especially at the beginning, the most difficult part of observing the nig...
-
DIY Avionics Simulator with ESP32 - Artificial Horizon, Compass & Altimeter
The inspiration for this project comes from classical aircraft cockpit instruments used for navigat...
-
DIY Miniature X-Ray Machine using a TV Vacuum Tube DY86
An X-ray machine (or radiograph) is a quick, painless medical test that produces images of the struc...
-
Simple SDR Receiver Using 2x NE612 - Dual Conversion, Superheterodyne (0.1–30 MHz)
SDR (Software Defined Radio) is a radio system in which most of the functions of a classic radio (f...
-
DIY Vintage TV VU Meter with peak indicators
Some time ago in one of my projects I presented you a way to turn a black and white old mini TV int...
-
DIY Tesla Coil based Plasma Rife Machine
In several of my previous videos, I presented you with different ways to make a Rife Machine, from ...
-
Programmable Mist Maker - XIAO / QT PY Extension
2056 2 2 -
RadioHAT - Raspberry Pi radio development platform
1752 0 4 -
QWIIC-VL53L4CD Time-of-Flight Distance Sensor Module
1968 0 2 -
-
-
ARPS-2 – Arduino-Compatible Robot Project Shield for Arduino UNO
3980 0 6 -
-
A Compact Charging Breakout Board For Waveshare ESP32-C3
4714 3 8 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
5520 2 2 -







