2025-12-09 10:36 AM
Hello,
I am trying to get the STHS34PF80 sensor working on an STM32L0 platform via I²C. My initialization sequence is as follows:
CTRL2 (0x21) = 0x10 // FUNC_CFG_ACCESS = 1 PAGE_RW (0x11) = 0x40 // FUNC_CFG_WRITE = 1 FUNC_CFG_ADDR (0x08) = 0x2A FUNC_CFG_DATA (0x09) = 0x01 PAGE_RW (0x11) = 0x00 CTRL2 (0x21) = 0x00
Interrupt configuration:
CTRL3 (0x22) = 0x05
AVG_TRIM:
0x10 = 0x01
Continuous mode:
CTRL1 (0x20) = 0x15 (BDU=1, ODR=4 Hz according to datasheet)
After this, I wait for EXTI interrupt (DRDY). On interrupt, I read:
Problem:
Questions:
Thanks for any tips or reference to a working example.