#130AdvancedPremium

ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web)

In this project, two buttons wired to the ESP32 (GPIO 5 counts up, GPIO 4 counts down) change a counter. The value updates instantly both on a 16x2 I2C LCD and, through the WebSocket support of ESPAsyncWebServer, in every connected browser without reloading the page. Instead of HTTP polling a single persistent connection is used, and the ESP32 sends the new value to everyone with ws.textAll().

4.5(14)
23 completed
ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web)

Source Code

Premium Content

Become Premium to view the source code

Unlock Everything with Premium

All project code, FAQ sections, and troubleshooting guides for Premium members. Buy in the mobile app.

FAQ

Premium Content

Become Premium to see FAQs

Unlock Everything with Premium

All project code, FAQ sections, and troubleshooting guides for Premium members. Buy in the mobile app.

ESP32 WebSocket Counter (2 Buttons + LCD + Real-Time Web) | BlueGrays