Arduino Pro Mini (3.3V version) - requires FTDI Breakout (3.3V version)
If you chose to use a 5V Arduino (such as an Arduino Uno or Leonardo), you'll need to shift the logic levels to ensure that the ADXL362 receives 3.3V logic, as well as power from a 3.3V supply (available on the Uno as the "3.3V" power pin) - I cannot be held responsible if you fry your ADXL362 using a 5V Arduino!
Notice - Arduino (http://arduino.cc) is an open source prototyping platform - there are many, many "Arduino-compatible" boards out there. And, chances are good that you could get any one of them to work for this example. But, to keep things simple, I am going show how connect the ADXL362 to the Arduino Pro Mini. If you deviate from this example, you are on your own. But, don't worry! There are loads of examples on the web, books in the bookstore/library, etc, that will very quickly help you to become an Arduino expert.
If you're new to Arduino, then it's best if you work on getting the software downloaded and installed, and make sure that you're able to get your Arduino to "say hello" before you connect the ADXL362.
Download and install the software, connect your Arduino to your PC, and work through the "Getting Started" guide.
Did you get your Arduino to blink its LED? Hooray!
No luck? Try getting the Arduino Cookbook, by Michael Margolis - an excellent and thorough guide for getting started.
Connect the power and ground pins of the ADXL326 Breakout to the VCC and GND pins of the Arduino, and connect the SPI pins of the ADXL362 to the SPI pins of the Arduino. (And, double check to make sure you're not connecting your ADXL362 to any supply or signal pins over 3.3V!) For the Arduino Pro Mini, the pin names/numbers are listed below:
Check out http://arduino.cc/en/Reference/SPI for more information on using Arduino to program SPI devices
Arduino Pro Mini
Download the ADXL362 Arduino library from the GitHub repository and unzip it. It's likely going to have a long "github" assigned folder name - you can rename the top level folder to "ADXL362." Place that folder (which contains .h file, .cpp file, and "examples" folder) in the "libraries" folder of your Arduino sketchbook folder. If this the the first library you've ever installed, you'll need to create the "libraries" folder in the Arduino sketchbook folder.
Hint: The location of your Sketchbook folder is specified in the Arduino IDE under File --> Preferences (or by typing CTRL+Comma):
The file structure MUST look like this (Sketchbook location -> libraries -> ADXL362 -> folder contents):
The ADXL362 folder can be renamed, but no additional levels of hierarchy may be added. This is just where Arduino knows to look for stuff.
If you have the ADXL362 library folder in the correct location, you should be able to open the ADXL362_SimpleRead example sketch by clicking File -> Examples -> ADXL362 -> ADXL362_SimpleRead, as illustrated in picture below:
Once you have the sketch open, you should be able to click the "Upload" button. Make sure you have the correct board and COM port selected. (Please take a step back and review the SparkFun "Getting Started" Guide if you are having trouble uploading your sketch.)
Once you have uploaded your sketch, you should see a "Done Uploading" message in the window, as illustrated below:
Once you have successfully uploaded the sketch, open the Serial Monitor (Ctrl+Shift+M, or click magnifier icon on upper right corner)
Your serial monitor data should look like this (of course, X, Y, Z values depend on your circuit orientation):
Didn't work? Go back to square one and get the "Blink" example working. A few tips:
This is my favorite part! What makes the ADXL362 so great is it's super-low power, especially in sleep mode. Check back later!
For arduino (mine is UNO) works well. It could be better to supply with LPC1768 too.