Build a connected clock with an ESP32 development board, a 0.96-inch 128×64 I2C OLED, jumper wires and USB power. The ESP32 gets the current time from an internet time server over Wi-Fi, applies your timezone and daylight-saving rules, then displays the local time and date. You can add a BME280 sensor later for temperature, humidity and pressure; you do not need a separate real-time clock (RTC) for a network-connected version.
What you need
Start with the basic clock before adding sensors or designing an enclosure. For the display, choose an SSD1306-compatible 0.96-inch, 128×64 I2C OLED. Cytron’s tutorial, published September 1, 2026, uses a Maker ESP32, this type of OLED, a four-pin STEMMA QT/Qwiic cable and a USB Type-C cable. Other ESP32 boards can work, but their pinouts and connectors may differ.
- ESP32 development board with Wi-Fi
- 3.3 V-compatible I2C OLED
- USB cable that fits the board
- Jumper wires, unless your display and board use compatible plug-in connectors
- Low-voltage USB power source
Check the board’s pinout and the OLED’s supply-voltage and logic-level requirements before connecting them. The wiring below matches the Maker ESP32 configuration in Cytron’s tutorial; it is not a universal pin map for every ESP32 board.
Wire the OLED to the ESP32
I2C keeps the display connection to four essential wires. For the Maker ESP32 and OLED in the Cytron tutorial, connect:
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- Powerful ESP-32 Board: Unlock the world of Internet of Things (IoT) and advanced electronics with the heart of this kit: the ESP-32 board. It features a powerful dual-core processor, integrated Wi-Fi and Bluetooth 4.2, making it perfect for building connected, smart devices that communicate with your phone or the cloud. It's fully compatible with the Arduino IDE for easy programming.
- Super Starter Kit: This kit contains over 35 different modules and electronic components, including sensors, displays, motors, and input devices. From LEDs and buttons to an OLED screen, servo motor, and keypad, you have everything needed to explore a vast range of projects in one box.
- Step by Step Online Tutorial: Jump right in with our detailed, beginner-friendly tutorial. Access 30+ projects with complete code, clear circuit diagrams, and step-by-step instructions. Learn the fundamentals of electronics, coding, and how to utilize the ESP-32's unique capabilities without any prior experience.
- Hands-on Learning for All Skill Levels: Perfect for students, makers, engineers, and hobbyists. Start with basic circuits and coding, then progress to intermediate and advanced IoT applications. Build practical projects like weather stations, smart home controllers, remote-controlled devices, and interactive gadgets. The skills you learn are the foundation for real-world innovation.
- Quality & Great Support: Elegoo is committed to quality. We provide a clear, detailed tutorial guide, refined code, and a well-organized component kit. All modules are carefully selected for reliability and ease of use. Our dedicated technical support team and active online community are ready to help you succeed in your learning journey.
| OLED pin | Maker ESP32 connection |
|---|---|
| VCC | 3.3 V |
| GND | GND |
| SDA | GPIO21 |
| SCL | GPIO22 |
- Disconnect USB power before attaching or changing jumper wires.
- Connect the OLED’s VCC and GND to the board’s 3.3 V and GND pins.
- Connect SDA to GPIO21 and SCL to GPIO22 on the cited Maker ESP32 setup.
- Check each connection against both component pinouts before reconnecting USB.
Once powered, the display should be available for firmware to initialize and render text. If it stays blank, first recheck power, ground, SDA and SCL; also verify that the selected board pins and display voltage match your hardware.
Choose a firmware approach
Use one firmware stack for the project rather than mixing setup instructions from different environments. Arduino-style ESP32 libraries are a suitable starting point for a beginner-oriented build. Espressif’s ESP-IDF is the official framework and provides its own menu configuration, build and flashing workflow. The exact setup steps depend on the board and the stack you choose.
Rank #2
- Complete Project-Based Learning Path – Build 13 progressive projects (LED blink → button control → PIR motion sensor → music playback → motorized doors/windows → SK6812 RGB lighting → fan control → LCD display → gas alarm → temperature/humidity monitor → RFID door unlock → Morse code access → WiFi control → mobile APP remote control). Each project builds on the previous one, ensuring you understand both the electronics and the programming logic behind every smart home feature.
- Master Two Industry-Standard Languages – Learn to code in both Arduino C++ and MicroPython with 13 detailed tutorials for each language. Compare how the same hardware behaves under different programming approaches – a valuable skill for any aspiring engineer. Perfect for classrooms teaching multiple coding languages or self-learners who want flexibility.
- Build a Real WiFi-Controlled Smart Home – Assemble the wooden house structure and integrate sensors to create a functioning smart home system. Control lights, fans, door servos, and RGB lighting directly from your mobile APP (iOS/Android) . Experience how IoT works in real life – from manual control to automated responses based on temperature, humidity, motion, and gas detection.
- Comprehensive Online Wiki with No Guesswork – Our detailed online tutorials (also accessible via the packaging) include wiring diagrams, full code explanations, and step-by-step assembly guides for every project. Whether you're a complete beginner or a teacher preparing lessons, the structured content eliminates confusion and helps you succeed from project 1.
- Everything You Need to Get Started – (TIPS: Batteries are NOT Included)This kit includes the ESP32 development board, expansion board, wooden house parts, all sensors and modules (DHT11, PIR motion, gas sensor, RFID, SK6812 RGB, servo motors, fan, LCD1602, etc.), and connection cables. NOTE: 6x AA batteries are required (NOT Included). The kit is unassembled – you'll build it yourself following our online tutorials, making the learning experience truly hands-on.
Keep Wi-Fi credentials out of any source code you publish. Store them in a local configuration mechanism appropriate to your chosen environment, and do not commit that configuration to a public repository.
Get internet time and show it locally
Use Network Time Protocol (NTP) to obtain UTC from an internet time server, then configure the firmware to convert that time to your local timezone and apply the relevant daylight-saving rules. Cytron’s September 1, 2026 tutorial describes a Wi-Fi-connected clock that synchronizes with NTP servers and keeps time on an OLED. Since the local-time conversion depends on your location’s rules, configure the timezone for the place where the clock will be used rather than relying on a fixed UTC offset alone.
Rank #3
- COMPREHENSIVE STARTER KIT: Includes an ESP32 development board and over 20 different types of electronic components and modules. This complete set provides everything you need to start learning electronics and building Internet of Things (IoT) projects, all organized in a convenient plastic storage case.
- POWERFUL ESP32 MICROCONTROLLER: Features a versatile ESP32 development board with an integrated dual-core CPU, Wi-Fi, and Bluetooth connectivity. This board serves as the core of your projects, enabling wireless communication and control for a wide range of applications from home automation to robotics.
- DIVERSE SENSORS AND MODULES: Explore your environment with a variety of included sensors. The kit contains a DHT11 temperature and humidity sensor, HC-SR501 PIR motion sensor, an IR infrared obstacle avoidance sensor, and a photoresistor light detection module for creating responsive, intelligent devices.
- INPUTS, OUTPUTS, AND CONTROL: Features an I2C OLED display for showing data, a 2-channel 5V relay module for controlling high-power devices (rated 10A 250VAC / 15A 125VAC), active and passive buzzers for audio feedback, various color LEDs, push buttons, and a potentiometer for precise analog input.
- PROTOTYPING ESSENTIALS INCLUDED: Get building right away with an 830-tie-point solderless breadboard, a bundle of male-to-male jumper wires, a USB cable for power and programming the ESP32 board, and a variety of common resistors. The kit is perfect for both beginners and experienced makers.
- Have the ESP32 connect to a 2.4 GHz Wi-Fi network.
- Request time from an NTP server after the network connection is available.
- Apply the configured timezone and daylight-saving rules to the received UTC time.
- Render the local time and date on the OLED.
- Repeat synchronization on a schedule and show a clear status such as “time not synced” until a valid time has been received.
Separate connection management, time synchronization, display rendering, sensor reads and error reporting in the firmware. Avoid making the display wait indefinitely for Wi-Fi or an NTP response: retry after a delay, use backoff between retries, and keep showing the last valid time during a temporary network interruption. Make the display’s status clear if the clock has not yet obtained any valid time.
Decide whether you need an RTC
An NTP-based clock does not need a separate RTC module while it can reach the network for time synchronization. That makes it a simpler first build, but it is not equivalent to a clock designed to preserve accurate time through extended internet outages or power removal. If continued timekeeping through those conditions is a requirement, consider an RTC-backed design with periodic NTP correction. The tutorials cited here do not specify a particular RTC module or its battery-maintenance requirements, so choose and document those details for the hardware you select.
Rank #4
- Perfect choice for beginners to learn, electronics and program.
- The Basic Starter Kit is easy to use and you can learn to program at an introductory level.
- You can use ESP32 modules to control other modules, such as LED,DHT11,OLED module, etc
- The tutorial include codes and lessons.It will teach every users how to assembly Basic Starter Kit for ESP32.
- Please download our tutorial and learn after you receive the goods.
Add temperature, humidity and pressure
A BME280 is an optional addition for displaying environmental readings alongside the time. The ESP32 Engine design combines a BME280 with an SSD1306 OLED and Wi-Fi/NTP timekeeping, and includes timezone and daylight-saving configuration. Keeping the sensor optional lets you first confirm the clock, network synchronization and screen layout without adding another device to troubleshoot.
When you add the sensor, connect it to the I2C bus according to the module’s pinout and update the screen layout so readings remain legible. Treat sensor measurements as separate from the clock’s time status: a sensor problem should not prevent the time from displaying.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchBest Value
- 【High-Performance ESP32-S3 Microcontroller】 Equipped with revolutionary MCP protocol technology, the kit delivers a native AI voice control experience, perfectly adapting to various AIoT application scenarios, suitable for beginners, educators and makers.
- 【8 Versatile Hardware Modules Included】Comes with RGB LED module (full-color dimming, breathing light effect), WS2812 smart light strip (8 programmable LEDs), DHT11 sensor (real-time temperature and humidity monitoring), SG90 servo, DC fan, dual relay, raindrop and soil sensor, meeting diverse project needs.
- 【Zero-Threshold AIoT Control】Adopts innovative MCP protocol, allowing AI models to directly recognize hardware functions without complex programming. Pre-compiled firmware supports plug-and-play after burning, with an extensible architecture for secondary development.
- 【Multi-Scenario Application Coverage】Widely applicable to STEM education (learning IoT, AI interaction, embedded programming), smart home prototype verification, maker project development, and smart agriculture (soil monitoring, automatic irrigation systems).
- 【Comprehensive Learning & Technical Support】Provides an online document center with detailed quick-start guides and free professional technical support to answer questions and assist in problem-solving, helping users get started quickly.
Choose the design trade-offs
| Decision | Option A | Option B | Choose based on |
|---|---|---|---|
| Display | Compact SSD1306 OLED | LED matrix or larger display | Whether compact size or viewing distance matters more |
| Time source | NTP over Wi-Fi | RTC with periodic NTP correction | Whether the clock must keep time without internet or after power loss |
| Features | Time and date only | BME280 and other sensors | Whether environmental data justifies extra wiring and screen space |
| Power strategy | Always-on USB | Sleep and wake strategy | Whether lower energy use matters more than an always-responsive display |
| Build finish | Breadboard prototype | Insulated finished case | Whether the clock is for experimentation or unattended daily use |
Power it safely and plan the enclosure
Use low-voltage USB power for a first build. Unplug USB before changing jumper wires, check the 3.3 V and ground connections, and do not put mains voltage on a breadboard. For a permanent clock, move the electronics into an insulated enclosure and provide strain relief for the USB cable.
Power use depends on the ESP32 variant, radio activity, display and regulator, so do not assume a single consumption figure applies to every board. Espressif documents active, modem-sleep, light-sleep, deep-sleep and hibernation modes; changing sleep behavior, display brightness or Wi-Fi duty cycle can affect the trade-off between energy use and responsiveness. Check the datasheet and hardware guide for the specific ESP32 variant and revision you are using before designing around a power estimate.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

