Ttp226 8way Touch Sensor

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

TTP226 8-CHANNEL CAPACITIVE TOUCH

Description

The TTP226 is a touch pad detector IC which offers 8 touch key. The touching
detection IC is designed for replacing traditional direct button key with diverse pad size.
Capacitive touch allows electronics to sense when your finger is within a few millimetres
of a surface to simulate a button press just like how the pushbutton works. Capacitive
sensing may be used in any place where low to no force human touch sensing is
desirable.
Specifications

On-board TTP226 capacitive touch induction IC


On-board 8-way level indicator.
Working voltage: 2 V to 5.5 V DC
Adjustable output mode, key output mode, longest time and fast/low power
output
PCB board size: 47.5 (mm) x 46 (mm).

Pin Configuration

10 9 8 7 6 5 4 3 2 1
7 7 7

1. GND: ground
2. VCC: 2V to 5.5V DC
3. OUT1: high/low output
4. OUT2: high/low output
5. OUT3: high/low output
6. OUT4: high/low output
7. OUT5: high/low output
8. OUT6: high/low output
9. OUT7: high/low output
10. OUT8: high/low output
Schematic Diagram

Wiring Diagram

10 9 8 7 6 5 4 3 2 1
Sample Sketch

int i;

void setup(){
for(i=1; i<9; i++) pinMode(i, INPUT);
Serial.begin(9600);
}

void loop(){
for(i=1; i<9; i++){
if(digitalRead(i) == HIGH) Serial.println(i+1);
}
delay(100);
}

How to test

The components to be used are:


Microcontroller (any compatible arduino)
TTP226 8-channel capacitive touch
1 Pin M-M connectors
Breadboard
USB cable
1. Connect the components based on the figure shown in the wiring diagram using
a M-M pin connector. VCC pin is connected to the 3.3V or 5V power supply,
GND pin is connected to the GND, OUT1, OUT2, OUT3, OUT4, OUT5, OUT6,
OUT7, and OUT8 pins are connected to the digital I/O pin. Pin number will be
based on the actual program code.
2. After hardware connection, insert the sample sketch into the Arduino IDE.
3. Using a USB cable, connect the ports from the microcontroller to the computer.
4. Upload the program.
5. See the results in the serial monitor.
Testing results

The serial monitor shows the results on tapping the module.

The figure below shows when the 4 channels were tapped. A red
LED should also flash simultaneously. Note that the number of tap lines
depends on how long the module was tapped and on the delay in the
sample sketch.

You might also like