The Vedant Metal Detector (Part ID: 2) is an electronic device designed to detect the presence of metal within its proximity. Metal detectors are widely used in various applications such as security screening at airports, construction sites for locating buried infrastructure, archaeological digs, and by enthusiasts in metal detecting and treasure hunting.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Connect to 6-12V DC power supply |
2 | OUT | Output signal (High when metal is detected) |
3 | GND | Ground connection |
// Define the pin connected to the metal detector's output
const int metalDetectorPin = 2;
const int ledPin = 13; // Built-in LED pin on Arduino UNO
void setup() {
pinMode(metalDetectorPin, INPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600); // Start serial communication at 9600 baud rate
}
void loop() {
int metalDetected = digitalRead(metalDetectorPin);
if (metalDetected == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on LED if metal is detected
Serial.println("Metal detected!");
} else {
digitalWrite(ledPin, LOW); // Turn off LED if no metal is detected
}
delay(100); // Short delay to debounce and reduce serial output rate
}
Q: Can the metal detector differentiate between different types of metals?
A: No, this basic metal detector does not differentiate between metal types; it only indicates the presence of metal.
Q: What is the maximum detection range of the metal detector?
A: The detection range depends on the size and type of the metal object as well as the sensitivity setting.
Q: Can the metal detector be used outdoors?
A: Yes, but it should be protected from extreme weather conditions and water exposure.
Q: How can I increase the detection range?
A: Increasing the sensitivity can help, but it may also lead to more false positives. It's a balance between sensitivity and specificity.
For further assistance, please contact Vedant customer support.