With the ESP32-C3 you can control your smart home and other things, all wirelessly!
I was thinking about what project to do and I came up with this, I mainly wanted to create it because I needed some kind of device to control my smart home.
- 4 touch buttons
- OLED display as an indicator of e.g. time
- Rechargeable battery for carrying
- Wireless compatibility
The script is designed for ESP32-C3 and is just a simple script, so just upload it, adjust the names, API,... and you're done!
When you charge the battery, you turn on the system by holding down the 1st button (as far away from the OLED as possible) and the system will connect to the network and other peripherals. Then you just need to press the buttons and, for example, your light will turn on/off.
WiFi.h
SinricPro.h
SinricProSwitch.h
Wire.h
Adafruit_GFX.h
Adafruit_SSD1306.h
WiFiUdp.h
NTPClient.h
Here is a view of the top and bottom of the case:
| Item | Quantity | Price | Link |
|---|---|---|---|
| ESP32-C3 Super Mini | 1 | $7.17 | Laskakit |
| OLED display | 1 | $3.05 | AliExpress |
| Touch buttons (TTP223) | 4 | $1.21 | Laskakit |
| Wires (10cm, 20pcs) | 1 | $2.71 | Laskakit |
| Battery Li-ion 18650 | 1 | $7.66 | Laskakit |
| Charger module / Boost converter | 1 | $1.36 | Laskakit |
| Shipping to CZ | - | $3.49 | - |
| Total | $26.55 |

.png)

