logo elektroda
logo elektroda
X
logo elektroda

[CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output

p.kaczmarek2 3534 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    I invite you to a brief description of the interior and firmware changes of the RTX WCM1MR roller shutter controller, bought from a Polish mail order shop for about 70 PLN. Here I will discuss how to conveniently access the RX/TX pads of the CBLC9 WiFi module from the inside and show how to upload OpenBeken to it in order to free it from the cloud and connect it to Home Assistant. Due to the lack of blinds to test, I'll leave the blind calibration and scripting itself for later. If anything, I can always recommend you a topic on roller shutters developed by our US user, available here:
    https://www.elektroda.pl/rtvforum/topic3972935.html

    Purchase RTX TUYA WiFi WCM1MR
    I got the product from a reader to change the batch, Below is a screenshot from the auction:
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    The product features the ability to plug in RF control, there is a connector on the casing for this. Apart from this, there is only WiFi. The product is realised on the BK7231, as evidenced by the information about Bluetooth pairing (but only pairing, not control) provided by the seller:
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    This is the connection diagram:
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    The control of the roller shutter is simple - there are two relays, they cannot both let off current at the same time, switching on one makes the roller shutter go up, in turn the other is responsible for making it go down. The times at which the roller shutter opens/closes are configurable. The application can track to what extent it has already opened the roller shutter.


    Contents of the kit
    Will there at least still be fixings in the kit this time? No, there is only the relay itself, no screws:
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    Unfortunately there is not even anything to comment on here.

    Inside of the controller Undo the cover with a screwdriver and look inside.
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    Bottom of the PCB - what is responsible for the power supply?
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output As far as I can see this is a BP2571, am I reading this right? Probably a step down inverter again.
    Now the top view:
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output . [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output .
    On top you can see two 005DC-HS2 relays, part of the power supply circuit (there is also a fuse resistor), the LDO AMS1117-3.3V stabilizer, and, well, the WiFi module...
    What is the WiFi module?
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    CBLC9, which is a module based on BK7231N.
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    Pin number Symbol I/O type Function
    1 P9 I/O Support hardware PWM and correspond to P9 on the internal IC
    2 P8 I/O Common I/O pin and correspond to P8 on the internal IC
    3 P6 I/O Support hardware PWM and correspond to P6 on the internal IC
    4 P7 I/O Support hardware PWM and correspond to P7 on the internal IC
    5 P24 I/O Support hardware PWM and correspond to P24 on the internal IC
    6 VCC P Power supply pin (3.3V)
    7 P26 I/O Support hardware PWM and correspond to P26 on the internal IC
    8 GND P Power supply reference ground
    This module has programming pads on the back, slightly covered here. In addition, there is a cable soldered wildly to RX1, we will see what it is for shortly.
    I soldered the module and did a PCB analysis: [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    The RF connector has RX1, ground and 3.3V.
    Buttons from the roller shutter control are connected via resistors and diodes to the bases of Q5 and Q4 (2300), in turn the status on their drains are tested by P26 and P6. The pairing button is on P24, the LED is on P8. The other two GPIOs, P7 and P9 handle the relays, controlling them via Q1 and Q2.
    The OpenBeken template can be made based on this :
    Code: JSON
    Log in, to see the code

    Project repository: https://github.com/openshwprojects/OpenBK7231T_App
    List of supported devices: https://openbekeniot.github.io/webapp/devicesList.html

    Change firmware The easiest way is to solder out the whole WiFi module and use my tool for programming, instructions on the repository:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    I apply flux, remove the bond with a braid and the module falls out of the PCB by itself. Here I still have to desolder the RF cable.
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output
    I connect only RX and TX, ground and 3.3V (I have an LDO on the pin) and this is enough to upload the batch:
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output Then the module goes back politely into place (I catch one pad with a solder, then solder the others):
    [CBLC9/BK7231N] RTX WCM1MR roller shutter controller with GPIO output


    . Summary
    Changing the batch requires soldering out the CBLC9 module, but this is not difficult at all. An extra RF slot leads to the RX1 pin, this can be used, e.g. by connecting DHT11 or another sensor (we just happen to have 3.3V, GND and one GPIO lead out, just in time!), all this OpenBeken already supports, you just have to remember here that the power supply used in this product does not provide galvanic separation, so any playing around with it and connecting peripherals to it during operation can be deadly. As for just getting the roller shutters up and running and connecting them to the Home Assistant, I refer you to the usual topic below:
    https://www.elektroda.pl/rtvforum/topic3972935.html

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 11885 posts with rating 9963, helped 569 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 21313768
    bsw
    Level 21  
    p.kaczmarek2 wrote:
    Additional RF slot leads to RX1 pin, this can be used, e.g. by connecting DHT11 or other sensor (we just happen to have 3.3V, GND and one GPIO lead out, just in time!)
    .
    The RF socket is originally designed for mounting the wireless radio remote control module:
    Radio remote control and mounting module. Close-up of a green circuit board with various electronic components, intended for wireless module installation. .
  • #3 21313787
    p.kaczmarek2
    Moderator Smart Home
    What you are talking about was stated at the beginning of the topic, before the firmware change:
    p.kaczmarek2 wrote:
    .
    The product is characterised by the ability to plug in RF control, there is a connector on the casing for this. Apart from this, there is only WiFi. The product is realised on the BK7231, as evidenced by
    .
    Thank you for showing a pic of what it looks like.

    After the firmware change, as I wrote, the socket can be used to connect a wide variety of sensors. For example to connect a DHT (several types are supported):
    Screenshot of a software interface with the DHT21 option selected. .
    An IR receiver can also be connected and controlled by remote control:
    Dropdown list with configuration options for an electronic device. .
    Or even a DS18B20:
    Table with information about various drivers, including DS18B20 highlighted in orange. .
    Just be aware that there is an uninsulated power supply inside.
    Helpful post? Buy me a coffee.
ADVERTISEMENT