How Do I Use LSM303DLM Voltage Output to Measure Acceleration?

  • Thread starter Thread starter jason1988
  • Start date Start date
  • Tags Tags
    Accelerometer
AI Thread Summary
To measure acceleration using the LSM303DLM accelerometer, it must be connected to a microcontroller, such as an Arduino or an Orangutan robot controller. A basic Arduino library is available to facilitate reading raw accelerometer data and computing tilt-compensated headings. For Orangutans, an AVR Studio project demonstrates interfacing with the sensor for compass applications. Additionally, there is an mbed library that requires slight modifications to work with the LSM303DLM. The sensor is being replaced by the LSM303DLHC, which offers improved features but may require code adjustments for compatibility.
jason1988
Messages
1
Reaction score
0
-- how to used the voltage output --

i bought LSM303 accelerometer (FROM NEXT LINK ) and i don't know how to used output voltage to find the acceleration . can you help me pls


http://www.pololu.com/catalog/product/1273
 
Engineering news on Phys.org
jason1988, Welcome to Physics Forums!

You have purchased a LSM303DLH sensor module. To use it it must be connected to a microcontroller. From your link above I clicked on the link "Application Note". That note gives typical connections on page 9.

There are 3 different microcontrollers described that you could use:

Arduino: We have written a basic Arduino library for this LSM303 carrier board that makes it easy to interface this sensor with an Arduino. The library makes it simple to read the raw accelerometer and magnetometer data, and it has a function for computing the tilt-compensated heading for those looking to use this sensor as a tilt-compensated compass.

Orangutans: We provide an AVR Studio project (5k zip) that demonstrates how to use an Orangutan robot controller to interface with the LSM303DLM and make a tilt-compensated compass. The project is set up for an ATmega328P microcontroller, but it will work on other Orangutans with simple changes to the project configuration.

mbed: There is a library for using the similar LSM303DLH with the ARM mbed development board. This library was not written and is not maintained by Pololu, and it needs to be modified slightly to work with the LSM303DLM.

At the bottom of the note there are 3 references. I would recommend you get all 3 to study...you can't learn too much about your sensor.

References:
1. STMicroelectronics, Inc. LSM303DLH sensor module datasheet
http://www.st.com/stonline/products/families/sensors/motion_sensors/lsm303dlh.htm

2. Honeywell, Inc. Applications of Magnetoresistive Sensors in Navigation Systems
http://www.ssec.honeywell.com/position-sensors/datasheets/sae.pdf

3. Honeywell, Inc. Applications of Magnetic Sensors for Low Cost Compass Systems
http://www.ssec.honeywell.com/magnetic/datasheets/lowcost.pdf

Finally, I'm sure you noticed your sensor is being replaced by a newer, better version. That's why it was so cheap.

"Clearance: This board is being replaced by the newer LSM303DLHC carrier, which offers improved magnetic sensing resolution and a wider acceleration measurement range. The new version is also 0.1″ shorter than the original, but it is pin-compatible with the original LSM303DLM carrier and can generally be used as a drop-in replacement. However, changes in I²C addresses and configuration registers mean that code written to interface with an LSM303DLM might need to be modified to work with an LSM303DLHC."

Cheers,
Bobbywhy
 
Last edited by a moderator:
Ooops! Please revise my post above: You have purchased the LSM303DLM.
 
Thread 'I need a concave mirror with a focal length length of 150 feet?'
I need to cut down a 3 year old dead tree from top down so tree causes no damage with small pieces falling. I need a mirror with a focal length of 150 ft. 12" diameter to 36" diameter will work good but I can't think of any easy way to build it. Nothing like this for sale on Ebay. I have a 30" Fresnel lens that I use to burn stumps it works great. Tree service wants $2000.
Hi all, i have some questions about the tesla turbine: is a tesla turbine more efficient than a steam engine or a stirling engine ? about the discs of the tesla turbine warping because of the high speed rotations; does running the engine on a lower speed solve that or will the discs warp anyway after time ? what is the difference in efficiency between the tesla turbine running at high speed and running it at a lower speed ( as fast as possible but low enough to not warp de discs) and: i...
Thread 'Where is my curb stop?'
My water meter is submerged under water for about 95% of the year. Today I took a photograph of the inside of my water meter box because today is one of the rare days that my water meter is not submerged in water. Here is the photograph that I took of my water meter with the cover on: Here is a photograph I took of my water meter with the cover off: I edited the photograph to draw a red circle around a knob on my water meter. Is that knob that I drew a red circle around my meter...
Back
Top