ZLX · Embedded Hardware & Developer Resources
Model: ZLX-ESP32-2

ESP32-C5 2.8 touch screen development board 2.4G/5G dual-band, external IPEX antenna

B2B · OEM · ODM

Bulk purchasing and customization cooperation

We are from Hefei, Anhui, China - a city famous for its technology and education. We have professional software and hardware R&D and product design capabilities, and can provide customers with services such as hardware design, embedded software development, function customization, product optimization, and OEM/ODM. If you have bulk purchasing, project customization or product development needs, please feel free to contact us.

⌖ Hefei, Anhui, China✉ mq19880204@gmail.com

ZLX-ESP32-2

ESP32-C5 2.8-inch Touch Display Development Board

Chinese and English user manual / Bilingual User Manual

Picture 1

Model / model: ZLX-ESP32-2
Module / module: ESP32-C5-WROOM-1U-N8R8
Document Version / Document version: V1.1 | 2026-08-25



1. Product overview / 1. Product Overview

ZLX-ESP32-2 is a product based on ESP32-C5-WROOM-1U-N8R8 Modular 2.8 inch resistive touch screen development board with integrated color LCD、XPT2046 touch,microSD/TF Card slot (card slot only, not included microSD/TF Card),GPS Interface, audio output, battery voltage detection, green LED、BOOT/RESET Button and external antenna interface. Suitable Wi-Fi 6、Bluetooth LE、Zigbee/Thread, human-machine interface, data recording and Internet of Things application development.
ZLX-ESP32-2 is a 2.8-inch resistive-touch development board based on the ESP32-C5-WROOM-1U-N8R8 module. It integrates a color LCD, XPT2046 touch controller, a microSD/TF card slot (slot only; no microSD/TF card is included), GPS interface, audio output, battery-voltage sensing, green LED, BOOT/RESET buttons, and an external-antenna connector. It is suitable for Wi-Fi 6, Bluetooth LE, Zigbee/Thread, HMI, data logging, and IoT development.

Main features / Key Features

  • ESP32-C5 32 Bit RISC-V Single-core processor, up to 240 MHz / ESP32-C5 32-bit RISC-V single-core CPU, up to 240 MHz

  • ESP32-C5-WROOM-1U-N8R8:8 MB Flash + 8 MB PSRAM(Module onboard resources, not microSD/TF Card) / ESP32-C5-WROOM-1U-N8R8: 8 MB Flash + 8 MB PSRAM (onboard module memory, not a microSD/TF card)

  • 2.4 GHz + 5 GHz Dual band Wi-Fi 6(802.11ax) / 2.4 GHz + 5 GHz dual-band Wi-Fi 6 (802.11ax)

  • Bluetooth LE、IEEE 802.15.4、Zigbee 3.0、Thread 1.4 / Bluetooth LE, IEEE 802.15.4, Zigbee 3.0, Thread 1.4

  • 2.8 inch 240×320 LCD,ST7789 drive,BGR Initialization, disable inverse color / 2.8-inch 240×320 LCD, ST7789 driver, BGR initialization, display inversion disabled

  • XPT2046 Resistive touch controller / XPT2046 resistive touch controller

  • LCD and TF Card sharing SPI bus, independent CS;Touch to use standalone software SPI / LCD and TF card share SPI with separate CS; touch uses an independent software SPI

  • Board size approx. 86 mm × 50 mm / Board size approx. 86 mm × 50 mm

  • IPEX1 External antenna interface; the external antenna must be connected correctly before using the wireless function / IPEX1 external antenna connector; connect a suitable external antenna before radio use

Applicable objects / Intended Users

Suitable for embedded developers, IoT developers, makers, teaching experiments and product prototype design.
For embedded developers, IoT developers, makers, education/lab use, and product prototyping.

2. Appearance and size / 2. Appearance and Dimensions

The overall dimensions of the board are approximately 86 mm × 50 mm. The following front and back pictures are used to identify the screen, interfaces and main components.
The board outline is approximately 86 mm × 50 mm. The images below help identify the display, connectors, and major components.

Picture 2

Picture 3

picture 1 Front and screen dimensions / Figure 1 Board front and display-side dimensions

Interface annotation / Connector Identification

Picture 4

picture 2 ZLX-ESP32-2 Chinese and English interface annotation / Figure 2 Bilingual connector identification

