Reland Sun GY-LSM6DS3 LSM6DS3

Contents

Reland Sun GY-LSM6DS3 LSM6DS3 Accelerometer Gyro Sensor Module User Manual

Model: GY-LSM6DS3 LSM6DS3

1. Introduction

This manual provides detailed instructions for the proper use, setup, and operation of the Reland Sun GY-LSM6DS3 LSM6DS3 Accelerometer Gyro Sensor Module. The LSM6DS3 is a system-in-package featuring a 3D digital accelerometer and a 3D digital gyroscope, performing at 0.9 mA in normal mode and 1.25 mA in high-performance mode. It includes an embedded temperature sensor and supports both SPI and I2C serial interfaces.

2. Product Overview

2.1 Key Features

  • Low Power Consumption: 0.9 mA in normal mode, 1.25 mA in high-performance mode (up to 1.6 kHz).
  • Integrated Sensors: 3D digital accelerometer and 3D digital gyroscope.
  • Smart FIFO: Up to 8 KB for efficient data buffering.
  • Accelerometer Ranges: ±2g, ±4g, ±8g, ±16g.
  • Gyroscope Ranges: ±125 dps, ±245 dps, ±500 dps, ±1000 dps, ±2000 dps.
  • Wide Analog Supply Voltage: 1.71 V to 5 V.
  • Serial Interfaces: SPI and I2C (IIC) for communication.
  • Embedded Temperature Sensor: Provides digital temperature readings.
  • Compact Size: Module dimensions of 13 mm x 18 mm.

2.2 Module Components

The GY-LSM6DS3 module integrates the LSM6DS3 sensor chip along with necessary passive components and voltage regulation to operate within a 1.71V to 5V supply range. It typically features standard header pins for easy integration into breadboards or custom PCBs.

Reland Sun GY-LSM6DS3 LSM6DS3 Accelerometer Gyro Sensor Module

Figure 1: Reland Sun GY-LSM6DS3 LSM6DS3 Accelerometer Gyro Sensor Module. A top-down view of the Reland Sun GY-LSM6DS3 LSM6DS3 sensor module, showing the main chip, passive components, and header pins.

3. Setup

3.1 Pinout (Typical)

While specific pin labels may vary slightly, common pins on the GY-LSM6DS3 module include:

  • VCC / VIN: Power supply input (1.71V to 5V).
  • GND: Ground connection.
  • SCL / SCK: I2C Clock / SPI Clock.
  • SDA / MOSI: I2C Data / SPI Master Out Slave In.
  • SDO / MISO: SPI Master In Slave Out (also I2C address select on some modules).
  • CS: SPI Chip Select (active low).
  • INT1 / INT2: Interrupt output pins.

3.2 Connecting to a Microcontroller

  1. Power Connection: Connect the VCC pin of the module to the 3.3V or 5V output of your microcontroller (ensure it's within the module's 1.71V-5V range). Connect the GND pin to the microcontroller's ground.
  2. Interface Selection: The LSM6DS3 supports both I2C and SPI. The module typically defaults to one or requires specific pin configurations (e.g., SDO state) to select the mode. Refer to the module's specific breakout board documentation if available.
  3. I2C Connection:
    • Connect SCL to the microcontroller's SCL pin.
    • Connect SDA to the microcontroller's SDA pin.
    • Ensure appropriate pull-up resistors (typically 4.7kΩ) are used on SCL and SDA lines if not already present on the module or microcontroller board.
  4. SPI Connection:
    • Connect SCK to the microcontroller's SCK/CLK pin.
    • Connect MOSI to the microcontroller's MOSI pin.
    • Connect MISO to the microcontroller's MISO pin.
    • Connect CS to a digital output pin on the microcontroller.

4. Operating Instructions

4.1 Initialization

After wiring, the sensor needs to be initialized through its digital interface. This typically involves:

  1. Power-up Delay: Allow a short delay after power-up for the sensor to stabilize.
  2. Device ID Check: Read the WHO_AM_I register (address 0x0F) to verify communication and confirm the device ID (expected value for LSM6DS3 is 0x69).
  3. Configuration: Configure the accelerometer and gyroscope output data rates (ODR), full-scale ranges (FS), and operating modes (e.g., normal, high-performance) by writing to their respective control registers (e.g., CTRL1_XL for accelerometer, CTRL2_G for gyroscope).
  4. FIFO Configuration (Optional): If using the FIFO buffer, configure its mode and thresholds.

4.2 Reading Sensor Data

Data can be read from the sensor's output registers. Each axis (X, Y, Z) for accelerometer and gyroscope typically has a low byte and a high byte that need to be combined to form a 16-bit signed integer.

  • Accelerometer Data: Read from OUTX_L_XL (0x28) to OUTZ_H_XL (0x2D).
  • Gyroscope Data: Read from OUTX_L_G (0x22) to OUTZ_H_G (0x27).
  • Temperature Data: Read from OUT_TEMP_L (0x20) and OUT_TEMP_H (0x21). The temperature output is typically in degrees Celsius, requiring a specific conversion formula provided in the LSM6DS3 datasheet.

After reading the raw data, apply the appropriate sensitivity scale factor (based on the configured full-scale range) to convert the raw integer values into physical units (g for accelerometer, dps for gyroscope).

4.3 Using the FIFO Buffer

The 8 KB FIFO buffer allows for efficient batch reading of sensor data, reducing the number of I2C/SPI transactions and microcontroller overhead. Configure the FIFO mode (e.g., bypass, continuous, FIFO), select which sensors' data to store, and set the watermark level. Data can then be read from the FIFO output registers when the watermark is reached or the FIFO is full.

5. Maintenance

The GY-LSM6DS3 module is a robust electronic component, but proper handling and care will ensure its longevity:

  • Handle with Care: Avoid dropping the module or subjecting it to excessive physical shock, which can damage internal components.
  • Static Electricity: Always handle the module in an ESD-safe environment to prevent damage from electrostatic discharge.
  • Cleanliness: Keep the module free from dust, dirt, and moisture. Do not expose it to corrosive liquids.
  • Power Supply: Ensure the power supply voltage is within the specified range (1.71V to 5V) to prevent overvoltage damage.
  • Storage: Store the module in a dry, cool place, preferably in an anti-static bag, when not in use.

6. Troubleshooting

6.1 No Communication / Device Not Found

  • Check Wiring: Verify all connections (VCC, GND, SCL/SDA or SCK/MOSI/MISO/CS) are correct and secure.
  • Power Supply: Ensure the module is receiving the correct voltage and ground.
  • I2C Address: Confirm the correct I2C address is being used (LSM6DS3 typically has two possible addresses depending on SDO pin state).
  • Pull-up Resistors: For I2C, ensure SCL and SDA lines have appropriate pull-up resistors.
  • SPI Chip Select: For SPI, ensure the CS pin is correctly toggled (pulled low during communication).
  • Code Initialization: Review your code for correct initialization sequence and register writes.

6.2 Incorrect or Unstable Readings

  • Full-Scale Range: Ensure the configured full-scale range matches your expected motion and that the sensitivity conversion factor is correct.
  • Output Data Rate (ODR): Check if the ODR is set appropriately for your application. Too low an ODR might miss fast movements, too high might generate excessive data.
  • Data Conversion: Verify that the 16-bit raw data is correctly combined (low byte and high byte) and converted to physical units.
  • Vibration/Noise: Ensure the module is securely mounted and isolated from excessive vibrations that could affect readings.
  • Orientation: Understand the sensor's axis orientation relative to your application.

7. Specifications

FeatureSpecification
Sensor Type3D Accelerometer, 3D Gyroscope, Temperature Sensor
Accelerometer Ranges±2g, ±4g, ±8g, ±16g
Gyroscope Ranges±125 dps, ±245 dps, ±500 dps, ±1000 dps, ±2000 dps
Supply Voltage1.71 V to 5 V
Power Consumption (Normal Mode)0.9 mA
Power Consumption (High-Performance Mode)1.25 mA (up to 1.6 kHz)
FIFO Buffer Size8 KB
Communication InterfacesSPI, I2C (IIC)
Module Dimensions13 mm x 18 mm

8. Warranty and Support

Specific warranty information for the Reland Sun GY-LSM6DS3 LSM6DS3 module is typically provided by the retailer or manufacturer at the point of purchase. For technical support, detailed datasheets, or further inquiries, please refer to the official documentation from the sensor manufacturer (STMicroelectronics for LSM6DS3) or contact your product supplier. Source · https://manuals.plus/asin/B07W82TGPQ

© 2023 Reland Sun. All rights reserved.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Rate this product if you’ve used it

Was this page helpful?