Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Seeed Grove 3-Axis Digital Accelerometer (±16g): Examples, Pinouts, and Specs

Image of Seeed Grove 3-Axis Digital Accelerometer (±16g)
Cirkit Designer LogoDesign with Seeed Grove 3-Axis Digital Accelerometer (±16g) in Cirkit Designer

Introduction

The Seeed Grove 3-Axis Digital Accelerometer (±16g) (Manufacturer Part ID: 101020054) is a compact and versatile sensor designed to measure acceleration in three dimensions: X, Y, and Z. With a measurement range of ±16g, this accelerometer is ideal for detecting motion, orientation, and vibration in a variety of applications. It is part of the Grove ecosystem, which simplifies prototyping and development with its plug-and-play modular design.

Explore Projects Built with Seeed Grove 3-Axis Digital Accelerometer (±16g)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Teensy 4.1 Based Biometric Data Acquisition System with AD8232 Heart Rate Monitor and LIS3DH Accelerometer
Image of Teensy 4.1 accelerometer: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
This circuit integrates a Teensy 4.1 microcontroller with an Adafruit LIS3DH Triple-Axis Accelerometer and an AD8232 Heart Rate Monitor. The accelerometer communicates with the Teensy via I2C (SCL and SDA lines), while the heart rate monitor's output and lead-off detection (LO+ and LO-) are connected to the Teensy's analog inputs. The circuit is designed to measure both acceleration and heart rate signals, likely for a wearable or health monitoring device.
Cirkit Designer LogoOpen Project in Cirkit Designer
SparkFun Pro Micro Based Motion Tracking System with BMI160 and EEPROM Data Logging
Image of Basic Arduino Sparkfun Pro Micro + BMI160: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
This circuit is designed for motion sensing and data logging applications. It features a SparkFun Pro Micro microcontroller interfaced with a BMI160 6DOF sensor for motion detection and two 24LC512 EEPROM chips for extended data storage. The microcontroller reads gyroscopic and accelerometer data from the BMI160 sensor, processes it, and stores it in the EEPROM, with power supplied by a Polymer Lithium Ion Battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Motion and Flex Sensor System with Arduino Nano ESP32 and MPU-6050
Image of Team 10 AirMouse: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
This circuit features an Arduino Nano ESP32 microcontroller interfaced with an MPU-6050 accelerometer and gyroscope sensor, powered by a battery. It also includes two flex resistors connected to analog inputs for measuring variable resistance, likely for sensing bending or flexing.
Cirkit Designer LogoOpen Project in Cirkit Designer
ADXL335 Accelerometer Data Visualization with Oscilloscope
Image of SYS Circuit: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
This circuit connects an AITrip ADXL335 GY-61 accelerometer to an oscilloscope for signal visualization and a 3xAA battery pack for power. The accelerometer's Z-axis output is directly monitored on the oscilloscope, allowing for real-time observation of acceleration changes along that axis. The circuit is likely used for educational or testing purposes to demonstrate how the accelerometer responds to motion.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Seeed Grove 3-Axis Digital Accelerometer (±16g)

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Teensy 4.1 accelerometer: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
Teensy 4.1 Based Biometric Data Acquisition System with AD8232 Heart Rate Monitor and LIS3DH Accelerometer
This circuit integrates a Teensy 4.1 microcontroller with an Adafruit LIS3DH Triple-Axis Accelerometer and an AD8232 Heart Rate Monitor. The accelerometer communicates with the Teensy via I2C (SCL and SDA lines), while the heart rate monitor's output and lead-off detection (LO+ and LO-) are connected to the Teensy's analog inputs. The circuit is designed to measure both acceleration and heart rate signals, likely for a wearable or health monitoring device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Basic Arduino Sparkfun Pro Micro + BMI160: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
SparkFun Pro Micro Based Motion Tracking System with BMI160 and EEPROM Data Logging
This circuit is designed for motion sensing and data logging applications. It features a SparkFun Pro Micro microcontroller interfaced with a BMI160 6DOF sensor for motion detection and two 24LC512 EEPROM chips for extended data storage. The microcontroller reads gyroscopic and accelerometer data from the BMI160 sensor, processes it, and stores it in the EEPROM, with power supplied by a Polymer Lithium Ion Battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Team 10 AirMouse: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
Battery-Powered Motion and Flex Sensor System with Arduino Nano ESP32 and MPU-6050
This circuit features an Arduino Nano ESP32 microcontroller interfaced with an MPU-6050 accelerometer and gyroscope sensor, powered by a battery. It also includes two flex resistors connected to analog inputs for measuring variable resistance, likely for sensing bending or flexing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SYS Circuit: A project utilizing Seeed Grove 3-Axis Digital Accelerometer (±16g) in a practical application
ADXL335 Accelerometer Data Visualization with Oscilloscope
This circuit connects an AITrip ADXL335 GY-61 accelerometer to an oscilloscope for signal visualization and a 3xAA battery pack for power. The accelerometer's Z-axis output is directly monitored on the oscilloscope, allowing for real-time observation of acceleration changes along that axis. The circuit is likely used for educational or testing purposes to demonstrate how the accelerometer responds to motion.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Motion detection and gesture recognition
  • Orientation sensing for robotics and drones
  • Vibration monitoring in industrial systems
  • Wearable devices and fitness trackers
  • Gaming and virtual reality controllers

