Skip to main content

FAQ

Q: I want more library support for the program?

You can subscribe to this repository and open an issue describing the requirement; the engineers will evaluate it as soon as they receive it: ESP32-display-support

Q: How do I tell the versions apart?

There is a silkscreen marking below the screen cable: no marking means V1.0, while a marking indicates the corresponding version

ESP32-S3-Touch-LCD-4 rev 2

Q: CAN communication fails to send or receive?
Q: Why does a wide-voltage supply make the screen untouchable and prevent the I2C devices from working?
  1. With a wide-voltage supply, none of the I2C devices can be recognized, which is caused by the SW6106 I2C being pulled low; connecting a lithium battery is recommended. If no lithium battery can be connected, the SW6106 I2C line can be cut.

ESP32-S3-Touch-LCD-4 250113 01

Q: Why does the board shut down after being powered for a while, and the PWR LED goes off?

When powering V1–V3 development boards from a lithium battery, if the load current remains below the light-load detection threshold, the SW6106 may stop boosting and shut off its output, causing the board to power off and the PWR indicator to go out.

  • Lower the light-load detection threshold. After each power-up and completion of I2C initialization, write 0x0A to register 0x38 of the SW6106 (I2C address 0x3C) to set the light-load detection threshold of port A to its lowest level. If the load current remains below the configured threshold, the SW6106 may still stop boosting and shut off its output.
  • Simulate a short press periodically. Alternatively, during program execution, write 0x01 to register 0x03 of the SW6106 once every 1 s. Each write triggers a short-press event, requesting the SW6106 to enable the discharge output of port A.

See SW6106 register description for the register bit definitions.

Q: Why does my board not light up when powered on?
  1. When we designed the board, considering the battery function (SW6106 solution) and the power-on function (MOS), we reserved an ideal diode so that the board takes power from the USB port to supply the circuit, and normally the board powers on as soon as it is connected. In some cases, for example when powered from a computer USB or a Type-C port that supports fast-charging protocols, the voltage may be boosted and burn out the TVS, causing a short circuit. This is a normal protection-circuit behavior; what you see is smoke, a dark screen, or the PWR LED flashing. In that case, the TVS and the MOS transistor shown in the figure below need to be removed; rest assured, the circuit has been verified to withstand a maximum fast-charging voltage of 20V, so removing them is a reasonable solution.

ESP32-S3-Touch-LCD-4 241101 10

  1. After removing the TVS and MOS transistor as described above, the board does not light up when powered, and BAT_PWR needs to be clicked once to power on; of course, while powered on, BAT_PWR can also be double-clicked to power off.
Q: Why does flashing fail?
  1. Flashing fails when the serial port is occupied; close the serial monitor and flash again
  2. Flashing fails when the ESP32 program has crashed; in that case, fully disconnect the power from the module, hold BOOT while powering on to enter forced download mode, and then flash. The board does not exit download mode automatically after flashing, so power-cycle it again.
Q: How do I check the COM port in use?

Windows:

  1. Through Device Manager: press Windows + R to open the "Run" dialog; type devmgmt.msc and press Enter to open Device Manager; expand "Ports (COM & LPT)", which lists all COM ports and their current status.
  2. With Command Prompt: open Command Prompt (CMD); type the mode command, which shows the status of all COM ports.
  3. Check the hardware connection: if an external device is already connected to a COM port, it usually occupies a port number; check the connected hardware to determine which port is in use.

Linux:

  1. With the dmesg command: open a terminal.
  2. With the ls command: type ls /dev/ttyS* or ls /dev/ttyUSB* to list all serial devices.
  3. With the setserial command: type setserial -g /dev/ttyS* to view the configuration of all serial devices.
Q: How do I port the provided lib libraries? Or how do I develop the LCD screen myself and drive it?

The LCD display chip used in this product is the ST7701 and the touch chip is the GT911; we recommend referring directly to the Arduino or ESP-IDF examples

Q: Can you look at my code? Can you modify it for me?

This product is positioned as a development board, not a finished product. Its ecosystem is built around the ESP32 core and is very mature, and the development environment is friendly. We do not assist with code modifications; makers and geeks are welcome to exercise their own DIY skills, and you can ask the engineers if you have questions. If you think our products are good and would like custom hardware, custom enclosures, or custom software in volume, please contact our sales team

ESP32-S3-Touch-LCD-1

Q: The code is fine and the flashing succeeds, but there is no output after running. Why?
  • Check the schematic; depending on the Type-C interface of different boards, the corresponding code handles the output differently:
    • On boards with direct USB output, the printf function can print output; to also support the Serial function, enable USB CDC On Boot or declare HWCDC
    • On boards with a UART-to-USB bridge, both printf and Serial can print output, and USB CDC On Boot does not need to be enabled
Q: After building the project with the VS Code ESP-IDF extension, the display shows pixel shift or ghosting. What should I do?
  • This phenomenon is reproduced when building with the VS Code ESP-IDF extension. As a workaround, build and flash from the ESP-IDF terminal command line. Note: the VS Code ESP-IDF terminal also shows the defect.
