This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:eval-adicup3029:reference_designs:demo_adxl372 [13 Jun 2017 08:09] – [Configuring the Software] Mircea Caprioru | resources:eval:user-guides:eval-adicup3029:reference_designs:demo_adxl372 [08 Mar 2021 09:04] (current) – [Obtaining the Source Code] adding in .Hex files Zuedmar Arceo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ADXL372 Demo using Bluetooth ====== | ====== ADXL372 Demo using Bluetooth ====== | ||
+ | |||
This demo will use **EVAL-ADXL372-ARDZ** along with **EVAL-ADICUP3029** to create a impact measurement application. The **ADXL372** is an ultralow power, 3-axis, **±200 g** MEMS accelerometer. | This demo will use **EVAL-ADXL372-ARDZ** along with **EVAL-ADICUP3029** to create a impact measurement application. The **ADXL372** is an ultralow power, 3-axis, **±200 g** MEMS accelerometer. | ||
===== General Description/ | ===== General Description/ | ||
- | The ADXL372 demo project uses the **EVAL-ADXL372-ARDZ** shield which has an ADXL372 | ||
- | The **EVAL-ADICUP3029** is designed for IOT (Internet of Things) applications | + | The ADXL372 demo project uses the **EVAL-ADXL372-ARDZ** shield which has an ADXL372 |
- | ===== Setting | + | The **EVAL-ADICUP3029** is designed for IOT (Internet of Things) applications in mind, and therefore comes with on board **Bluetooth 5.0** module. |
- | {{ : | + | |
- | Set switch S2 to USB Arduino function in order to view data over UART also. The UART baud rate is **9600** baud. | + | The data is sent via Bluetooth 5.0 link to an iOS smart device, where all the max impact data can be read. |
- | {{ : | + | Both boards and all components are used in their respective low power modes to optimize the solutions battery life. |
- | Place the **EVAL-ADXL372-ARDZ** on top of the **EVAL-ADICUP3029**. Make sure the jumpers **P8, P9, P6** are configured exactly as the picture above. | + | ===== Demo Requirements ===== |
- | - P9 -> Pin 1-2 | + | The following is a list of items needed in order to replicate this demo. |
- | - P8 -> Pin 2-3 | + | |
- | | + | * EVAL-ADICUP3029 |
+ | * EVAL-ADXL372-ARDZ | ||
+ | * Mirco USB to USB cable | ||
+ | * PC or Laptop with a USB port | ||
+ | * iOS Smart Phone/ | ||
+ | | ||
+ | * ADuCM3029_Asset_Health_demo software (on Github) | ||
+ | * CrossCore Embedded Studio (2.6.0 or higher) | ||
+ | * ADuCM302x DFP (2.0.0 or higher) | ||
+ | * ADICUP3029 BSP (1.0.0 or higher) | ||
+ | * iOS IoTNode App // | ||
+ | * Serial Terminal Program, Such as Putty or Tera Term | ||
+ | * //(Required for running in release mode only and if you don't want to use the smart device app)// | ||
- | After making these configurations just plug in the USB connector. | + | ===== Setting up the Hardware ===== |
- | ===== Configuring the Software ===== | + | - Set switch S2 to USB Arduino function in order to view data over UART also. The UART baud rate is **9600** baud.{{ : |
+ | - Place the **EVAL-ADXL372-ARDZ-INT** on top of the **EVAL-ADICUP3029**. | ||
+ | - Make sure the jumpers **P10, P11, P12** are configured exactly as the picture below. | ||
+ | * P10 -> Pin 1-2 | ||
+ | * P11 -> Pin 1-2 | ||
+ | * P12 -> Pin 1-2 | ||
+ | {{ : | ||
+ | - Plug in the micro USB cable into the (P10) USB port on the EVAL-ADICUP3029, | ||
+ | |||
+ | ===== Configuring the Software ===== | ||
For this application you will need to install on your [[resources: | For this application you will need to install on your [[resources: | ||
+ | |||
+ | ===== Outputting Data ===== | ||
+ | |||
+ | The data from the accelerometer will be sent over Bluetooth but can also be viewed using a **UART connection**. | ||
+ | |||
+ | ==== Serial Terminal Output ==== | ||
+ | To establish connection over UART, a micro USB cable connected to the board and a serial console program like [[http:// | ||
+ | |||
+ | Following is the UART configuration. | ||
+ | Select COM Port | ||
+ | Baud rate: 9600 | ||
+ | Data: 8 bit | ||
+ | Parity: none | ||
+ | Stop: 1 bit | ||
+ | Flow Control: none | ||
+ | \\ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ==== Smart Device Output ==== | ||
+ | Open up the IoTNode app on your Smart Phone or Tablet. | ||
{{ : | {{ : | ||
Line 30: | Line 71: | ||
Just press the Scan button on the bottom left corner in order for the app to start searching for Bluetooth devices. | Just press the Scan button on the bottom left corner in order for the app to start searching for Bluetooth devices. | ||
+ | {{ : | ||
+ | |||
+ | Once the device is visible press connect to access the information provided over **Bluetooth**. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | After connecting to the device and generating enough G acceleration(**minimum of 10 G** on any axis), information will be displayed on the application. To generate this high value of acceleration you can try and hit the board on your hand ( do not put to much force in order to avoid damages to the device ). | ||
+ | |||
+ | <note tip>For more information regarding the mobile application please use the link for [[resources: | ||
+ | \\ | ||
+ | |||
+ | ===== Obtaining the Software ===== | ||
+ | |||
+ | There are two basic ways to program the ADICUP3029 with the software for the ADXL372. | ||
+ | - Dragging and Dropping the .Hex to the Daplink drive | ||
+ | - Building, Compiling, and Debugging using CCES | ||
+ | |||
+ | Using the drag and drop method, the software is going to be a version that Analog Devices creates for testing and evaluation purposes. | ||
+ | |||
+ | Importing the project into CrossCore is going to allow you to change parameters and customize the software to fit your needs, but will be a bit more advanced and will require you to download the CrossCore toolchain. | ||
+ | |||
+ | The software for the **ADuCM3029_Asset_Health** can be found here: | ||
+ | <WRAP round 80% download> | ||
+ | Prebuilt ADXL372 Hex File | ||
+ | * [[https:// | ||
+ | Complete ADXL372 Source Files | ||
+ | * [[https:// | ||
+ | |||
+ | </ | ||
+ | ===== How to use the Tools ===== | ||
+ | The official tool we promote for use with the EVAL-ADICUP3029 is CrossCore Embedded Studio. | ||
+ | ==== Importing ==== | ||
+ | For more detailed instructions on importing this application/ | ||
+ | ==== Debugging ==== | ||
+ | For more detailed instructions on importing this application/ | ||
+ | ==== Project Structure ==== | ||
+ | {{ : | ||
+ | The project is structured in 3 layers: | ||
+ | * Hardware layer - ADXL372 | ||
+ | * Communication layer | ||
+ | * Application layer - ADuCM3029 and EM9304 BLE | ||
+ | The ADXL372 transmits data to ADuCM3029 controller through the Communication layer. The data is processed and sent over BLE to a mobile device. | ||
+ | // End of Document // |