LilyGo T-Beam Development Board

Code name: LILYGO_T_BEAM

LilyGo T-Beam development board is based on esp32 microcontroller and uses xtensa architecture. This board has a maximum CPU frequency of 240 MHz and a flash size of 16MB.

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

Starting from

$50 per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

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

Technical Specifications

πŸ–₯️ 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
Zigbee Yes

🧠 Microcontroller

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

✨ Features

  • 48 digital IO pins
  • 46 external interrupt pins
  • 20 analog input pins
  • 27 PWM pins

LilyGo T-Beam Pinout

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

For general GPIO usage, these are the safest and most flexible choices:

πŸ”Ή IO18
πŸ”Ή IO21
πŸ”Ή IO40
πŸ”Ή IO41
πŸ”Ή IO42
πŸ”Ή IO45

Why Are These Pins Safe?

  • Not involved in bootstrapping β†’ No impact on device boot mode or system startup
  • Not linked to flash memory or PSRAM β†’ Won't interfere with storage or memory access
  • Not dedicated to USB or JTAG β†’ Free for general use without affecting debugging
  • No special hardware connections β†’ Freely assignable without internal conflicts

⚠️ Pins to Avoid or Use with Caution

Some pins are reserved for critical functions like bootstrapping, JTAG debugging, USB communication, and flash memory operations. Misusing these pins may lead to boot failures, programming issues, USB conflicts, or disruptions in flash storage.

Critical Pin Categories:

  • πŸ› οΈ Strapping Pins: Control boot behavior and flash voltage selection
  • πŸ”— JTAG Debugging Pins: Required for low-level debugging
  • πŸ”Œ USB Communication Pins: Used for USB Serial/JTAG communication
  • ⚑ Flash Memory & SPI Pins: Connected to SPI flash memory and PSRAM
  • πŸ“‘ UART Serial Communication Pins: Used for debugging and firmware uploads
PINLabelReasonFunction
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

LilyGo T-Beam Pin Mappings

This development board provides 48 digital IO pins, out of which 46 can be used as external interrupt pins , 20 as analog input pins and 27 pins have Pulse-Width Modulation (PWM) .

PinFunctionESP PinInput/OutputDescription
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
Function Pin Function
ESP Pin Pin on ESP32
I/O Input/Output Pin
Description Pin Description

Default Tools

Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x0
Flash modedio
Boot modeqio
PSRAM typeopi
Maximum upload size
3072 Kb
(3145728 B)
Maximum data size
320 Kb
(327680 B)

The LilyGo T-Beam development board by default uses esptool_py uploader tool, esp_ota network uploader tool for Over-the-air (OTA) uploads and esptool_py bootloader tool. The bootloader starts at address "0x0". Flash mode and boot mode for LilyGo T-Beam development board by default is dio and qio respectively. The board uses opi PSRAM type. When using Arduino IDE, the maximum sketch upload size is 3072 Kb (3145728 B) and maximum data size for variables is 320 Kb (327680 B).