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

On this page
LilyGo T-Beam Pinout
26 pins · 2.54 mm pitch| Pin | GPIO | Labels | Status | Capabilities | Notes |
|---|---|---|---|---|---|
| 1 | 36 | VPGPIO36 | strapping | adc | Left header pin 13 (U12); SENSOR_VP, input-only, ADC1_CH0 |
| 2 | 39 | VNGPIO39 | strapping | adc | Left header pin 12; SENSOR_VN, input-only, ADC1_CH3 |
| 3 | - | RSTEN | control | - | Left header pin 11; ESP32 EN / reset, active-low |
| 4 | 15 | 15GPIO15 | strapping | adc · touch · pwm | Left header pin 10; ADC2_CH3, TOUCH3, boot strapping pin |
| 5 | 35 | 35GPIO35 | strapping | adc | Left header pin 9; input-only, ADC1_CH7; also the PMU (AXP2101 / AXP192) interrupt line |
| 6 | 32 | 32GPIO32 | safe | adc · touch · pwm | Left header pin 8; ADC1_CH4, TOUCH9; also LoRa DIO2 on the SX1276/SX1278 build |
| 7 | 33 | 33GPIO33 | safe | adc · touch · pwm | Left header pin 7; ADC1_CH5, TOUCH8; also LoRa DIO1 on the SX1276/SX1278 build |
| 8 | 25 | 25DAC1GPIO25 | safe | adc · dac · pwm | Left header pin 6; DAC1, ADC2_CH8 |
| 9 | 14 | 14GPIO14 | strapping | adc · touch · pwm | Left header pin 5; ADC2_CH6, TOUCH6 |
| 10 | 13 | 13GPIO13 | strapping | adc · touch · pwm | Left header pin 4; ADC2_CH4, TOUCH4 |
| 11 | 2 | 2GPIO2 | strapping | adc · touch · pwm | Left header pin 3; ADC2_CH2, TOUCH2, boot strapping pin |
| 12 | - | GND | ground | - | Left header pin 2; ground |
| 13 | - | 5VVBUS | power | - | Left header pin 1; 5V / VBUS rail |
| 14 | 1 | TXGPIO1 | uart | uart · pwm | Right header pin 1 (U14); UART0 TX, shared with the USB-serial bridge |
| 15 | 3 | RXGPIO3 | uart | uart · pwm | Right header pin 2; UART0 RX, shared with the USB-serial bridge |
| 16 | 23 | 23GPIO23 | safe | pwm | Right header pin 3; also the LoRa module RESET |
| 17 | 4 | 4GPIO4 | safe | adc · touch · pwm | Right header pin 4; ADC2_CH0, TOUCH0 |
| 18 | 0 | 0GPIO0 | strapping | adc · touch · pwm | Right header pin 5; boot strapping pin, ADC2_CH1, TOUCH1 |
| 19 | - | GND | ground | - | Right header pin 6; ground |
| 20 | - | 3V3DCDC1 | power | - | Right header pin 7; the PMU 3.3V rail (DCDC1 on the AXP192 V1.0/V1.1 chart) |
| 21 | - | GND | ground | - | Right header pin 8; ground |
| 22 | 22 | 22SCLGPIO22 | safe | i2c · pwm | Right header pin 9; I2C SCL, shared with the OLED and the PMU |
| 23 | 21 | 21SDAGPIO21 | safe | i2c · pwm | Right header pin 10; I2C SDA, shared with the OLED and the PMU |
| 24 | - | 3.3V | power | - | 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 |
Start with these
7 pins with no boot or system involvementFreely 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 knowVPGPIO36 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.
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 minutesBoard: 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
// 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);
}[env:lilygo_t_beam]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600esp32dev - or type it after board =.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_outesp32dev (same ids as PlatformIO).esptool.py --chip esp32 --port /dev/ttyACM0 \
--baud 921600 write_flash 0x1000 firmware.bin--port = your /dev/tty* (macOS/Linux) or COMx (Windows).Specifications
ESP32 · 100 × 33 mm · vs other ESP32 chips →Dimensions
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
Resources
Similar boards




