ESP Terminal with 3.5inch RGB Capacitive Touch Display

From Elecrow
Jump to navigation Jump to search

Description

This Elecrow terminal is a microcontroller based on the ESP32 master. It adopts Xtensa 32-bit LX7 dual-core processor with a main frequency of up to 240Mhz, supports 2.4GHz Wi-Fi and Bluetooth 5 (LE), and can easily handle common edge terminal device application scenarios, such as industrial control, agricultural production environment detection and processing, intelligent logistics monitoring, smart home scenarios and more. This terminal also has a 3.5-inch parallel RGB interface capacitive touch screen with a resolution of 320*480 to ensure perfect image output at a frame rate (FPS) of 60. On the back of this terminal, we have introduced 4 Crowtail interfaces, which can be used with our Crowtail series sensors, plug and play, and create more interesting projects quickly and conveniently. In addition, it is also equipped with an SD card slot for extended storage (SPI leads) and a buzzer function. It support ESP-IDF and Arduino IDE development, and is compatible with Python/Micropython/Arduino. It also support LVGL, which is the most popular free and open-source embedded graphics library to create beautiful UIs for any MCU, MPU and display type. The onboard charging circuit and lithium battery interface can use the type-c power supply interface to supply power and charge the battery at the same time, providing more outdoor scene expansion possibilities. This terminal uses an acrylic shell, which can not only protects the screen, but also makes it more beautiful. The size is only a pocket size, small and portable; two M3 fixing holes are easy to fix, making it easier for you to set up your project.

In addition, our other screen with SPI interface, while ensuring the basic visual effect, adds more Crowtail interface and Camera/microphone functions to it. For details, please click here


Esp32rgb 1.png

Hardware Overview

Esp32rgb 2.png

  • RESET button. Press this button to reset the system.
  • LiPo port. Lithium battery charging interface (lithium battery not included)
  • BOOT button. Hold down the Boot button and press the RESET button to initiate firmware download mode. Users can download firmware through the serial port
  • 5V Power/Type C interface. It serves as the power supply for the development board and the communication interface between the PC and ESP-WROOM-32.
  • 4 Crowtail interfaces. Users can program the ESP32-S3 to communicate with peripherals connected to the Crowtail interface.

Feature

  • Integrated ESP32-S3 module, which is support 2.4 GHz Wi-Fi and Bluetooth 5 (LE)
  • LCD 3.5 inches parallel TFT-LCD with 320*480 resolution
  • Compatible with Arduino/Python/MircoPython
  • Mature software support, support ESP-IDF and Arduino IDE development
  • Support open-source Graphics Library-LVGL
  • Support 1T1R mode, data rate up to 150 Mbps, Wireless Multimedia (WMM)
  • Perfect security mechanism, support AES-128/256, Hash, RSA, HMAC, digital signatures and secure boot
  • Onboard charging chip and interface, use Type-c interface to charge
  • With 4 Crowtail interfaces (HY2.0-4P connector) , plug and play with various Crowtail sensor


Specification

  • ESP32-S3 module with 16MB Flash and 8 MB PSRAM
  • Wi-Fi Protocol: 802.11b/g/n (802.11n up to 150Mbps) Wi-Fi Frequency Range: 2.402GHz - 2.483Ghz
  • Support Bluetooth 5
  • With 4 Crowtail interfaces (HY2.0-4P connector) and onboard Micro TF card slot
  • 3.5-inch TFT LCD RGB true color LCD screen with 320*480 resolution
  • Driver chip: ILI9488 (16-bit parallel line)
  • Capacitive touch panel controller IC FT6236 series
  • Operating Voltage: DC 5V-500mA
  • Operating temperature: -10°C ~ 65°C
  • Active Area: 73.63(L)*49.79mm(W)
  • Appearance Dimensions: 106(L)x66mm(W)*13mm(H)


Schematic diagram of IO port

Esp32rgb 35.png

Development environment configuration

  • 1. Please go to the official website https://www.arduino.cc/ 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:

Esp32rgb 3.png

  • 2. Click the "File" menu, select "Preferences" in the drop-down menu, and then the picture will appear: Unzip the downloaded library file and put it in the libraries folder.

Esp32rgb 4.png

  • Add the ESP32 S3 URL as follows:

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Esp32rgb 5.png

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

Esp32rgb 6.png Esp32rgb 7.png

Software settings:

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

Esp32rgb 8.png

  • 2. Under the "Tools" menu, see "Flash Mode" and select QIO 80MHz

Esp32rgb 9.png

  • 3. Under the "Tools" menu, see "Flash Size" and select 16MB (128Mb)

Esp32rgb 10.png

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

Esp32rgb 11.png

  • 5. View and open the serial port as shown in the figure:

Esp32rgb 12.png

  • warn:

If the CH340G driver is not installed on your PC, please install the CH340G driver first, or switch the SWITCH switch to the USB position and connect it with a USB cable.

Download process

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

111.png

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

Esp32rgb 15.png

  • 3.Click to open the serial port assistant, then click the boot button on the motherboard, and then press the reset button until the serial port assistant displays "waiting for download".

Esp32rgb 16.png

  • 4. 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


Example

  • Example 1 display screen color
  • After the B-ScreenColor.ino code is downloaded, the restart screen will display different colors.

Esp32rgb 19.png

  • Running result:

Esp32rgb 20.png

  • Example 2 Display pictures and read TF card pictures
  • After the F-photo.ino code is downloaded, the photo screen will be displayed on the restart screen.
  • Running result:

Esp32rgb 21.png

  • Example 3Adjust IO40 to control the flashing time of the external LED light as shown in the figure below.
  • After downloading the D-D-PortOut.ino code, restart the screen and the LED will flash alternately.

Esp32rgb 22.png

  • Running result:

Esp32rgb 23.png

  • Example 4 Control the display of an external OLED screen through I2C
  • After downloading the E-IIC.ino code, restart the screen to realize the peripheral OLED display.

Esp32rgb 24.png

  • Running result:

Esp32rgb 25.png

  • Example 5 reads the external ADC through the A port as shown in the figure below.
  • After downloading the A-ADC.ino code, restart the screen to realize the ADC function.

Esp32rgb 26.png

  • Running result:

Esp32rgb 27.png

  • Example 6, control the buzzer to make a sound.
  • After downloading the A-BUZZER.ino code, restart the screen to realize the buzzer function.

Esp32rgb 28.png


  • Example 7, set WIFI name and password to connect automatically.
  • After downloading the A-WIFI.ino code, restart the screen to realize the WiFi connection.

Esp32rgb 29.png

  • Running result:

Esp32rgb 30.png

  • Example 8, LVGL, download LVGL routines, and display UI components (LVGL tools are required to generate corresponding codes before use)
  • After downloading the LVGL_RGB.ino code, restart the screen to realize the function.

Esp32rgb 31.png

  • Running result:

Esp32rgb 32.png Esp32rgb 33.png


Resource