Skip to content

Xinyuan-LilyGO/T-HMI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟T-HMI🌟

Pinout

image

Quick Start

The board uses USB as the JTAG upload port. When printing serial port information on USB, CDC_ON_BOOT configuration needs to be turned on. If the port cannot be found when uploading the program or the USB has been used for other functions, the port does not appear. Please enter the upload mode manually.

  • Press and hold the BOOT button when the power is off, the button is located behind the RST button.
  • When the USB is connected, first press and hold the BOOT button, then click reset and then release the BOOT button

Arduino

  1. In Arduino Preferences, on the Settings tab, enter the https://espressif.github.io/arduino-esp32/package_esp32_index.json URL in the Additional boards manager URLs input box.
  2. Click OK and the software will install.
  3. Search for ESP32 in Tools → Board Manager and install ESP32-Arduino SDK (V 2.0.5 or above and below V3.0)
  4. Copy everything from this repository lib folder to Arduino library folder (e.g. C:\Users\YourName\Documents\Arduino\libraries)
  5. Select the correct settings in the Tools menu as shown below.
Setting Value
Board ESP32 S3 Dev Module
USB CDC On Boot Enabled
CPU Frequency 240MHz (WiFi)
Core Debug Level None
USB DFU On Boot Enabled
Events Run On Core 1
Flash Mode QIO 80MHz
Flash Size 16MB (128Mb)
JTAG Adapter Integrated USB JTAG
Arduino Runs On Core 1
USB Firmware MSC On Boot Disabled
Partition Scheme Huge APP (3MB No OTA/1MB SPIFFS)
PSRAM OPI PSRAM
USB Mode Hardware CDC and JTAG
Writing as a beginner:
  • When opening the Arduino IDE, you will be prompted that there are new libraries that can be updated. Please do not click update. There is no guarantee that it can be compiled, run, etc. after the update. Make sure that the board is running normally before deciding whether to update. You have to Know that problems may occur after updating due to library differences, or the default configuration (such as TFT_eSPI) will be overwritten.
  • If it runs abnormally after the update, please follow Article 4 of the Arduino Quick Start to delete the directory in libraries, and drag the folder in lib into the libraries directory again.

PlatformIO

  1. PlatformIO plug-in installation: click on the extension on the left column → search platformIO → install the first plug-in
  2. Click Platforms → Embedded → search Espressif 32 in the input box → select the corresponding firmware installation

Tips

  1. The board uses USB as the JTAG upload port. When printing serial port information on USB_CDC_ON_BOOT configuration needs to be turned on. If the port cannot be found when uploading the program or the USB has been used for other functions, the port does not appear. Please enter the upload mode manually.
    1. Connect the board via the USB cable
    2. Press and hold the BOOT button , While still pressing the BOOT button, press RST
    3. Release the RST
    4. Release the BOOT button
    5. Upload sketch
  2. If the above is invalid, burn the firmware to check whether the hardware is normal
  3. Powering up the T-HMI board via the 5V DC connector does not work
    • Looking at the schematic, we know that if you use an external 5V power supply, you need to bring a magnet close to the ReedSwitch and set the PowerOn Pin (GPIO14) to HIGH as soon as the chip starts.
     pinMode(14, OUTPUT);
     digitalWrite(14, HIGH);
  4. It can start normally when using USB power supply, but it cannot start when connected to the battery alone?
    • When using the battery alone, IO10 needs to be set to HIHG to work properly.
    pinMode(10, OUTPUT);
    digitalWrite(10, HIGH);