3. Development board specifications / 3. Board Specifications

project / Item

Specification / Specification

Development board model / Board model

ZLX-ESP32-2

core module / Core module

ESP32-C5-WROOM-1U-N8R8

Board size / Board size

Approx. 86 × 50 mm

Display / Display

2.8-inch TFT LCD, ST7789, 240×320 native resolution

color order / Color order

BGR initialization

Show reverse color / Display inversion

OFF / Normal display mode(Do not turn on reverse color)

touch / Touch

Resistive touch / Resistive touch, XPT2046

microSD/TF card slot / microSD/TF Card Slot

SPI mode; card not included / SPI mode; does not come with card

GPS interface / GPS interface

1.25 mm 4-pin connector; UART signals on GPIO0/GPIO9

audio interface / Audio

2.0 mm 2-pin speaker/audio connector; PWM audio + amplifier enable

Battery interface / Battery

3.7 V 1S, 1.25 mm 2-pin; protected 1000–3000 mAh recommended / single section 3.7 V;suggestion 1000–3000 mAh With protective board

external antenna / External antenna

IPEX1 connector; required for the WROOM-1U radio path

button / Buttons

RESET, BOOT

status indication / Indicator

Green LED on GPIO26

illustrate / Note: The native screen resolution is 240×320;When the software is set to horizontal screen rotation, the logical display size can be expressed as 320×240。 / The panel native resolution is 240×320; in landscape rotation, the logical display size may be 320×240.

4. ESP32-C5-WROOM-1U-N8R8 Module parameters / 4. ESP32-C5-WROOM-1U-N8R8 Module Specifications

The following key parameters are based on Espressif official ESP32-C5-WROOM-1 / WROOM-1U Datasheet v1.2。
The following key parameters are based on Espressif's official ESP32-C5-WROOM-1 / WROOM-1U Datasheet v1.2.

project / Item

Specification / Specification

Built-in chip / Embedded SoC

ESP32-C5HR8

CPU

32-bit RISC-V single core, up to 240 MHz

ROM

320 KB

HP SRAM

384 KB

LP SRAM

16 KB

Flash

8 MB Quad SPI

PSRAM

8 MB Quad SPI

Wi-Fi

1T1R, 2.4 GHz + 5 GHz dual-band; IEEE 802.11ax/ac/b/g/n; up to 150 Mbps

2.4 GHz frequency / Frequency

2412–2484 MHz

5 GHz frequency / Frequency

5180–5885 MHz (subject to regional regulations)

Bluetooth

Bluetooth LE; Espressif v1.2 feature list states Bluetooth Core 6.0 certified

IEEE 802.15.4

2.4 GHz OQPSK, 250 Kbps

Zigbee / Thread

Zigbee 3.0 / Thread 1.4

GPIO

Up to 22 GPIOs at module level

Typical peripherals / Peripherals

GPIO, SPI, UART, I2C, I2S, RMT, LED PWM, USB Serial/JTAG, MCPWM, GDMA, CAN FD, SDIO slave, ADC, temperature sensor, timers, watchdogs, etc.

Module working voltage / Module supply

3.0–3.6 V, typical 3.3 V

Recommended power capabilities / Recommended supply capability

External supply should be capable of at least 0.6 A for the module

ambient temperature / Ambient temperature

-40 to +85 °C

Module size / Module size

18.0 × 21.2 × 3.3 mm

antenna / Antenna

External antenna via connector/module RF path; 50 Ω RF system

5. Display and touch / 5. Display and Touch

LCD parameter / LCD Parameters

project / Item

Specification / Specification

size / Size

2.8 inch

drive IC / Driver IC

ST7789

native resolution / Native resolution

240 × 320

Horizontal screen logical resolution / Landscape logical resolution

320 × 240 (depending on rotation setting)

color order / Color order

BGR

reverse color / Inversion

Disabled / OFF; normal display mode

SPI clock / SCK

GPIO6

SPI MOSI

GPIO7

SPI MISO

GPIO2 (shared with TF card; used if required by library/readback)

LCD CS

GPIO10

LCD Backlight / backlight

GPIO13

LCD DC / RS

GPIO14

