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.
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:
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.
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
ESP32WROOM32D core board project link: https://oshwhub.com/death/mcu-hu-xin-ban
ESP32WOOM32D core board schematic↓
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet