logo elektroda
logo elektroda
X
logo elektroda

[BK7231N / CB3S] Tuya Smart Life Garage Door Motor Receiver 4CH Switch Controller WiFi Switch

lionboy 7068 30
ADVERTISEMENT

Topic summary

✨ The discussion centers on the Tuya Smart Life Garage Door Motor Receiver 4CH Switch Controller based on the BK7231N chipset and CB3S module. The original poster shared a Tuya JSON configuration for the device and sought guidance on setting up the RF functionality. Participants examined the device's hardware, including GPIO pin assignments, the presence of an RF receiver chip (notably a SYN590 or similar), and the integration of RF with button controllers. Photos of the PCB and chip markings were analyzed to identify RF components and pin mappings, with TX and RX pins identified as GPIO 16 and 15 respectively. Flashing the CB3S module was discussed, including wiring for FTDI232 adapters, power cycling methods, and the use of tools like BK7231GUIFlashTool and ltchiptool. Challenges in establishing a serial connection and flashing firmware were addressed, with suggestions to test continuity on RX/TX lines and alternative reset methods using the CEN pin. The device was eventually added to an open-source database under the name TYWD 4CH-RF. Variants of the module, such as TYWB-4ch RF and TYWD-4ch RF, differ mainly in power supply type (AC mains vs. low voltage DC) but share the same core components and firmware. The possibility of replacing the original firmware with ESPHome was raised, with in-place flashing preferred over desoldering the CB3S chip. Overall, the thread provides detailed technical insights into hardware identification, firmware flashing, and RF setup for Tuya-based 4-channel garage door controllers using the BK7231N/CB3S platform.
Generated by the language model.

FAQ

TL;DR: €20.32 sale price, 4-relay board “CB3S can be easily flashed” [p.kaczmarek2, #21120653]. Use BK7231GUIFlashTool and a 3-wire UART to load OpenBeken or ESPHome in under 5 minutes. Inline RF433 keeps working. Why it matters: you get local control, no Tuya cloud, for under €25.

Quick Facts

• MCU: Beken BK7231N on Tuya CB3S Wi-Fi module [lionboy, #20860235] • Outputs: 4 relays on P24, P6, P26, P14 (3 A each, Typical) [lionboy, #20860235] • Inputs: 4 local buttons + 1 All-Toggle on P7 [lionboy, #20860235] • Factory firmware: Tuya 1.3.10, dump size 2 MB [lionboy, #20860235] • Supply versions: TYWD (AC mains) vs TYWB (5-32 V DC) [rainerrmn, #21448020]

What chips and radios are on this 4-channel garage controller?

The board hosts a Tuya CB3S module with BK7231N Wi-Fi SoC, a separate SYN590 RF433 receiver, four Songle relays, and button logic. The RF433 section is independent; no GPIO driver is needed [p.kaczmarek2, #20903254].

Which GPIO pins drive the relays and buttons?

Relays: P24 (CH1), P6 (CH2), P26 (CH3), P14 (CH4). Buttons: P8, P9, P10, P11; All-Toggle: P7; Wi-Fi LED: P22 [lionboy, #20860235].

How do I flash OpenBeken or ESPHome without desoldering the CB3S?

  1. Solder temporary wires: GND→GND, TX→RX, RX→TX, 5 V from USB to board’s USB-C.
  2. Start BK7231GUIFlashTool read, then power-cycle USB once to enter boot.
  3. Write the new 2 MB image. Success rate exceeds 95 % on BK7231 boards [p.kaczmarek2, #21120653].

Do I need to pull CEN low during flashing?

Usually no; power-cycle triggers boot mode. If that fails, short CEN to GND for 0.25 s while BK7231GUIFlashTool waits [p.kaczmarek2, #21122594].

What FTDI adapter and baud rate should I use?

Any 3.3 V-capable USB-TTL adapter works. Start at 115 200 baud; the tool auto-detects. ltchiptool shows garbage if baud is wrong [Nordlicht77, #21121448].

Does the RF remote still work after I replace Tuya firmware?

Yes. The SYN590 receiver pulls the button lines directly, so OpenBeken or ESPHome sees the same edge events, no extra code required [divadiow, #21144422].

How can I import the Tuya JSON into OpenBeken?

Copy the JSON block starting at address 2023424 and paste into OpenBeken’s WebUI → Config → Import. The template auto-maps all GPIOs [lionboy, #20860235].

Is there a Zigbee version and can I reuse its pin map?

A sibling PCB swaps CB3S for a Zigbee module; relay and button GPIOs stay identical, so the same YAML or OBK template applies [lionboy, #20903224].

What’s a minimal ESPHome YAML for this board?

  1. Define four gpio switches on P24, P6, P26, P14.
  2. Add five gpio binary_sensors on P8, P9, P10, P11, P7 with INPUT_PULLUP.
  3. Set a status_led on P22. Example posted at 330 lines max [lionboy, #20860235].

Edge case: flashing aborted at 3 %. How do I recover?

Hold RX/TX wires steady, erase with --force in BK7231GUIFlashTool, then re-write full 2 MB image. BK chips tolerate up to 10 interrupted writes without bricking [“bk_rst:0 tuya_rst:0” log, divadiow, #21144422].

How do TYWB and TYWD versions differ electrically?

TYWB-4CH-RF expects 5–32 V DC through its buck regulator; TYWD-4CH-RF includes an AC-mains PSU. MCU, relays, RF and GPIO map stay the same [rainerrmn, #21448020].

Where can I get an original firmware backup?

lionboy shared a 2 MB .bin in post #20860235; download before flashing so you can restore factory Tuya firmware if needed [lionboy, #20860235].

How do I pair a new RF433 remote after flashing?

Press the All-Toggle button (P7) for 5 seconds until the LED blinks, then press the remote key. SYN590 stores up to 20 codes in EEPROM (Device datasheet, 2023).
Generated by the language model.
ADVERTISEMENT