

The Adafruit AT42QT1012 Standalone Toggle Capacitive Touch Sensor Breakout (Part ID: 1375) is a compact and versatile capacitive touch sensor module. It enables touch-sensitive input for a wide range of applications, such as touch-activated light switches, control panels, and interactive projects. The breakout board features a toggle function, meaning the output state changes (on/off) with each touch, making it ideal for applications requiring a latching mechanism.
This sensor is easy to integrate into projects, as it requires no microcontroller programming for basic operation. Its small size and low power consumption make it suitable for battery-powered devices and space-constrained designs.








The breakout board has three pins, which are clearly labeled on the PCB:
| Pin | Name | Description |
|---|---|---|
| 1 | VIN | Power supply input (1.8V to 5.5V DC). Connect to the positive voltage source. |
| 2 | GND | Ground. Connect to the ground of your circuit. |
| 3 | OUT | Digital output. Toggles between HIGH and LOW states with each touch input. |
VIN pin to a DC voltage source (1.8V to 5.5V) and the GND pin to the ground of your circuit.OUT pin to interface with other components, such as LEDs, relays, or microcontroller GPIO pins. The output toggles between HIGH (logic 1) and LOW (logic 0) states with each touch.C_S pad on the PCB. The default capacitor value is 10 pF, which works well for most applications.VIN and GND to reduce power supply noise and ensure stable operation.OUT pin can directly drive small loads like LEDs, but for larger loads, use a transistor or relay.The AT42QT1012 can be easily interfaced with an Arduino UNO. Below is an example of how to toggle an LED using the sensor:
VIN to the Arduino's 5V pin.GND to the Arduino's GND pin.OUT pin to Arduino digital pin 2.// Define the pin connected to the sensor's OUT pin
const int touchSensorPin = 2;
// Define the pin connected to the LED
const int ledPin = 13;
// Variable to store the LED state
bool ledState = false;
void setup() {
// Set the sensor pin as input
pinMode(touchSensorPin, INPUT);
// Set the LED pin as output
pinMode(ledPin, OUTPUT);
// Initialize the LED to OFF
digitalWrite(ledPin, LOW);
}
void loop() {
// Read the sensor output
int sensorValue = digitalRead(touchSensorPin);
// Check if the sensor output is HIGH (touched)
if (sensorValue == HIGH) {
// Toggle the LED state
ledState = !ledState;
// Update the LED output
digitalWrite(ledPin, ledState);
// Wait for the touch to be released (debouncing)
while (digitalRead(touchSensorPin) == HIGH) {
delay(10); // Small delay to avoid rapid toggling
}
}
}
Sensor Not Responding to Touch
VIN and GND pins are properly connected to a power source.C_S pad. If necessary, replace it with a different value to adjust sensitivity.Output Not Toggling
OUT pin is correctly connected to the input of the target device or microcontroller.Erratic Behavior
VIN and GND to filter out power supply noise.Q: Can the sensor detect touch through thick materials?
A: Yes, the sensor can detect touch through non-conductive materials like plastic or glass, but the thickness should not exceed a few millimeters. Sensitivity can be adjusted by changing the external capacitor value.
Q: Is the sensor suitable for battery-powered applications?
A: Yes, the sensor has very low power consumption (~1.5 µA in low-power mode), making it ideal for battery-powered devices.
Q: Can I use multiple sensors in the same project?
A: Yes, multiple sensors can be used together. Ensure each sensor has its own power and ground connections, and avoid placing them too close to prevent interference.
Q: What happens if the sensor is touched continuously?
A: The sensor will maintain its current output state until the touch is released and a new touch is detected.
This concludes the documentation for the Adafruit AT42QT1012 Standalone Toggle Capacitive Touch Sensor Breakout.