STEP 1 / 6ARDUINO

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…

Arduino Metal Detector - source illustration from page 876
PROJECT#395
TRACKArduino
PARTS10
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

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
02

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.

03

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.
Ready to continue?
STEP 2 / 6 · Parts library

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.

NAMED PROJECT INVENTORY10 PART LINES
PARTTYPEQTYREADY
MArduino (any)MODULE1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876MODULE LEARNING VIEW

Arduino (any)

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It 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.
PCoilPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876PASSIVE LEARNING VIEW

Coil

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its 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.
PnF capacitorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876PASSIVE LEARNING VIEW

nF capacitor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its 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.
PBuzzerPART1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876PART LEARNING VIEW

Buzzer

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It 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.
Pohm resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Axial through-hole resistorPASSIVE LEARNING VIEW

ohm resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its 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.
PN4148 diodePASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876PASSIVE LEARNING VIEW

N4148 diode

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its 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.
BBreadboard or PCBBUILD1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876BUILD LEARNING VIEW

Breadboard or PCB

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It 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.
BConnecting jumper wireBUILD1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876BUILD LEARNING VIEW

Connecting jumper wire

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It 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.
Pv BatteryPOWER1
What's this?Image, role, pros, cons, handling & specifications
Arduino Metal Detector - source illustration from page 876POWER LEARNING VIEW

v Battery

A power component supplies, converts, stores, or regulates energy for the project.

What it does here

It 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.
P1N4148 - diodePASSIVE1
What's this?Image, role, pros, cons, handling & specifications
1N4148 switching diodePASSIVE LEARNING VIEW

1N4148 - diode

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its 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.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. 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.

02

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.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

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
TROUBLESHOOT

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
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

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 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.

02

Required Components

Project build note

Arduino (any) Coil 10nF capacitor Buzzer The 1k resistor 330-ohm resistor LED 1N4148 diode Breadboard or PCB Connecting jumper wire

9v Battery

03

Working Concept

Project build note

Any 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.

04

Circuit Diagram

Project build note

Inductance 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.

05

Working Explanation

Project build note

The 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.

Ready to continue?
PROJECT ACHIEVED

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.

Arduino Based Fire Fighting Robot project thumbnail featuring Arduino UNO, Fire sensor or Flame sensor (3 Nos), Servo Motor (SG90)
NEXT ARDUINO ADVENTURE

Arduino Based Fire Fighting Robot

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects