WBR3 Wi-Fi Module
by Tuya Inc. - product page
| Information | |
|---|---|
| Board code | wbr3 |
| MCU | Realtek RTL8720CF |
| Series | AmebaZ2 |
| Partition layout | Tuya (2x 896k apps) |
| Specifications | |
| Frequency | 100 MHz |
| Flash size | 2 MiB |
| RAM size | 256 KiB |
| Voltage | 3.0V - 3.6V |
| I/O | 15x GPIO, 8x PWM, 3x UART |
| Wi-Fi | 802.11 b/g/n |
| BLE | v4.2 |
| FCC ID | 2ANDL-WBR3 |
Usage
Board code: wbr3
In platformio.ini:
In ESPHome YAML:
Quick flashing guide
| Pin | Connection |
|---|---|
| PA15 / RX2 | TX of USB-UART adapter |
| PA16 / TX2 | RX of USB-UART adapter |
| PA00 (strapping pin) | 3.3V to enter download mode |
| PA13 (strapping pin) | 3.3V or floating |
| CEN (Chip-Enable) | GND to reset the chip |
- Connect the USB-UART adapter.
- Connect PA00 to 3.3V.
- Power-cycle the device or briefly short CEN to GND.
- Start the flashing process.
Pinout
Pin functions
| Name(s) | UART | I²C | SPI | PWM | Other |
|---|---|---|---|---|---|
| PA00 | RX1 | PWM0 | |||
| PA01 | TX1 | PWM1 | |||
| PA02 | RX1 | SCL0 | CS0 | PWM2 | |
| PA03 | TX1 | SDA0 | SCK0 | PWM3 | |
| PA04 | MOSI0 | PWM4 | |||
| PA07 | CS0 | ||||
| PA11 | TX0 | SCL0 | PWM0 | ||
| PA12 | RX0 | SDA0 | PWM1 | ||
| PA13 | RX0 | PWM7 | |||
| PA14 | TX0 | PWM2 | |||
| PA15 | RX2 | SCL0 | CS0 | PWM3 | |
| PA16 | TX2 | SDA0 | SCK0 | PWM4 | |
| PA17 | PWM5 | ||||
| PA18 | PWM6 | ||||
| PA19 | SCL0 | MOSI0 | PWM7 |
Flash memory map
Flash size: 2 MiB / 2,097,152 B / 0x200000
Hex values are in bytes.
| Name | Code | Start | Length | End |
|---|---|---|---|---|
| Partition Table | part_table |
0x000000 | 4 KiB / 0x1000 | 0x001000 |
| System Data | system |
0x001000 | 4 KiB / 0x1000 | 0x002000 |
| Calibration | calibration |
0x002000 | 4 KiB / 0x1000 | 0x003000 |
| (reserved) | - | 0x003000 | 4 KiB / 0x1000 | 0x004000 |
| Boot Image | boot |
0x004000 | 32 KiB / 0x8000 | 0x00C000 |
| (reserved) | - | 0x00C000 | 16 KiB / 0x4000 | 0x010000 |
| OTA1 Image | ota1 |
0x010000 | 896 KiB / 0xE0000 | 0x0F0000 |
| OTA2 Image | ota2 |
0x0F0000 | 896 KiB / 0xE0000 | 0x1D0000 |
| (reserved) | - | 0x1D0000 | 20 KiB / 0x5000 | 0x1D5000 |
| Tuya Storage | tuya |
0x1D5000 | 64 KiB / 0x10000 | 0x1E5000 |
| (reserved) | - | 0x1E5000 | 76 KiB / 0x13000 | 0x1F8000 |
| LibreTiny Storage | kvs |
0x1F8000 | 32 KiB / 0x8000 | 0x200000 |
Flashing notes (download mode)
To enter the download mode it's required to use the strapping pin PA00. However, on the WBR3 that pin is on the bottom side of the PCB.
This means it is usually not possible to flash this module (via UART) without desoldering it.