Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales@spotpear.com
dragon_manager@163.com
tech-support@spotpear.com
zhoujie@spotpear.com
WhatsApp:13246739196
The ESP32-S3-ePaper-1.54 is an e-Paper AIoT development board, equipped with ESP32-S3 microcontroller, which supports Wi-Fi and BLE dual-mode communication. The onboard 1.54inch e-paper display, features ultra-low power consumption and sunlight readability, suitable for portable devices and long-lasting scenarios. It integrates an RTC chip, SHTC3 temperature and humidity sensor, TF card slot, low-power audio codec chip circuit, and Lithium battery recharge management circuit. It reserves interfaces including USB, UART, I2C, and GPIO for easy functionality expansion and sensor connectivity, providing a flexible and reliable development platform for IoT terminals, electronic tags, portable displays, and other applications.
1. ESP32-S3FH4R2 5. PWR power button | 8. SHTC3 temperature and humidity sensor |
For more details, please refer to the Schematic Diagram
ESP32-S3-ePaper-1.54 currently offers two development tools and frameworks, Arduino IDE and ESP-IDF, providing flexible development options. You can choose the appropriate development tool according to your project needs and personal habits.
Arduino IDEArduino IDE is an open source electronic prototyping platform, convenient and flexible, easy to get started. After a simple learning, you can start to develop quickly. At the same time, Arduino has a large global user community, providing an abundance of open source code, project examples and tutorials, as well as rich library resources, encapsulating complex functions, allowing developers to quickly implement various functions. | |
ESP-IDFESP-IDF, or full name Espressif IDE, is a professional development framework introduced by Espressif Technology for the ESP series chips. It is developed using the C language, including a compiler, debugger, and flashing tool, etc., and can be developed via the command lines or through an integrated development environment (such as Visual Studio Code with the Espressif IDF plugin). The plugin offers features such as code navigation, project management, and debugging, etc. |
Each of these two development approaches has its own advantages, and developers can choose according to their needs and skill levels. Arduino are suitable for beginners and non-professionals because they are easy to learn and quick to get started. ESP-IDF is a better choice for developers with a professional background or high performance requirements, as it provides more advanced development tools and greater control capabilities for the development of complex projects.
This chapter introduces setting up the Arduino environment, including the Arduino IDE, management of ESP32 boards, installation of related libraries, program compilation and downloading, as well as testing demos. It aims to help users master the development board and facilitate secondary development.
Board name | Board installation requirement | Version number requirement |
---|---|---|
esp32 by Espressif Systems | "Install Offline" / "Install Online" | ≥3.2.1 |
..\ESP32-S3-ePaper-1.54\Arduino\libraries
Library Name | Description | Version | Library Installation Requirement |
---|---|---|---|
LVGL | Graphical library | v8.3.11/v9.3.0 | "Install Offline" |
SensorLib | Sensor control library | v0.3.1 | "Install Online" or "Install Offline" |
File
-> New Sketch
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello, World!");
delay(2000);
}
File
-> Save As...
. In the pop-up menu, select the path to save the project, and enter a project name, such as Hello_World, click Save
①. Click to select the dropdown menu option Select Other Board and Port;
②. Search for the required development board model esp32s3 dev module and select;
③. Select COM Port;
④. Save the selection.
①. Compile the program; ②. Compile and download the program; ③. Download successful.
Demo | Basic Description | Dependency Library |
---|---|---|
01_ADC_Test | Get the voltage value of the lithium battery | - |
02_I2C_PCF85063 | Print the real time of the RTC chip | SensorLib |
03_I2C_STHC3 | Get data from SHTC3 temperature & humidity sensor | - |
04_SD_Card | Load and display the information of the TF card | - |
05_WIFI_AP | Set to AP mode to obtain the IP address of the access device | - |
06_WIFI_STA | Set to STA mode to connect to WiFi and obtain an IP address | - |
07_BATT_PWR_Test | When powered by a lithium battery alone, control the power using the PWR button | - |
08_Audio_Test | Play the sound recorded by the microphone through the speaker | --- |
09_LVGL_V8_Test | LVGLV8 demo | LVGL V8.3.11 |
10_LVGL_V9_Test | LVGLV9 demo | LVGL V9.3.0 |
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
#define sdcard_write_Test
macro definition.//#define sdcard_write_Test
Result demonstration
Demo description
Hardware connection
Code analysis
05_WIFI_AP.ino
, find ssid
and password
, then a phone or other device in STA mode can connect to the development board using these ssid and password.const char *ssid = "ESP32_AP";
const char *password = "12345678";
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the MAC address of the device will be output, as shown in the figure:
Demo description
Hardware connection
Code analysis
05_WIFI_STA.ino
, find ssid
and password
, then modify them to the SSID and Password of the available router in your current environment.const char *ssid = "you_ssid";
const char *password = "you_password";
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the IP address obtained will be output, as shown in the figure:
Demo description
Hardware connection
Code analysis
Result demonstration
1. Press and hold the PWR button, wait for the screen to display "On", which means that the startup is successful, and release the button 2. Press and hold the PWR button again, wait for the screen to display "Off", which means that the power is turned off successfully, and release the button
Demo description
Hardware connection
Code analysis
Result demonstration
1. Double-click the BOOT button to enter recording mode, speak into the MIC, and it will automatically end after 3 seconds 2. Click the BOOT button to play the sound you just recorded (there will be a harsh noise when playing without recording data)
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
This chapter introduces setting up the ESP-IDF environment setup, including the installation of Visual Studio and the Espressif IDF plugin, program compilation, downloading, and testing of demos, to assist users in mastering the development board and facilitating secondary development.
①Select the corresponding demo
②Its readme will state what chip the demo applies to (how to use the demo and the file structure are described below, omitted here)
③Click to create the demo
①.ESP-IDF Development Environment Version Manager, when our project requires differentiation of development environment versions, it can be managed by installing different versions of ESP-IDF. When the project uses a specific version, it can be switched to by utilizing it
②.Device flashing COM port, select to flash the compiled program into the chip
③.Select set-target chip model, select the corresponding chip model, for example, ESP32-P4-NANO needs to choose esp32p4 as the target chip
④.menuconfig, click it to modify sdkconfig configuration file, please refer to project configuration details
⑤.fullclean button, when the project compilation error or other operations pollute the compiled content, you can clean up all the compiled content by clicking it
⑥.Build project, when a project satisfies the build, click this button to compile
⑦.Current download mode, the default is UART
⑧.flash button, when a project build is completed, select the COM port of the corresponding development board, and click this button to flash the compiled firmware to the chip
⑨.monitor enable flashing port monitoring, when a project passes through Build --> Flash, click this button to view the log of output from flashing port and debugging port, so as to observe whether the application works normally
⑩.Debug
⑪.Build Flash Monitor one-click button, which is used to continuously execute Build --> Flash --> Monitor, often referred to as "little flame"
CMakeLists.txt
.CMake
first reads the content of the top-level CMakeLists.txt
in the project directory to read the build rules and identify the content to be compiled. When the required components and demos are imported into the CMakeLists.txt
, the compilation tool CMake
will import each content that needs to be compiled according to the index. The compilation process is as follows:Demo | Basic Description | Dependency Library |
---|---|---|
01_ADC_Test | Get the voltage value of the lithium battery | - |
02_I2C_PCF85063 | Print the real time of the RTC chip | SensorLib |
03_I2C_STHC3 | Get data from SHTC3 temperature & humidity sensor | - |
04_SD_Card | Load and display the information of the TF card | - |
05_WIFI_AP | Set to AP mode to obtain the IP address of the access device | - |
06_WIFI_STA | Set to STA mode to connect to WiFi and obtain an IP address | - |
07_BATT_PWR_Test | When powered by a lithium battery alone, control the power using the PWR button | - |
08_Audio_Test | Play the sound recorded by the microphone through the speaker | --- |
09_LVGL_V8_Test | LVGLV8 demo | LVGL V8.3.11 |
10_LVGL_V9_Test | LVGLV9 demo | LVGL V9.3.0 |
11_FactoryProgram | Comprehensive demo | LVGL V8.3.11 |
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
#define sdcard_write_Test
macro definition.//#define sdcard_write_Test
Result demonstration
Demo description
Code analysis
softap_example_main.c
, find SSID
and PASSWORD
, and then your phone or other device in STA mode can use the SSID and PASSWORD to connect to the development board.#define EXAMPLE_ESP_WIFI_SSID "waveshare_esp32"
#define EXAMPLE_ESP_WIFI_PASSWORD "wav123456"
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the MAC address and IP address of the device will be output, as shown in the figure:
Demo description
Code analysis
esp_wifi_bsp.c
, find ssid
and password
, then modify them to the SSID and Password of the available router in your current environment.wifi_config_t wifi_config = {
.sta = {
.ssid = "PDCN",
.password = "1234567890",
},
};
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the IP address obtained will be output, as shown in the figure:
Demo description
Hardware connection
Code analysis
Result demonstration
1. Press and hold the PWR button, wait for the screen to display "On", which means that the startup is successful, and release the button 2. Press and hold the PWR button again, wait for the screen to display "Off", which means that the power is turned off successfully, and release the button
Demo description
Hardware connection
Code analysis
Result demonstration
1. Double-click the BOOT button to enter recording mode, speak into the MIC, and it will automatically end after 3 seconds 2. Click the BOOT button to play the sound you just recorded 3. Double-click the PWR button to play a piece of music 4. Click the PWR button to interrupt music playback
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Result demonstration
1. You can check if the onboard hardware is working properly through the main interface 2. Click PWR to jump to the music interface. To view related settings, you can check the source code.
..\ESP32-S3-ePaper-1.54-Demo\Firmware
①View through Device Manager: Press the Windows + R keys to open the "Run" dialog box; input devmgmt.msc and press Enter to open the Device Manager; expand the "Ports (COM and LPT)" section, where all COM ports and their current statuses will be listed.
②Use the command prompt to view: Open the Command Prompt (CMD), enter the "mode" command, which will display status information for all COM ports.
③Check hardware connections: If you have already connected external devices to the COM port, the device usually occupies a port number, which can be determined by checking the connected hardware.
①Use the dmesg command to view: Open the terminal.
①Use the ls command to view: Enter ls /dev/ttyS* or ls /dev/ttyUSB* to list all serial port devices.
③Use the setserial command to view: Enter setserial -g /dev/ttyS* to view the configuration information of all serial port devices.
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com