I have a X-NUCLEO-IKS01A2 board connected to a stm32 nucleo and I'm trying to read the temperature from the HTS221. However, I get really wrong values. Does something need to be set in the control registers before reading? Thanks.
I have a X-NUCLEO-IKS01A2 board connected to a stm32 nucleo and I'm trying to read the temperature from the HTS221. However, I get really wrong values. Does something need to be set in the control registers before reading? Thanks.
Hello. I am using the code ST provided which includes reading the calibration registers. I'm pretty sure there is something wrong with the way I am transmitting the data. Below is my code fore reference:
int hts_read_reg(I2C_HandleTypeDef *_i2chandle, uint8_t _reg, uint8_t *_buff, uint8_t _size)
To add a bit more clarity to my question - Sometimes my T_OUT value doesn't update at all, and other times it updates but produces very sporadic values. Since I am using the code provided in TN1218, I am unsure how to proceed. I've also tried using a couple of people's implementations for retrieving temperature but I still get wild results.