TTP229-B

From Let's Control It
Revision as of 20:37, 18 July 2017 by Grovkillen (talk | contribs)
Jump to navigation Jump to search

WIP.gifYou may hear some construction noise in the background...

Introduction

The TTP229 is a chip used for touch pads. Typically the TTP229 is used with 8 or 16 keys. Power requirements are 2.4V - 5.5V which makes them ideal to use with ESP Easy, the communication protocol is I2C so essentially only 4 cables are needed for up to 16 keys.

Hardware

1st-GPIO -> SCL on the module 
2nd-GPIO -> SDA on the module (sometimes labeled SD0)
2.4-5.5V to module VCC 
GND to module GND

Please observe that you should NOT use default i2c pins since this will jam the i2c communication with the other i2c devices. This is because of the non-standard i2c protocol used by this module.

ESP Easy

Use the device tab on the ESP Easy web interface and create a new task by editing one of the available tasks. Select "Keypad - ..." from the drop down box. TTP229 screendump.PNG

The values that this device reports will be as follows:

Commands

Button Value Extra information
1 257 If you want the buttons number instead of the logarithmic expansion you could use this formula [1,4427*ln(%value%)-7,0056].
2 514
3 1028
4 2056
5 4112
6 8224
7 16448
8 32896
9 65792
10 131584
11 263168
12 526336
13 1052672
14 2105344
15 4210688
16 8421376