logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware

floriankoeppel 1146 5
ADVERTISEMENT
  • #1 20424220
    floriankoeppel
    Level 2  
    Hello and good evening from Germany!

    I ordered a 1-GANG touch switch from Aliexpress, which is equipped with a BK7231N.
    Productlink: https://de.aliexpress.com/item/1005004479236954.html?channel=twinner
    Flashing the openBK firmware was no problem at all, because the pads are nicely labeled.
    But now I don't know what to do....
    How do I find out where the buttons, relays and LEDs (Power, Wlan) are located?
    How do I proceed?

    Is there a reasonable procedure?
    I would be glad about help.
    Greetings
    Florian

    [BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware
    [BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware
    [BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware
    [BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware
    [BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware
  • ADVERTISEMENT
  • #2 20424292
    p.kaczmarek2
    Moderator Smart Home
    Hello, there are two options, you can just guess (brute-force all pins,test each of them in config) or look at the PCB:
    BK7231 datasheet, pinout, programming, specification, wiki (BK7231T, BK7231N)
    [BK7231N] KING Smart WIFI 1-Gang Touch Switch - Button, Relay, LED Location & OpenBK Firmware
    Note that you can easily align your chip to the schematic, look where pin 1 is (with a marker), or just use crystal oscillator position as a reference (XO/XI pins).
    Which traces are going to relays? Which are going to touch button controller IC?

    I could help more if I could get better quality photos where I can see individual traces
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20424615
    floriankoeppel
    Level 2  
    Hello and thank you for your answer!
    I will try to take some better pictures and trace the tracks with a multimeter (?).
    If I assign the "LED" function to a PIN and also click "save", is the output directly controlled, or does it require a restart?
    This is totally new territory for me - sorry.
  • ADVERTISEMENT
  • Helpful post
    #4 20424632
    p.kaczmarek2
    Moderator Smart Home
    The Relay/LED roles are applied without restarting. You can create, for example, 5 channels with 5 relays, save setting, do not restart, and click buttons on main page to see which one is working. Write down working one, then again, check next 5, etc. Same with buttons.

    The only things that require restart are custom drivers like BL0942, BL0937, DHT11, etc
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20425775
    floriankoeppel
    Level 2  
    With try and error I managed it:
    PINFunction
    P9 (PWM3)Btn 1
    P14Rel 1
    P15Led 1
    P28WifiLED
  • #6 20425935
    p.kaczmarek2
    Moderator Smart Home
    Thanks, it will be added to templates list.

    PS: also try: startDriver SSDP and your device will be seen by Windows
    Helpful post? Buy me a coffee.
ADVERTISEMENT