Xinyuan-LilyGO / T-Panel

This is an RGB screen with a pixel resolution of 480x480, featuring dual chips on board, ESP32S3 and ESP32H2 chips, supporting 7-24V voltage input, RS485 communication, and more.
GNU General Public License v3.0
18 stars 3 forks source link

T-Panel

English | 中文

Version iteration:

Version Update date Update description
T-Panel_V1.0-V1.1 2023-11-23 Original version
T-Panel_V1.2 2023-12-11 Modify the RS485 module to be replaceable with either an RS485 or CAN module
T-Panel_V1.3 2024-05-08 Modify the structure

PurchaseLink

Product SOC FLASH PSRAM Link
T-Panel_V1.0-V1.1 ESP32S3 16M 8M LILYGO Mall
T-Panel_V1.2 ESP32S3 16M 8M LILYGO Mall
T-Panel_V1.3 ESP32S3 16M 8M LILYGO Mall

Directory

Describe

T-Panel is an intelligent home product featuring a 480x480 RGB pixel large screen. It is controlled by the high-performance ESP32S3 chip onboard, which can communicate and exchange data with ESP32H2. The product also incorporates an RS485 chip for long-distance transmission of other devices, and its wide voltage input enhances compatibility.The screen of the T-Panel version is touch-enabled.

Preview

PCB board

Rendering

Module

1.MCU

2. Screen

3. SD Card Slot

4. IO Expansion

5. Telecommunication

T-Panel_V1.2-V1.3

  • Using Bus Communication Protocol: CAN
  • Using Bus Communication Protocol : TWAI

6. Touch

QuickStart

Examples Support

Attention: Currently, ESP32H2 can only be programmed using the Arduino IDE

ESP32-S3

