logo elektroda
logo elektroda
X
logo elektroda

[BK7231N/CB3S] Tuya Smart Life LED Wireless Controller (single colour PWM)

slovar 1368 4
ADVERTISEMENT
  • #1 20682390
    slovar
    Level 2  
    This is a $7 LED controller that I got from aliexpress.

    Tuya WIFI LED controller set with remote control for single color LED strips, including cables, connectors, and a remote with large buttons. LED controller in a ziplock plastic bag on a wooden surface. White LED controller with two cables and technical label lying on a wooden surface.

    Opening it up revealed that it uses a CB3S/BK7231N module.

    LED controller with CB3S/BK7231N module in an open plastic case, visible PCB and wires. A black LED controller circuit board with connected wires, placed on a wooden surface.

    As I was not in the mood to try desoldering the module, or to solder additional attachments to the board, I checked if the TX/RX pins are available on the debug pins to the side. This sadly was not the case - only VCC and GND were broken out there. However, it turns out that I have a pogo mini clamp laying around that kind of fit on the rx/tx pins of the CB3S - and I used some probe clips to attach to GND/VCC.

    LED controller board with connected wires, pogo pin adapter, and measurement probes attached. Programming a LED controller using probe clips and wires on a wooden surface. CB3S/BK7231N module with attached debugging wires and pogo connector, placed on a wooden surface. LED controller board with attached wires and probe clips, lying on a wooden surface.

    Even though this looks a bit adventurous - this approach worked fine, and flashing worked without any problems.

    If you want to replicate this - the black probe clip (rightmost debug connector) is GND, the red one next to it is VCC (3.3V). Only the two left probe clips are used; they attach to pin 15 (RXD) and 16 (TXD) of the CB3S; 16 is the pin closest to the antenna.

    After flashing, PIN 26 is the PWM pin for the LED strip. I did not yet try the remote (I don't really need it for my current use-case).
  • ADVERTISEMENT
  • #2 20682433
    p.kaczmarek2
    Moderator Smart Home
    Hello, can you paste here a JSON template from OBK Web App?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20682552
    slovar
    Level 2  

    Hi,

    This is the JSON from the web app. I tried filling it out, but was not sure what to put into some of the fields. Please let me know if you need anything else.

    Code: JSON
    Log in, to see the code

  • ADVERTISEMENT
  • #4 20683629
    p.kaczmarek2
    Moderator Smart Home
    Thank you, I've added this device to our teardowns/templates list.

    Added after 6 [minutes]:

    Btw, can you also attach config partition so I can check which pin is used for IR?
    See guide:
    https://www.youtube.com/watch?v=WunlqIMAdgw&ab_channel=Elektrodacom
    Helpful post? Buy me a coffee.
  • #5 20686177
    slovar
    Level 2  
    Hi,

    here is the config partition dump as a JSON:

    Code: JSON
    Log in, to see the code


    Towards the end, it looks like some things might get a bit confused (fac_pin, etc). I also do have a full firmware backup, if that might be helpful.

    Please let me know if there is anything that I can help with :)
ADVERTISEMENT