gy-lsm6ds3 lsm6ds3 accelerometer

gy-lsm6ds3 lsm6ds3 accelerometer
In Stock
Price: KSH 600.00

GY-LSM6DS3 Accelerometer and Gyroscope Sensor

The GY-LSM6DS3 is a **6-axis motion sensing device**, combining a **3-axis accelerometer** and **3-axis gyroscope**, making it ideal for applications in **motion tracking, robotics, and IoT projects**.

Overview

This sensor provides accurate and real-time data on **linear acceleration** and **angular velocity**. It's perfect for measuring dynamic motion and is supported by popular platforms like **Arduino and Raspberry Pi**.

Features

  • 6-axis **motion sensing** (3-axis accelerometer + 3-axis gyroscope)
  • Supports **I2C** and **SPI** interfaces for easy connectivity
  • Low power consumption for battery-powered devices
  • Integrated **temperature sensor** for accurate readings

Pinout Description

Pinout of GY-LSM6DS3 Sensor:

  • VCC: Connects to power supply (3.3V to 5V)
  • GND: Connects to ground
  • SCL: I2C Clock (SCL) Pin
  • SDA: I2C Data (SDA) Pin
  • CS: Chip Select (SPI communication)
  • INT: Interrupt pin (optional)
  • VDDIO: I/O voltage supply (3.3V or 1.8V depending on logic level)

Refer to the diagram below for the pinout layout:

GY-LSM6DS3 Pinout Diagram

Arduino Sample Code

Use the following Arduino code to interface the **GY-LSM6DS3 sensor** with your Arduino board:

<!-- Include the necessary libraries -->
#include <Wire.h>
#include <Adafruit_LSM6DS3.h>
#include <Adafruit_Sensor.h>

<!-- Create an object for the LSM6DS3 sensor -->
Adafruit_LSM6DS3 lsm6ds3;

void setup() {
    Serial.begin(115200);

    <!-- Initialize the sensor -->
    if (!lsm6ds3.begin()) {
        Serial.println("Sensor initialization failed!");
        while (1);
    }
    Serial.println("LSM6DS3 Initialized");
}

void loop() {
    <!-- Declare sensor events for accelerometer, gyroscope, and temperature -->
    sensors_event_t accel, gyro, temp;
    lsm6ds3.getEvent(&accel, &gyro, &temp);

    <!-- Print accelerometer data -->
    Serial.print("Accel X: "); Serial.print(accel.acceleration.x);
    Serial.print(" Y: "); Serial.print(accel.acceleration.y);
    Serial.print(" Z: "); Serial.println(accel.acceleration.z);

    <!-- Print gyroscope data -->
    Serial.print("Gyro X: "); Serial.print(gyro.gyro.x);
    Serial.print(" Y: "); Serial.print(gyro.gyro.y);
    Serial.print(" Z: "); Serial.println(gyro.gyro.z);

    delay(500); <!-- Delay to allow data to update -->
}

Why Buy from HIMASTORES?

HIMASTORES offers **high-quality** components at the best prices, with **fast delivery** and top-notch customer support.

Order Now

Get your **GY-LSM6DS3 Sensor** today and start building your next motion-sensing project!

Price: KSH 600.00

🔥RELATED PRODUCTS🔥

🔗 HIMASTORES PRODUCTS