Arduino Metal Detector
Metal Detectors are used in various places to detect metals that are dangerous, such as airports, shopping malls, cinemas, etc. We have previously made a very simple Metal detector withou…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Arduino Metal Detector is a arduino project. Metal Detectors are used in various places to detect metals that are dangerous, such as airports, shopping malls, cinemas, etc. We have previously made a very simple Metal detector withou…
- Source pages
- 874-879
- Named parts
- 10
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
- Computer with a data-capable USB cable
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- Keep liquids, loose metal, and uninsulated wires away from the bench.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications

Arduino (any)
A programmable controller that reads inputs, makes decisions, and drives the project's outputs.
What it does hereIt is the control centre and must use the documented board, pin map, supply, and logic level.
Buy / compare this part ↗Advantages
- Reprogrammable and reusable
- Large learning ecosystem
- Complex behaviour remains changeable
Limitations
- GPIO voltage and current are limited
- Some pins affect boot or communication
- Loads normally need a driver
Handling
- Disconnect power before rewiring
- Avoid static discharge
- Never power motors, relays, or pumps directly from GPIO
Specifications to verify
- Use the exact model, value, package, and rating listed for Arduino (any); similar-looking parts are not always interchangeable.
- Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
What's this?Image, role, pros, cons, handling & specifications

Coil
A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.
What it does hereIts exact value and tolerance determine how the surrounding stage behaves.
Buy / compare this part ↗Advantages
- Simple and dependable
- Low cost
- Easy to measure before installation
Limitations
- A wrong value can stop or damage the circuit
- Ratings must not be exceeded
- Polarized parts require correct orientation
Handling
- Measure unclear values
- Observe capacitor polarity
- Avoid overheating leads while soldering
Specifications to verify
- Use the exact model, value, package, and rating listed for Coil; similar-looking parts are not always interchangeable.
- Confirm value, tolerance, power or voltage rating, polarity, and package size.
What's this?Image, role, pros, cons, handling & specifications

nF capacitor
A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.
What it does hereIts exact value and tolerance determine how the surrounding stage behaves.
Buy / compare this part ↗Advantages
- Simple and dependable
- Low cost
- Easy to measure before installation
Limitations
- A wrong value can stop or damage the circuit
- Ratings must not be exceeded
- Polarized parts require correct orientation
Handling
- Measure unclear values
- Observe capacitor polarity
- Avoid overheating leads while soldering
Specifications to verify
- Use the exact model, value, package, and rating listed for nF capacitor; similar-looking parts are not always interchangeable.
- Confirm value, tolerance, power or voltage rating, polarity, and package size.
What's this?Image, role, pros, cons, handling & specifications

Buzzer
An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.
What it does hereIt presents the circuit result or acts on the physical world.
Buy / compare this part ↗Advantages
- Makes system state visible
- Can be tested separately
- Supports clear troubleshooting
Limitations
- Loads may exceed controller current
- Polarity or driver direction can matter
- Inductive loads create voltage spikes
Handling
- Use the documented driver stage
- Check polarity and load current
- Add flyback protection for inductive loads
Specifications to verify
- Use the exact model, value, package, and rating listed for Buzzer; similar-looking parts are not always interchangeable.
- Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
What's this?Image, role, pros, cons, handling & specifications
PASSIVE LEARNING VIEWohm resistor
A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.
What it does hereIts exact value and tolerance determine how the surrounding stage behaves.
Buy / compare this part ↗Advantages
- Simple and dependable
- Low cost
- Easy to measure before installation
Limitations
- A wrong value can stop or damage the circuit
- Ratings must not be exceeded
- Polarized parts require correct orientation
Handling
- Measure unclear values
- Observe capacitor polarity
- Avoid overheating leads while soldering
Specifications to verify
- Use the exact model, value, package, and rating listed for ohm resistor; similar-looking parts are not always interchangeable.
- Confirm value, tolerance, power or voltage rating, polarity, and package size.
What's this?Image, role, pros, cons, handling & specifications

N4148 diode
A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.
What it does hereIts exact value and tolerance determine how the surrounding stage behaves.
Buy / compare this part ↗Advantages
- Simple and dependable
- Low cost
- Easy to measure before installation
Limitations
- A wrong value can stop or damage the circuit
- Ratings must not be exceeded
- Polarized parts require correct orientation
Handling
- Measure unclear values
- Observe capacitor polarity
- Avoid overheating leads while soldering
Specifications to verify
- Use the exact model, value, package, and rating listed for N4148 diode; similar-looking parts are not always interchangeable.
- Confirm value, tolerance, power or voltage rating, polarity, and package size.
What's this?Image, role, pros, cons, handling & specifications

Breadboard or PCB
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for Breadboard or PCB; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

Connecting jumper wire
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for Connecting jumper wire; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

