LoPy4 image

LoPy4

Development Board

Code name: LoPy4

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

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

Microcontroller

Model esp32
Clock Speed 240 MHz
Flash Size 4MB
Architecture xtensa

Features & Pins

Digital IO 40
Analog Input 18
PWM 19
Interrupts 16

Quick Setup

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

ESP32 240 MHz 4MB DIO Xtensa

In Arduino IDE 2 select Lopy4 from the esp32 by Espressif package. In PlatformIO use board = esp32dev. ESP32 · 240 MHz · 4MB · DIO.

Tools menu settings
Board (select in Arduino IDE) Lopy4
CPU Frequency 240 MHz
Flash Size 4MB
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 "Lopy4" for the LoPy4.

Useful Links

Datasheets and resources for LoPy4

Pin Mappings

Complete pinout and GPIO mapping for LoPy4

40
Digital I/O Pins
16
Interrupt Pins
18
Analog Inputs
19
PWM Pins
PinAnalogTouchPWMOther
0A11T1LED_BUILTIN
1PWMTX
2A12T2PWM
3PWMRX
4A10T0PWM
5PWMLORA_SCK
12A15T5PWMSDA
13A14T4PWMSCL SCK
14A16T6PWM
15A13T3PWM
18PWMLORA_CS SS
19PWMLORA_MISO
21PWMANT_SELECT
22PWMMOSI
23PWMLORA_IRQ
25A18PWMDAC1
26A19PWMDAC2
27A17T7PWMLORA_MOSI
32A4T9PWM
33A5T8PWM
34A6
35A7
36A0
37A1MISO
38A2
39A3
Legend
A0 Analog input
T0 Touch sensor
PWM PWM capable
RX/TX Serial pins
LED Built-in LED
# Pin number

Default Tools & Configuration

Build and upload settings for LoPy4

SettingValue
Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x1000
Flash modedio
Boot modedio
Maximum upload size
1280 KB (1310720 bytes)
Maximum data size
320 KB (327680 bytes)
Configuration Summary

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