arduino / arduino/ArduinoCore-mbed
Nano 33 BLE Sense LSM9DS1 data loss
- Dominant language
- C
- Stars
- 411
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I used Nano 33 BLE Sense to collect the 9-DOF data samples by LSM9DS1.
The I2C data rate is set:
- _wire->setClock(400000) ;
Gyroscope and accelerometer sample rates are set to 952Hz:
- writeRegister(LSM9DS1_ADDRESS, LSM9DS1_CTRL_REG1_G, 0xD8);
- writeRegister(LSM9DS1_ADDRESS, LSM9DS1_CTRL_REG6_XL, 0xC8);
- The continuous mode was selected: setContinuousMode()
Magnetic is set as:
- writeRegister(LSM9DS1_ADDRESS, LSM9DS1_CTRL_REG6_XL, 0xC8);
- writeRegister(LSM9DS1_ADDRESS_M, LSM9DS1_CTRL_REG3_M, 0x00);
It works very well with the deprecated Arduino Mbed OS boards (V1.3.2) without data loss.

However, there are some data samples lost if I use Arduino Mbed OS Nano Boards (I tested several versions, including the latest V2.7.2).

Is any change in the new OS library that affects the data read or processing speed?
Thank you very much.
Tang
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Nano 33 BLE Sense setup with _wire->setClock(400000), the 952Hz gyroscope and accelerometer register writes, the magnetometer settings, and setContinuousMode(). Compare sample loss under the current Arduino Mbed OS boards with the deprecated boards; done means identifying and documenting the cause or confirming the affected read or processing path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100