Objective

This project will use Arduino Uno to drive TTP29 16-channel Capacitive Touchpad . The signal will be sent from keypad to Arduino through I2C protocol.  Each key is associated with a bit of a two-byte integer as following table:

Key 1 is associated to 0000 0000 0000 0001

Key 2 is associated to 0000 0000 0000 0010

Key 3 is associated to 0000 0000 0000 0100

…. …

Key 16 is associated to 1000 0000 0000 0000

When two or more key is touched, associated integer will contains two bits. For example, if Key 1 and Key 16 are both pushed at same time, the associated integer is 1000 0000 0000 0001

Parts and device:

Arduino UNO R3 x 1pcs,  TTP29  Touchpad x 1 pc

Circuit  Connection Graph:

TTP229_1_bb

TTP29 tochpad Arduino
SDA A4
SCL A5
VCC 5V
GND GND

 

The pin 1 to pin 5 in touchpad should be connected (shortcut) as following :

22

Download Source Code from following link:

http://osoyoo.com/wp-content/uploads/2016/07/TTP229_all.rar

Unzip above file and run the TTP229_all.ino file from Arduino IDE. Open serial terminal window in Arduino IDE upper right corner, push key from 1 to 16 and you will see serial windows shows following result:

all

Download TTP229 help PDF files from following link:

http://osoyoo.com/driver/TTP229.rar