Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

3-axis Accelerometer Sensor-ADXL335 Interfacing with ATmega32

3803
Mark as Favourite

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.

Softwares Required

Hardwares Required

Name / Unit Price Quantity Total Price
AVR Trainer Board-100 with ATmega32
Rs. 730.00
1pc
Rs.730.00
AVR USB Programmer
Rs. 350.00
1pc
Rs.350.00
12V, 1A DC SMPS Adaptor
Rs. 130.00
1pc
Rs.130.00
3-axis Accelerometer Sensor
Rs. 350.00
1pc
Rs.350.00
RG1602A 16X2 Alphanumeric LCD Green
Rs. 150.00
1pc
Rs.150.00
1 to 1 Connector-Female to Female
Rs. 4.00
3pc
Rs.12.00
5 to 5 Connector-Female to Female-1 Meter
Rs. 60.00
1pc
Rs.60.00
10 to 10 FRC Female to Female Connector
Rs. 15.00
2pc
Rs.30.00
TOTAL Rs.1812.00

Circuit Diagram

3-axis-Accelerometer-Sensor-ADXL335-Interfacing-with-AVR-ATmega32-Microcontroller-Circuit-Diagram-ABLab-Solutions-1024x7011

Video

Connection Guide

The step-by-step connection guide for 3-axis Accelerometer Sensor-ADXL335 Interfacing with ATmega32 is as follows:

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 9 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 9 )

  • Connect the X, Y, Z, VCC and GND pins of 3-axis Accelerometer Sensor header with PA0, PA1, PA2, +5V and GND pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

    Steps - 5 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 7 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 9 )

  • Download 3-axis Accelerometer Sensor-ADXL335 Interfacing with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 9 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 9 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 9 )

  • Connect the X, Y, Z, VCC and GND pins of 3-axis Accelerometer Sensor header with PA0, PA1, PA2, +5V and GND pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

    Steps - 5 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 7 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 9 )

  • Download 3-axis Accelerometer Sensor-ADXL335 Interfacing with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 9 )

Post a Comment