LilyGo T-Beam

ESP32 board with GPS, LoRa, and battery support - great for long-range tracking and off-grid IoT applications.

Micro-USB
LilyGo T-Beam board
100 × 33 mm
ESP32
MCU
240MHz
clock
4MB
flash
520KB
SRAM
17· 12 ADC
GPIO
BLE 4.2+ WiFi
radio
On this page

LilyGo T-Beam Pinout

26 pins · 2.54 mm pitch
LilyGo T-Beam pinout diagram
PinGPIOLabelsStatusCapabilitiesNotes
136VPGPIO36strappingadcLeft header pin 13 (U12); SENSOR_VP, input-only, ADC1_CH0
239VNGPIO39strappingadcLeft header pin 12; SENSOR_VN, input-only, ADC1_CH3
3-RSTENcontrol-Left header pin 11; ESP32 EN / reset, active-low
41515GPIO15strappingadc · touch · pwmLeft header pin 10; ADC2_CH3, TOUCH3, boot strapping pin
53535GPIO35strappingadcLeft header pin 9; input-only, ADC1_CH7; also the PMU (AXP2101 / AXP192) interrupt line
63232GPIO32safeadc · touch · pwmLeft header pin 8; ADC1_CH4, TOUCH9; also LoRa DIO2 on the SX1276/SX1278 build
73333GPIO33safeadc · touch · pwmLeft header pin 7; ADC1_CH5, TOUCH8; also LoRa DIO1 on the SX1276/SX1278 build
82525DAC1GPIO25safeadc · dac · pwmLeft header pin 6; DAC1, ADC2_CH8
91414GPIO14strappingadc · touch · pwmLeft header pin 5; ADC2_CH6, TOUCH6
101313GPIO13strappingadc · touch · pwmLeft header pin 4; ADC2_CH4, TOUCH4
1122GPIO2strappingadc · touch · pwmLeft header pin 3; ADC2_CH2, TOUCH2, boot strapping pin
12-GNDground-Left header pin 2; ground
13-5VVBUSpower-Left header pin 1; 5V / VBUS rail
141TXGPIO1uartuart · pwmRight header pin 1 (U14); UART0 TX, shared with the USB-serial bridge
153RXGPIO3uartuart · pwmRight header pin 2; UART0 RX, shared with the USB-serial bridge
162323GPIO23safepwmRight header pin 3; also the LoRa module RESET
1744GPIO4safeadc · touch · pwmRight header pin 4; ADC2_CH0, TOUCH0
1800GPIO0strappingadc · touch · pwmRight header pin 5; boot strapping pin, ADC2_CH1, TOUCH1
19-GNDground-Right header pin 6; ground
20-3V3DCDC1power-Right header pin 7; the PMU 3.3V rail (DCDC1 on the AXP192 V1.0/V1.1 chart)
21-GNDground-Right header pin 8; ground
222222SCLGPIO22safei2c · pwmRight header pin 9; I2C SCL, shared with the OLED and the PMU
232121SDAGPIO21safei2c · pwmRight header pin 10; I2C SDA, shared with the OLED and the PMU
24-3.3Vpower-Right header pin 11; 3.3V rail
25-LoRa DIO2-Right header pin 12; the LoRa module DIO2 (HPDIO2 on the V1.2 schematic), not wired to the ESP32
26-LoRa DIO1-Right header pin 13; the LoRa module DIO1 (HPDIO1 on the V1.2 schematic), not wired to the ESP32
17 GPIOs broken out 7 free · 10 need care · 0 to avoid

Start with these

7 pins with no boot or system involvement
32GPIO3233GPIO3325GPIO2523GPIO234GPIO422GPIO2221GPIO21

Freely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.

Fine - with a little care

10 pins · 9 things to know
VPGPIO36 Input-only GPIO (no output); ADC1 channel 0, Hall sensor VP. Other

Cannot be used as output; only suitable for input (e.g., analog read).

VNGPIO3935GPIO35 Input-only GPIOs with ADC1 channels - no output driver Other

Cannot be used as output; only suitable for input.

  • VNInput-only GPIO (no output); ADC1 channel 3, Hall sensor VN.
  • 35Input-only GPIO (no output driver); ADC1 channel 7.
