Skip to main content

Getting Started with Wio-LR2021 Dev Kit

Introduction​

The Wio-LR2021 Dev Kit is a dual-band LoRa development kit that pairs Semtech's LR2021 transceiver with an ESP32-S3. The radio module covers from 150 ~ 960 MHz and the 2400 ~ 2500 MHz band from a single package, so one board can move between long-range links and worldwide channels in software. FLRC adds burst rates up to 2.6 Mbps for images and audio, and the ESP32-S3R8, with 8 MB PSRAM and 16 MB flash, can judge a camera frame before it reaches the air.

A detachable Media HAT carries a 2 MP GC2145 camera, a MEMS microphone, an ES8311 codec and an NS4150B amplifier with a speaker connector. On the main board you also get a 128 × 64 OLED, a PCA9535 expander that switches four peripheral power rails, a 3.7 V Li-ion and a 5 V solar input behind a CN3165 charger, a Grove port and two 16-pin headers.

The kit ships with a factory firmware, so you can check the radio, the camera, the display, the audio path and the battery from a terminal before writing any firmware.

Specifications​

ParameterValue
MCUESP32-S3R8, dual-core Xtensa LX7 up to 240 MHz
RF transceiverSemtech LR2021, integrated in the Wio-LR2021 module
Frequency bands150 ~ 960 MHz and 2400 ~ 2500 MHz
ModulationLoRa (SF5 ~ SF12), (G)FSK, FLRC, LR-FHSS
Transmit powerup to +22 dBm (sub-GHz), up to +12 dBm (2.4 GHz)
Wi-Fi and Bluetooth802.11 b/g/n 2.4 GHz, Bluetooth 5 LE
Antenna connectors2 × SMA (sub-GHz, 2.4 GHz) plus 3 × U.FL
Type-C InterfaceUSB-C with native USB-Serial-JTAG, no bridge chip
Grove InterfaceGrove port plus 2 × 16-pin 2.54 mm headers
Buttons and LEDsUSER, BOOT and RESET buttons; 1 power LED; 1 user LED
I/O expanderPCA9535, 16 I/O, I2C address: 0x21
OLED128 × 64 monochrome, 0.96 inch, CH1116 driver, I2C address: 0x3D
Camera (HAT)GC2145, 2 MP, 8-bit DVP interface
Audio (HAT)ES8311 codec, NS4150B amplifier, MEMS microphone, speaker connector
Power InterfaceUSB-C 5 V, solar 5 V (JST), 3.7 V Li-ion (JST)
Charging ICCN3165, 495 mA charge current
RegulatorsTPS62A03 buck (3.3 V system), SGM2059 LDO (radio rail)
Dimensions55 × 38.5 mm main board, 55 × 38.5 mm Media HAT
Mounting Hole3 × M2 holes

Features​

  • Dual-band radio: Sub-GHz and 2.4 GHz share one module, so a single design covers worldwide bands.
  • Fast bursts: FLRC carries an image at up to 2.6 Mbps, then drops back to LoRa when range matters.
  • On-device vision: 8 MB PSRAM buffers camera frames, so the radio sends a conclusion instead of pixels.
  • Detachable media HAT: Camera, microphone, codec and amplifier ride two 16-pin connectors.
  • Field power: A 5 V solar input and a 3.7 V Li-ion connector keep a node running off-grid.
  • Switchable rails: The PCA9535 gates the camera, audio, OLED and Grove rails from software.
  • Onboard display: A 128 × 64 OLED on the shared I2C bus shows readings or link state without extra hardware.
  • Native USB: USB-Serial-JTAG needs no bridge chip, so flashing and the console share one cable.

Hardware Overview​

The kit has two boards that share a 55 × 38.5 mm footprint. The main board carries the radio, the display and the power path; the Media HAT adds the camera and the audio path.

