The 4-Channel Capacitive Touch Sensor (TTP224) by Robocraze is a versatile sensor module designed to detect touch inputs on up to four separate channels using capacitive sensing technology. This sensor is ideal for applications where traditional mechanical buttons are not suitable, providing a sleek and modern touch interface.
Parameter | Value |
---|---|
Operating Voltage | 2.4V to 5.5V |
Operating Current | 2.5mA (typical) |
Response Time | 60ms (at low power mode) |
Interface | Digital Output |
Number of Channels | 4 |
Touch Sensitivity | Adjustable via external resistor |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (2.4V to 5.5V) |
2 | GND | Ground |
3 | OUT1 | Digital output for touch channel 1 |
4 | OUT2 | Digital output for touch channel 2 |
5 | OUT3 | Digital output for touch channel 3 |
6 | OUT4 | Digital output for touch channel 4 |
7 | AHLB | Active high/low selection (default: active high) |
8 | MODE | Mode selection (default: fast mode) |
// Example code to interface TTP224 with Arduino UNO
// Define the touch sensor output pins
const int touchPin1 = 2;
const int touchPin2 = 3;
const int touchPin3 = 4;
const int touchPin4 = 5;
void setup() {
// Initialize serial communication
Serial.begin(9600);
// Set touch sensor pins as input
pinMode(touchPin1, INPUT);
pinMode(touchPin2, INPUT);
pinMode(touchPin3, INPUT);
pinMode(touchPin4, INPUT);
}
void loop() {
// Read the state of each touch sensor pin
int touchState1 = digitalRead(touchPin1);
int touchState2 = digitalRead(touchPin2);
int touchState3 = digitalRead(touchPin3);
int touchState4 = digitalRead(touchPin4);
// Print the state of each touch sensor pin to the serial monitor
Serial.print("Touch 1: ");
Serial.print(touchState1);
Serial.print(" | Touch 2: ");
Serial.print(touchState2);
Serial.print(" | Touch 3: ");
Serial.print(touchState3);
Serial.print(" | Touch 4: ");
Serial.println(touchState4);
// Add a small delay to avoid flooding the serial monitor
delay(100);
}
By following this documentation, users can effectively integrate the 4-Channel Capacitive Touch Sensor (TTP224) into their projects, leveraging its capabilities for a wide range of applications.