15GPIO15 Bootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS). Strapping

Keep HIGH during boot (internal PU); if LOW at reset, the ROM boot log on U0TXD is silenced and the SDIO slave timing changes.

14GPIO14 JTAG mode select pin (TMS); also HSPI CLK and PWM-capable GPIO. JTAG

Used for JTAG debugging (TMS); driving it as GPIO may interfere with JTAG or produce spurious signals at boot.

13GPIO13 JTAG clock pin (TCK); also ADC2 channel 4 / Touch4 input. JTAG

Used for JTAG debugging (TCK); avoid using as GPIO if JTAG is needed.

2GPIO2 Bootstrapping pin; internal pull-down. Any level boots normally from flash, but it must be LOW or floating (with GPIO0 LOW) to enter download mode. Strapping

If held HIGH at reset, the chip cannot enter download mode, so flashing fails.

TXGPIO1 Default UART0 TX pin for USB-serial programming and console. UART

Connected to on-board USB-UART for uploading and logs; drives serial output at boot, so using as GPIO can disrupt programming or console.

RXGPIO3 Default UART0 RX pin for USB-serial programming (console input). UART

Used for receiving data from USB-UART (programming); also pulled HIGH at boot for console communication, so using as GPIO can disrupt uploads.

0GPIO0 Bootstrapping pin (enter bootloader when low); internal pull-up. Strapping

Must be HIGH during boot for normal startup; if held LOW on reset, forces flash programming mode.

These are recommendations, not hard rules - with the right pull-ups, timing and boot-state awareness most pins can be made to work. When in doubt, start green.

Across 26 pins (2.54 mm pitch), the LilyGo T-Beam exposes 17 GPIO plus GND, 5V, 3V3 and 3.3V for power.

Peripheral wiring is straightforward: I²C is mapped to SDA on GPIO21 and SCL on GPIO22, while TX/RX on GPIO1 and GPIO3 cover serial logging and flashing.

Beyond plain digital I/O you get 12 ADC-capable pins for sensors and battery monitoring, PWM on 14 pins, 8 capacitive-touch inputs and 1 true DAC output.

10 of the exposed pins carry boot-time or system duties on the ESP32 (VP, VN, 15 and 7 more) - check the guidance above before wiring anything to them. 32, 33, 25, 23 and 3 more are free of any such role - the safest first picks.

Pinout notes The LilyGo T-Beam commits most of its GPIOs on-board - the SX1276 LoRa radio, NEO-6M GPS, AXP192 PMU and SSD1306 OLED between them occupy the ESP32's SPI, UART…

The LilyGo T-Beam commits most of its GPIOs on-board - the SX1276 LoRa radio, NEO-6M GPS, AXP192 PMU and SSD1306 OLED between them occupy the ESP32's SPI, UART and I²C buses. What the two side headers actually break out is a handful of free GPIOs plus power.

Usable header pins include GPIO2, GPIO13, GPIO14, GPIO15 and GPIO25 (DAC1), the input-only GPIO36/GPIO39, the UART0 TX/RX (GPIO1/3) and GPIO0 (BOOT). Power is exposed on 5V, 3.3V and the AXP192 DCDC1 rail, alongside GND.

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Install your USB-serial driver (CH340 / CP210x) if no port appears. Not detected? Hold BOOT while plugging in.
2
Match & flash
Set the Tools options shown, then click Upload.
3
Verify it runs
GPIO32 toggles - wire an LED and resistor to it, or change the pin to your board's own LED.
Set these in Tools · leave everything else at default
Arduino IDE 2.x - Tools Copy
Board: "ESP32 Dev Module"▸
Flash Size: "4MB (32Mb)"▸
Flash Mode: "DIO"▸
Partition Scheme: "Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)" (default)▸
Upload Speed: "921600"▸
▸ every other Tools option - leave at default
Board: ESP32 Dev Module
Flash Size: 4MB (32Mb)
Flash Mode: DIO
Partition Scheme: Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
Upload Speed: 921600
Find it: Tools ▸ Board ▸ ESP32 Arduino ▸ ESP32 Dev Module
blink.ino Copy
// toggle GPIO32 - wire an LED and resistor to it
void setup() {
  pinMode(32, OUTPUT);
}
void loop() {
  digitalWrite(32, HIGH); delay(500);
  digitalWrite(32, LOW);  delay(500);
}
board to selectesp32dev⧉ copy
platformio.ini Copy
[env:lilygo_t_beam]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
Find it: PlatformIO Home ▸ Boards, search esp32dev - or type it after board =.
board to selectesp32dev⧉ copy
device.yaml Copy
esp32:
  board: esp32dev
  variant: esp32
  framework:
    type: esp-idf

