Open gpaizan opened 3 years ago
Hey
It does not really makes sense to have more resolution as the sensor itself is not as precise.
But look at Victor's repo, he made it so its with more decimals if i am not wrong
It does not really makes sense to have more resolution as the sensor itself is not as precise.
Totally agree, more than 1 decimal would be meaningless as well below the level of precision of the sensor. Even if a CFW offered it, it would just make values more difficult to read with no practical benefit.
Perhaps only benefit would be so you could calibrate sensors better (i.e. if you have a number of these same sensors). I've made some calibration changes but sometimes tricky to get them aligned. On the other hand, a 0.1 temp difference does not really make a big difference in the greater scheme of things
Advertising in 4 formats:
UUID 0xFE95 - 0x0D: Xiaomi - temperature x0.1C, humidity x0.1%
++ Сonfiguring mode of transferring everything in turn
In Connection mode:
@pvvx Nice, does your build also include your suggested low power mods?
According to the datasheet that @pvvx dug out and shared here: https://github.com/atc1441/ATC_MiThermometer/issues/149#issuecomment-756142514
"The sensor covers a humidity measurement range of 0 to 100% RH and a temperature measurement range of -40°C to 125°C with a typical accuracy of ±2% RH and ±0.2°C."
Which confirms that adding any decimals on humidity, or 2 decimals on temperature, would be completely pointless. If one wants to do so anyway for the kicks, you don't even need to change the advertising format: just add random decimals to the numbers you display!
@pvvx Отлично , в вашу сборку также включены предложенные вами моды с низким энергопотреблением?
Yes. In default settings advertising power consumption ~ 15.5 uA Advertising interval 2.5 sec, all measures interval 10 sec, 4 types of ad format are transmitted in turn (4x2.5 = cycle 10 seconds between measurements) All intervals are configurable, including low consumption mode for sensor and show modes for LCD display. If the sensor is in a low power mode, the measurement accuracy is lower, but the total consumption is also even lower. Increasing the intervals does not make sense - the battery itself will deteriorate in 2 years :)
How to configure intervals? Do you have customized web flasher?
How to configure intervals? Do you have customized web flasher?
Yes, you can change the advertising interval from the Telink Flasher: https://atc1441.github.io/TelinkFlasher.html
Which confirms that adding any decimals on humidity, or 2 decimals on temperature, would be completely pointless. If one wants to do so anyway for the kicks, you don't even need to change the advertising format: just add random decimals to the numbers you display!
Typical accuracy is ± 2% RH and ± 0.2 ° C for sensor in “low power” mode.
Tests i2c sensors (without taking into account its own heating!): https://wiki.liutyi.info/display/ARDUINO/Test+1+v8b+Balcony+high+to+mid+RH ...
Hi and thanks for your work on this firmware, it works great. There is a suggestion I would like to make. Is it possible to advertise both temperature and humidity with 2 decimals? I use the values in some graphs and they look awkward when the variations are low.