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

TTGO LoRa32-OLED Pinout

18 pins · 2.54 mm pitch
TTGO LoRa32-OLED pinout diagram
PinGPIOLabelsStatusCapabilitiesNotes
116OLED RSTGPIO16safe-OLED Reset (V1.0 only)
24OLED SDAGPIO4safei2cI2C 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
18 GPIOs broken out 11 free · 7 need care · 0 to avoid

Start with these

11 pins with no boot or system involvement
OLED RSTGPIO16OLED SDAGPIO4OLED 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

7 pins · 5 things to know
OLED SCLGPIO15SDCard MOSIGPIO15 Bootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS). Strapping

Keep HIGH during boot (internal PU); if LOW on reset, bootloader log is silenced and boot mode may change.

  • OLED SCLBootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS).
  • SDCard MOSIBootstrapping pin; JTAG TDO; controls UART0 boot log output; also HSPICS0 (secondary SPI CS).
SDCard CSGPIO13 JTAG clock pin (TCK); also ADC2 channel 4 / Touch4 input. JTAG

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

SDCard MISOGPIO2 Bootstrapping pin (must be low or floating at reset); internal pull-down. Strapping

If driven HIGH on reset (while IO0 is LOW), selects an unsupported SDIO boot mode, causing boot failure.

SDCard SCLKGPIO14LORA RSTGPIO14 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.

  • SDCard SCLKJTAG mode select pin (TMS); also HSPI CLK and PWM-capable GPIO.
  • LORA RSTJTAG mode select pin (TMS); also HSPI CLK and PWM-capable GPIO.
LORA SCLKGPIO5 Bootstrapping pin; internal pull-up; VSPI CS0 (default SPI chip-select); acts as FSPIWP (flash write-protect) on internal-flash variants. Strapping

Must be HIGH during boot; if pulled LOW at reset, alters SDIO slave timing and may prevent normal boot.

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.

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 RST, OLED SDA, OLED SDA, OLED SCL and 7 more are free of any such role - the safest first picks. 7 of the exposed pins carry boot-time or system duties on the ESP32 (OLED SCL, SDCard CS, SDCard MOSI and 4 more).

Getting started

flash your first firmware in ~2 minutes
Tool:
1
Connect over USB
Uses a CH9102 bridge - install the CH9102 driver 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
GPIO16 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 GPIO16 - wire an LED and resistor to it
void setup() {
  pinMode(16, OUTPUT);
}
void loop() {
  digitalWrite(16, HIGH); delay(500);
  digitalWrite(16, LOW);  delay(500);
}
board to selectesp32dev⧉ copy
platformio.ini Copy
[env:ttgo-lora32]
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 - GPIO16
output:
  - platform: gpio
    pin: 16
    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 1310720 B · data 294912 B · DIO

Specifications

ESP32 · 60 × 30 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 LE
Antenna
External
I/O
GPIO · ADC
14 · Two 12-bit, 18 Channels
UART · I²C · SPI
3 · 2 · 2
PWM
16 channels
Power
USB
Micro-USB
Serial
CH9102
Boot address
0x1000
Electrical
Input
5V USB · 3.7V LiPo
Consumption
-
Regulator
-
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

Dimensions

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