Issue with IMU Sensor (LSM6DSV16X) Sample Rate in Sensor Hub Mode

I am using an IMU sensor in sensor hub mode (LSM6DSV16X, LIS2MDL) with the FIFO interrupt interval set at 30 Hz. The data is sent over BLE. It works perfectly when using RTT, but when I disable debug mode, the sample rate drops to around 1 Hz.

Could someone please help me resolve this issue?

Thank you.

Parents
  • Thank you for your reply. When the IMU's FIFO is full, an interrupt will occur on the interrupt pin. The interrupt rate will decrease to 1 Hz as if something changes or is missed when I disable the RTT configuration.

  • So what triggers the IMU readings in the first place? Do you have a timer set up at 30Hz or something?

    What HW are you running this on? nRF5340DK? Or do you have a custom board?

  • Hello,

    The project that you sent doesn't have RTT logging enabled. Are you sure that you are seeing the issue with that exact application, without any modifications? It also seems like IMU_SIMULATION was set to 0. Either way, closing the RTT viewer didn't impact the rate at which the notifications are coming in, as you can tell from the timestamps here, from after closing the RTT window. 

  • I apologize for the confusion. The IMU_simulation value should be set to 1. This is the only change that needs to be made, and I believe you have already implemented it. For more clarity, I have recorded my screen to ensure we are on the same page.

    I appreciate your time and help.

    Best,

    Saeed

  • Please share sensor data and individual firmware. Here i am getting the ADC data only. I need lsm6dsv16x data. 

  • I think the problem is not from IMU side. anyway, the firmware already contains the IMU lib

  • It is perplexing to find the sensor data. I hope you are the guide for me to fix the problem.

Reply Children
No Data
Related