An open API service indexing awesome lists of open source software.

https://github.com/nopnop2002/esp-idf-ttp229

TTP229 Capacitive Touch Driver for esp-idf
https://github.com/nopnop2002/esp-idf-ttp229

capacitive-touch-sensor esp-idf esp32 ttp229

Last synced: about 2 months ago
JSON representation

TTP229 Capacitive Touch Driver for esp-idf

Awesome Lists containing this project

README

          

# esp-idf-ttp229
TTP229 Capacitive Touch Driver for esp-idf.

I ported from [here](https://github.com/arduino12/ttp229b-arduino).

# Software requirements
ESP-IDF V4.4/V5.x.
ESP-IDF V5.0 is required when using ESP32-C2.
ESP-IDF V5.1 is required when using ESP32-C6.

# Hardware requirements
TTP229 Capacitive Touch switch.

![TTP229-1](https://user-images.githubusercontent.com/6020549/147397270-528ae5b6-ee00-49ac-8a9c-99e44d544ce1.JPG)

In order to use 16key, it is necessary to short TTP229 TP2.
![TTP229-2](https://user-images.githubusercontent.com/6020549/147397273-09b752ab-0a95-4e2c-8d36-345d37ac2ddb.JPG)

# Installation

```Shell
git clone https://github.com/nopnop2002/esp-idf-ttp229
cd esp-idf-ttp229
idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6}
idf.py menuconfig
idf.py flash
```

# Configuration

![config-top](https://user-images.githubusercontent.com/6020549/147397305-0ce3e49a-64a9-49eb-9528-470562ebca64.jpg)

![config-ttp229](https://user-images.githubusercontent.com/6020549/147397307-7217bbbc-a97a-4712-a599-887ac2752938.jpg)

# Wiring

|TTP229||ESP32|ESP32-S2/S3|ESP32-C2/C3/C6|
|:-:|:-:|:-:|:-:|:-:|
|SCL|--|GPIO4|GPIO17|GPIO0|
|SDA|--|GPIO5|GPIO18|GPIO1|
|GND|--|GND|GND|GND|
|VCC|--|3.3V|3.3V|3.3V|

__You can change it to any pin using menuconfig.__

__The markings on the board are SCL and SDA, but not the i2c interface.__

# Screen Shot
![TTP229-3](https://user-images.githubusercontent.com/6020549/147401025-867f5b12-f2e4-4268-9a5f-30dcd786020b.jpg)

# Reference
https://github.com/nopnop2002/esp-idf-mpr121