Forum: µC & Digital Electronics Inertial sensors not giving updated values

von Aditya K. (stadkama)

Rate this post
0 useful
not useful
  Currently I am working on BMI160 inertial sensors which has an SPI 
interface with main controller.The sensors is acting as a slave.
    i.There are 5 sensors.
  ii. I am trying to communicate in fixed mode with only one sensor.

  SPI timings details: clk - 9MHz. and transferring 16 bits at a time.

I am facing the below problems while communicating with it.

- During initialisation of the sensor I set some of its registers. But 
those values are not saved in it. It will always hold the reset value,
even if I give the post write operation delay mentioned in the data 

-Even if the sensors are moved I am getting the same values. Why are the 
sensors not providing updated values?
I followed these steps during the read of data registers from 
accelerometer and gyroscope.
  1. Check the status register 0x1b which holds the data ready signals 
for accelerometer and gyroscope.
  2. Then read the x,y and z axis data register for accelerometer and 
  Please provide the inputs. Thank you in advance.

: Edited by User


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.