Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to design an Arduino-based RLC metal detector using an RC-A-354 sensor

By Nikhil Agnihotri July 23, 2023

Metal detectors offer several useful applications. A few examples include:

  • Security checks
  • Positioning detection for production equipment
  • Elevator floor control
  • Mineral prospecting
  • Unearthing relics and artifacts
  • Collecting traffic statistics 
  • Metallic waste detection 
  • Game entertainment

Each detection circuit employs different electronic components and designs. A simple metal detector can be constructed using an RLC circuit.

In this project, we’ll design a metal detector using an RC-A-354 metal sensor — which also uses an RLC circuit for metal detection. 

How metal detectors work
Although different designs exist, a metal detector essentially consists of two coils of wire (where one is a transmitter and the other is a receiver). When current flows through one coil, a magnetic field is generated around it. 

In a metal detector, current spikes pass through the transmitter coil. As the detector moves over the ground or objects, the magnetic field also moves around with it. 

When the transmitter coil is near a metallic object, an eddy current is induced in the metallic object due to the magnetic field of the transmitter coil. This current produces another magnetic field around the metallic object, which is detected by the receiver coil. 

When a magnetic field is induced in the receiver coil, a voltage is generated across it and current flows through it. The receiver coil is connected to a circuit that measures any change in the magnetic field, which indicates the presence of current in the receiver coil — by actuating a buzzer or a speaker.     

Metal detectors are used to locate metal objects or to identify specific metals. The detector consists of a handheld unit with a sensor probe. Typically, the sensor probe houses the transmitter and receiver coils. The other part of the unit houses the circuit for measuring magnetic fields and an indicator, which can be an LED light, a buzzer, or speakers. 

The RC-A-354 sensor
The RC-A-354 sensor is a popular metal detector that uses an RLC circuit. It can search metals up to a distance of 3cm. At this range, it’s useful for security checks or collecting metallic trash. 

This sensor has a copper coil about one-meter-long that serves as the inductor. It has: 

  • Two capacitors: 100 and 47uF 
  • A NE555 IC
  • A 5K potentiometer
  • Two IN4148 diodes 
  • LED indicators 
  • A buzzer 

The RC-A-354 operates via a DC 5V~9V power supply, which means it can be powered by a battery or a microcontroller, such as Arduino. 

The NE555 IC works as a square-wave generator, which produces pulses. The sensor’s circuit is responsible for metal detection and is an RLC network that’s formed by the inductor coil, a resistor, and a capacitor. The sensor’s module includes a 5K pot that’s used to adjust the range (of up to 3cm). 

When the RC-A-354 sensor is powered on by the DC supply, a green LED is turned ON, and the NE555 generates current spikes in the transmitter coil. These alternating pulses create a magnetic field in the transmitter coil. When the sensor is near a metallic object, this magnetic field induces an eddy current. 

The metallic object produces another magnetic field — when near the coil, but not directly at the center of it (or detection will not occur). This secondary magnetic field is detected by the receiver coil, which actuates the buzzer. 

The sensor module has an additional transistor circuit that drives the LED indicator. The indicator turns RED when metal is detected. Otherwise, it stays off. 

The module also has an output header, which connects to a microcontroller or an application-based circuit. The output is active HIGH. (When the sensor detects metal, the output is set to HIGH. Otherwise, it remains LOW. 

The logical output can be useful in several situations. For example, if designing a robot to collect the metallic trash from a garden, the output can be used to stop the robot and actuate a crane. 

For this project, we’ll blink an LED light to a similar situation.    

Components required 

1. Arduino UNO x1
2. RC-A-354 metal sensor x1
3. Battery 9V x1
4. LED x1
5. Resistor 330Ω x1
6. Breadboard x1
7. Connecting or jumper wires

Circuit connections
To start, connect a 9V battery to the RC-A-354 sensor’s DC supply. In the sensor’s output terminal, connect the output to Arduino’s pin 2 and the GND to any of Arduino’s ground pins. 

Next, connect an LED at Arduino’s pin 3 with a 330Ω current-limiting resistor in series. Remember to adjust the pot on the sensor module according to the required range. 

Arduino sketch

const int metalSensor = 2;
const int LED = 3;

void Blink_LED(){
for(int i = 0; i<10; i++)
{
digitalWrite(LED, HIGH);
delay(500);
digitalWrite(LED, LOW);
delay(500);
}
}
void setup() {
pinMode(metalSensor, INPUT_PULLUP);
pinMode(LED, OUTPUT);
digitalWrite(LED, LOW);
Serial.begin(9600);
}

void loop() {
if(digitalRead(2) == HIGH)
{
Blink_LED();
Serial.println(“Metal Detected!!”)
}
else
{
digitalWrite(LED, LOW);
}

How it works
When the search probe moves near a metallic object, the RC-A-354 sensor outputs a “beep” through the onboard buzzer and a green LED begins flashing. The buzzer is already connected within the sensor module, so there’s no need to connect it with Arduino to receive this indication.

The sensor has a logical output, which is active HIGH. This output is used to blink the LED whenever the sensor detects a metallic object. The LED on the breadboard is connected so that it turns ON when it sinks current from Arduino’s pin through a HIGH logic. It turns OFF when Arduino’s pin has a LOW logic output.

The code
The sketch begins by assigning a pin to the LED output. This pin is also connected to the RC-A-354 sensor’s output. 

The function, Blink_LED(), is defined to “blink” the LED. In the setup() function, the sensor pin is configured as the input and the LED pin is configured as the output. The LED is turned OFF by writing a LOW logic to the LED pin. 

The baud rate for serial messaging is set to 9600 bps. In the loop() function, the logical output from the metal detector sensor is monitored in an “if” clause. If Arduino detects a HIGH from the sensor, the Blink_LED() function is called and a message, “Metal Detected!!” is printed serially. Otherwise, the blinking LED remains OFF. 

Results

 

You may also like:


  • What are the top tools for developing embedded software?

  • What is the Modbus protocol and how does it work?

  • Motion detectors or motion sensors?

  • What are the main types of proximity sensors?

  • How To Test Metal Detectors?

  • How to Create a Metal Detector on Your Own?

Filed Under: Arduino Projects, Electronic Projects, Sensors, Tutorials, Video
Tagged With: Arduino
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe