logo elektroda
logo elektroda
X
logo elektroda

[BK7231N - CB3S] AVATTO Tuya US Wifi Wall Switch 1 Gang

Jomsha 1668 6
ADVERTISEMENT
  • [BK7231N - CB3S] AVATTO Tuya US Wifi Wall Switch 1 Gang

    Basic information:
    Brand: AVATTO
    Chip: BK7231N [CB3S]
    Model: US-TS02
    Local Vendor: https://www.aliexpress.com/item/4000615022697.html

    Connections:
    TXD1 <---> UART RX
    RXD1 <---> UART TX
    3.3 <---> UART 3.3V
    GND <---> UART GND

    GPIO:
    P7 (PWM1)Btn 1
    P9 (PWM3)LED 1
    P23 (ADC3)WifiLED 0
    P26 (PWM5)Rel 1


    Code: JSON
    Log in, to see the code


    [BK7231N - CB3S] AVATTO Tuya US Wifi Wall Switch 1 Gang [BK7231N - CB3S] AVATTO Tuya US Wifi Wall Switch 1 Gang
    [BK7231N - CB3S] AVATTO Tuya US Wifi Wall Switch 1 Gang




    You have to remove this 16-pin chip > Flash > Solder the chip back.
    -OR-
    Find the correct trace between the RXD1/TXD1 to the 16-pin chip and break it > Flash > Solder (repair) the trace.

    [BK7231N - CB3S] AVATTO Tuya US Wifi Wall Switch 1 Gang

    Finally use BK7231GUIFlashTool to flash the BK7231N chip.

    Cool? Ranking DIY
    About Author
    Jomsha
    Level 3  
    Offline 
    Jomsha wrote 11 posts with rating 2. Been with us since 2023 year.
  • ADVERTISEMENT
  • #2 20616531
    p.kaczmarek2
    Moderator Smart Home

    It looks like the issue that we had with a switch on our YouTube channel. We also had to break the RXD connection temporarily.
    https://www.youtube.com/watch?v=Yb3zXtBdSnE&t=1s&ab_channel=Elektrodacom
    Can you also attach the JSON template from the Web App?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20616589
    Jomsha
    Level 3  

    Of course, I edited the post.

    Yes, this thing with the RX pin is a known "complicator". I met this situation even 3-4 years ago with the ESP8266 Tuya switches...
  • ADVERTISEMENT
  • #4 20616605
    p.kaczmarek2
    Moderator Smart Home

    At least your device wasn't TuyaMCU. There are also TuyaMCU switches where you have to configure it in TuyaMCU mode, which complicates things even more.
    Helpful post? Buy me a coffee.
  • #5 20616620
    Jomsha
    Level 3  
    Yes, you're right .
  • ADVERTISEMENT
  • #7 21284985
    p.kaczmarek2
    Moderator Smart Home
    Merged, thank you, device should be soon live at:
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the AVATTO Tuya US Wifi Wall Switch 1 Gang (Model: US-TS02) utilizing the BK7231N chip. Users share experiences regarding issues with the RXD connection, which has been a known complication in similar devices, including those using the ESP8266 chip. One user references a YouTube video demonstrating a related issue and requests a JSON template from the Web App. The conversation also touches on the complexities of configuring TuyaMCU switches, which require specific settings that can complicate the setup process. Additionally, a GitHub link is shared, indicating ongoing development related to the device, with a confirmation that the device will soon be listed on the OpenBeken IOT web app.
Summary generated by the language model.
ADVERTISEMENT