user-img

FUSION AUTOMATE

  • 7 Projects
  • 3 Followers
  • Oct 30,2025
+ Follow

Wifi Clock using Nextion Discovery Series Display and ESP32

ESP32 + Nextion Display Pomodoro Clock — shows real-time time/date, runs a Pomodoro timer with adjustable duration, and uses a non-blocking LED alert when sessions complete.

Wifi Clock using Nextion Discovery Series Display and ESP32
 
  • thumbnail-img
  • thumbnail-img
 

Hardware Components

  • ESP32 Development Board

    X 1
  • Nextion 3.5" Discovery Series Resistive Touch Display

    Nextion
    X 1 fenxiang

Tools, APP Software Used etc.

  • Arduino IDE

    Arduino IDE

    Arduino
  • Nextion Display

    Nextion

Story

⏰ ESP32 × Nextion Display — Smart Pomodoro Clock with Real-Time Display

A complete Nextion-powered Pomodoro and clock system built on ESP32. It combines real-time clock synchronization (via NTP), a fully interactive Pomodoro timer, and non-blocking LED alerts, all managed through a sleek touchscreen interface.


???? Overview

This project turns your Nextion HMI display into a productivity dashboard:

  • Displays current time, date, and day (synced from the internet).
  • Features a custom Pomodoro timer with start, stop, reset, and time adjustment.
  • Includes a non-blocking LED blink alert when the Pomodoro session ends.

All touch interactions are handled via raw Nextion serial packets — no external libraries needed.


⚙️ Features

✅ Real-time clock synced from NTP ✅ Dual-screen interface (Home & Pomodoro) ✅ Adjustable Pomodoro duration (1–60 mins) ✅ Start, stop, pause, and reset timer controls ✅ LED alert (non-blocking) after timer completion ✅ Robust Nextion event parser with noise filtering


???? Hardware Setup

Component Description
ESP32 Handles logic, NTP sync, and LED control
Nextion Display UI for clock & Pomodoro
Built-in LED (GPIO 2) Visual alert indicator

Wiring:

ESP32 Pin Nextion Pin Description
16 TX Display → ESP32
17 RX ESP32 → Display
5V 5V Power
GND GND Common ground

????️ Nextion Pages

Page 0 — Home Screen

Component ID Purpose
bLed 6 Trigger LED test (3s blink)
bPom 7 Go to Pomodoro page
tTimetSectDatetDay Display time and date

Page 1 — Pomodoro Screen

Component ID Purpose
bHome 3 Return to Home
bIncbDcr 4,5 Adjust duration ±1 min
bStartbStopbReset 6–8 Timer controls
tTimer Show countdown

???? Core Functionalities

???? Clock System

  • Wi-Fi + NTP-based time sync
  • Updates every second on Nextion
  • Shows hour, minute, second, date, and weekday

???? Pomodoro Timer

  • Default 25:00 minutes
  • Adjustable 1–60 mins
  • Non-blocking countdown
  • Smooth updates every second
  • State transitions: IDLE → RUNNING → PAUSED → ALERT

???? LED Alert

  • Blinks automatically after timer ends
  • 10-second non-blocking alert
  • Fully handled using millis() for multitasking

???? Code Architecture

Section Function
setupTime() Connects WiFi & syncs time
updateClockDisplay() Updates time/date/day on Nextion
runPomodoro() Handles countdown & transitions
runLedAlert() Manages non-blocking LED blinking
handleNextionEvents() Parses and processes touch events

???? Event Flow

  1. Home page loaded → Real-time clock updates every second
  2. User presses Pomodoro button → Switches to Pomodoro page
  3. Start button pressed → Timer begins counting down
  4. Timer ends → LED alert blinks for 10 seconds
  5. Back to Home → Clock display resumes

???? Libraries Used

  • WiFi.h
  • time.h
  • HardwareSerial.h

???? Highlights

  • Fully non-blocking system (no delay() used in logic loops)
  • Efficient, byte-level parsing of Nextion touch events
  • Modular functions — easy to expand with new pages or features
Code
  • Includes Arduino and Nextion (HMI) files including images

    Wifi_Clock_56915653269031ba23190e.zip
    Download(1)

Wifi Clock using Nextion Discovery Series Display and ESP32

ESP32 + Nextion Display Pomodoro Clock — shows real-time time/date, runs a Pomodoro timer with adjustable duration, and uses a non-blocking LED alert when sessions complete.

41
 
4
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 4 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport