Reference   Language | Libraries | Comparison | Changes

Arduino LSM6DS3 library

This library allows you to use the Arduino Nano 33 IoT and Arduino UNO WiFi Rev 2 IMU sensor. The IMU is a LSM6DS3, it is a 3-axis accelerometer and 3-axis gyroscope; it is connected to the microcontroller through I2C on the NANO board and through SPI on the UNO WiFi Rev. 2. The values returned are signed floats.

The library takes care of the sensor initialisation and sets its values as follows:

  • Accelerometer range is set at -4 |+4 g with -/+0.122 mg resolution
  • Gyroscope range is set at -2000 | +2000 dps with +/-70 mdps resolution
  • Output data rate is fixed at 104 Hz


Last revision 2019/07/18 by SM

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.