LSM303DLH - Tilt Compensated Compass

Replacement: None. We are no longer carrying this tilt compensated compass in our catalog. This page is for reference only.

The LSM303DLH is a triple axis MEMS accelerometer combined with a triple axis magnetic sensor. The sensor has an easy to use I2C interface. Supply voltage should be between 2.5 and 3.3 VDC.

Check below for a breakout board!

  • +- 2/4/8 g dynamically selectable full-scale
  • +-1.3 to +- 8.1 gauss magnetic field full-scale
  • 16-bit data out
  • I2C interface
  • Embedded self-test

LSM303DLH - Tilt Compensated Compass Product Help and Resources

Core Skill: Soldering

This skill defines how difficult the soldering is on a particular product. It might be a couple simple solder joints, or require special reflow tools.

3 Soldering

Skill Level: Competent - You will encounter surface mount components and basic SMD soldering techniques are required.
See all skill levels

Core Skill: Programming

If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.

3 Programming

Skill Level: Competent - The toolchain for programming is a bit more complex and will examples may not be explicitly provided for you. You will be required to have a fundamental knowledge of programming and be required to provide your own code. You may need to modify existing libraries or code to work with your specific hardware. Sensor and hardware interfaces will be SPI or I2C.
See all skill levels

Core Skill: Electrical Prototyping

If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.

3 Electrical Prototyping

Skill Level: Competent - You will be required to reference a datasheet or schematic to know how to use a component. Your knowledge of a datasheet will only require basic features like power requirements, pinouts, or communications type. Also, you may need a power supply that?s greater than 12V or more than 1A worth of current.
See all skill levels


Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • tylerroberts / about 11 years ago / 1

    It looks like there is a library on GitHub to turn this into a tilt compensated compass:
    I haven't tried it out though. I'll add this part to my wish list :)

  • Joe User / about 11 years ago / 1

    This is NOT a tilt compensated compass. This is a bundle of sensors that can be used to make a tilt compensated compass. There's lots of computation involved in going between magnetometer readings and compass readings (see the app note).

  • Antoine / about 11 years ago / 1

    Impressive, the 430 units ran out of stock in few hours...
    I know there is a penury with that chip.

  • bcr / about 11 years ago / 1

    Are you guys getting more of these? They're nowhere to be found.
    And combined with the HMC5843 EOL.. it could be a tough couple months for UAV nerds. :-\

  • Ilektron / about 11 years ago / 1

    I know what I'm spending my freeday money on. Sparkfun read my mind!

  • How does this compare to the pricey HMC6343?

    • macpod / about 11 years ago / 1

      This doesn't output heading in degrees or pitch/roll in degrees. The HMC6343 does. The HMC6343 also has a built in temperature sensor if I'm reading the datasheet right.
      In my opinion, the LSM303 should be should be called a "3-axis accelerometer and 3-axis magnetometer" because of this. You can use it to get pitch, roll, and heading.. but you need a uC to do some maths to get these values (the diydrones site and the app note on this page have helpful information on calculating this).

      • Oh I see, so this is outputs pure magnetic-magnitude-per-axis then? Thanks for the help

Customer Reviews

No reviews yet.