This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BMI160 + NRF52832 + I2C

HI,

I want to develop a program to access Accelerometer and gyroscope value from BMI160 sensor. I have used this BMI160 library 

I alter the TWI_SENSOR code and it works for self testing ACC code. but i need to calibrate the x, y, z axis value and i want to add BLE stack to read in mobile app.

1. How to collect all the X,Y,Z axis value

2. i need to see the LOGS in Bluetooth app by using BLE_UART. how to edit the BLE_UART code to get the respective ACC and GYRO value in BLE APP.

Is there any code for reading X,Y,Z axis for BMI160??

Parents
  • You cannot read the voltage using internal registers, you need to use the SAADC. There is an SAADC input for VDD, you do not need to connect anything physical. 

    The necessary code to do this is shown in the proximity example (as you know). You need to include all the code related to SAADC and the timers that is triggering the sampling. You also need to add the required drivers/libraries to the project.

Reply
  • You cannot read the voltage using internal registers, you need to use the SAADC. There is an SAADC input for VDD, you do not need to connect anything physical. 

    The necessary code to do this is shown in the proximity example (as you know). You need to include all the code related to SAADC and the timers that is triggering the sampling. You also need to add the required drivers/libraries to the project.

Children
Related