Wiring:

Connect the Power:

  • Connect the GND pin to GND on the Arduino.
  • Connect the VIN pin to the 5v pin on the Arduino.
  • (For 3.3v microprocessors, connect the pin marked 3Vo to the 3.3v supply)

Connect the X, Y and Z Signal Outputs:

Connect X, Y and Z to the analog pins as shown below:

Using the Voltage Reference:

For the best possible accuracy and precision, you can use the output of the accelerometer boards voltage regulator as the analog reference for the Arduino.  Connect the 3Vo pin on the accelerometer board to the AREF pin on the Arduino.
If you connect an external voltage reference to the AREF pin, you must set the analog reference to EXTERNAL before calling analogRead() (e.g. in your setup() function). Otherwise, you will short the internal reference with the external reference, possibly damaging your Arduino board.

This guide was first published on Nov 05, 2012. It was last updated on Oct 26, 2012.

This page (Arduino Wiring) was last updated on Dec 19, 2017.

Text editor powered by tinymce.