Product |
Sensors
|
Accelerometer Sensor
| LSM303DLHC 3D Compass and Accelerometer Module
LSM303DLHC 3D Compass and Accelerometer Module
Overview
The LSM303DLHC combines a digital 3-axis accelerometer and 3-axis magnetometer into a single package that is ideal for making a tilt-compensated compass. The six independent readings, whose sensitivities can be set in the ranges of ±2 to ±8 g and ±1.3 to ±8.1 gauss, are available through an I2C interface. The LSM303DLH is a great IC, but its small package makes it difficult for the typical student or hobbyist to use. This LSM303 carrier board includes voltage regulators and a level-shifting circuit that allows operation from 3V to 5.5 V, and the anti-reverse connector makes it easy to connect with Arduino sensor shield.
The module includes two voltage regulators that provide the 1.8 V and 3 V required by the LSM303, which allows the sensor to be powered from a single 3.3V– 5.5 V supply. The breakout board also includes a circuit that shifts the I2C clock and data lines to the same logic voltage level as the supplied VCC, making it simple to interface the board with 3.3 V or 5 V systems.
This sensor is a carrier/breakout module for the ST L3GD20 three-axis gyroscope, which measures the angular rates of rotation about the pitch (x), roll (y), and yaw (z) axes. Angular velocity measurements with a configurable range of ±250°/s, ±500°/s, or ±2000°/s can be read through a digital I2C or SPI interface. The board has a 3.3 V linear regulator and integrated level-shifters that allow it to work over an input voltage range of 3.3V–5.5 V. The 0.1″ pin spacing making it easy to use with Arduino.
Specifications
1、Operating voltage: 3.3V to 5.5 V
2、Output interface: I2C
3、Sensitivity range (configurable):
4、Accelerometer: ±2, ±4, or ±8 g
5、Magnetometer: ±1.3, ±1.9, ±2.5, ±4.0, ±4.7, ±5.6, or ±8.1 gauss
Example
We recommend careful reading of the LSM303DLHC datasheet before using this product.With the CS pin in its default state (pulled up to 3.3V), the L3GD20 can be configured and its angular velocity readings can be queried through the I2C bus. We will show an example on how to use this module with Arduino.
Connections
For Arduino UNO/Duemilanove :
Arduino GND -> LSM303DLH GND
Arduino 5V -> LSM303DLH VCC
Arduino A4 (SDA) -> LSM303DLH SDA
Arduino A5 (SCL) -> LSM303DLH SCL
For Arduino Mega :
Arduino GND -> LSM303DLH GND
Arduino 5V -> LSM303DLH VCC
Arduino 20 (SDA) -> LSM303DLH SDA
Arduino 21 (SCL) -> LSM303DLH SCL
If you have the Sensor Shield, it is pretty easy to connect. Plug and play!
Code
Download this library and add it to library file of Arduino IDE.
Open the example Serial :
Upload the sketch to Arduino.
Then connect this module with Arduino and restart it.
Open the Serial Monitor of Arduino IDE, you could see the result :
Dimension
Categories
Newsletter
Join our newsletter today, to get latest product information and promotion code.
Loading ...