The Metal Touch Sensor (Manufacturer: E, Part ID: 01100101060406) is a versatile electronic component designed to detect the presence of a conductive object. This sensor is commonly used in touch-sensitive applications, such as touch lamps, touch screens, and interactive displays. Its ability to sense the presence of a human touch or any conductive material makes it an essential component in modern electronic designs.
Parameter | Value |
---|---|
Operating Voltage | 3.3V - 5V |
Operating Current | < 10mA |
Output Type | Digital (High/Low) |
Response Time | < 60ms |
Operating Temperature | -20°C to 70°C |
Dimensions | 20mm x 15mm x 5mm |
Pin No. | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | OUT | Digital output (High when touch is detected) |
+5V (Arduino) ----> VCC (Metal Touch Sensor)
GND (Arduino) ----> GND (Metal Touch Sensor)
Digital Pin 2 (Arduino) ----> OUT (Metal Touch Sensor)
// Metal Touch Sensor Example Code
// Connect the sensor's OUT pin to Arduino digital pin 2
const int touchPin = 2; // Pin connected to the sensor's OUT pin
const int ledPin = 13; // Pin connected to the onboard LED
void setup() {
pinMode(touchPin, INPUT); // Set touchPin as input
pinMode(ledPin, OUTPUT); // Set ledPin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int touchState = digitalRead(touchPin); // Read the state of the sensor
if (touchState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on the LED if touch is detected
Serial.println("Touch detected!");
} else {
digitalWrite(ledPin, LOW); // Turn off the LED if no touch is detected
Serial.println("No touch detected.");
}
delay(100); // Small delay to avoid serial flooding
}
False Triggers: The sensor might detect a touch even when there is none.
No Detection: The sensor does not detect touch.
Intermittent Detection: The sensor detects touch intermittently.
By following this documentation, users can effectively integrate the Metal Touch Sensor into their projects, ensuring reliable and accurate touch detection.