Difference between revisions of "TTP229-B"
Jump to navigation
Jump to search
Grovkillen (talk | contribs) |
Grovkillen (talk | contribs) |
||
Line 31: | Line 31: | ||
| 257 | | 257 | ||
| 1 | | 1 | ||
+ | | | ||
|- | |- | ||
Line 36: | Line 37: | ||
| 514 | | 514 | ||
| 2 | | 2 | ||
+ | | | ||
|- | |- | ||
Line 41: | Line 43: | ||
| 1028 | | 1028 | ||
| 4 | | 4 | ||
+ | | | ||
|- | |- | ||
Line 46: | Line 49: | ||
| 2056 | | 2056 | ||
| 8 | | 8 | ||
+ | | | ||
|- | |- | ||
Line 51: | Line 55: | ||
| 4112 | | 4112 | ||
| 16 | | 16 | ||
+ | | | ||
|- | |- | ||
Line 56: | Line 61: | ||
| 8224 | | 8224 | ||
| 32 | | 32 | ||
+ | | | ||
|- | |- | ||
Line 61: | Line 67: | ||
| 16448 | | 16448 | ||
| 64 | | 64 | ||
+ | | | ||
|- | |- | ||
Line 66: | Line 73: | ||
| 32896 | | 32896 | ||
| 128 | | 128 | ||
+ | | | ||
|- | |- | ||
Line 71: | Line 79: | ||
| - | | - | ||
| 256 | | 256 | ||
+ | | | ||
|- | |- | ||
Line 76: | Line 85: | ||
| - | | - | ||
| 512 | | 512 | ||
+ | | | ||
|- | |- | ||
Line 81: | Line 91: | ||
| - | | - | ||
| 1024 | | 1024 | ||
+ | | | ||
|- | |- | ||
Line 86: | Line 97: | ||
| - | | - | ||
| 2048 | | 2048 | ||
+ | | | ||
|- | |- | ||
Line 91: | Line 103: | ||
| - | | - | ||
| 4096 | | 4096 | ||
+ | | | ||
|- | |- | ||
Line 96: | Line 109: | ||
| - | | - | ||
| 8192 | | 8192 | ||
+ | | | ||
|- | |- | ||
Line 101: | Line 115: | ||
| - | | - | ||
| 16384 | | 16384 | ||
+ | | | ||
|- | |- | ||
Revision as of 20:46, 18 July 2017
You may hear some construction noise in the background...
Contents
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.
The values that this device reports will be as follows:
Commands
Button | Value (8 key) | Value (16 key) | Extra information |
---|---|---|---|
1 | 257 | 1 | |
2 | 514 | 2 | |
3 | 1028 | 4 | |
4 | 2056 | 8 | |
5 | 4112 | 16 | |
6 | 8224 | 32 | |
7 | 16448 | 64 | |
8 | 32896 | 128 | |
9 | - | 256 | |
10 | - | 512 | |
11 | - | 1024 | |
12 | - | 2048 | |
13 | - | 4096 | |
14 | - | 8192 | |
15 | - | 16384 | |
16 | - | 32768 |