Summary of 3-axis Accelerometer Sensor-ADXL335 Interfacing with ATmega32
This project demonstrates interfacing the ADXL335 3-axis accelerometer sensor with an AVR ATmega32 microcontroller. The sensor measures tilt by providing analog outputs for X, Y, and Z axes, which the microcontroller converts into digital values using its ADC. These values are then displayed on a 16x2 alphanumeric LCD. The setup allows observation of changes in acceleration when the sensor or the attached material is tilted in different directions.
Parts used in the ADXL335 Accelerometer Sensor Interfacing with ATmega32 Project:
- ADXL335 3-axis accelerometer sensor
- AVR ATmega32 microcontroller
- 16x2 alphanumeric LCD
- Analog to Digital Converter (ADC) (integrated in ATmega32)
- Power supply (3.3V)
- Connecting wires and breadboard or PCB
ADXL335 accelerometer sensor is a MEMS (Microelectromechanical systems) sensor which can measure static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion, shock, or vibration. The accelerometer sensor is used in mobile devices, gaming systems, disk drive protection, image stabilization, sports devices, health devices and etc. The analog outputs are ratio metric: that means that 0g measurement output is always at half of the 3.3V output (1.65V), -3g is at 0V and 3g is at 3.3V with full scaling in between. The ADXL335 accelerometer sensor gives three analog output values which correspond to three coordinate axes: – x-axis, y-axis and z-axis values.
In this project, we will learn How to interface a 3-axis accelerometer sensor-ADXL335 with AVR ATmega32 microcontroller. Here, we will measure the tilt of the accelerometer sensor or the material to which the accelerometer sensor is attached and we will display the three outputs of accelerometer sensor in a 16X2 alphanumeric LCD. But, the three outputs of 3-axis accelerometer sensor are analog in nature and microcontroller cannot process the analog signal directly. So, first it will convert the three analog outputs of ADXL335 accelerometer sensor to digital values using its analog to digital converter and then it will display the three converted digital values in the 16X2 alphanumeric LCD. Now, we will tilt the accelerometer sensor or the material to which the sensor is attached in different direction and we will see the changes in its output values in the 16×2 alphanumeric LCD.
For more detail: 3-axis Accelerometer Sensor-ADXL335 Interfacing with ATmega32