Skip to main content
BT.2
Associate II
January 25, 2023
Solved

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

  • January 25, 2023
  • 3 replies
  • 1931 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_KH
Foued_KHBest answer
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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
BT.2
BT.2Author
Associate II
January 27, 2023

Thank you

Foued_KH
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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
S.Ma
Principal
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.