v Battery
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for v Battery; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
What's this?Image, role, pros, cons, handling & specifications
PASSIVE LEARNING VIEW1N4148 - diode
A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.
What it does hereIts exact value and tolerance determine how the surrounding stage behaves.
Buy / compare this part ↗Advantages
- Simple and dependable
- Low cost
- Easy to measure before installation
Limitations
- A wrong value can stop or damage the circuit
- Ratings must not be exceeded
- Polarized parts require correct orientation
Handling
- Measure unclear values
- Observe capacitor polarity
- Avoid overheating leads while soldering
Specifications to verify
- Use the exact model, value, package, and rating listed for 1N4148 - diode; similar-looking parts are not always interchangeable.
- Confirm value, tolerance, power or voltage rating, polarity, and package size.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Arduino Metal Detector: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 3 visuals



Confirm the hardware-only control path.
This project does not include firmware in the source. The circuit itself provides the required behaviour.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
No IDE, board package, library, or firmware upload is required for this project.
If you add a programmable controller as an extension, document its pin map separately.
How to upload code
The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.
Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build noteMetal Detectors are used in various places to detect metals that are dangerous, such as airports, shopping malls, cinemas, etc. We have previously made a very simple Metal detector without a microcontroller; now we incorporate an Arduino to make the Metal Detector. The coil and capacitor that will be used in this project will be responsible for detecting metals. We have built this metal detector project using an Arduino Nano. All electronics lovers should find this project very interesting. A very loud buzzer will start beeping the moment the metal detector detects it.
Required Components
Project build noteArduino (any) Coil 10nF capacitor Buzzer The 1k resistor 330-ohm resistor LED 1N4148 diode Breadboard or PCB Connecting jumper wire
9v Battery
Working Concept
Project build noteAny time there is current passing through the coil, a magnetic field is generated around it. Magnetic fields generate electric fields when they are changed. The Faraday Law states that due to the Electric field, a voltage is generated across the coil that opposes the change in magnetic field. The result is an increase in current, causing the voltage to oppose the change in magnetic field. The Inductance value is measured in Henrys using the following formula L = (μο * N2 * A) / l Were, L- Inductance in Henries μο- Permeability, its 4π*10-7 for Air N- Number of turns A- Inner Core Area (πr2) in m2 l- Length of the Coil in meters Any metal that comes into contact with the coil causes the coil to change its inductance. The type of metal determines the change in inductance. Non- magnetic metals have a smaller magnetic moment, while iron has a greater magnetic moment.
Inductance value changes drastically depending on the core of the coil. As you can see in the figure below, the inductors have an air-cored core, so there is no solid core in these inductors. This is basically just a lot of coils lying around. No matter what the inductor generates, its magnetic field flows in nothing or air. Inductors with low inductances are used in these applications. When the values of a few microHenry are required, these inductors are used. If your value is greater than a few milliHenry, then this is not the right choice. An inductor with ferrite core can be seen in the following image. Despite the large inductance values of these Ferrite Core inductors. In this case, the coil wound within the inductor is air cored, so when a metal object is brought to the coil it serves as a core.
Circuit Diagram
Project build noteInductance of the coil changes or increases greatly when this metal acts as a core. By adding a metal piece to the LC circuit, a significant amount of inductance is introduced, altering the overall impedance or reactants of the circuit. In this Arduino Metal Detector Project, we need to figure out how to detect metals by measuring the inductance of the coil. Thus, we did this by using the LR circuits (Resistor-Inductor Circuits) that we described previously. A coil with about 20 turns has been used here with a winding of around 10 cm in diameter. A tape roll has been used to wind up wire on, and the wire has been wound around it. Metal Detectors are used to detect land mines, detect weapons such as knives and guns at airport security checkpoints, conduct geophysical prospecting, archaeology and treasure hunting. The whole Metal Detector Project has been controlled by an Arduino Nano. Indicators such as LEDs and buzzers are used for metal detection. For the detection of metals, coils and capacitors are used. Reduced voltage is also achieved by using a signal
diode. Additionally, a resistor is used to limit the current flowing through the Arduino pin.
Working Explanation
Project build noteThe metal detector on this Arduino is a little challenging to use. The high pass filter of the LR is fed the block wave or pulse generated by the Arduino. Therefore, each transition will be marked by short spikes caused by the coil. Having a coil with a high inductance result in pulses with a shorter pulse length. We can measure the inductance of a coil with the help of these shock pulses. Due to the very short duration of the spikes (approx. 0.5 microseconds), it is very difficult to successfully measure inductance with that. The capacitor we used instead of this, is charged by rising impulses or spikes. The capacitor was charged with a few pulses so that A5 on the Arduino can read its voltage. This capacitor's voltage is read using ADC by Arduino. Cap Pin was made the output pin as soon as the voltage was read and set to low, quickly discharging the capacitor. About 200 microseconds are required to complete this process. The measurement was repeated and the resulting average was taken to produce the best results. Using that method, we can calculate Coil's approximate inductance. Using the result, we transfer the data to LED and buzzers to see whether metal is present. The complete code that follows this article will help you understand how the program works. At the end of this article, you will find the full Arduino code. We will use two Arduino pins in this project, one to generate block waves that will be fed into the coil, and the second to read voltage from the capacitor. We have also connected LEDs and buzzers to two other Arduino pins besides these two.
You built Arduino Metal Detector.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects