Skip to content

CrowPanel Advanced 5inch ESP32-P4 HMI AI Display 1024x600 IPS Touch Screen with WiFi 6-Without Camera

Model DHE04107D

crowpanel_esp32-p4_5inch_hmi_display

Schematic:

P4-5inch

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:

P4-5inch-sch-1

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).

P4-5inch-sch-2

Pin connection

I2C1_SCL(IO46)
I2C1_SDA(IO45)
TP_INT_IO42(IO42)
TP_RST(IO36)
TP_RST_P12(STC8P1.2)

ESP32-P4 and wireless module wiring pins:

Output voltage: 3.3V Output current: 1A max. Use: The power supply communicates with the wireless module.

P4-5inch-sch-6

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:

P4-5inch-sch-8

Pin connection

I2S_LRCK(IO21);

I2S_SCLK(IO22);

I2S_SDOUT(IO23);  

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.

P4-5inch-sch-7

1 ON
UART1 Wireless Module

Program Download Tutorial Video(Click on the image):

[][video]Tutorial Video

Introduction to UART 0 and USB 2.0:

Program downloads require the use of UART 0.

uart0+usb2.0-1

Note: Turn on the switch before use. Slide the POWER switch to the ON position.

uart0+usb2.0-3

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.

uart0+usb2.0-2

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:
  1. After installing the CH341 serial port driver, navigate to System Preferences.Click Login Items & Extensions.

mac-uart-1

2.Click Driver Extensions.

mac-uart-2

  1. Click Open, then click Done to save the settings.

mac-uart-3

mac-uart-4

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.

P4-idf-1

(2)Double-click to install Visual Studio Code software, and simply proceed with the default installation throughout.

P4-idf-2

P4-idf-3

P4-idf-4

P4-idf-5

(3)Open Visual Studio Code, click on ‘Extensions’, search for Python, and install it.

P4-idf-6

(4)Search for ESP-IDF and install it.

The IDF version must be 5.4.2 or higher.

P4-idf-7

(5).Install the ESP-IDF tools.

P4-idf-8

(6).Select version 5.4.2 and configure the storage location.

P4-idf-9

(7),Awaiting installation.

P4-idf-10

(8),Installation successful.-

P4-idf-11


Elecrow-HMI-UI-contest

Courses on Different Platforms:


AI Voice Chat Robot SquareLine Studio Arduino
ESP32-P4-HMI-AI-Voice-Chat-Robot SquareLineStudio-Logo Arduino
View Tutorials GetStarted GetStarted

ESPHome ESP-IDF
Arduino ESP-IDF-Logo
GetStarted GetStarted

Resources

(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.