ESP32 Display 5.0-inch HMI Arduino Tutorial

From Elecrow
Revision as of 08:47, 17 February 2024 by Admin (talk | contribs) (→‎Download process)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


This tutorial introduces how to configure the Arduino programming environment and how to set up the board.

The tutorial examples include the lvgl demo example (When you first received it, the demo it demonstrated after you powered it up), and how to connect the esp terminal to some sensors/modules.

Development environment configuration

  • 1. Please go to the official website to download the Arduino IDE development tool and download the corresponding library file, install the tool, click the start icon: open as shown in the figure:

Image (1).png
Image (2).png
Image (3).png
Esp32rgb 3.png

  • 2. Download the libraries provided by Elecrow. Copy them to the library folder in the Arduino installation directory.

If you don't know the path of Arduino library directory, you can open Arduino IDE→Files→Preferences:

  • Add the ESP32 S3 URL as follows:
Esp32rgb 5.png

  • The tool automatically downloads and updates the corresponding model, check the steps as shown in the figure:

Image (7).png
Image (8).png

Board settings:

  • 1. Under the "Tools" menu, see "Development Board ESP32" and select ESP32S3 Dev MODULE as shown in the figure.


  • 2. Under the "Tools" menu, see "Partition scheme" and select Huge APP(3MB No OTA/1MB SPIFFS)

Image (10).png

  • 3. Under the "Tools" menu, see "PSRAM" and select OPI PSRAM


  • warn:

If the CH340G driver is not installed on your PC, please install the CH340G driver first.

Download process

  • 1. Connect the motherboard and computer through a USB to type-c data cable;


  • 2. Click on the tool on the arduino software and select the corresponding serial port number;


  • 3.Click "upload" to upload the program to the ESP32 motherboard

Esp32rgb 17.png

  • Until the prompt upload is successful, as shown in the figure:

Esp32rgb 18.png

LVGL Widgets Demo

Click here to watch the tutorial video.

Connect with Sensors/Modules

  • Example 1, Let the LED to turn on or turn off .


  • Running result:


  • Example 2, Control the output of speaker.


  • Running result:


  • Example 3, Initialize Micro TF Card slot.


  • Running result:


  • Example 4, initialize the touch signal.


  • Running result:


  • Example 5, initialize the interact communication of Bluetooth.

Image (28).png

  • Running result:


  • Example 6, initialize the interact communication of WIFI.

Image (29).png

  • Running result:

Image (30).png