arduino / arduino/ArduinoCore-mbed

Nano 33 BLE Sense LSM9DS1 data loss

Open
#400 0 comments 0 reactions 0 assignees View on GitHub
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.

![1](https://user-images.githubusercontent.com/25988134/153414531-ecbbbc22-f6a5-41f7-b615-f68931d35c09.png)
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).
![2](https://user-images.githubusercontent.com/25988134/153414709-5de61954-bcd7-4cc4-8586-648f4ee0f798.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.