Technical Specifications

The following table outlines the key technical details of the Seeed Grove 3-Axis Digital Accelerometer:

Parameter Value
Measurement Range ±16g
Communication Protocol I2C
Operating Voltage 3.3V / 5V
Operating Current < 1 mA
Sensitivity 0.0039g/LSB (at ±16g range)
Dimensions 20mm x 20mm
Operating Temperature -40°C to +85°C

Pin Configuration

The Grove connector on the accelerometer module has four pins. The table below describes each pin:

Pin Name Description
1 VCC Power supply (3.3V or 5V)
2 GND Ground
3 SDA I2C data line
4 SCL I2C clock line

Usage Instructions

Connecting the Accelerometer

  1. Hardware Setup:

    • Connect the Grove 3-Axis Digital Accelerometer to an I2C port on a Grove Base Shield or Grove-compatible board.
    • If using an Arduino UNO, attach the Grove Base Shield to the Arduino UNO and connect the accelerometer to an available I2C port.
  2. Software Setup:

    • Install the required library for the accelerometer. The sensor is based on the LIS3DHTR chip, so you can use the Seeed_LIS3DHTR library.
    • Open the Arduino IDE and install the library via the Library Manager:
      • Go to Sketch > Include Library > Manage Libraries.
      • Search for Seeed_LIS3DHTR and click Install.

Sample Code

The following Arduino code demonstrates how to read acceleration data from the sensor:

#include <Wire.h>
#include "LIS3DHTR.h" // Include the library for the LIS3DHTR chip

LIS3DHTR<TwoWire> LIS; // Create an instance of the LIS3DHTR class

void setup() {
  Serial.begin(9600); // Initialize serial communication
  Wire.begin();       // Initialize I2C communication

  // Initialize the accelerometer
  if (!LIS.begin(Wire, 0x19)) { // Default I2C address is 0x19
    Serial.println("Failed to initialize accelerometer!");
    while (1); // Halt execution if initialization fails
  }

  LIS.setOutputDataRate(LIS3DHTR_DATARATE_50HZ); // Set data rate to 50Hz
  LIS.setFullScaleRange(LIS3DHTR_RANGE_16G);    // Set measurement range to ±16g
  Serial.println("Accelerometer initialized successfully!");
}

void loop() {
  // Read acceleration values for X, Y, and Z axes
  float x = LIS.getAccelerationX();
  float y = LIS.getAccelerationY();
  float z = LIS.getAccelerationZ();

  // Print the acceleration values to the Serial Monitor
  Serial.print("X: ");
  Serial.print(x, 2); // Print X-axis acceleration with 2 decimal places
  Serial.print(" g, Y: ");
  Serial.print(y, 2); // Print Y-axis acceleration with 2 decimal places
  Serial.print(" g, Z: ");
  Serial.print(z, 2); // Print Z-axis acceleration with 2 decimal places
  Serial.println(" g");

  delay(100); // Delay for 100ms before the next reading
}

Important Considerations

  • Ensure the sensor is securely connected to the I2C port to avoid communication errors.
  • The sensor operates at both 3.3V and 5V, but ensure your microcontroller's I2C lines are compatible with the chosen voltage.
  • Avoid exposing the sensor to extreme temperatures or mechanical shocks beyond its specified limits.

Troubleshooting and FAQs

Common Issues

  1. No Data Output:

    • Ensure the Grove connector is properly seated in the I2C port.
    • Verify that the correct I2C address (default: 0x19) is being used in the code.
  2. Incorrect or Unstable Readings:

    • Check for loose connections or damaged cables.
    • Ensure the sensor is not exposed to excessive vibrations or noise during operation.
  3. Library Not Found:

    • Confirm that the Seeed_LIS3DHTR library is installed in the Arduino IDE.
    • Restart the Arduino IDE after installing the library.

FAQs

Q: Can I use this sensor with a Raspberry Pi?
A: Yes, the sensor supports I2C communication and can be used with a Raspberry Pi. You will need to configure the I2C interface on the Raspberry Pi and use a compatible Python library, such as smbus.

Q: What is the maximum sampling rate of the sensor?
A: The sensor supports a maximum output data rate of 5.3 kHz, but for most applications, lower rates (e.g., 50Hz or 100Hz) are sufficient.

Q: How do I change the measurement range?
A: Use the setFullScaleRange() function in the code to set the desired range. Supported ranges are ±2g, ±4g, ±8g, and ±16g.

Q: Can I use multiple accelerometers on the same I2C bus?
A: Yes, but you will need to configure each sensor with a unique I2C address. Refer to the sensor's datasheet for instructions on changing the address.

This concludes the documentation for the Seeed Grove 3-Axis Digital Accelerometer (±16g). For further assistance, refer to the official Seeed Studio documentation or community forums.