Skip to content

[MKC-663] Update IMU on MKR IoT Carrier #519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Connectors: 3x Grove connectors
Sensors:
HTS221: Temperature & humidity
LPS22HB: Barometric pressure
LSM6DSOX: Accelerometer & gyroscope
LSM6DS3: Accelerometer & gyroscope
APDS-9960: Ambient light, gesture and proximity
Capacitive buttons: 5x
Actuators:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ Returns pressure value in Kilopascal (kPa).

![The IMU on the MKR IoT Carrier](assets/mkrIotCarrier-sensor-imu.png)

The **LSM6DSOXTR** from STM is an IMU (Inertial Measurement Unit) that features a 3D digital accelerometer and a 3D digital gyroscope. It features among many other things, a machine learning core, which is useful for any motion detection projects, such as free fall, step detector, step counter, pedometer. The unit is placed underneath the MKR IoT Carrier's display, connects to the mounted Arduino MKR board through an I2C interface, and acquires Low power consumption (0.55mA max).
The **LSM6DS3** from STM is an IMU (Inertial Measurement Unit) that features a 3D digital accelerometer and a 3D digital gyroscope.

### Code

To access the data from the **LSM6DSOX module**, the **MKRIoTCarrier** library needs to be included. The carrier's library includes the **Arduino_LSM6DS3** and functions similarly. The 3-axis values from the **accelerometer** and **gyroscope** sensors can be stored in **float** variables as shown below:
To access the data from the **LSM6DS3 module**, the **MKRIoTCarrier** library needs to be included. The carrier's library includes the **Arduino_LSM6DS3** and functions similarly. The 3-axis values from the **accelerometer** and **gyroscope** sensors can be stored in **float** variables as shown below:

```arduino
float x, y, z;
Expand Down