# blink - GPIO32
output:
  - platform: gpio
    pin: 32
    id: led_out
light:
  - platform: binary
    name: "LED"
    output: led_out
Find it: search ESPHome's board list for esp32dev (same ids as PlatformIO).
esptool doesn't pick board settings - a prebuilt .bin already has them baked in. This is just the raw flash command.
terminal Copy
esptool.py --chip esp32 --port /dev/ttyACM0 \
  --baud 921600 write_flash 0x1000 firmware.bin
--port = your /dev/tty* (macOS/Linux) or COMx (Windows).
Build details: sketch space 3145728 B · data 327680 B · DIO

Specifications

ESP32 · 100 × 33 mm · vs other ESP32 chips →
Compute
MCU
ESP32
Clock
240 MHz
SRAM · Flash
520 KB · 4MB
Radio
Wi-Fi
802.11 b/g/n
Bluetooth
4.2 Classic + LE
Antenna
PCB
I/O
GPIO · ADC
17 · 12
UART · I²C · SPI
3 · 2 · 2
PWM
16 channels
Power
USB
Micro-USB
Serial
CH9102F
Boot address
0x1000
Electrical
Input
5V USB / 3.7V 18650 battery
Consumption
-
Regulator
-
Display
Screen
OLED · 0.96" · 128x64
Driver
SSD1306
Touch
No
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
DIO · QIO
Sketch · Data
3 MB · 320 KB

Dimensions

33 mm100 mm
100 × 33 mm · pin pitch 2.54 mm
The LilyGo T-Beam uses esptool_py for firmware uploads, esp_ota for over-the-air (OTA) updates. Flash mode is DIO with QIO boot mode. The maximum sketch size is 3 MB with 320 KB available for data.

About this board

Inside sits the ESP32 - a dual-core Xtensa with both Bluetooth Classic and BLE.

At $30.00 it's on the expensive side for an ESP32 board - most land around $20.

Only 17 GPIO are broken out, where most ESP32 boards manage about 24 - worth checking the pinout covers what you need.

Around the module: an OLED 0.96" 128x64 display, LoRa (SX1276), GPS (NEO-6M), battery charging (AXP192) via 18650 holder + JST-GH 2-pin and Power/Reset/User buttons.


The LilyGo T-Beam is a feature-rich ESP32-based development board designed for LoRa and GPS applications. It integrates an ESP32 dual-core processor with WiFi and Bluetooth 5, providing seamless wireless connectivity.

With an onboard LoRa transceiver (SX1262/SX1276), it enables long-range communication at frequencies 433/868/915 MHz. Additionally, the board includes a Ublox NEO-6M GPS module for precise geolocation.

Equipped with 16MB Flash and 8MB PSRAM, along with a 18650 Li-ion battery holder for portable applications, the T-Beam is a powerful tool for IoT and tracking projects.

  • 18650 Li-ion battery holder on the underside (cell not included)
  • V1.2 boards ship the AXP2101 PMU (AXP192 discontinued); V1.0/V1.1 use AXP192
  • LoRa: SX1276 (868/915/923 MHz) or SX1278 (433 MHz) via IPEX/SMA antenna
  • GPS: u-blox NEO-6M (NEO-M8N on some batches) with backup battery
  • 3D WiFi antenna plus separate GPS ceramic antenna and LoRa antenna
  • Earlier revisions shipped a CP2104 USB-serial chip instead of CH9102F

Where to buy

prices are typical street prices
LilyGo T-Beam
LilyGo T-Beam
$30.00per unit, typical
As an Amazon Associate, ESPboards earns from qualifying purchases.

Resources

Similar boards