logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A

mattj 2796 8
ADVERTISEMENT
  • Hey all -

    Yet another small in-wall relay. Looks very similar on the outside to the Aubess model, but it seems with a different board (so I figured it was worth it's own thread.)

    Product URL: https://www.amazon.com/dp/B08RBNG2TX?psc=1&ref=ppx_yo2ov_dt_b_product_details
    [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A

    Chip: CB2S (BK7231N) https://developer.tuya.com/en/docs/iot/cb2s-module-datasheet?id=Kafgfsa2aaypq

    Flashing:
    [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A

    Simple enough to flash, solder directly to the Tuya chip (no need to disconnect). Use BK7231Flasher at a 115200 Baud Rate.

    I have a copy of the original firmware backup, not sure if that would be helpful / where to upload.

    [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A

    OpenBeken Config:
      "pins": {
        "8": "LED;0",
        "24": "Rel;0"
      },

    Cool? Ranking DIY
    About Author
    mattj
    Level 9  
    Offline 
    mattj wrote 42 posts with rating 16, helped 3 times. Been with us since 2022 year.
  • ADVERTISEMENT
  • #2 20471358
    p.kaczmarek2
    Moderator Smart Home
    Thanks, it seems like a very simple device, but I think you are still missing at least one IO role. The button on the case is separate from the switch, I think.

    Btw, you can upload the binary 2MB here, as an attachment.
    Helpful post? Buy me a coffee.
  • #3 20471512
    mattj
    Level 9  
    Yes, you are correct about the button. I never bothered to test it (don't feel comfortable touching on the device while it's connected to the mains voltage), since I don't intend on using it.

    I've got a second one here (not yet flashed) and I'll see if I can trace the pin for the button.

    Edit: the button seems to go back to the TX1 pin (based on my multimeter) - haven't tested it though.
  • ADVERTISEMENT
  • #4 20472097
    p.kaczmarek2
    Moderator Smart Home
    I think that I could also extract pin mapping from 2MB firmware backup.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 20475484
    p.kaczmarek2
    Moderator Smart Home
    Okay, so we know where is the button, then which pin is used for the switch? For the toggleChannelOnToggle role?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 20478741
    mattj
    Level 9  
    Sorry not sure I follow the question? The config I found that works is to set P24 as a Relay.
  • #8 20480850
    szymon122
    Level 38  
    How is the power supply of this module? What system is responsible for the 230V / 5V converters?
  • #9 20481110
    p.kaczmarek2
    Moderator Smart Home
    @szymon122 in the smallest IoT gadgets that have recently appeared on the forum, there is practically always such a layout:
    [BK7231N] COLOROCK Mini Smart Relay WiFi Switch 16A
    different bones are used but always something like this.
    Sometimes I still come across small flyback power supplies (in slightly larger e.g. "smart" sockets/light switches) with feedback taken from the primary side without an optocoupler.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the COLOROCK Mini Smart Relay WiFi Switch (16A) featuring the BK7231N chip. Users explore its functionality, including the pin mapping for the button and switch roles. The device is noted for its simplicity in flashing, with users sharing insights on connecting to the Tuya chip without disconnection. There are inquiries about the power supply system for the module, with references to common layouts in small IoT devices. The original firmware is shared for further analysis, and users express interest in extracting pin mappings and configurations for optimal use.
Summary generated by the language model.
ADVERTISEMENT