Touch parameters / Touch Parameters

  • Touch type:4 Wire Resistive Touch; Controller:XPT2046。 / Touch type: 4-wire resistive; controller: XPT2046.

  • DOUT=GPIO3,SCK=GPIO4,DIN=GPIO5。 / DOUT=GPIO3, SCK=GPIO4, DIN=GPIO5.

  • CS=GPIO23,IRQ=GPIO25。 / CS=GPIO23, IRQ=GPIO25.

  • Touch to use standalone software SPI;The detection tool process is marked as not requiring calibration. / Touch uses an independent software SPI; the supplied test flow is marked as requiring no calibration.

6. GPIO mapping / 6. GPIO Mapping

The following mappings are from the customer version provided with the board GPIO Spreadsheet and checked against schematic. Onboard peripheral usage 19 An ordinary GPIO;TX0=GPIO11、RX0=GPIO12 Also used for UART0;N8R8 of GPIO15 quilt PSRAM occupied, therefore 21 available GPIO All assigned;EN Not counted as work GPIO。
The mapping below is based on the supplied GPIO spreadsheet and cross-checked against the schematic. Board peripherals use 19 GPIOs; TX0=GPIO11 and RX0=GPIO12 are additionally used by UART0; GPIO15 is reserved by PSRAM on N8R8, so all 21 usable GPIOs are allocated; EN is not a GPIO.

GPIO

Signal

definition / Definition

direction / Direction

Function / Function

illustrate / Notes

0

GPSTX

GPS serial port TX / GPS UART TX

Input / enter

GPS test / GPStest

GPS module TX → ESP32-C5

1

BAT_ADC

Battery voltage detection / Battery voltage sensing

Input/ADC

Battery test

100k/100k divider; ADC × 2 ≈ battery voltage

2

SD_MISO

TF DAT0 / LCD MISO share / Shared

Input

TF card test

Shared SPI MISO

3

RTP_DOUT

XPT2046 DOUT

Input

Touch test

Touch controller data output

4

RTP_SCK

XPT2046 SCK

Output

Touch test

Independent software SPI

5

RTP_DIN

XPT2046 DIN

Output

Touch test

Independent software SPI

6

LCD_SCK

LCD SCK / TF SCK share / Shared

Output

LCD/TF test

Shared SPI clock

7

LCD_MOSI

LCD MOSI / TF CMD(MOSI) share / Shared

Output

LCD/TF test

Shared SPI MOSI

8

AUDIOPWM

Audio PWM / Audio PWM

Output

Audio test

Audio output control

9

GPSRX

GPS serial port RX / GPS UART RX

Output

GPS test

ESP32-C5 TX → GPS module RX

10

LCDCS

ST7789 CS

Output

Display test

LCD chip select

13

LCDBL

LCD backlight / LCD backlight

Output

Display test

Backlight control

14

LCD_RS/DC

ST7789 DC

Output

Display test

Data/command select

23

RTPCS

XPT2046 CS

Output

Touch test

Touch chip select

24

AMP_EN

Amplifier enable / Amplifier enable

Output

Audio test

High-level enable per supplied mapping; verify actual hardware revision

25

RTPIRQ

XPT2046 IRQ

Input

Touch test

Touch interrupt

26

GREENLED

green LED / Green LED

Output

LED test

HIGH = ON, LOW = OFF

27

SDCS

TF DAT3 / CS

Output

TF card test

TF card SPI chip select

28

BOOTAUTO

BOOT / automatic start control / auto-start control

Input/Control

Factory restore

BOOT input / factory-restore logic

System and serial port signals / System and UART Signals

Signal / Signal

use / Purpose

Remark / Note

RESET_AUTO / EN

ESP32 reset / enable / ESP32 Reset and enable

System enable/reset; not a GPIO / System enable/Reset, does not belong to GPIO

UART0_TX / TX0 / GPIO11

UART0 transmit / UART0 Serial port sending

Used; excluded from the 19 peripheral GPIO count / Used; not counted in the above 19 peripherals GPIO

UART0_RX / RX0 / GPIO12

UART0 receive / UART0 Serial port reception

Used; excluded from the 19 peripheral GPIO count / Used; not counted in the above 19 peripherals GPIO

7. Interface and bus sharing instructions / 7. Interface and Bus Sharing

project / Item

GPIO

illustrate / Description

LCD + TF SPI share / Shared SPI

