The Vedant Metal Detector (Part ID: 1) is an electronic device designed to detect the presence of metal objects using an electromagnetic field. This component is commonly used in a variety of applications including security screening, archaeological exploration, treasure hunting, and industrial metal detection.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Connect to 5V-12V DC power supply |
2 | OUT | Digital output signal (High/Low) |
3 | GND | Ground connection |
// Define the metal detector output pin
const int metalDetectorPin = 2;
void setup() {
// Initialize the metal detector pin as an input
pinMode(metalDetectorPin, INPUT);
// Begin serial communication at 9600 baud rate
Serial.begin(9600);
}
void loop() {
// Read the state of the metal detector output
int metalDetected = digitalRead(metalDetectorPin);
// Check if metal is detected
if (metalDetected == HIGH) {
// Metal is detected, perform an action
Serial.println("Metal detected!");
} else {
// No metal detected
Serial.println("No metal detected.");
}
// Small delay to avoid spamming the serial output
delay(500);
}
Q: Can the metal detector differentiate between different types of metal? A: No, this basic metal detector does not differentiate between metal types; it only indicates the presence of a metal object.
Q: Is the metal detector waterproof? A: The standard model is not waterproof. Special care should be taken to avoid exposure to water or moisture.
Q: What is the maximum depth at which the metal detector can detect objects? A: The maximum detection depth is approximately 20cm for large metal objects, but this can vary based on object size and material.
Q: Can the metal detector be used to find gold? A: Yes, it can detect gold if the gold object is large enough and within the detection range of the device.
For further assistance or technical support, please contact Vedant customer service.