Arduino capacitive touch sensing with the AT42QT10XX
Capacitive touch sensing has never been easier with the Atmel AT42QT1070. Out of the box it self calibrates and requires little to no setup. As well, it re-calibrates upon timeout when signalling high for an extended period. To implement this sensor in I2C mode on the Arduino platform requires but a few lines of code as follows:
#include <Wire.h> Wire.beginTransmission(0x1B); // start conversation Wire.send(0x03); // 'key status' register Wire.endTransmission(); // stop transmitting Wire.requestFrom(0x1B, 1); // request 1 byte reading = Wire.receive(); // get yer red hot bits
Video after the break…