GPIO6 / GPIO7 / GPIO2

SCK, MOSI, MISO shared; devices separated by independent CS / Shared clock and data lines, use independent CS Distinguish between devices

LCD CS

GPIO10

LCD_CS

TF card CS

GPIO27

SD_CS / DAT3

XPT2046 touch

GPIO3 / 4 / 5 / 23 / 25

DOUT / SCK / DIN / CS / IRQ

GPS UART

GPIO0 / GPIO9

GPSTX / GPSRX; GPIO0 receives GPS TX, GPIO9 drives GPS RX

Battery ADC

GPIO1

BAT_ADC; 100k/100k divider; C20 100 nF filtering

Green LED

GPIO26

HIGH ON, LOW OFF

Audio

GPIO8 / GPIO24

AUDIOPWM / AMP_EN

LCD control

GPIO13 / GPIO14

Backlight / DC

SPI Sharing considerations / SPI Sharing Notes

  • LCD and TF Card sharing GPIO6(SCK)、GPIO7(MOSI)、GPIO2(MISO), but use respectively GPIO10(LCD_CS) and GPIO27(SD_CS)。 / LCD and TF card share GPIO6 (SCK), GPIO7 (MOSI), and GPIO2 (MISO), but use GPIO10 (LCD_CS) and GPIO27 (SD_CS) respectively.

  • Only enable the target device at the same time CS, to avoid bus conflicts caused by multiple devices being selected at the same time. / Assert only the target device CS at a time to avoid bus contention.

  • touch XPT2046 Use standalone software SPI, not with LCD/TF Lord SPI clock and MOSI shared. / The XPT2046 touch controller uses an independent software SPI and does not share the main LCD/TF SCK/MOSI signals.

8. Detection function correspondence / 8. Functional Test Mapping

Test items / Test

GPIO

Detection content / What is tested

result/illustrate / Result/Note

screen test / Display

GPIO6, 7, 10, 13, 14, 2

ST7789 display, 240×320 native / 320×240 landscape; BGR; backlight

Normal / Abnormal

touch test / Touch

GPIO3, 4, 5, 23, 25

XPT2046 touch response

Test flow: no calibration

TF card test / TF card

GPIO2, 6, 7, 27

SPI init, read/write/format

Shares SPI with LCD

audio test / Audio

GPIO8, 24

PWM audio and amplifier enable

Continuous playback depends on firmware

Wi-Fi test / Wi-Fi

Internal RF

2.4 GHz / 5 GHz scan

No listed GPIO occupied

BLE test / BLE

Internal RF

BLE scan

No listed GPIO occupied

GPS test / GPS

GPIO0, 9

GPS UART data

GPSTX / GPSRX

LED test / LED

GPIO26

Green LED

HIGH on / LOW off

Battery test / Battery

GPIO1

ADC measures divided battery voltage

Voltage estimate, not a coulomb counter

BOOT Factory reset / Factory restore

GPIO28

BOOT input / restore logic

Behavior is defined by firmware

9. Interface and electrical considerations / 9. Connector and Electrical Notes

Battery interface / Battery Connector

Development board provided 1.25 mm 2-Pin 3.7 V Single battery interface. According to the viewing direction of the marked diagram, the left side is the positive electrode (+), the right side is the negative pole (-). If battery power is required, it is recommended to use capacity 1000–3000 mAh, single section with protection board (protection circuit) 3.7 V Lithium ion/Lithium polymer battery, and confirm the interface specifications and positive and negative poles before connecting. Reverse connection may damage the development board.
The board provides a 1.25 mm 2-pin connector for a single-cell 3.7 V battery. In the orientation shown in the labeled image, the left pin is positive (+) and the right pin is negative (-). For battery-powered operation, use a protected single-cell 3.7 V Li-ion/LiPo battery; 1000–3000 mAh is recommended. Verify connector type and polarity before connection. Reverse polarity may damage the board.

GPIO1 pass 100 kΩ / 100 kΩ The voltage divider network detects the battery voltage, so under ideal conditions the actual battery voltage is approximately ADC pin voltage 2 times. This function is only for voltage estimation, not a fuel coulomb meter.
GPIO1 senses battery voltage through a 100 kΩ / 100 kΩ divider, so ideally the battery voltage is approximately 2× the ADC pin voltage. This is a voltage estimate only and is not a fuel-gauge/coulomb-counter measurement.

