logo elektroda
logo elektroda
X
logo elektroda

Configuring BC548 NPN Transistor for Tuya Wifi Water Leakage Detector CB3S

belveder79 

Just acquired another WiFi Water Leakage Detector from Aliexpress

https://de.aliexpress.com/item/1005005754072819.html

WiFi water leakage detector with a white sensor and cord on a map background.

which is a little different to this one here, but it essentially works the same way.

WiFi water leakage detector with open casing and packaging. Close-up of the water leakage detector PCB with labeled connections 3.3V, TX, RX, and Gnd.

It is powered with 2 AAA batteries, and as in the previous post, it simply goes to sleep, but does not wake up.

In order to make this work, I followed the same procedure as in the upper post and used a BC548 NPN transistor between 3.3V (+10k resistor), one pin from the sensor to base and the other one to the connector on the board.

Works as expected - goes to sleep, wakes up if you touch the sensor.

Close-up of a water leakage detector circuit board showing electronic components and wires.

The extraction from the flashing tool is incomplete and misses the relay, as the board has also a buzzer on the bottom. In order to use that one, you have to add it as a relay and configure it properly like this:


{
  "vendor": "Tuya",
  "bDetailed": "0",
  "name": "Tuya WiFi Smart Water Leakage Detector (CB3S, no TuyaMCU)",
  "model": "unknown",
  "chip": "BK7231N",
  "board": "CB3S",
  "flags": "0",
  "keywords": [
    "water leakage",
    "CB3S",
    "Aliexpress"
  ],
  "pins": {
    "7": "Rel;0",
    "8": "DoorSnsrWSleep_nPup;0",
    "14": "BAT_Relay;1",
    "23": "BAT_ADC;1",
    "24": "Btn;0",
    "26": "WiFiLED_n;0"
  },
  "command": "",
  "image": "https://obrazki.elektroda.pl/1396778400_1707649738.jpg",
  "wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20955712"
}


I don't know about battery consumption. I do NOT have any custom script, so I will see how long it "survives" without tweaking it.

About Author
belveder79 wrote 10 posts with rating 2 , helped 1 times. Been with us since 2023 year.

Comments

Add a comment
p.kaczmarek2 11 Feb 2024 22:11

While I indeed think you did a good job on modification, I am not sure if it really was required. I think a correct pin setting (pull up, pull down or none) with a proper DSEdge setting (DSEdge 0, or DSEdge... [Read more]

belveder79 12 Feb 2024 07:24

Thanks... You are totally right. I'm sure that it has to work with proper settings in OpenBeken concerning some DSEdge parameters and such because the unmodified setup also works with the Tuya firmware...... [Read more]

p.kaczmarek2 12 Feb 2024 08:34

Is your WiFi crowded, have you tried changing the WiFI channel setting or moving sensors closer to router? [Read more]

belveder79 12 Feb 2024 09:10

I wrote about my experiences with door sensors here . I indeed have around 50 devices in my network, but I can essentially (and I did) add another 20-40 devices from mobiles to laptops and others. None... [Read more]