TTGO LoRa32-OLED

ESP32 board with built-in OLED and LoRa - perfect for long-range wireless projects with a visual interface.

Micro-USB
TTGO LoRa32-OLED board
60 × 30 mm
ESP32
MCU
240MHz
clock
4MB
flash
520KB
SRAM
14· Two 12-bit, 18 Channels ADC
GPIO
BLE 4.2+ WiFi
radio
On this page

Pinout

18 pins · 2.54 mm pitch
View:
TTGO LoRa32-OLED pinout diagram
PinGPIOLabelsStatusCapabilitiesNotes
116OLED RSTGPIO16strapping-OLED Reset (V1.0 only)
24OLED SDAGPIO4strappingi2cI2C Data Line (V1.0 only)
321OLED SDAGPIO21safei2cI2C Data Line (V1.2+ only)
415OLED SCLGPIO15strappingi2cI2C Clock Line (V1.0 only)
522OLED SCLGPIO22safei2cI2C Clock Line (V1.2+ only)
613SDCard CSGPIO13strappingspiSPI Chip Select (V1.6+)
715SDCard MOSIGPIO15strappingspiSPI Master Out Slave In (V1.6+)
82SDCard MISOGPIO2strappingspiSPI Master In Slave Out (V1.6+)
914SDCard SCLKGPIO14strappingspiSPI Clock Line (V1.6+)
1021DS3231 SDAGPIO21safei2cI2C Data Line (V1.2 T-Fox only)
1122DS3231 SCLGPIO22safei2cI2C Clock Line (V1.2 T-Fox only)
1227LORA MOSIGPIO27safespiSPI Master Out Slave In
1319LORA MISOGPIO19safespiSPI Master In Slave Out
145LORA SCLKGPIO5strappingspiSPI Clock Line
1518LORA CSGPIO18safespiSPI Chip Select
1614LORA RSTGPIO14strapping-LoRa Reset (V1.0 only)
1723LORA RSTGPIO23safe-LoRa Reset (V1.2+ only)
1826LORA DIO0GPIO26safe-LoRa Interrupt Pin

Start with these

9 pins with no boot or system involvement
OLED SDAGPIO21OLED SCLGPIO22DS3231 SDAGPIO21DS3231 SCLGPIO22LORA MOSIGPIO27LORA MISOGPIO19LORA CSGPIO18LORA RSTGPIO23LORA DIO0GPIO26

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

Fine - with a little care

sampled at boot or shared with debug/serial
PinLabelWhat to knowRole
OLED SDAGPIO4Sampled at reset for boot config; should not be driven at boot (affects boot mode timing).Strapping
OLED SCLMTDO (GPIO15)Keep HIGH during boot (internal PU); if LOW on reset, bootloader log is silenced and boot mode may change.Strapping
SDCard CSMTCK (GPIO13)Used for JTAG debugging (TCK); avoid using as GPIO if JTAG is needed.Other
SDCard MOSIMTDO (GPIO15)Keep HIGH during boot (internal PU); if LOW on reset, bootloader log is silenced and boot mode may change.Strapping
SDCard MISOGPIO2If driven HIGH on reset (while IO0 is LOW), selects an unsupported SDIO boot mode, causing boot failure.Strapping
SDCard SCLKMTMS (GPIO14)Used for JTAG debugging (TMS); driving it as GPIO may interfere with JTAG or produce spurious signals at boot.Other
LORA SCLKGPIO5Must be HIGH during boot; if pulled LOW at reset, alters SDIO slave timing and may prevent normal boot.Strapping
LORA RSTMTMS (GPIO14)Used for JTAG debugging (TMS); driving it as GPIO may interfere with JTAG or produce spurious signals at boot.Other

Only if you know the tricks

wired to flash or USB - expect a fight
PinLabelWhat to knowRole
OLED RSTGPIO16Connected to internal PSRAM on PSRAM-enabled modules; not usable as GPIO on those modules.Flash
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.
Pinout notes The TTGO LoRa32-OLED pinout brings out 18 GPIO pins at a 2.54 mm pitch - every one of them usable in your project. If you want zero surprises, OLED SDA , OLED…

The TTGO LoRa32-OLED pinout brings out 18 GPIO pins at a 2.54 mm pitch - every one of them usable in your project.

If you want zero surprises, OLED SDA, OLED SCL, DS3231 SDA, DS3231 SCL and 5 more are free of any such role - the safest first picks. 8 of the exposed pins carry boot-time or system duties on the ESP32 (OLED SDA, OLED SCL, SDCard CS and 5 more).

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Serial chip: CH9102. Not detected? Hold BOOT while plugging in.
2
Flash with your tool
Arduino IDE, PlatformIO, ESPHome or esptool - copy the settings on the right.
3
Verify it runs
The blink example uses GPIO21 - swap for your board's LED pin if different.
Tools → Board settings Copy
Board:            Ttgo Lora32
Flash Size:       4MB · DIO
Upload Speed:     921600

// blink
pinMode(21, OUTPUT);
digitalWrite(21, LOW);   // on (often inverted)
platformio.ini Copy
[env:ttgo-lora32]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
device.yaml Copy
esp32:
  board: esp32dev
  variant: 
  framework:
    type: esp-idf

# blink - GPIO21
output:
  - platform: gpio
    pin: 21
    id: led_out
light:
  - platform: binary
    name: "LED"
    output: led_out
shell Copy
esptool.py --chip esp32 --port /dev/ttyACM0 \
  write_flash 0x0 firmware.bin
Build details: sketch space 1310720 B · data 294912 B · DIO

Specifications

ESP32 · 60 × 30 mm
Compute
MCU
ESP32
Clock
240 MHz
SRAM · Flash
520 KB · 4MB
Radio
Wi-Fi
802.11 b/g/n
Bluetooth
4.2 LE
Antenna
External
I/O
GPIO · ADC
14 · Two 12-bit, 18 Channels
UART · I²C · SPI
3 · 2 · 4
PWM
16 channels
Power
USB
Micro-USB
Serial
CH9102
Boot address
0x1000
Display
Screen
OLED · 0.96" · 128x64
Driver
SSD1306
Touch
No
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
DIO · DIO
Sketch · Data
1.25 MB · 288 KB
30 mm60 mm
60 × 30 mm · pin pitch 2.54 mm
The TTGO LoRa32-OLED uses esptool_py for firmware uploads, esp_ota for over-the-air (OTA) updates. Flash mode is DIO with DIO boot mode. The maximum sketch size is 1.25 MB with 288 KB available for data.

About this board

At its core is the ESP32 - a dual-core Xtensa with both Bluetooth Classic and BLE.

Expect to pay about $17.80 - in line with other ESP32 boards.

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

Onboard you'll find an OLED 0.96" 128x64 display, a microSD slot, LoRa (SX1276), battery charging (TP4054) via JST-GH 1.25mm and Reset buttons.

  • OLED Screen
  • LoRa frequency variants (433 / 868 / 915 MHz)

Where to buy

prices are typical street prices
TTGO LoRa32-OLED
TTGO LoRa32-OLED
$17.80per unit, typical
As an Amazon Associate, ESPboards earns from qualifying purchases.

Resources

Similar boards