cancel
Showing results for 
Search instead for 
Did you mean: 

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

BT.2
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Foued_KH
ST Employee

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.

View solution in original post

4 REPLIES 4
Foued_KH
ST Employee

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
Associate II

Thank you

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

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.