CrowPanel Advanced 5inch ESP32-P4 HMI AI Display 1024x600 IPS Touch Screen with WiFi 6-Without Camera¶
Model DHE04107D
Schematic:¶
Functional description of the product's internal interfaces:¶
| Pin Name | Description | Connector Type |
|---|---|---|
| SPK | Output audio signals to connect to speakers. The main board comes with a power amplifier chip circuit. | PH2.0-2P |
| PWR | Power LED. | |
| CHG | Charging LED | |
| RST | Reset button. Press it to reset the system. | |
| boot | ||
| UART1 | Builds communication between Logic modules, including the serial communication module and the print module. | PH2.0-4P |
| I2C | Builds communication between Logic modules, including the serial communication module and the print module. | PH2.0-4P |
| UART3-IN | Input power supply and serial communication functionality | XH2.54-4P |
| BAT | Connect the lithium battery. (with battery charging circuit) | PH2.0-2P |
Product External Interface Functions:¶
| 5.0-inch HMI port | pin number | Electrical Characteristics |
|---|---|---|
| UART1 | RX(IO48); TX(IO47) ; | Output voltage: 3.3V Output current: 1A max. Use: Power supply output and communication. |
| UART3-IN | RX(IO28); TX(IO27) ; | Output voltage: 3.3V Output current: 1A max. Use: Power supply output and communication. |
| I2C | SDA(IO45); SCL(IO46) ; | Output voltage: 3.3V Output current: 1A max. Use: Power supply output and communication. |
| SD Card | SD1_CMD(IO44); SD1_SCK(IO43); SD1_D0(IO39); CS(GND) | Maximum output current: 20mA Signal type: 3.3V logic level, digital control signal |
| LCD Backlight | STC8(P3.7) | Maximum output current: 20mA Signal type: 3.3V logic level, digital control signal |
| PDM MIC | MIC_MCLK1(IO24);MIC_SD1(IO25) | Maximum output current: 20mA Signal type: 3.3V logic level, digital control signal |
| SPK | Cavity Speaker YZ3020/3020 Square/4Ω 3W | |
| BAT | Input voltage: 3.7–4.2 V,Maximum intput current: 430mA |
ESP32-P4 5 inch and IPS Display Wiring Pins:¶
RGB Pin connection
// Refresh Rate = 18000000/(1+40+20+800)/(1+10+5+480) = 42Hz
#define RGB_LCD_PIXEL_CLOCK_HZ (18 * 1000 * 1000)
#define RGB_LCD_H_RES H_size
#define RGB_LCD_V_RES V_size
#define RGB_LCD_HSYNC 4
#define RGB_LCD_HBP 8
#define RGB_LCD_HFP 8
#define RGB_LCD_VSYNC 4
#define RGB_LCD_VBP 16
#define RGB_LCD_VFP 16
#define RGB_PIN_NUM_DISP_EN -1
#define RGB_PIN_NUM_HSYNC 40
#define RGB_PIN_NUM_VSYNC 41
#define RGB_PIN_NUM_DE 2
#define RGB_PIN_NUM_PCLK 3
//B
#define RGB_PIN_NUM_DATA0 8
#define RGB_PIN_NUM_DATA1 7
#define RGB_PIN_NUM_DATA2 6
#define RGB_PIN_NUM_DATA3 5
#define RGB_PIN_NUM_DATA4 4
//G
#define RGB_PIN_NUM_DATA5 14
#define RGB_PIN_NUM_DATA6 13
#define RGB_PIN_NUM_DATA7 12
#define RGB_PIN_NUM_DATA8 11
#define RGB_PIN_NUM_DATA9 10
#define RGB_PIN_NUM_DATA10 9
//R
#define RGB_PIN_NUM_DATA11 19
#define RGB_PIN_NUM_DATA12 18
#define RGB_PIN_NUM_DATA13 17
#define RGB_PIN_NUM_DATA14 16
#define RGB_PIN_NUM_DATA15 15
ESP32-P4 and Touch Driver Wiring:¶
i2c address: 0x5D/0x14.(The INT pin level during reset of the GT911 touch chip determines the device address.)
INT Low Level(0x5D);
INT High Level(0x14).
Pin connection
ESP32-P4 and wireless module wiring pins:¶
Output voltage: 3.3V Output current: 1A max. Use: The power supply communicates with the wireless module.
Pin connection
#define RADIO_GPIO_CLK 26
#define RADIO_GPIO_MISO 47
#define RADIO_GPIO_MOSI 48
#ifdef CONFIG_BSP_SX1262_ENABLED
#define SX1262_GPIO_BUSY 29
#define SX1262_GPIO_IRQ 31
#define SX1262_GPIO_NRST 32
#define SX1262_GPIO_NSS 30
#ifdef CONFIG_BSP_NRF2401_ENABLED
#define NRF24_GPIO_IRQ 29
#define NRF24_GPIO_CE 31
#define NRF24_GPIO_CS 32
ESP32-P4 and Audio out:
Pin connection
Function Selection¶
When the DIP switch is set to position 1, the UART1 function is enabled. When switched to 0N, the wireless module function is enabled.
| 1 | ON |
|---|---|
| UART1 | Wireless Module |
Program Download Tutorial Video(Click on the image):¶
Introduction to UART 0 and USB 2.0:¶
Program downloads require the use of UART 0.
Note: Turn on the switch before use. Slide the POWER switch to the ON position.
If the program utilizes screen functions, power consumption will reach 8-10 watts. If powered solely by the computer's USB port, insufficient power may cause the screen to go black. It is necessary to connect a USB 2.0 port simultaneously for power supply.
If the UART0 connection does not display a serial port number, it may be due to missing serial port drivers. Download the CH341 serial port drivers and retest the connection.
Serial Port Driver for Mac:https://www.wch.cn/downloads/CH34XSER_MAC_ZIP.html
Regarding situations where serial ports remain inaccessible after installing drivers on a Mac, the following settings must be configured on the Mac:¶
- After installing the CH341 serial port driver, navigate to System Preferences.Click Login Items & Extensions.
2.Click Driver Extensions.
- Click Open, then click Done to save the settings.
USB 2.0:¶
USB 2.0 (Universal Serial Bus 2.0) is a common universal serial interface standard used to connect computers with various peripherals.
Its maximum transfer rate is 480 Mbps (High-Speed mode), representing a significant improvement over USB 1.1. This enables it to meet the data transfer needs of devices such as keyboards, mice, USB flash drives, printers, and webcams. USB 2.0 supports hot-plugging and plug-and-play for ease of use, while also providing 5V power supply (up to 500 mA) to peripherals.
Note: The shipped firmware does not include USB functionality. For those requiring USB features, please refer to our USB functionality course in Lesson 6.
NOTE:The firmware for the C6 module is pre-programmed at the factory and cannot be directly reprogrammed via P4.
Platforms Supported¶
Compile Environment Configuration:¶
Vs code Installation
(1) First, download Visual Studio Code from https://code.visualstudio.com/. Select the version compatible with your computer's operating system and download it.
(2)Double-click to install Visual Studio Code software, and simply proceed with the default installation throughout.
(3)Open Visual Studio Code, click on ‘Extensions’, search for Python, and install it.
(4)Search for ESP-IDF and install it.
The IDF version must be 5.4.2 or higher.
(5).Install the ESP-IDF tools.
(6).Select version 5.4.2 and configure the storage location.
(7),Awaiting installation.
(8),Installation successful.-
Courses on Different Platforms:¶
| AI Voice Chat Robot | SquareLine Studio | Arduino |
|---|---|---|
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
| ESPHome | ESP-IDF |
|---|---|
![]() | ![]() |
![]() | ![]() |
Resources¶
Github link:¶
(This GitHub link usually may contain 3D files, schematics, program code, factory firmware, factory sourcecode and other materials. Please click to view.)
How to buy¶
Please visit this page to purchase CrowPanel Advanced 5inch ESP32-P4 HMI AI Display.
Support¶
If you have any problem about how to use it, you can connect to us at the bottom-right of bazzer or contact to techsupport@elecrow.com to get technology support.

































