The Capacitive Touch Breakout is an innovative electronic component that leverages the Atmel AT42QT1010 sensor to provide capacitive touch sensing capabilities. This breakout board is designed to detect touch or proximity by sensing changes in capacitance on a conductive pad. It is commonly used to create touch buttons or to replace traditional mechanical switches in a variety of applications, including consumer electronics, home automation, and interactive installations.
Pin Number | Name | Description |
---|---|---|
1 | OUT | Digital output; active low when touched |
2 | VDD | Power supply; 2.0V to 5.5V |
3 | GND | Ground connection |
4 | SNSK | Connection to one side of external capacitor (Cs) |
5 | SNS | Connection to sensor pad and other side of Cs |
// Define the touch sensor output pin
const int touchPin = 2; // Connect the OUT pin of the breakout to digital pin 2
void setup() {
pinMode(touchPin, INPUT_PULLUP); // Set the touch pin as an input with an internal pull-up resistor
Serial.begin(9600); // Start serial communication at 9600 baud
}
void loop() {
// Read the state of the touch sensor
bool isTouched = digitalRead(touchPin) == LOW; // Active low means touched
// Print the state to the serial monitor
Serial.println(isTouched ? "Touched" : "Not touched");
delay(100); // Small delay to debounce and prevent flooding the serial output
}
Remember, the Capacitive Touch Breakout is a versatile component that can enhance the user interface of your project. With proper setup and calibration, it can provide a reliable touch interface.