Skip to main content
Associate III
October 15, 2024
Question

How to use temperature IC STLM75DS2F via I2C on STM32L0538-Discovery

  • October 15, 2024
  • 1 reply
  • 526 views

Hello,

Now I mean to measure temperature on STM32L0538-Discovery using STLM75DS2F via I2C.

I saw the Demonstrations sample project but I couldn't see the proper codes for temperature IC using I2C.

Are there any information, answers or sample project?

Thanks

    1 reply

    Andrew Neil
    Super User
    October 15, 2024

    The STML75's I2C interface is described in its datasheet.

    The datasheet, along with application notes & example code, is available on the Product Page:

    https://www.st.com/en/mems-and-sensors/stlm75.html

     

    See UM1749, Description of STM32L0 HAL and low-layer drivers, for descriptions of the HAL I2C functions:

    https://www.st.com/en/embedded-software/stm32cubel0.html#documentation

     

    There should also be example code available via STM32CubeIDE

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.