Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1416 Posts: 7560
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 78 Posts: 343
We checked the bme 280 datasheet and found that the resolution of the humidity was 0.008.
Can I read the decimal point when reading the humidity value?
For example, 55.6% rh
The BME280 library returns unsigned 32 bit humidity value in Q22.10 format (means an output value of 42313 represents 42313 / 1024 = 41.321 %rH) But in platform file, SDK/xdk110/Platform/Sensors/source/Environmental/Environmental.c only the integer part of the humidity value is retained.
If you want to get float values for humudity, changes are required in the datatype of the humidity value used in Environmental_readData() API which is passed on to application.
Lavanya S P
Please let me know how can change it.
You can do it in 2 ways.
The BME280 library API bme280_read_pressure_temperature_humidity() returns humidity value as 42313 for 41.321% RH for example (The conversion is 42313/1024 = 41.321 %RH).
Hope this helps.