https://github.com/mskian/esp32-touch-led-light-controller
A Simple ESP32 touch LED Light controller using TTP223 touch sensor.
https://github.com/mskian/esp32-touch-led-light-controller
esp32 esp32-arduino led led-controller notifications ntfy touch ttp223
Last synced: 1 day ago
JSON representation
A Simple ESP32 touch LED Light controller using TTP223 touch sensor.
- Host: GitHub
- URL: https://github.com/mskian/esp32-touch-led-light-controller
- Owner: mskian
- License: mit
- Created: 2026-05-26T11:10:56.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-26T11:29:53.000Z (about 1 month ago)
- Last Synced: 2026-07-01T02:42:45.233Z (5 days ago)
- Topics: esp32, esp32-arduino, led, led-controller, notifications, ntfy, touch, ttp223
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESP32 Touch LED Light Controller
A Simple ESP32 touch LED Light controller using TTP223 touch sensor.
- Stable touch detection
- Long touch actions
- ntfy push notifications
- WiFi auto reconnect
- HTTPS support
- Low CPU usage
## Features
- Stable LED ON/OFF
- False touch prevention
- Long press support
- WiFi auto reconnect
- HTTPS optimized requests
- ntfy notifications
- Sequential LED blinking
- Lower ESP32 heat
- Better memory cleanup
- Production stable logic
- Debounce protection
- Low CPU usage
## Hardware Required
| Component | Quantity |
| ------------------- | -------- |
| ESP32 Board | 1 |
| TTP223 Touch Sensor | 1 |
| LED | 1 |
| Resistor (220Ω) | 1 |
| Jumper Wires | Some |
## Wiring
#### TTP223 Touch Sensor
| TTP223 | ESP32 |
| ------ | ----- |
| SIG | GPIO4 |
| VCC | 3V3 |
| GND | GND |
#### LED
| LED | ESP32 |
| -------- | ----- |
| Positive | GPIO5 |
| Negative | GND |
#### Touch Actions
| Action | Result |
| ------------ | ----------------- |
| Single Touch | Toggle LED |
| Long Touch | Blink LED 5 Times |
#### LED Status
| Status | LED Action |
| ----------------- | ---------- |
| Boot | 3 Blinks |
| WiFi Connecting | Slow Blink |
| LED Toggle | ON/OFF |
| Long Touch | 5 Blinks |
| ntfy Notification | Tiny Blink |
## Open in Arduino IDE
- Configure WiFi
```sh
const char* WIFI_SSID = "YOUR_WIFI";
const char* WIFI_PASSWORD = "YOUR_PASSWORD";
```
- Configure ntfy
```sh
const char* NTFY_URL =
"https://ntfy.sh/your-topic";
```
## License
MIT