Tuya door sensor - external sensor

So I got one and mapped out the circuit noting that my sensor is different to either of the above, mine also has the ZTU module as it is the zigbee variant, either way this is what I came to after beeping it out (excuse the messy scribble):

U1 - HM6207 is the hall effect sensor, the modern fancy reed switch type component, most likely considerably cheaper and more robust, as this hall effect sensor has extra componentry to make it act like a reed switch (binary) instead of a hall effect sensor (how much attraction is in the air… or for the less whimsical, magnetic strength)

A glance at the resistor selection shows where all the battery draining is coming from, R6 on my board, a little 31ohm resistor.
As I am tired and cant remember all the standard voltage drops over standard comments… and I had my multimeter out… I measured the voltage drop over R6 and R0 when ‘door’ was open and closed

R6 (31R)
Closed: 0V
Open: 2.6V
R0 (2M4)
Closed: 0.1mV
Open: 3.13V

Doing the maths to get the current:

R6 (31R)
Closed: 0V = 0A
Open: 2.6V = 84mA
R0 (2M4)
Closed: 0.1mV = 5/8 of sfa
Open: 3.13V = 1.3uA

Sooooo, this device was designed to sense a door, which in most cases is closed most of the time… so the 84mA expenditure when open is managable… buuut when you remove the magnet and use a reed switch to bring it low (closed), you are inverting that paradigm so it is using more current when your reed switch is open (for a normal reed switch, that would be the magnet not in range).
With the upper limit of AAA capacity at 1200mAh, this would give you 14hrs not factoring in the overheads like the MC and radio

lots of words to say that ‘of course your battery is running low quick’.

Looking back at the circuit, I will be removing the transistor (Q3) and connecting my reed switch between its pin 3 and ground which will give me between (effectively) 0A and 1.3uA.
Rough calculations gives this running for 105 years in its open state (not factoring in overheads of course)
I havent done mine yet… but it is on the list to do today… any minute now…

For anyone with a different board, beep yours out, it will most likely be the same overall circuit as I mapped out in the above pic, just with different labels and locations

1 Like