Main Board Front​

  1. ESP32-S3R8 with 16 MB SPI NOR flash
  2. Wio-LR2021 module carrying the LR2021 transceiver, with a 32 MHz TCXO integrated
  3. Sub-GHz SMA connector for the 150 ~ 960 MHz port
  4. 2.4 GHz SMA connector for the 2400 ~ 2500 MHz port
  5. Three U.FL pads: ESP32-S3 2.4 GHz, LR2021 2.4 GHz and LR2021 sub-GHz
  6. USB-C port with native USB-Serial-JTAG
  7. Solar input on a 2-pin JST connector, labelled Solar-5V
  8. Battery input on a 2-pin JST connector, labelled BAT-3.7V
  9. Two 16-pin 2.54 mm headers, one along each long edge
note

The SMA connectors and U.FL pads are connected to the same two RF nets through 0 Ω links. By default, the SMA connectors are enabled. To use the U.FL interface instead, please resolder the 0 Ω links to the corresponding alternative pads.

Main Board Back​

  1. 128 × 64 OLED, driven over I2C at address 0x3D
  2. USER button on GPIO46, with a 10 kΩ pull-up and a 100 nF debounce capacitor
  3. BOOT button on GPIO0, pulls the chip into the download mode if enabled at reset
  4. RESET button, wired to the ESP32-S3 enable pin (active LOW)
  5. Grove connector, a 4-pin 2.0 mm standard socket
  6. User LED, controled by the P06 of the PCA9535 (active LOW)
  7. Power LED, lit whenever the board has a live supply
caution

The USER button sits on GPIO46, which is a strapping pin on the ESP32-S3. If the button is held while RESET is released, the chip samples a LOW level on that strap and enter the download mode instead of booting. Release the button before resetting.

Media HAT​

  1. GC2145 camera, 2 MP, connected over an 8-bit DVP bus on a 24-pin FPC
  2. MEMS microphone with an analog output, wired to the codec
  3. ES8311 codec, I2S audio in and out, configured over I2C
  4. NS4150B Class-D amplifier driving the speaker connector labelled SPK

Pin Map​

The main board breaks out two 16-pin headers at 2.54 mm pitch. The Media HAT breaks out two 14-pin sockets at 2.54 mm pitch which are able to plug into both headers on the main board.

caution

Since the Main Board uses a 16‑pin header while the Media Hat expansion board uses only a 14‑pin socket, careful attention MUST be paid to orientation during installation. Ensure that the pins are correctly ALIGNED. Incorrect installation may cause malfunction and could result in irreversible damage to the device.


IndexFunctionESP32-S3 pinDescription
1VSYS—System rail, 5 V from USB or solar, 3.0 ~ 4.2 V on battery
2GND—Ground
3IIC0_SCLGPIO48Shared I2C bus: OLED, PCA9535, HAT codec
4IIC0_SDAGPIO47Shared I2C bus: OLED, PCA9535, HAT codec
5CODEC_I2S0_MCLKGPIO41Audio clock for the ES8311
6CODEC_I2S0_LRCKGPIO42Left and right channel select
7GROVE_DAT_2GPIO43Grove data bit 2, UART0_TXD
8GROVE_DAT_1GPIO44Grove data bit 1, UART0_RXD
9CODEC_I2S0_SCLKGPIO9Audio bit clock
10CODEC_I2S0_DSDINGPIO1Playback data into the codec
11CODEC_I2S0_SDOUTGPIO2Recorded data from the codec
12EXP_PWR_AUDIO_ENPCA9535 P02Enables the audio rail on the HAT
13EXP_CAM_RESETPCA9535 P07Camera reset pin
14EXP_PWR_CAM_ENPCA9535 P01Enables the camera rail on the HAT
15EXP_GPIO_P16PCA9535 P16Spare I/O through the expander
16EXP_GPIO_P17PCA9535 P17Spare I/O through the expander

IndexFunctionESP32-S3 pinDescription
1VCC_3V3—3.3 V system rail
2GND—Ground
3DVP_VSYNCGPIO38Camera vertical sync, VSYNC on the HAT
4DVP_HSYNCGPIO39Camera horizontal sync, HSYNC on the HAT
5DVP_D7GPIO21Camera data bit 7
6DVP_D6GPIO18Camera data bit 6
7DVP_D5GPIO17Camera data bit 5
8DVP_D4GPIO16Camera data bit 4
9DVP_D0GPIO15Camera data bit 0
10DVP_D3GPIO14Camera data bit 3
11DVP_PCLKGPIO13Camera pixel clock
12DVP_D1GPIO12Camera data bit 1
13DVP_D2GPIO11Camera data bit 2
14DVP_XCLKGPIO10Camera master clock, generated by the ESP32-S3
15EXP_GPIO_P14PCA9535 P14Spare I/O through the expander
16EXP_GPIO_P15PCA9535 P15Spare I/O through the expander

