soldr.ai

Docs  /  Components

LSM303DLHC e-compass (GY-511): specs and pinout

A module built around the LSM303DLHC chip, which combines a 3-axis accelerometer and a 3-axis magnetometer (e-compass) with a temperature sensor, read over I2C. The figures here are for the chip, not the module board.

Every value cites its sourceOfficial pinout

Buy on Compoden

Specs

SpecValueSource
Supply voltage (Vdd)2.16 V to 3.6 Vsource
Features, p.1; Table 5 Electrical characteristics
I/O supply voltage (Vdd_IO)1.71 V to Vdd plus 0.1 Vsource
Table 5 Electrical characteristics, p.12
InterfaceI2C, standard (100 kHz) and fast (400 kHz) modes; external pull-ups requiredsource
Features, p.1; 2.4 Communication interfaces
I2C address, accelerometer0011001b (0x19), 7-bitsource
5.1.2 Linear acceleration digital interface
I2C address, magnetometer0011110b (0x1E), 7-bitsource
5.1.3 Magnetic field digital interface
Acceleration full scaleplus or minus 2 g, 4 g, 8 g or 16 g selectablesource
Features, p.1; Table 3
Magnetic full scaleplus or minus 1.3, 1.9, 2.5, 4.0, 4.7, 5.6 or 8.1 gauss selectablesource
Features, p.1; Table 3
Data output16 bitsource
Features, p.1
Operating temperature-40 C to +85 Csource
Description, p.1; Table 3
Current consumption, normal mode110 uA typical (magnetometer 7.5 Hz, accelerometer 50 Hz output rate)source
Table 5, note 2, p.12

Power

ValueSource
SupplyVdd 2.16 V to 3.6 V; Vdd_IO 1.71 V to Vdd plus 0.1 Vsource
Table 5, p.12
Current110 uA typical in normal mode (magnetometer 7.5 Hz, accelerometer 50 Hz)source
Table 5, p.12

Pinout

The module board is not covered by an official document. Its regulator, pull-up resistors, address jumpers, level handling and header order are not documented by a source; check the printed labels on the board. The numbers on this page are for the chip.

PinFunctionVoltageNotesSource
1Vdd_IOPower supply for I/O pinssource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
2SCLSignal interface I2C serial clocksource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
3SDASignal interface I2C serial datasource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
4INT2Inertial interrupt 2source
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
5INT1Inertial interrupt 1source
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
6C1Reserved capacitor connection (C1)source
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
7GND0 V supplysource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
8ReservedLeave unconnectedsource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
9DRDYData readysource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
10ReservedConnect to GNDsource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
11ReservedConnect to GNDsource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
12SETPS/R capacitor connection (C2)source
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
13SETCS/R capacitor connection (C2)source
1.2 Pin description, Table 2, p.9 (LGA-14 chip)
14VddPower supplysource
1.2 Pin description, Table 2, p.9 (LGA-14 chip)

Build with it

Project ideas for the LSM303DLHC e-compass (GY-511). Each link opens Soldr with the prompt filled in; Soldr assigns the pins, checks power and shows how to wire every part.

Common mistakes

Not covered by the official source

Sources