MartinFowler

【Training Camp】ESP32 OLED Clock

 
Overview

The core MCU of this work is divided into the old version ESP32WROOM32D and the new version ESP32-C3-32S, so the source code is divided into two sets.

 

ESP32WROOM32D can be automatically downloaded to facilitate programming and debugging.

ESP32-C3-32S does not use automatic downloading here, so you need to manually press button IO9 to enter download mode when downloading.

Use TYPEC power supply.

The design of using the ESP32 main control and the base plate is separated, which makes it easy to replace other versions of the main control with WIFI function. When using ESP32, you need to short the J1 jumper port.

When automatically downloading, jumpers need to be set according to the pull-down pin requirements of ESP32 (not C3) or ESP8266.

 

When using WROOM32D↓

To use the Arduino IDE to burn the program, you need to install u8g2, timelib, and WiFimanager in advance. Otherwise, the compilation will not be successful. These three libraries are in the attachment. The ESP32 old version firmware package has been uploaded as an attachment. The C3 firmware package needs to be downloaded by yourself. The download always failed for me, so I have never updated to the C3 version. Just unzip the compressed package to your ARDUINO library file path. Generally is my documentation for Arduinolibraries.

When burning, select the ESP32 DEV Module for the development board (because I am using WROOM32), and leave the defaults for others. Then install the CH340 driver and select the corresponding serial port to download.

 

When using C3-32S↓

You need to install the ESP32 package 2.0.0 or above first. The old version does not support C3's ESP32. This process is a bit troublesome. If ARDUINO IDE cannot download the latest version of the ESP32 package, you can refer to this article https://www.jianshu.com/ p/a8f3fc166b5d

Because the WIFIMANAGER library does not yet support the C3 version of ESP32, the router WIFI and password can only be set in advance in the program.

 

The 0.96 IIC OLED interface part can choose the power supply sequence (through the J3 J4 jumper), because there are two four-pin OLED sequences, one is VCC GND SCL SDA, and the other is GND VCC SCL SDA.

 

C3-32S distribution network:

Enter your router WIFI name and password in SSID and PASS respectively, then compile and burn it. Remember to select the corresponding FLASH capacity before downloading.

XYNY8fs9DH96cZE1DkhLA05VQypLHxRxUnueagUg.png

WOOM32D version automatic network configuration tutorial:

Burn the program into ESP32 and power it on. Use your mobile phone to open WIFI and you will see a WIFI named ESP32 with the password 88888888  . 

After the mobile phone is connected to WIFI, a web page will pop up, as follows:

sjpKMJnpiu33YibyZ92tfRFxtXPAE7ftWqIC67FC.jpeg

 

Then click the first button. There may be no response. You need to wait for a while because the ESP32 is scanning nearby WIFI.

Click on the WIFI you want to connect to and enter the password, then click SAVE to save.

sp6afOUv0ar6OQIL85wOaryzji8oCt8BMqcTp5M8.jpeg

Then wait for ESP32 to connect to WIFI.

 

 

The following is a picture of the actual object:

ESP32-C3-32S core board

 

ESP32WROOM core board

 

base plate

 

 

Some of the yellow display parts are missing because my OLED is defective and those lines are broken.

 

Anxinke ESP32-C3-32S core board schematic diagram

ItWiFyVJldJelfNz3RZwndwC9fBrKL6mDnTcBVGR.png

 

ESP32WROOM32D core board project link: https://oshwhub.com/death/mcu-hu-xin-ban

ESP32WOOM32D core board schematic↓

PZGCwXKM8sKghDtpLWcKXzwrXVEyDOmiORvsSRqx.png

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-12 12:57:04

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号