WB3S is an older Tuya module with the Beken BK7231T chip. It has the same package as the CB3S, but pins 10, 12, 13 and 14 are wired differently – so when flashing a device, it’s worth checking which module is actually inside.
Like the CB3S, it can be flashed with OpenBeken, LibreTiny or ESPHome.
Specifications
- BK7231T: 32-bit Arm, Wi-Fi 4 (2.4 GHz) and Bluetooth LE
- 2 MB flash
- 22 pads in the ESP-12 format (16 × 24 mm), 6 of them on the bottom edge
- 6 PWM channels, 1 analog input (P23), 2× UART and I2C
- 3.3 V power
Flashing goes through UART1 (P10 RX, P11 TX) with reset via CEN. The pinout matches the LibreTiny database; compare it with the CB3S.
Pinout and pin table
Hover over a pin in the diagram or a table row; use the filter to highlight a bus. You can download the pinout as PNG or SVG.
| Pin | Name | Direction | UART | I2C | SPI | PWM | ADC | Note |
|---|---|---|---|---|---|---|---|---|
| 1 | CEN | input | Reset (CEN, active low) – connecting to GND restarts the chip; when uploading via UART1 it is used to enter the bootloader | |||||
| 2 | P23 | input/output | ADC3 | ADC3 – the only analog input; JTAG TDO; flash programming (FSO) | ||||
| 3 | CEN | input | Reset (CEN, active low) – connecting to GND restarts the chip; when uploading via UART1 it is used to enter the bootloader | |||||
| 4 | P14 | input/output | SCK | |||||
| 5 | P26 | input/output | PWM5 | |||||
| 6 | P24 | input/output | PWM4 | |||||
| 7 | P6 | input/output | PWM0 | |||||
| 8 | 3V3 | input | Power 3.3 V | |||||
| 9 | GND | – | ||||||
| 10 | P7 | input/output | PWM1 | |||||
| 11 | P0 | input/output | TX2 | SCL2 | UART2 TX – log output; I2C2 SCL | |||
| 12 | P1 | input/output | RX2 | SDA2 | UART2 RX; I2C2 SDA | |||
| 13 | P9 | input/output | PWM3 | |||||
| 14 | P8 | input/output | PWM2 | |||||
| 15 | P10 | input/output | RX1 | UART1 RX – firmware upload (bk7231tools, ltchiptool, OpenBeken) | ||||
| 16 | P11 | input/output | TX1 | UART1 TX – firmware upload | ||||
| 17 | P23 | input/output | ADC3 | ADC3 – the only analog input; JTAG TDO; flash programming (FSO) | ||||
| 18 | P22 | input/output | JTAG TDI; flash programming via SPI (FSI) | |||||
| 19 | P21 | input/output | SDA1 | I2C1 SDA; JTAG TMS; flash programming via SPI (FCS). Must not be at logic 0 at power-up (test mode) | ||||
| 20 | P20 | input/output | SCL1 | I2C1 SCL; JTAG TCK; flash programming via SPI (FSCK) | ||||
| 21 | NC | – | ||||||
| 22 | NC | – |
What to watch out for
- Disconnect the device from the 230 V mains before opening it. Program the module only from a 3.3 V USB-serial converter.
- Before overwriting the firmware, back up the original flash contents.
- Pins 10, 12, 13 and 14 differ from the CB3S – device templates for the CB3S don’t fit the WB3S.
- When flashing, briefly connect CEN to GND (reset) and connect the converter to P10/P11.
More pinouts
See all pinouts on the Pinouts page.