Example Support IDE And Version Description Picture
GFX_CST3240_Image_Rotation [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
GFX_PDQ [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
RS485 [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
IIC_Scan_2 [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
SD [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
ESP32S3_ESP32H2_Uart [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
T-Panel_Test_V1_0-V1_1 [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
Out-of-factory original test file
T-Panel_Test_V1_2 [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
Out-of-factory original test file
Wifi [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
XL95x5 [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
Lvgl [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
Lvgl_benchmark [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
CAN [Platformio IDE][espressif32-v6.5.0]
[Arduino IDE][esp32_v2.0.14]
Firmware Description Picture
T-Panel_Test_V1_0-V1_1 Out-of-factory original test file
T-Panel_Test_V1_2(RS485) Out-of-factory original test file
T-Panel_Test_V1_2(CAN) Out-of-factory original test file

ESP32-H2

Example Support IDE And Version Description Picture
ESP32H2_Uart_Callback [Arduino IDE][esp32-libs_V3.0.2] The factory initial raw files are used with the ESP32-S3 main chip in conjunction with the T-Panel_Test_V1.0-V1.1 version
ESP32H2_BLE_Test [Arduino IDE][esp32-libs_V3.0.2] The factory initial raw files are used with the ESP32-S3 main chip in conjunction with the T-Panel_Test_V1.2 version
Firmware Description Picture
ESP32H2_Uart_Callback The factory initial raw files are used with the ESP32-S3 main chip in conjunction with the T-Panel_Test_V1.0-V1.1 version
ESP32H2_BLE_Test The factory initial raw files are used with the ESP32-S3 main chip in conjunction with the T-Panel_Test_V1.2 version

PlatformIO

  1. InstallVisualStudioCode,Choose installation based on your system type.

  2. Open the "Extension" section of the Visual Studio Code software sidebar(Alternatively, use "Ctrl+Shift+X" to open the extension),Search for the "PlatformIO IDE" extension and download it.

  3. During the installation of the extension, you can go to GitHub to download the program. You can download the main branch by clicking on the "<> Code" with green text, or you can download the program versions from the "Releases" section in the sidebar.

  4. After the installation of the extension is completed, open the Explorer in the sidebar(Alternatively, use "Ctrl+Shift+E" go open it),Click on "Open Folder," locate the project code you just downloaded (the entire folder), and click "Add." At this point, the project files will be added to your workspace.

  5. Open the "platformio.ini" file in the project folder (PlatformIO will automatically open the "platformio.ini" file corresponding to the added folder). Under the "[platformio]" section, uncomment and select the example program you want to burn (it should start with "default_envs = xxx") Then click "" in the bottom left corner to compile,If the compilation is correct, connect the microcontroller to the computer and click "" in the bottom left corner to download the program.

Arduino

  1. InstallArduino,Choose installation based on your system type.

  2. Open the "example" directory within the project folder, select the example project folder, and open the file ending with ".ino" to open the Arduino IDE project workspace.

  3. Open the "Tools" menu at the top right -> Select "Board" -> "Board Manager." Find or search for "esp32" and download the board files from the author named "Espressif Systems." Then, go back to the "Board" menu and select the development board type under "ESP32 Arduino." The selected development board type should match the one specified in the "platformio.ini" file under the [env] section with the header "board = xxx." If there is no corresponding development board, you may need to manually add the development board from the "board" directory within your project folder.

  4. Open menu bar "File" -> "Preferences" ,Find "Sketchbook location" here,copy and paste all library files and folders from the "libraries" folder in the project directory into the "libraries" folder in this directory.

  5. Select the correct settings in the Tools menu, as shown in the table below.

ESP32-S3

Setting Value
Board ESP32S3 Dev Module
Upload Speed 921600
USB Mode Hardware CDC and JTAG
USB CDC On Boot Enabled
USB Firmware MSC On Boot Disabled
USB DFU On Boot Disabled
CPU Frequency 240MHz (WiFi)
Flash Mode QIO 80MHz
Flash Size 16MB (128Mb)
Core Debug Level None
PSRAM QSPI PSRAM
Arduino Runs On Core 1
Events Run On Core 1

ESP32-H2

Setting Value
Board ESP32H2 Dev Module
Upload Speed 921600
USB CDC On Boot Disabled
CPU Frequency 64MHz
Flash Mode QIO
Flash Size 4MB (32Mb)
Core Debug Level None
  1. Select the correct port.

  2. Click "" in the upper right corner to compile,If the compilation is correct, connect the microcontroller to the computer,Click "" in the upper right corner to download.

firmware download

  1. Open the project file "tools" and locate the ESP32 burning tool. Open it.

  2. Select the correct burning chip and burning method, then click "OK." As shown in the picture, follow steps 1->2->3->4->5 to burn the program. If the burning is not successful, press and hold the "BOOT-0" button and then download and burn again.

  3. Burn the file in the root directory of the project file "firmware" file,There is a description of the firmware file version inside, just choose the appropriate version to download.

example example

PinOverview

Display Pin ESP32S3 Pin XL95X5 Pin
VSYNC ESP32S3_IO40 NULL
HSYNC ESP32S3_IO39 NULL
PCLK ESP32S3_IO41 NULL
B0 ESP32S3_IO1 NULL
B1 ESP32S3_IO2 NULL
B2 ESP32S3_IO3 NULL
B3 ESP32S3_IO4 NULL
B4 ESP32S3_IO5 NULL
G0 ESP32S3_IO6 NULL
G1 ESP32S3_IO7 NULL
G2 ESP32S3_IO8 NULL
G3 ESP32S3_IO9 NULL
G4 ESP32S3_IO10 NULL
G5 ESP32S3_IO11 NULL
R0 ESP32S3_IO12 NULL
R1 ESP32S3_IO13 NULL
R2 ESP32S3_IO42 NULL
R3 ESP32S3_IO46 NULL
R4 ESP32S3_ IO45 NULL
BL ESP32S3_IO14 NULL
CS NULL XL95X5_IO17
SCLK NULL XL95X5_IO15
MOSI NULL XL95X5_IO16
RST NULL XL95X5_IO5
Display Screen Touch Pin ESP32S3 Pin XL95X5 Pin
INT ESP32S3_IO21 NULL
RST NULL XL95X5_IO4
SDA ESP32S3_IO17 NULL
SCL ESP32S3_IO18 NULL
SD Pin ESP32S3 Pin
CS IO38
SCLK IO36
MOSI IO35
MISO IO37

T-Panel_V1.0-V1.1

RS485 pin ESP32S3 pin XL95x5 pin
TX ESP32S3_IO15 NULL
RX ESP32S3_IO16 NULL
CON NULL XL95x5_IO7

T-Panel_V1.2

RS485 and CAN share pins ESP32S3 pin
TX ESP32S3_IO16
RX ESP32S3_IO15
Function ESP32H2 Pin ESP32S3 Pin XL95X5 Pin
Activate The BOOT Mode Of ESP32H2 ESP32H2_IO9 ESP32S3_IO33 NULL
Reset ESP32H2 ESP32H2_Pin Number 8 ESP32S3_IO34 NULL
Uart ESP32H2_TX_IO24 ESP32S3_RX_IO48 NULL
Uart ESP32H2_RX_IO23 ESP32S3_TX_IO47 NULL
IO ESP32H2_IO12 NULL XL95X5_IO1
IO ESP32H2_IO4 NULL XL95X5_IO2
IO ESP32H2_IO5 NULL XL95X5_IO3

FAQ





Project

Information

DependentLibraries