I/O Expander​

The PCA9535 answers at I2C address 0x21, and its interrupt line runs to GPIO3. All 16 pins come up as inputs at power-on, so every rail and reset below stays inactive until firmware drives it.

PortFunctionNotes
P00—Not connected
P01EXP_PWR_CAM_ENCamera rail enable
P02EXP_PWR_AUDIO_ENAudio rail enable
P03EXP_PWR_OLED_ENOLED rail enable
P04EXP_PWR_GROVE_ENGrove rail enable
P05EXP_OLED_RSTOLED reset
P06EXP_User_LEDUser LED (active LOW)
P07EXP_CAM_RESETCamera reset
P10EXP_BAT_ADC_CTRGates the battery divider into GPIO8
P11EXP_Sig_CHG_DoneCharge-complete flag from the CN3165
P12EXP_Sig_CHGINGCharge-in-progress flag from the CN3165
P13EXP_LoRa_RSTWio-LR2021 reset
P14EXP_GPIO_P14PCA9535 P14
P15EXP_GPIO_P15PCA9535 P15
P16EXP_GPIO_P16PCA9535 P16
P17EXP_GPIO_P17PCA9535 P17

Power Supply​

RailRangeNotes
VSYS3.0 ~ 5.5 VFollows USB or solar when present, otherwise the battery
VCC_3V33.3 VBuck output, up to the regulator current limit
VCC_Grove3.3 VSwitched by P04, protected by a 350 mA fuse
Solar+5.0 V nominalReverse-blocked and over-voltage protected
BAT+3.0 ~ 4.2 VLi-ion cell, charged by the CN3165
caution

VSYS is not a fixed 3.3 V rail. With USB or solar connected it sits near 5.0 V and will damage a 3.3 V-only peripheral.


Strapping Pins​

The ESP32-S3 samples four pins at reset: GPIO0, GPIO3, GPIO45 and GPIO46. Two of them are routed out on the main board.

PinReachesDescription
GPIO0BOOT buttonHeld LOW with USER button, the chip enters the serial download mode instead of booting the firmware
GPIO46USER buttonHeld LOW with BOOT button, the chip enters the serial download mode instead of booting the firmware
GPIO3Not exposedused as the INTERRUPT pin of PCA9535
GPIO45Not exposedused as the IRQ pin of Wio-LR2021

Getting Started​

Hardware Preparation​

Step 1 — Attach the antennas​

Screw the Sub-GHz antenna onto the connector marked SUB-1G and the 2.4 GHz antenna onto the connector marked LR-2.4G. Tighten by hand only. If you use U.FL antennas instead, resolder the 0 Ω links to the corresponding pads and leave the SMA connectors empty.

caution

Never transmit without an antenna. The LR2021 has no protection against an open port, and a continuous wave or a long transmit run into an open load can destroy the power amplifier.

Step 2 — Fit the Media HAT (optional)​

Line up the two 14-pin sockets on the HAT with the two 16-pin headers on the main board, and press down evenly on both ends. The HAT draws its power from the main board, so no extra cable is needed. Remove it the same way, lifting both ends together.

note

The back side of the expansion board is marked with the positions of the corresponding USB Type‑C ports on the motherboard, which can be used to determine the correct installation orientation. Next, locate the corresponding pins according to the pin's silkscreen on the PCB.

The sockets sit on the Media HAT, and the silkscreen next to each one prints the ESP32-S3 pin number, so you can check the orientation without a diagram.

Step 3 — Choose a power source​

Any one of the three inputs will bring the board up: USB-C at 5 V, a 5 V solar panel on the Solar-5V JST connector, or a 3.7 V Li-ion cell on the BAT-3.7V connector. USB-C is the right choice for the first boot, because it also carries the serial console.

Resources​

Tech Support & Product Discussion​

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...