Instructables
Picture of Interfacing ADXL335 with ARDUINO
2013-11-09 01.12.11.jpg
As the datasheet says, ADXL335 is a small, thin, low power, complete 3-axis accelero-meter with signal conditioned voltage outputs. The product 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. 
ADXL335 is 3v3 compatible device, it's powered by a 3.3v source and also generates 3.3v peak outputs. It has three outputs for each axis i.e. X, Y & Z. These are analog outputs and thus require an ADC in a micro-controller. Arduino solves this problem. We will be using the analog functions of Arduino.
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts Required

Picture of Parts Required
2013-11-09 00.39.03.jpg
2013-11-09 01.22.01.jpg
  1. Arduino-Any Arduino/clone will do but I have used Freeduino v1.16
  2. ADXL335 accelerometer
  3. Connecting wires(Relimates)
  4. USB cable for connecting Arduino with your Laptop

Step 2: The Circuit

Picture of The Circuit
2013-11-09 01.05.01.jpg
The accelerometer module has 5 pins, namely
  1. GND-To be connected to Arduino's GND
  2. VCC-To be connected to Arduino's 5V
  3. X-To be connected to Analog Pin A5
  4. Y-To be connected to Analog Pin A4
  5. Z-To be connected to Analog Pin A3
NOTE: We don't need to power the module from 3.3v because it already has a 5v to 3.3v converter.
Use 2-pin relimate for connecting Vcc and GND.
Use a 3-pin relimate for connecting X, Y & Z outputs.
Also connect AREF pin to the 3.3v. This is done to set the reference voltage to 3.3v because the output of ADXL335 is 3.3v compatible.

Fine i'm getting the output but what are the values and how can i convert to acceleration(in m/s^2)..??
thanks in advance...