Wiki

This version is outdated by a newer approved version.DiffThis version (10 Jan 2018 19:19) is a draft.
Approvals: 0/1

This is an old revision of the document!


Impact Measurement Demo using the Arduino Uno

This demo will use EVAL-ADXL372-ARDZ shield along with Arduino Uno base board to create a impact measurement application, using the Arduino IDE.

General Description/Overview

The ADXL372 demo project uses the EVAL-ADXL372-ARDZ shield which has an ADXL372 accelerometer. The ADXL372 is configured to operate in “Instant On” mode which means that the device is powered down, until the sensor records an impact event that triggers a threshold. Once that level is surpassed, the ADXL372 automatically goes into measurement mode to capture the rest of the impact event.

The ADXL372 is an ultralow power, 3-axis, ±200 g MEMS accelerometer.

Demo Requirements

FIXME - Add text, part numbers, hyper links and other important information and where to get it in order to recreate this demo.

The following is a list of items needed in order to replicate this demo.

  • Hardware
    • Arduino Uno Rev 3
    • EVAL-ADXL372-ARDZ
    • Type B to Type A USB cable
    • PC or Laptop with a USB port
  • Software
    • Arduino_Uno_ADXL372 sketch
    • Arduino Interactive Development Environment(IDE)

Setting up the Hardware

  1. Plug the EVAL-ADXL372-ARDZ shield on top of the Arduino Uno development board by matching up the POWER, ANALOG, DIGI0, DIGI1 connectors.
    • Note, the boards should only plug together one way, preventing reverse connections.
  2. Make sure the jumpers P8, P9, P6 are configured exactly as the picture below.
    • P9 → Pin 1-2
    • P8 → Pin 2-3
    • P6 → Pin 1-2
  3. Plug in the Type B USB cable into the USB port on the Arduino Uno, and the other end into the PC or laptop.

Obtaining the Source Code

The source code and include files of the FIXME file_name_of_demo can be found here:

FIXME - Add correct link

Arduino_Uno_adxl372 at Github

Project Structure

FIXME - Add text, picture, images, that describe the project structure. Any software flow diagrams or decision trees can be added her to help customers understand how the applications are structures.

Configuring the Software Parameters

Before running your program, make sure that you have configured the software appropriately to your settings:

FIXME - Add text, picture, images, code blocks that describe how to configure the software. Things like changing the accelerometer range from 2g to 4g should be a trivial change for the customer. We don't have to show them everything, but think of the application, and what parameters are most likely need to be customized by the user. (like providing a an ID or password for a local gateway using WI-FI)

Compiling, Verifying, and Programming

  1. Once the project has been imported and the software parameters have been appropriately configured, you must Compile/Verify the project within the Arduino IDE. You can do this by clicking on the Sketch menu, and then on the Compile/Verify option.
  2. Once the project is compiled and free of errors, you can now upload the project to the Arduino Uno. Click on the Sketch menu item, and then click Upload.

These two steps can also be done using the quick buttons on the Arduino sketch. Check out the image below for locations of the quick buttons.

Outputting Data

Data is output using the USB cable from the Arduino to the PC. The USB port acts as a serial terminal to display the data being transmitted via UART. Opening the serial terminal window from the Arduino IDE is very easy, simply click on the button shown in the picture below.

Serial Terminal Output

You may need to configure the serial terminal depending on the current settings of the Arduino IDE. Make sure the settings are as follows:

  Select COM Port
  Baud rate: 9600
  Data: 8 bit
  Parity: none
  Stop: 1 bit
  Flow Control: none


Tools Download and Help

The Arduino tools are easy to use, and there are many tutorials and users guides to help learn how to use the Arduino IDE.

For more information on how to use the tool basics, please check out the Arduino tutorials page.

To download the Arduino tools, check out the Arduino software page.

End of Document

resources/eval/user-guides/arduino-uno/reference_designs/demo_adxl372.1515608348.txt.gz · Last modified: 10 Jan 2018 19:19 by Brandon Bushey