Has anyone have the Code to connect an Analog Devices ADXL311 2-axis accelerometer
The datasheet says: add 10..100 nF from each output to gnd. (see datasheet page 8)
The chip can run off 5V.
You will read ca 2.5V for no acceleration. Typical sensivity is 310 mV /g, which may want you add an amplifier.
When you read the analog inputs they will show 1/2 of full range (around 511)
@ 2g, voltage will vary in range 1.87V .. 3,12V