Skip to main content
Loodan22
Associate II
March 3, 2023
Question

bno055 with stm32

  • March 3, 2023
  • 3 replies
  • 6508 views

I wanted to see if the bno055 sensor is ready and set the PB8, PB9 pins as SDA, SCL. (my mcu = stm32f334r8)

connections

SDA_pin -> SDA pin sensor

SCL_pin -> SCL pin sensor

VCC -> VCC

GND -> GND

0693W00000aI7CEQA0.pngbut the variable is never HAL_OK

thanks for answer.

This topic has been closed for replies.

3 replies

Foued_KH
ST Employee
March 3, 2023

Hello @Hamdi Huntürk​ ,

Please make sure you are using the correct parameters for the communication :

  • Address (The default address is 0x29)
  • The frequency ( 400MHz max ) ..

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.
Loodan22
Loodan22Author
Associate II
March 3, 2023

@KHALSI_Foued​  I checked the maximum speed and default value but same result0693W00000aI7jNQAS.png

Foued_KH
ST Employee
March 3, 2023

Please check pin connection :

  • PB9 -> SDA pin sensor
  • PB8 -> SCL pin sensor
  • VCC -> 3.3V
  • GND -> GND

Because It's works (0x28<<1) with

HAL_I2C_Mem_Read()

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.
Loodan22
Loodan22Author
Associate II
March 3, 2023

actually it works this way but why didnt work HAL_I2C_IsDeviceReady function

0693W00000aIA2vQAG.png

Loodan22
Loodan22Author
Associate II
March 5, 2023

Is ADR pin important for device address?