Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

battery level calculation #56

Open
fcrovy opened this issue Jun 23, 2024 · 2 comments
Open

battery level calculation #56

fcrovy opened this issue Jun 23, 2024 · 2 comments

Comments

@fcrovy
Copy link

fcrovy commented Jun 23, 2024

Hi,
i see in the code that the battery level is 0% with 2 volts and 100% with 3 volts.
I have uder test the sensor BTH01 and, if the voltage is under 2.5 volts, the temperature value is in fault (more than 100°C).

In the Tuya developer page indicate that 0% is at 2.5V.

I suggest to change the code in according to Tuya indication.

Fabio

@pvvx
Copy link
Owner

pvvx commented Jun 24, 2024

This is due to the fact that BTH01 contains the cheapest sensor CHT8305. But another sensor may be installed.
Datasheet: CHT8305 -> Vcc min 2.5V, max 5 V
The CHT8305 is not designed to run on two AAA batteries.
For AAA batteries, the discharge standard is up to 0.8 V.
https://data.energizer.com/pdfs/e92.pdf
https://data.energizer.com/pdfs/l92.pdf
https://docs.rs-online.com/3eb6/A700000006538580.pdf
...

Tuya typically sells products that are of poor quality and have inconsistent parts specifications. Tuya is a garbage disposal system from China.


Do not buy thermometers with CHT8305 sensors.
There is THB2 for the same price. Operates down to 1.73 V.

@pvvx
Copy link
Owner

pvvx commented Jun 25, 2024

Test BTH01. To test operation on a weak source, a panel was soldered in for the CR20xx battery. Runs on an old CR2025 battery. Then I replaced it with CR2032.
There were no changes in the readings at 2.4V.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants