-
Notifications
You must be signed in to change notification settings - Fork 2k
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
driver/hts221: Temperature and Humidity readings incorrect #12445
Comments
I would rather assign @smlng, since he is the original author of the driver :) |
mhm, I wrote this way back I think for some STM sensor board or so where several sensors are on. It did worked, looking at my old PR #7280 its seems that calibration is key here. |
Hi, was this issue solved? I am also getting the wrong temperatures on my hts221, and have installed multiples of them. In comparing the calibration factors, they are very different from each other. |
@isaackc, I can try to get access to a board tomorrow and do some testing. |
Hmmm, it seems that it is even worst condition than before. I am not getting any output. I will look into it further. |
I happened to find an X-NUCLEO-IKS01A2 board, which features (among other things) an HTS221 sensor. First I put it into the hot fan exhaust stream of my ThinkPad, then I hit it with ice spray and put it back into the exhaust stream. 100% humidity was because of the condensation on the PCB after the ice spray. So it works for me...
|
But the HTS221 is obsolete anyway now and no longer for sale.. https://www.st.com/en/mems-and-sensors/hts221.html |
Description
While testing the hts221 i2c driver on the
thingy52
I was reading incorrect temperatures and humidity. This may be something to do with calibration but it was pretty incorrect on what I think the factory values were. Discovered in #10793.Steps to reproduce the issue
make BOARD=thingy52 -C tests/driver_hts221 flash term
Expected results
Reading room temperature and reading not desert like humidity.
Actual results
Versions
print_toolchain_versions.sh
Operating System Environment
Installed compiler toolchains
riscv-none-embed-gcc: missing
xtensa-esp32-elf-gcc: xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0
xtensa-lx106-elf-gcc: xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6) 4.8.5
clang: clang version 5.0.0-3~16.04.1 (tags/RELEASE_500/final)
Installed compiler libs
arm-none-eabi-newlib: "2.5.0"
mips-mti-elf-newlib: missing
riscv-none-embed-newlib: missing
xtensa-esp32-elf-newlib: "2.2.0"
xtensa-lx106-elf-newlib: "2.0.0"
avr-libc: "1.8.0svn" ("20111229")
Installed development tools
The text was updated successfully, but these errors were encountered: