ATC_MiThermometer icon indicating copy to clipboard operation
ATC_MiThermometer copied to clipboard

negative temperatures

Open hawajrambo opened this issue 4 years ago • 10 comments

Dear Aaron,

This is a great hack - congratulations :-)

Can you please make the thermometer to work on negative temperatures too?

Also displaying the "-" sign somehow, and also transmitting the temperature at least in custom advertising mode.

Thank you, Gabor

hawajrambo avatar Dec 08 '20 21:12 hawajrambo

Hey. Both should work fine already :)

atc1441 avatar Dec 08 '20 21:12 atc1441

wow, good to hear.

if you have a little time, may I ask You, to do a test with the device to put in the fridge in a bag, to see if it actually works in -10 deg Celsius?

Thank you a lot...

hawajrambo avatar Dec 08 '20 22:12 hawajrambo

Yes also that is tested and works without problems

atc1441 avatar Dec 08 '20 22:12 atc1441

Hello,

I reviewed the code, and I see, it can display -9.9 degree indeed. It could display also any negative degree by not displaying the fraction: -9.9C -10C And it could signal the overflow somehow too. In case of over/underflow the code in show_big_number() just returns, what keeps the last data on the display, and it's not correct.

As my past experience, a few of my thermal sensor damaged after long time (10 years), what causes this overflow.

What is the termal sensor IC in this device?

hawajrambo avatar Dec 08 '20 23:12 hawajrambo

The sensor is an SHTV3 but the SHTC3 is very similar and an datasheet is available for that.

You are right it is kind of a bug that the displayfunction just returns, a better function including lower temps is definitly possible

The degree can be lower thak -9.9 it will be correctly shown in the advertising data

atc1441 avatar Dec 08 '20 23:12 atc1441

Hi guys, are you saying it would be fine to use this outdoors then and it should show temps lower than -9.9C via the app?

tomtomek9 avatar Dec 10 '20 09:12 tomtomek9

I can not say for the stock firmware and MiHome app but the custom firmware does allow negative temps above -9.9°C And it was no problem so far to use the Thermometer outside or in the fridge at -20°C

atc1441 avatar Dec 10 '20 13:12 atc1441

Hello again !

By the way, when temperatures are negative, the broadcasted value is for example fff8. Shall I assume ffff is -0°C and fff8 is -0,7°C ?

Thank you :)

Yyuzu avatar Dec 10 '20 23:12 Yyuzu

Hey :)

Thats sounds right yes

atc1441 avatar Dec 11 '20 02:12 atc1441

Ok, thank you for confirming :)

Yyuzu avatar Dec 11 '20 09:12 Yyuzu