Skip to content

CrowPanel ESP32 HMI 5.0-inch Display

Requirements for the relevant version of the routine
Board Version
esp32 by Espressif System 2.0.14/2.0.15
Lib Related Versions
Ivgl: 8.3.3
TFT_eSPI: 2.5.0
LovyanGFX: 1.1.8
The libs are provided directly by our wiki, just use the libs provided by the wiki.
This example is suitable for generating UI using Squareline version 1.5.1 or earlier.

Module: DIS07050H

CrowPanel-ESP32-5-0inch

Get_one_now

Updated Record


Please click on the "UPDATED RECORD" below to check the updated details in text.

UPDATED-RECORD

Please watch below to check the updated explanation.

Feature


  • Integrated ESP32-S3-WROOM-1-N4R2 module,built-in wireless communication 2.4 GHz Wi-Fi (802.11 b/g/n) and Bluetooth 5.0;
  • Support development environment Arduino IDE, Espressif IDF, Lua RTOS, Micro python and compatible with LVGL graphics library;
  • Built-in LVGL demo interface and Arduino example, plug and play;
  • LCD 800*480 5.0 inches TFT-LCD with driver IC ILI6122/ILI5960;
  • Rich peripheral interfaces and expansion functions enable it to meet the needs of different fields.

Specification


  • Model: 5.0 inch ESP32 display
  • Main Processor: ESP32-S3-WROOM-1-N4R2
  • Resolution: 800*480
  • Color Depth: 16M
  • Touch Type: Resistive Touch Screen
  • Touch Panel: TN Panel
  • Screen: TFT-LCD Screen
  • Display driver: ILI6122/ILI5960
  • External power supply: DC5V-2A
  • Interface: 1xTF Card Slot, 1x GPIO, 1xSpeak, 1xUART1, 1xUART0, 2xI2C

Pin Out


CrowPanel-ESP32-5-inch-pinout

Pin Name Description Connector Type
SPK Output audio signal,connected with speakers. The motherboard comes with a power amplifier chip circuit. PH2.0-2P
PWR Power LED.
RST Reset button. Push it to reset the system.
BOOT
GPIO_D Digital and artificial I/O interface. HY2.0-4P
I2C Build the communication among micro controller and peripheral devices. HY2.0-4P
TF Provide off-line save and extra storage space.
UART1 Build the communication among Logic modules, including serial communication module and print module. HY2.0-4P
BAT Connect with the lithium battery. (With the battery charging circuit) PH2.0-2P
UART0 Provide serial communication, supply voltage(transform USB to UART0) and serial information printing. HY2.0-4P/USB-C
5.0-inch HMI Port Pin Number
GPIO_D IO38
UART RX(IO44); TX(IO43)
I2C SDA(IO19); SCL(IO20)
SPK(I2S) I2S-CTRL; I2S-LRCLK(IO18); I2S-BCLK(IO42); I2S-SDIN(IO17)
SD Card Slot(SPI) MOSI(IO11); MISO(IO13); CLK(IO12); CS(IO10)
LCD Backlight IO2

Schematic Diagram


ESP32-S3 and TFT display wiring pins

Schematic Diagram:

CrowPanel-ESP32-5-inch-diagram-1

Definition in the main program:

class LGFX : public lgfx::LGFX_Device
{
public:

  lgfx::Bus_RGB     _bus_instance;
  lgfx::Panel_RGB   _panel_instance;

  LGFX(void)
  {


    {
      auto cfg = _bus_instance.config();
      cfg.panel = &_panel_instance;

      cfg.pin_d0  = GPIO_NUM_8; // B0
      cfg.pin_d1  = GPIO_NUM_3;  // B1
      cfg.pin_d2  = GPIO_NUM_46;  // B2
      cfg.pin_d3  = GPIO_NUM_9;  // B3
      cfg.pin_d4  = GPIO_NUM_1;  // B4

      cfg.pin_d5  = GPIO_NUM_5;  // G0
      cfg.pin_d6  = GPIO_NUM_6; // G1
      cfg.pin_d7  = GPIO_NUM_7;  // G2
      cfg.pin_d8  = GPIO_NUM_15;  // G3
      cfg.pin_d9  = GPIO_NUM_16; // G4
      cfg.pin_d10 = GPIO_NUM_4;  // G5

      cfg.pin_d11 = GPIO_NUM_45; // R0
      cfg.pin_d12 = GPIO_NUM_48; // R1
      cfg.pin_d13 = GPIO_NUM_47; // R2
      cfg.pin_d14 = GPIO_NUM_21; // R3
      cfg.pin_d15 = GPIO_NUM_14; // R4

      cfg.pin_henable = GPIO_NUM_40;
      cfg.pin_vsync   = GPIO_NUM_41;
      cfg.pin_hsync   = GPIO_NUM_39;
      cfg.pin_pclk    = GPIO_NUM_0;
      cfg.freq_write  = 15000000;

      cfg.hsync_polarity    = 0;
      cfg.hsync_front_porch = 8;
      cfg.hsync_pulse_width = 4;
      cfg.hsync_back_porch  = 43;

      cfg.vsync_polarity    = 0;
      cfg.vsync_front_porch = 8;
      cfg.vsync_pulse_width = 4;
      cfg.vsync_back_porch  = 12;

      cfg.pclk_active_neg   = 1;
      cfg.de_idle_high      = 0;
      cfg.pclk_idle_high    = 0;

      _bus_instance.config(cfg);
    }
            {
      auto cfg = _panel_instance.config();
      cfg.memory_width  = 800;
      cfg.memory_height = 480;
      cfg.panel_width  = 800;
      cfg.panel_height = 480;
      cfg.offset_x = 0;
      cfg.offset_y = 0;
      _panel_instance.config(cfg);
    }
    _panel_instance.setBus(&_bus_instance);
    setPanel(&_panel_instance);

  }
};


LGFX lcd;

ESP32-S3 and touch driver wiring

Schematic Diagram:

CrowPanel-ESP32-5-inch-diagram-2

Pin definition in the touch.h:

 #define TOUCH_GT911_SCL 20//20
 #define TOUCH_GT911_SDA 19//19

Tips:

Please refer to this post to check how to connect sensor using I2C pin and also use touch with it.

Platforms Supported


Elecrow-HMI-UI-contest

Arduino IDE SquareLine Studio PlatformIO Home Assistant
Arduino SquareLineStudio-Logo PlatformIO-Logo HomeAssistant-Logo
GetStarted GetStarted GetStarted GetStarted
ESPHome MicroPython ESP-IDF
ESPHome-Logo MicroPython-Logo ESP-IDF-Logo
GetStarted GetStarted GetStarted

NOTE2ForBeginners

FAQ


Resources


Schematic & PCB

Specifications

Certification

Demo Code

Arduino IDE

PlatformIO

Home Assistant

MicroPython

ESP-IDF

Video Lessons