In this article “Evil Mad Scientist Laboratories” shows us how to interface ADXL330 – a full 3-axis accelerometer – with an AVR microcontroller. The final circuit demostrates the capabilities of this small and nice chip on measuring acceleration and orientation in space. According to Analog Devices :
“It measures acceleration with a minimum full-scale range of ±3 g. It can measure the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion, shock, or vibration”
The ADXL330 has three analog outputs for XYZ axis and the output voltage corresponds to an acceleration value. That means that if you power the chip with 3V then an output of 1.5V indicates zero g accelaration.
On the final board two leds (one blue and one red) will indicate the acceleration on both directions for each channel. Also the more inclination the board has the more light comes out the led.
Using an ADXL330 accelerometer with an AVR microcontroller – [Link]