logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] (DIY) Mini Smart Switch UNSH SS8839-16A-W

riskorja 15708 50
ADVERTISEMENT
  • #31 21106104
    wonz
    Level 12  
    I have similar product, but I have an issue with deepsleep, device not waking up from timer. What is the solution to make it working propperly?
  • ADVERTISEMENT
  • #34 21106115
    p.kaczmarek2
    Moderator Smart Home
    how do you setup it? I've never heard about such issue before. Were you using latest firmware version? Can you wake up it with button?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #35 21106134
    wonz
    Level 12  
    >>21106115Ok PinDeepSleep [time] waking up device after time, but deepsleep [time] not working propperly - sleeps forever. Will use pindeepslep.
  • #36 21109527
    donut343
    Level 2  
    I had two of these chips from different vendors in the "My Choice" section, both labeled as DIY Mini Smart Switch. Like others mentioned, I used the below pins to solder since it came with 1.3.10 firmware; I wasnt able to extract GPIO pin layout with the tool, the software failed there, but writing was fine. Below layout worked for me:
    - Pair/Toggle All Pin on P23
    - WiFi LED on P26
    - TglChannelToggle (channel 1) on P6
    - Relay (channel 1) on P7

    I accidentally desoldered a capacitor (https://www.elektroda.com/rtvforum/topic4056582.html) but havent run into issues so far
    Image of a circuit board with GPIO pin labels written in red.
  • #37 21112434
    donut343
    Level 2  
    >>21066589

    Hi @tonyb62 that flashing jig you got looks pretty convenient, could you tell me what that construction is? Looks 3d printed?
  • ADVERTISEMENT
  • #38 21125841
    brazoayeye
    Level 4  
    Hello, i have this module and i'm trying to flash it using serial.
    I connected GND to S1 and other 4 pins as described on >>20797138 , but I can't backup the flash using bk_writer1.60.
    I set the right port and 115k baud, but when i power on the device I have

    Time:11.105s
    Speed of Reading:115200bps
    reading flash:0x00000000...FAILED

    What am I missing?
    If I keep the CEN down it doesen't start to download the flash.

    And next, can you give me a guide regarding how and what to download to the cpu?
    At the end I will try to install espHome, BK7231N should be supported.

    Thanks
  • #40 21125906
    p.kaczmarek2
    Moderator Smart Home
    Here we have some flashing guides for Tuya modules, some of them are BK7231, but also BL602, etc, etc:
    https://www.youtube.com/playlist?list=PLzbXEc2ebpH0CZDbczAXT94BuSGrd_GoM
    Helpful post? Buy me a coffee.
  • #41 21126030
    brazoayeye
    Level 4  
    >>21125858That's right! OPENBK works well. During the entire process i haven't touched the CEN pin.

    I made a project for EspHome and it works using

    bk72xx:
    board: generic-bk7231n-qfn32-tuya

    Always uploaded w/o CEN
  • #42 21126059
    p.kaczmarek2
    Moderator Smart Home
    I've also stopped using CEN over time. It always works without CEN, and in extreme cases, when it doesn't want to reset, I just temporary short the disconnected 3.3V wire from the WiFI module side with ground and it helps. (NOTE: do not confuse and do not short the 3.3V from power supply with ground, obviously!)
    Helpful post? Buy me a coffee.
  • #43 21126063
    brazoayeye
    Level 4  
    And another tip is to use S1 instead of soldering gnd. At the end only 3 pins have to be soldered (idk if it's possible to use capacitors pins to connect 3.3V or maybe > 4V before voltage reductor) to reduce the number of small pins to solder
  • #44 21132867
    brazoayeye
    Level 4  
    Is it possible to use BK7231GUIFlashTool to flash a different BIN (made with esp home?)
  • ADVERTISEMENT
  • #45 21197010
    bbv18121970
    Level 1  
    Who has this type of board, tell me what kind of SMD part and what kind of marking?
    Printed circuit board of a mini smart switch with a highlighted SMD part.
  • #46 21285993
    davidezborges
    Level 6  
    Hey there, i just bought a couple of similar devices with kind of the same configurations and pinouts but the model differs.
    is it worth it to upload some pictures and firmware dumps? if so, i'll gladly upload them here or wherever its needed.
  • #47 21286052
    p.kaczmarek2
    Moderator Smart Home
    >>21285993 Sure, please share, you can also share 2MB flash backup if you made it without pairing it with Tuya.

    >>21197010 I would suggest finding the datasheet of the power supply IC and checking there.
    Helpful post? Buy me a coffee.

Topic summary

The discussion centers on the DIY Mini Smart Switch 2-way from UNSH, model SS8839-16A-W, based on the BK7231N chip, sold on AliExpress. The device features a custom PCB without a standard Tuya module, facilitating direct firmware flashing. Users share detailed pinouts for various versions, including GPIO assignments for relay control, buttons, LEDs, and toggle functions. Flashing is commonly performed using tuya-cloudcutter or serial methods with USB-UART adapters (e.g., CP2102), often without requiring the CEN pin. Firmware versions such as Tuya V1.3.10 are noted, with OpenBeken (OpenBK) firmware successfully uploaded to enable custom control and power metering support (notably with BL0942 and BL0937 chips). PowerSave mode (PowerSave 1) is recommended to prevent device crashes and overheating. Multiple PCB revisions exist, some with power monitoring and others without, differing in component layout and pin assignments. Users report challenges with deep sleep functionality and flashing stability, resolved by correct pin configuration and startup commands. JSON configuration templates for OpenBK are shared, including pin mappings and commands. Additional hardware details include the presence of varistors, NTC resistors replacing fusible resistors, and rectifier components (E1J). Flashing guides and tools such as BK7231GUIFlashTool and YouTube tutorials are referenced for assistance. The community emphasizes careful handling due to high voltage and the ease of opening the device for soldering and flashing.
Summary generated by the language model.
ADVERTISEMENT