• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Metal Detector Circuit using Arduino

Metal Detector Circuit using Arduino

Last updated on 13 June 2026 by Admin-Lavi Leave a Comment

Metal detector uses electric field to find metal near it.

Making Metal Detector Circuit using Arduino is fun for electronics lovers and we can make it using Arduino, CS209A chip, LEDs, buzzer and some other parts.

Furthermore, LED and buzzer will show when metal is close, also this project use CS209A chip with Arduino, as this CS209A is good chip for finding metal and nearby things.

Arduino Code:

// Declare Arduino Pins
const int vinHi = 2; 
const int vinLo = 3;
const int ledG = 4;
const int ledR = 5;
const int Buz = 6;

// Variable to detect state change
int metalState = 0;

// Declare Arduino Pin Mode
void setup() {
  pinMode(vinHi, INPUT);
  pinMode(vinLo, INPUT);
  pinMode(ledG, OUTPUT);
  pinMode(ledR, OUTPUT);
  pinMode(Buz, OUTPUT);
}

void loop() {
  metalState = digitalRead(vinHi); // Read the proximity detector signal

  if (metalState == HIGH) { // No Metal detected
    digitalWrite(ledG, HIGH);
    digitalWrite(ledR, LOW);
    digitalWrite(Buz, LOW); 
  } else { // Metal detected
    digitalWrite(ledG, LOW);
    digitalWrite(ledR, HIGH);
    digitalWrite(Buz, HIGH);
  }

  delay(3000); // Wait for 3 Sec.
}

Circuit Working:

Metal Detector Circuit Diagram using Arduino

Parts List:

ComponentsValuesQuantity
Resistors10k 1/4 watt1
1k 1/4 watt2
Preset 10k1
CapacitorsElectrolytic 10µF 25V1
Ceramic 2.2nF2
SemiconductorsArduino UNO1
IC CS209A Metal Detection1
5V Buzzer1
LED Red 5mm 20mA1
LED Green 5mm 20mA1
Coil Detector 100µH, 40mm diameter, 50 turns by 0.4 mm insulated copper wire1
9V Battery1

Arduino metal detector runs on 9V battery and it makes square wave signal to power the coil; coil makes electromagnetic field and it changes when metal is close.

The coil has an inductance of 100 μH and uses 0.4 mm copper wire with 50 turns and a 40 mm width.

When metal comes coils inductance changes and this changes the square wave signal.

Also, capacitors remove noise and make signal clean and then resistors control current so parts do not break.

Sensitivity can change using presets and also we can adjust signal strength or detection level.

Op-amp makes signal stronger and cleaner and CS209A chip sets voltage level to check signal.

Finally, the green LED turns ON when no metal is detected and the red LED turns ON when metal is nearby.

The buzzer also sounds when metal is detected.

How to Build:

To build a Metal Detector Circuit using Arduino follow the below mentioned steps:

  • First, collect all parts shown in circuit diagram.
  • Next, connect pin 1 of CS209A to pin 8 using a preset and 10k resistor.
  • After that, connect pin 2 of CS209A to one side of 100μH coil and then connect pin 3 of CS209A to other side of coil and to GND.
  • Now connect pin 4 of CS209A to Arduino pin 2.
  • Also, connect pin 5 of CS209A to Arduino pin 3.
  • Then connect pin 6 of CS209A to GND using a 2.2nF capacitor.
  • Further, connect pin 7 of CS209A to positive terminal of 9V battery, then connect 9V battery negative to GND and place a 10μF capacitor between pin 7 and GND.
  • Also, one leg goes to Arduino pin 6 and other leg goes to GND.
  • Then add 1k pull-up resistor between Arduino pin 3 and positive line and then add 1k pull-up resistor between Arduino pin 2 and positive line.
  • Now connect anode long leg to Arduino pin and connect cathode short leg to GND.
  • Finally, place 2.2nF capacitor between CS209A pin 2 and pin 3.

Conclusion:

Overall, this Metal Detector Circuit using Arduino is easy and accurate project, as it uses coil, CS209A chip and Arduino to find metal.

Furthermore, green light shows no metal and red light and buzzer show metal found, therefore, this circuit is good for learning electronics and sensor projects.

Filed Under: Arduino Projects, DIY Projects, Security and Protection, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Building a Smart Pet Feeder Circuit using Arduino
Next Post: Simple Micro SD Card Data Logging Circuit with Arduino UNO »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (83)
  • Alarm Circuits (71)
  • Amplifier Circuits (91)
  • Arduino Projects (103)
  • Audio Circuits (181)
  • Automation Circuits (64)
  • Automobile Circuits (31)
  • Battery Charger Circuits (85)
  • DIY Projects (266)
  • Free Energy (12)
  • Heater and Temperature Controllers (31)
  • High Voltage (23)
  • Hobby Circuits (134)
  • Indicator Circuits (59)
  • Inverter Circuits (18)
  • IoT projects (4)
  • LDR Circuits (40)
  • LED and Lamps (188)
  • Meters and Testers (40)
  • Mini Projects (203)
  • Motor Controllers (24)
  • Oscillator Circuits (58)
  • Power Supply Circuits (205)
  • Radio Frequency (1)
  • Remote Control Circuits (11)
  • Renewable energy (5)
  • Security and Protection (89)
  • Sensors and Detectors (204)
  • Solar Circuits (31)
  • Timer Circuits (58)
  • Transistor Circuits (156)
  • Transmitter Circuit (21)
  • Tutorials (20)
  • Voltage Regulator (21)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  2. colin on Simple Single Transistor Audio Amplifier Circuit
  3. How to Make a Bird Chirping Noise Easily on Chirping Bird Sound Generator Circuit
  4. Transistor Based Medium Impedance Preamplifier Circuit - Circuit Ideas for You on Low Impedance Input Transistor Preamplifier Circuit
  5. Admin-Lavi on Alternate Red Green LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas