Hello guys. I recently bought an ADXL 335 accelerometer and an Arduino nano V3 board and I want to make some measurements.
My configuration pin is:
Vcc pin from accelerometer to 3.3V Arduino Board
GND to GND
X,Y,X pins from sensor to A1,A2,A3 pins from nano board
3.3V from Arduino board to AREF pin nano board
My program is:
const int xPin= A1;
const int yPin= A2;
const int zPin= A3;
analogReference(EXTERNAL); //3.3V to AREF
And the results from Serial monitor are:
375 374 475
But, this is not what I expected. I want to see +- datas in G forces on each axis.
So what I need to do for achieveing my goal?