Skip to content

CrowPanel Advanced 9inch |ESP32-P4 HMI AI Display 1024x600 IPS Touch Screen with WiFi 6 Compatible with Arduino/LVGL

Model DHE04209D

esp32-p4_9inch_hmi_display

Schematic:

advance P4-9

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(IO33); TX(IO34) ; 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 LCD_BK_POWER(IO29);
LCD_BK_EN(IO31)(PWM)
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 9 inch and IPS Display Wiring Pins:

**DSI = Display Serial Interface**is a high-speed, low-power display interface standard defined by the MIPI Alliance, most commonly used in smartphones, tablets, Raspberry Pi devices, and embedded Linux systems.

P4-7-sch-1

DSI Pin connection

DSI_DATAN0--IO40
DSI_DATAN0--IO39
DSI_DATAN0--IO36
DSI_DATAN0--IO35
DSI_CLKN--IO37
DSI_CLKP--IO38
DSI_REXT--IO34

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-9-sch-2

Pin connection

I2C1_SCL(IO46)
I2C1_SDA(IO45)
INT_TP(IO42)
RESET_TP(IO40)

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-9-sch-3

Pin connection

#define RADIO_GPIO_CLK 8
#define RADIO_GPIO_MISO 7
#define RADIO_GPIO_MOSI 6

#ifdef CONFIG_BSP_SX1262_ENABLED
#define SX1262_GPIO_BUSY 9
#define SX1262_GPIO_IRQ 53
#define SX1262_GPIO_NRST 54
#define SX1262_GPIO_NSS 10

#ifdef CONFIG_BSP_NRF2401_ENABLED
#define NRF24_GPIO_IRQ 9
#define NRF24_GPIO_CE 53
#define NRF24_GPIO_CS 54

ESP32-P4 and Audio out:

P4-9-sch-4

Pin connection

#define AUDIO_GPIO_LRCLK    21   // GPIO pin number for LRCLK (Left-Right Clock)
#define AUDIO_GPIO_BCLK     22   // GPIO pin number for BCLK (Bit Clock)
#define AUDIO_GPIO_SDATA    23   // GPIO pin number for SDATA (Serial Data)
#define AUDIO_GPIO_CTRL     30   // GPIO pin number for audio amplifier control

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

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

Resources


Advance HMI P4 9inch Course pdf

Github link:

How to buy


Please visit this page to purchase CrowPanel Advanced 9inch 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.