3 Axis Arduino Accelerometer / Inclinometer (Tilt / Roll / Yaw)

Picture of 3 Axis Arduino Accelerometer / Inclinometer (Tilt / Roll / Yaw)
From the minds at

Years ago I saw a neat dash gadget for a Jeep that had two pictures of a Jeep on the unit. As you drove, the two pictures would move, showing tilt and roll angles, with the idea it would help prevent you from tipping over when driving off road.

I received a BMA180 Accelerometer, and decided to build an Arduino version, maybe eventually displaying graphics on a LCD screen. For now I want to get the unit talking to the Arduino, displaying G forces in 3 dimensions:

Tilt (front to back, or X)
Roll (side to side, or Y)
Yaw (pivoting as in a skid, or Z)

Remove these adsRemove these ads by Signing Up

Step 1: Connecting the Breakout Board

Picture of Connecting the Breakout Board
Connect the breakout board as diagrammed. Although the BMA180 requires a 3.3v input, the TWI interface (SCK/SDI) is 5v logic tolerant.
madhavdivya5 months ago

Isn't the parameters measured by an accelerometer different from an inclinometer ? Acceleration is m/s2 while inclination is deg ? Am I missing something?

sspence (author)  madhavdivya5 months ago
There is a simple conversion, which I did not document yet, as I got sidetracked on other projects. See
PaleoDan1 year ago
I love this idea but this goes way outside my DIY comfort zone... If you ever need someone to test a prototype, my Jeep and I would like to volunteer! Great idea!
sspence (author)  PaleoDan1 year ago
we will see if we can do this ...

Please keep me posted on the progress

sspence (author)  PaleoDan1 year ago
I'll try to get back to this project. So many projects, so little time / money.
Phil B1 year ago
Could this be used to make a pedometer? I am just curious. At present I have a smart phone and downloaded a free pedometer application that seems to work pretty well. Perhaps another application for this would be for the person who needs to haul things that could spill, like water in an open top tank. Perhaps he knows the water will not spill over the side of the tank if he accelerates at 1.5 feet per second per second or less. Having a visual scale of his acceleration would eliminate the guesswork.
sspence (author)  Phil B1 year ago
It's a 3 axis accelerometer, displaying varying g-forces, so you could use those numbers anyway you can think of.