Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

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

February 10, 2021 By Nikhil Agnihotri

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 main types of proximity sensors?

  • How To Test Metal Detectors?

  • How to Create a Metal Detector on Your Own?

  • Motion Detectors or Motion Sensors

Related Articles Read More >

Introduction to Wireless Modules
ADC with NRF24LE1 (Part 2/14)
Interrupts with NRF24LE1 (Part 3/14)
Power Failure Indicator in NRF24LE1 (Part 4/14)

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!


Featured Tutorials

  • Introduction to Wireless Modules
  • ADC with NRF24LE1 (Part 2/14)
  • Interrupts with NRF24LE1 (Part 3/14)
  • Power Failure Indicator in NRF24LE1 (Part 4/14)
  • Using EEPROM of NRF24LE1 (Part 5/14)
  • PWM with NRF24LE1 (Part 6/14)

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Recent Articles

  • Introduction to LUFA
  • What are the different types of integrated circuits?
  • Introduction to Wireless Modules
  • ADC with NRF24LE1 (Part 2/14)
  • Interrupts with NRF24LE1 (Part 3/14)

RSS EDABOARD.com Discussions

  • How to find 1's and 2's complement without using CMA operation in 8085 microprocessor?
  • Non-Inverting Amplifier (AC Coupled) : How to solve this circuit with lower and high frequency?
  • Electrolytic capacitor lifetime and rated voltage?
  • Syntax error in verilog
  • 2SC1971 Vs 2SC1972

RSS Electro-Tech-Online.com Discussions

  • Wirer up stereo needle
  • Learning C
  • Post some funny stuff...
  • Looking for an SOIC socket
  • QA pass
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 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 | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key 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
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering