
LoPy4 is a development board based on the ESP32 microcontroller using XTENSA architecture.
This board features a maximum CPU frequency of 240 MHz and 4MB flash memory.
About LoPy4
Upgraded LoPy with BLE and improved specs - perfect for versatile multi-network IoT applications.
Technical Specifications
Complete technical specification details for LoPy4
Connectivity
Microcontroller
✨ Features & Pins
Quick Setup
Copy-paste configs for LoPy4 - auto‑generated from this board's exact hardware specs.
In Arduino IDE 2 select Lopy4 from the esp32 by Espressif package. In PlatformIO use board = esp32dev. ESP32 · 240 MHz · 4MB · DIO.
In Arduino IDE 2, open Boards Manager, search "esp32" by Espressif and install it. Then go to Tools → Board and select "Lopy4" for the LoPy4.
[env:lopy4]
platform = espressif32
board = esp32dev
framework = arduino
; Exact hardware config for LoPy4
board_build.mcu = esp32
board_build.f_cpu = 240000000L
board_build.flash_size = 4MB
board_build.flash_mode = dio
board_upload.flash_size = 4MBThe board value is a close generic match - check PlatformIO board registry for an exact fit.
esp32:
board: esp32dev
framework:
type: arduino # or "esp-idf"
# LoPy4 - 240 MHz ESP32
# Flash: 4MB | USB: N/APaste into your device's .yaml. See ESPHome ESP32 docs for full options.
esptool.py \
--chip esp32 \
--baud 921600 \
write_flash \
--flash_mode dio \
--flash_size 4MB \
0x1000 bootloader.bin \
0x8000 partitions.bin \
0xe000 boot_app0.bin \
0x10000 firmware.binInstall: pip install esptool - replace firmware.bin with your binary - bootloader at 0x1000
Pin Mappings
Complete pinout and GPIO mapping for LoPy4
| Pin | Analog | Touch | PWM | Other |
|---|---|---|---|---|
| 0 | A11 | T1 | LED_BUILTIN | |
| 1 | PWM | TX | ||
| 2 | A12 | T2 | PWM | |
| 3 | PWM | RX | ||
| 4 | A10 | T0 | PWM | |
| 5 | PWM | LORA_SCK | ||
| 12 | A15 | T5 | PWM | SDA |
| 13 | A14 | T4 | PWM | SCL SCK |
| 14 | A16 | T6 | PWM | |
| 15 | A13 | T3 | PWM | |
| 18 | PWM | LORA_CS SS | ||
| 19 | PWM | LORA_MISO | ||
| 21 | PWM | ANT_SELECT | ||
| 22 | PWM | MOSI | ||
| 23 | PWM | LORA_IRQ | ||
| 25 | A18 | PWM | DAC1 | |
| 26 | A19 | PWM | DAC2 | |
| 27 | A17 | T7 | PWM | LORA_MOSI |
| 32 | A4 | T9 | PWM | |
| 33 | A5 | T8 | PWM | |
| 34 | A6 | |||
| 35 | A7 | |||
| 36 | A0 | |||
| 37 | A1 | MISO | ||
| 38 | A2 | |||
| 39 | A3 |
Default Tools & Configuration
Build and upload settings for LoPy4
| Setting | Value |
|---|---|
| Bootloader tool | esptool_py |
| Uploader tool | esptool_py |
| Network uploader tool | esp_ota |
| Bootloader address | 0x1000 |
| Flash mode | dio |
| Boot mode | dio |
| Maximum upload size | 1280 KB (1310720 bytes) |
| Maximum data size | 320 KB (327680 bytes) |
The LoPy4 uses esptool_py for uploads , esp_ota for OTA updates, and esptool_py bootloader at 0x1000.
Flash mode: dio | Boot mode: dio
Max sketch size: 1280 KB | Max data size: 320 KB
Similar Boards
Other development boards with ESP32 microcontroller

Sonoff DUALR3
Sonoff DUALR3 development board is based on esp32 microcontroller and uses xtensa architecture.

ESPea32
ESPea32 development board is based on esp32 microcontroller and uses xtensa architecture.

DPU ESP32
DPU ESP32 development board is based on esp32 microcontroller and uses xtensa architecture.