GPS interface / GPS Interface

GPS use GPIO0 and GPIO9 as UART Signal.GPIO0(GPSTX named) as input in this board definition, connect GPS module TX;GPIO9(GPSRX named) as output, connect GPS module RX。1.25 mm 4-Pin Please refer to the corresponding hardware version for the power pins and actual pin sequence of the connector./The schematic diagram shall prevail.
GPS uses GPIO0 and GPIO9 as UART signals. In this board mapping, GPIO0 (named GPSTX) is an input connected to the GPS module TX, while GPIO9 (named GPSRX) is an output connected to the GPS module RX. For the 1.25 mm 4-pin connector power pins and exact physical pin order, follow the silkscreen/schematic of the specific hardware revision.

external antenna / External Antenna

ESP32-C5-WROOM-1U It is the external antenna version. board IPEX1 The interface needs to be connected with 2.4/5 GHz The frequency band matching and impedance are 50 Ω antenna. Do not transmit at high power for an extended period of time without a suitable antenna connected.
ESP32-C5-WROOM-1U is the external-antenna variant. Connect a suitable 2.4/5 GHz, 50-ohm antenna to the IPEX1 connector. Avoid prolonged high-power transmission without a proper antenna attached.

audio interface / Audio Connector

Audio output is provided by GPIO8(AUDIOPWM)produce PWM Signal,GPIO24(AMP_EN) controls the power amplifier enable; the top of the board is 2.0 mm 2-Pin Audio/Speaker interface. Please refer to the actual power amplifier circuit capabilities for different load and volume settings.
Audio output uses GPIO8 (AUDIOPWM) for the PWM signal and GPIO24 (AMP_EN) for amplifier enable. The top connector is a 2.0 mm 2-pin audio/speaker connector. Use loads and volume settings within the capability of the actual amplifier circuit.

10. Software development and initialization advice / 10. Software Development and Initialization Notes

  • Display driver selection ST7789, the native resolution is set to 240×320;Horizontal screen can be rotated to 320×240。 / Select ST7789 as the display driver and use 240×320 as the native resolution; set rotation for 320×240 landscape as supported by your graphics library.

  • Color order used BGR;Do not enable display inverse colors (INVON)。 / Use BGR color order; do not enable display inversion (INVON).

  • LCD/TF share SPI when, managed separately after initialization LCD_CS(GPIO10) and SD_CS(GPIO27)。 / When LCD and TF share SPI, manage LCD_CS (GPIO10) and SD_CS (GPIO27) independently after initialization.

  • XPT2046 use GPIO3/4/5/23/25 independent software SPI。 / XPT2046 uses an independent software SPI on GPIO3/4/5/23/25.

  • When reading the battery voltage, the GPIO1 of ADC Results by approx. 2:1 Partial pressure ratio conversion, combined with ADC Calibration improves accuracy. / For battery voltage, convert the GPIO1 ADC reading using the approximately 2:1 divider ratio and apply ADC calibration for better accuracy.

  • Wi-Fi 5 GHz Available channels and transmit power vary depending on the country/Regional regulatory restrictions. / Available 5 GHz Wi-Fi channels and transmit power depend on local regulations.

  • BOOT/The factory reset logic is determined by firmware; avoid mistriggering during operation and causing the configuration to be cleared. / BOOT/factory-restore behavior is firmware-defined; avoid unintended activation that may clear settings.

Recommended initialization sequence / Suggested Initialization Sequence

1. Initialize the system and serial port after the power supply is stable.
After power is stable, initialize the system and debug UART.

2. initialization LCD SPI,set up ST7789、BGR, turn off the inverse color, and then turn on the backlight.
Initialize LCD SPI; configure ST7789, BGR, inversion off, then enable backlight.

3. initialization XPT2046 touch.
Initialize XPT2046 touch.

4. If you need to use the storage function, please insert the user-prepared compatible microSD/TF card, reinitialize, and ensure LCD_CS and SD_CS The status is correct.
If removable storage is required, insert a compatible user-supplied microSD/TF card, then initialize it and ensure correct LCD_CS/SD_CS states.

5. Initialize on demand GPS,audio,LED,Battery ADC。
Initialize GPS, audio, LED, and battery ADC as needed.