Q: How do I design interfaces with SquareLine Studio
Q: How do I restore the factory mode?
Q: Can I use our product without a TF card?

Yes; only the TF-card-related functions are unavailable, and nothing else is affected

Q: When the ESP32-S3-Touch-LCD-4-V4 runs the Arduino example 10_LVGL_SD, the TF card cannot be read and shows UNKNOWN, 0MB. How can this be solved?
  1. In the Arduino IDE Boards Manager, update the esp32 by Espressif Systems board package to 3.3.11 (only the 10_LVGL_SD example needs it; for other V4 examples, 3.0.7 as described in Working with Arduino is fine), and use the examples and bundled libraries for V4.

  2. In setup() of 10_LVGL_SD.ino, after the WS_CH32_IO::begin(...) initialization and before gfx->begin(), add the following code to pull SD_CS high:

    On V4, SD_CS is controlled by the CH32V003 (WS_CH32_IO), and bit 4 of the output register corresponds to SD_CS; the EXIO3 in the product overview table is the TCA9554PWR mapping of V1 to V3, not the bit number of V4.

    if (!WS_CH32_IO::writeRegister(Wire, WS_CH32_IO::REG_OUTPUT,
    WS_CH32_IO::OUT_DISPLAY_ON | (1U << 4))) {
    USBSerial.println("Failed to set SD_CS HIGH");
    }
    delay(20);
  3. Rebuild and flash the program, and check whether the TF card type, capacity, and file list are displayed correctly.

Q: Screen issue

The screen and the back plate of this type of product are bonded as one piece; to ensure normal use, do not disassemble them or pry apart the adhesive layer yourself. If the screen is damaged by disassembly, it cannot be repaired

Q: Is there a recommended mounting method for the ESP32-S3-Touch-LCD-4?

The product does not include an enclosure, and the touch cover already has adhesive around its edges. You can design an enclosure with reference to the ESP32-S3-Touch-LCD-4 3D model, and fix the screen to the enclosure with the adhesive. During assembly, the enclosure should bear the fixing force evenly and the screws are only for auxiliary fixing; do not press the screen directly by tightening screws, otherwise display defects such as water ripples may appear due to excessive local force.

ESP32-S3-Touch-LCD-4 adhesive positions

Q: When the ESP32-S3-Touch-LCD-4-V4 runs the RS485 example, the board cannot receive data sent on the 485 bus. How can this be solved?

Cause: after the S3 resets, GPIO43 is attached to the UART0 console output signal by default, which conflicts with the receive output of the on-board RS485 transceiver, so UART1 cannot sample the bus data. The ESP-IDF version also sends the console logs directly onto the 485 bus, and the example treats them as data and prints them again, nesting the logs layer by layer until the stack overflows and the program crashes.

Fix for the Arduino version (13_RS485.ino; board package 3.3.11 is recommended, 3.0.7 also works):

In the Arduino IDE "Tools" menu, set USB CDC On Boot to Enabled (or output the logs through HWCDC), otherwise the Serial output does not appear in the USB serial monitor.

  1. After uart_set_pin(...) in echo_task, add a line that sets GPIO43 as an input with pull-up:

    pinMode(43, INPUT_PULLUP);
  2. Replace ESP_LOGI(TAG, "Sent str: %s", send_data) in the while(1) loop with:

    Serial.printf("Sent str: %s\n", send_data);
  3. After Serial.begin(115200); in setup(), add a line so that the Sent/Recv logs appear in the USB serial monitor:

    Serial.setDebugOutput(true);

Fix for the ESP-IDF version (01_RS485_Test, IDF version 5.5.5):

  1. In static void echo_task(void *arg), after ESP_ERROR_CHECK(uart_set_pin(...)), add:

    gpio_config_t io_conf = {
    .pin_bit_mask = 1ULL << GPIO_NUM_43,
    .mode = GPIO_MODE_INPUT,
    };
    gpio_config(&io_conf);
  2. Increase the echo_task stack size from 2048 to 4096:

    #define ECHO_TASK_STACK_SIZE (4096)

    View the logs through idf.py monitor (USB port).

Verification: rebuild and flash the program, and send data xxx on the 485 bus with a USB-RS485 adapter. When the Arduino version's USB serial monitor shows Recv str: xxx and the IDF version's monitor shows Recv str:xxx, reception has returned to normal.

Note: this project uses the official example wiring, that is, a single board plus an RS485 module, not a two-board test.

Q: How do I power the board continuously with a lithium battery?

The PWR button was designed to solve power control while accounting for the small number of peripheral buttons; its principle is as follows: after Key1 is pressed, Boost_5V is passed through VBAT_5V (battery supply), the system starts, and the system gives SYS_EN a high level to maintain the power-on state, so releasing Key1 does not cut the power. Key1 can now pull SYS_OUT low, and the system detects SYS_OUT press, repeated presses, and long press, so the shutdown control can be customized. For example, in long-press mode the system sets SYS_EN low and disconnects the battery supply, achieving a multi-function button.

ESP32-S3-Touch-LCD-4 v4