LilyGo T-Beam image

LilyGo T-Beam

Development Board

Code name: LILYGO_T_BEAM

LilyGo T-Beam is a development board based on the ESP32 microcontroller using XTENSA architecture.

This board features a maximum CPU frequency of 240 MHz and 16MB flash memory.

About LilyGo T-Beam

🚀 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.

Where to Buy LilyGo T-Beam

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Complete technical specification details for LilyGo T-Beam

Display

Type OLED
Size 0.96"
Resolution 128X64
Driver SSD1306

Connectivity

WiFi 802.11 b/g/n (2.4 GHz)
Bluetooth 4.2
BLE 4.2
LoRa Yes

Microcontroller

Model esp32
Clock Speed 240 MHz
Flash Size 16MB
PSRAM 8MB
Architecture xtensa

Features & Pins

Digital IO 48
Analog Input 20
PWM 27
Interrupts 46

Quick Setup

Copy-paste configs for LilyGo T-Beam - auto‑generated from this board's exact hardware specs.

ESP32 240 MHz 16MB DIO Xtensa

In Arduino IDE 2 select Lilygo T Beam from the esp32 by Espressif package. In PlatformIO use board = esp32dev. ESP32 · 240 MHz · 16MB · DIO.

Tools menu settings
Board (select in Arduino IDE) Lilygo T Beam
CPU Frequency 240 MHz
Flash Size 16MB
Flash Mode DIO
Upload Speed 921600
Architecture Xtensa

In Arduino IDE 2, open Boards Manager, search "esp32" by Espressif and install it. Then go to Tools → Board and select "Lilygo T Beam" for the LilyGo T-Beam.

LilyGo T-Beam Pinout Diagram

Complete pin reference for LilyGo T-Beam

LilyGo T-Beam pinout diagram

The LilyGo T-Beam pinout provides multiple GPIOs and interfaces:

5V and 3.3V for power supply.

SDA and SCL for I2C, MISO, MOSI, SCK, and SS for SPI.

Dedicated LoRa and GPS module pins ensure seamless integration.

Safe Pins to Use

These pins are safe for general GPIO usage without boot or system conflicts

IO18
IO21
IO40
IO41
IO42
IO45

Why Are These Pins Safe?

No boot sequence involvement
No flash/PSRAM connections
No USB or JTAG conflicts
Freely assignable without issues

Pins to Avoid or Use with Caution

Reserved for critical functions. Misuse may cause boot failures, programming issues, or system conflicts.

Strapping Pins

Boot behavior & flash voltage

JTAG Debugging

Low-level debugging interface

USB Pins

USB Serial/JTAG communication

Flash/SPI Pins

Memory & PSRAM connections

UART Serial

Debugging & firmware uploads

PINLabelWhy AvoidType
IO1U0TXD (GPIO1)Connected to on-board USB-UART for uploading and logs; drives serial output at boot, so using as GPIO can disrupt programming or console.🔌 USB
IO2GPIO2If driven HIGH on reset (while IO0 is LOW), selects an unsupported SDIO boot mode, causing boot failure.🛠️ Strapping
IO3U0RXD (GPIO3)Used for receiving data from USB-UART (programming); also pulled HIGH at boot for console communication, so using as GPIO can disrupt uploads.🔌 USB
IO10GPIO10 (Flash SD3)Used by internal flash/PSRAM; typically not exposed on modules, avoid using as GPIO.⚡ Flash
IO11GPIO11 (Flash CMD)Used by internal flash (chip select/command); not available for general use.⚡ Flash

Useful Links

Datasheets and resources for LilyGo T-Beam

LilyGo T-Beam Custom Pin Mapping

Pin configuration and GPIO mapping for LilyGo T-Beam

48
Digital I/O Pins
46
Interrupt Pins
20
Analog Inputs
27
PWM Pins
PinFunctionESP PinI/O TypeDescription
13V33.3VPOWER OUTPUT3.3V power output
2GNDGNDPOWER GROUNDGround connection
35V5VPOWER INPUT5V power input
4IO1GPIO1BIDIRECTIONALGPIO, I2C, ADC
5IO2GPIO2BIDIRECTIONALGPIO, ADC
6IO3GPIO3BIDIRECTIONALGPIO, ADC
7IO10SPI_CSBIDIRECTIONALGPIO, SPI Chip Select
8IO11SPI_DBIDIRECTIONALGPIO, SPI Data
9IO12SPI_CLKBIDIRECTIONALGPIO, SPI Clock
10IO13SPI_QBIDIRECTIONALGPIO, SPI Q
11IO16ADC2_CH5BIDIRECTIONALGPIO, ADC
12IO17U1_TXDBIDIRECTIONALGPIO, UART TX
13IO18U1_RXDBIDIRECTIONALGPIO, UART RX
14IO21GPIO21BIDIRECTIONALGPIO
15IO38LORA_CSOUTPUTGPIO, LoRa Chip Select
16IO39LORA_RSTOUTPUTGPIO, LoRa Reset
17IO40LORA_IRQINPUTGPIO, LoRa Interrupt
18IO41GPS_TXOUTPUTGPS Module TX
19IO42GPS_RXINPUTGPS Module RX
20IO45BATTERYINPUTBattery Voltage Sense
Legend
Function Pin role
GPIO ESP32 pin
I/O Direction
# Pin number

Default Tools & Configuration

Build and upload settings for LilyGo T-Beam

SettingValue
Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x0
Flash modedio
Boot modeqio
PSRAM typeopi
Maximum upload size
3072 KB (3145728 bytes)
Maximum data size
320 KB (327680 bytes)
Configuration Summary

The LilyGo T-Beam uses esptool_py for uploads , esp_ota for OTA updates, and esptool_py bootloader at 0x0.

Flash mode: dio | Boot mode: qio | PSRAM: opi

Max sketch size: 3072 KB | Max data size: 320 KB