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.

Step 1: Parts Required

  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
<p>can you provide a code by which i can turn on a buzzer as a result of the accelerometer's movement</p>
I am using ArduinoDroud to write the above given code but it shows error when I vompile it. Can u please help me out
<p>I am doing a project which involves using the speed of a motor so how do I find the acceleration of the motor using ADXL335</p>
<p>Hi man,</p><p>Can you tell how can I measure the three axis orientation in degrees? I'm using MPU-6050 sensor.</p><p>Also, how much is the cost in INR of the ADXL335 accelerometer that you are using?</p>
<p>Hey,<br>You'll have to refer the datasheet for MPU-6050 sensor.<br>And I bought ADXL335 for around INR 350-400.</p>
<p>Still didn't quite understand why to connect 3.3v to AREF but, pretty happy it worked</p>
<p>As I've already mentioned, it is to provide reference voltage of 3.3v. Although the module is powered by 5v but the output is only compatible to 3.3v.</p>
<p>Thx a lot, got it working in 10mins!</p>
Plz help.. <br>I have a accel. with 6 pins on it. The pin reads as <br>1-&gt;vcc <br>2-&gt;gnd <br>3-&gt;st <br>4-&gt;z <br>5-&gt;y <br>6-&gt;x <br> <br>I connected xyz as you mentioned, i connected vcc to 5v and ground to ground. I also connected st to 3v3. when i powered on my kit i got a burnt smell and found my ic on accel to be very hot. hence powered it down. <br>My kit works fine, would my accel. have got damaged? <br>what should i do now? <br>
<p>check out:http://www.analog.com/media/en/technical-documentation/application-notes/AN-1057.pdf for degrees</p>
<p>the values your getting are just analog values of 8 bit but not the exert values of ADXL335 your not considering any logic or any formula to get the actual value use this formula x=(value_x/1024.0*ADC_ref-zero_x)/sensitivity_x; y=(value_y/1024.0*ADC_ref-zero_y)/sensitivity_y; z=(value_z/1024.0*ADC_ref-zero_z)/sensitivity_z; refer data sheet of ADXL335 for zero value of x,y,z using these formula you will get the coordinate but still you have to use kalman filter equations to get the accurate value </p>
<p>Nice bro! This helped me a lot!</p>
<p>Fine i'm getting the output but what are the values and how can i convert to acceleration(in m/s^2)..??<br>thanks in advance...</p>

About This Instructable



Bio: An electronics enthusiast... #Complexity simplified
More by apoorveinstein:Interfacing 20x4 LCD with Arduino Home Automation using Bluetooth Interfacing ADXL335 with ARDUINO 
Add instructable to: