cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G070 And Bme680 help i2c

bakhti
Associate II

hi i'm trying to use the bme680 but i can't find any library for it ,plus the datasheet is so confusing if you had any luck using it please help

thanks in advance

3 REPLIES 3
MM..1
Chief II

For what library, I2C is standart bus protocol simply use HAL read and write func.

MFran.4
Senior

Some basic questions:

  1. What have you tried to do?
  2. Where did you get stuck?
  3. Do you know how to use STM32's I2C HAL library?
  4. Did you manage to read something from the sensor?
  5. Have you left shifted the 7bit address from the datasheet before using it in HAL I2C functions?
  6. As written in page 39 of the datasheet, have you selected correctly the i2c interface over SPI?

I gave a quick read to the datasheet and pages 16 to 24 seem useful to me. Those pages explain what you need to do to get the sensor started and give some code to get meaningful measures from the sensor.

KSatt.1
Associate

I am able to communicate with the sensor but the calculation for getting the temperature values doesn't work for me. I'm not getting the correct values even though the I2C transactions seem to be working fine without any error being returned. Any help would be appreciated!