In this project, we will build a real-time cryptocurrency dashboard using an ESP32 microcontroller and a Nextion touchscreen display.
The dashboard connects to the internet, fetches live prices from Binance API, and displays:
Components Used
ESP32 WROOM WiFi Development Tools - 802.11 ESP32 General Development Kit, embeds ESP32-WROOM-32E, 4MB flash.
X 1
nextion 10 inch hmi display inteligent series,capacitve touch
X 1
Description
In this project, we will build a real-time cryptocurrency dashboard using an ESP32 microcontroller and a Nextion touchscreen display. The dashboard connects to the internet, fetches live prices from Binance API, and displays:
Current price
24-hour high and low
Percentage change
A real-time auto-scaling chart
It also features touchscreen-based coin selection, timeframe switching, and visual alerts for support/resistance levels.
No PC or cloud server is required — just plug in the ESP32 and go!
You can use this simple connection mapping
designed the user interface in Nextion Editor, including:
Text components for price, percent change, high, low
Buttons to switch coins and timeframes
A chart using the scope component
Labels to represent Y-axis scale
After designing the UI:
Export the .tft file
Copy to an SD card
Insert into the Nextion display and power it on to flash
ESP32 Code Overview
The Arduino code uses FreeRTOS to run two tasks:
serialTask() – listens for messages from the Nextion screen
fetchTask() – fetches live crypto data from Binance in JSON format
The coin price, 24-hour change, high and low are extracted and displayed. The chart is auto-scaled to keep the current price centered. All data is sent over Serial2.