logo elektroda
logo elektroda
X
logo elektroda

[BK7231N/CBU-NL] Tuya Water Sensor - Locating BAT Relay Pin for Transistor Q1 Control

GP007 969 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20718957
    GP007
    Level 8  
    I have such a sensor from ali as below in the pictures, good because cheap :) I uploaded OpenBeken using BK7231Flasher without problems (connecting to the CPU pins, only then did I notice the P2 connector).
    Integrated circuit with component labels on a printed circuit board. White sensor with a cord and plug on a light background. Wi-Fi water leak detector packaging from AliExpress. Tuya Smart WiFi Water Leak Sensor packaging with product information.
    Everything works: Display showing door sensor status information. Screenshot of pin configuration with assigned functions for each input on the device. unfortunately I can't locate to which pin is BAT_Relay plugged in, which for common sense should control transistor Q1, because R1 and R2 looks like a divider from which goes to PIN23 of the ADC, others I found using a multimeter because from the program I got:

    "Sorry, no meaningful pins data found. This device may be TuyaMCU or a custom one with no Tuya config data.
    No module information found. And the Tuya section starts, as usual, at 2023424"

    Code: JSON
    Log in, to see the code

    Unless I already have this BAT ADC misassigned.
    Maybe someone already has such a sensor and can help?

    [EDIT]
    Once again a multimeter in hand and I found control Q1, it's P20 but it's supposed to be BAT_Relay_n.
    On the divider is half the supply voltage and so the open beken shows but sometimes it shows oddly because 5496mV ????
  • ADVERTISEMENT
  • #2 20721093
    GP007
    Level 8  
    I still have a question: where do you configure the number/frequency of mqtt messages, because after waking up with a signal (before falling asleep again) cbu-nl sends a whole series of mqtt every 1s or so instead of sending one, possibly two to be sure....
    This looks more or less like this:
    obk553F9E7D/0/get 0
    obk553F9E7D/0/get 0
    obk553F9E7D/0/get 0
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1
    obk553F9E7D/0/get 1

    And for me that is enough:
    obk553F9E7D/0/get 0
    obk553F9E7D/0/get 1
ADVERTISEMENT