6. Last enabled Wi-Fi/BLE/802.15.4 Wireless capabilities.
Enable Wi-Fi/BLE/802.15.4 radio functions as required.

11. Troubleshooting common problems / 11. Troubleshooting

question / Issue

English

Treatment method / Solution

Solution (EN)

white screen/black screen

Blank/black display

examine GPIO6/7/10/13/14ST7789 driver selection,BGR settings, backlight GPIO13 And whether the inverse color was turned on by mistake.

Check GPIO6/7/10/13/14, ST7789 driver selection, BGR setting, backlight GPIO13, and whether inversion was accidentally enabled.

Incorrect color

Incorrect colors

Confirm that the graphics library color order is BGR

Confirm the graphics library is configured for BGR color order.

No response to touch

No touch response

examine GPIO3/4/5/23/25 and XPT2046 initialization.

Check GPIO3/4/5/23/25 and XPT2046 initialization.

TF Card initialization failed

TF card init fails

examine LCD/TF share SPI of SCK/MOSI/MISO,as well as SD_CS(GPIO27) and LCD_CS(GPIO10) Whether there is a conflict.

Check shared SPI SCK/MOSI/MISO and make sure SD_CS (GPIO27) and LCD_CS (GPIO10) are not asserted simultaneously.

Wi-Fi The signal is weak or cannot be scanned

Weak/no Wi-Fi

confirm IPEX1 The external antenna is connected and supported using 2.4/5 GHz suitable antenna.

Confirm the IPEX1 external antenna is connected and suitable for 2.4/5 GHz.

Battery voltage reading is about half actual

Battery reading is about half

GPIO1 The front end is 100k/100k Partial pressure needs to be multiplied by approximately when converting 2

GPIO1 uses a 100k/100k divider; multiply the ADC-side voltage by approximately 2.

GPS No data

No GPS data

confirm GPIO0 catch GPS TXGPIO9 catch GPS RX, and check the baud rate and power supply.

Confirm GPIO0 receives GPS TX, GPIO9 drives GPS RX, and verify baud rate and power.

12. Data download and technical support / 12. Downloads and Technical Support

ZLX-ESP32-2 Please give priority access to the firmware, files, follow-up information and related support. ZLX ESP32 Development Board Maker Support Center. Please confirm what is listed on the page before flashing the firmware. PCB The model is exactly the same as the board in hand.
For ZLX-ESP32-2 firmware, files, future documentation, and related support, use the ZLX ESP32 development-board support center. Before flashing firmware, confirm the PCB model shown on the website exactly matches your hardware.

Data download / Downloads: https://www.zlxchina.xyz/

Espressif module datasheet / Espressif Module Specifications: ESP32-C5-WROOM-1 / WROOM-1U Datasheet

References / References

13. Usage and safety precautions / 13. Safety and Handling

  • The positive and negative poles must be confirmed before connecting the battery, and reverse connection is prohibited. / Verify battery polarity before connection; never reverse the battery connector.

  • Plug and unplug IPEX Keep vertical force when connecting the antenna to avoid lateral prying that may cause the RF base to fall off. / When mating/unmating the IPEX connector, apply force vertically and avoid sideways prying that may damage the RF socket.

  • When using the bare board of the development board, pay attention to electrostatic protection to avoid short circuits caused by metal objects. / Use ESD precautions with the bare board and prevent metal objects from causing shorts.

  • 5 GHz Wireless frequency band, channel and power must comply with the regulations of the area of ​​use. / 5 GHz radio band, channels, and transmit power must comply with local regulations.

  • TF Card,GPSPlease follow the actual hardware version for the power supply capabilities and levels of peripherals such as audio and video. Do not contact us without confirmation. IO pin applied above 3.3 V level. / For TF, GPS, audio, and other peripherals, follow the actual hardware revision for supply and logic levels. Do not apply logic levels above 3.3 V to IO pins unless explicitly verified.

14. Document version record / 14. Document Revision History

Version / Rev.

date / Date

content / Description

source / Basis

V1.1

2026-08-25

Revision:microSD/TF, battery and GPIO illustrate.
Revised microSD/TF, battery, and GPIO notes.

Hefei Zhiluxing Information Technology Co., Ltd.

 End / Finish -