Skip to main content
Visitor II
January 25, 2023
Solved

How to proceed Coding for getting Temperature Reading from STS35 interface with stm32?

  • January 25, 2023
  • 3 replies
  • 1929 views

I am using STS35 DIS and Nucleo-WB55RG board and wants to know how to get temperature readings from the sensor. I am using STM32CubeIDE for programming. It would be helpful for my learning and proceed with my project. if you share some example coding for this.

    This topic has been closed for replies.
    Best answer by Foued_KH

    Hello @BT.2​ ,

    First of all, please check sensor pins : (SCL / SDA)

    0693W00000Y9DlTQAV.png

    • The communication must be with I2C protocol .
    • Then Look at the max frequency of the I2C communication : "The clock frequency can be freely chosen between 0 to 1000 kHz"
    1. Communication with frequencies up to 400 kHz must meet the I2C Fast Mode.
    2. Communication up to 1 MHz are supported (Fast Mode Plus)
    • Check the I2C address for the sensor :

    0693W00000Y9DwWQAV.pngFinally, open STM32CubeMx and start the configuration. :D

    Foued

    3 replies

    Foued_KHAnswer
    ST Employee
    January 26, 2023

    Hello @BT.2​ ,

    First of all, please check sensor pins : (SCL / SDA)

    0693W00000Y9DlTQAV.png

    • The communication must be with I2C protocol .
    • Then Look at the max frequency of the I2C communication : "The clock frequency can be freely chosen between 0 to 1000 kHz"
    1. Communication with frequencies up to 400 kHz must meet the I2C Fast Mode.
    2. Communication up to 1 MHz are supported (Fast Mode Plus)
    • Check the I2C address for the sensor :

    0693W00000Y9DwWQAV.pngFinally, open STM32CubeMx and start the configuration. :D

    Foued

    BT.2Author
    Visitor II
    January 27, 2023

    Thank you

    ST Employee
    January 27, 2023

    You are welcome and welcome to the Community ;)

    Hope my answer helped you!

    When your question is answered, please close this topic by choosing Select as Best.

    This will help other users find that answer faster.

    Foued

    Visitor II
    January 28, 2023

    Maybe this example (I2C_Master.c) and related STTS751 temp sensor in the B_ANALOG_ENV folder may help you for component bringup with I2C GPIO SW bit banging.