This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:eval:user-guides:eval-adicup3029:reference_designs:demo_adxl362 [02 Feb 2018 15:38] – [Accelerometer Demo using Wi-Fi (with EVAL-ADXL362-ARDZ)] Mircea Caprioru | resources:eval:user-guides:eval-adicup3029:reference_designs:demo_adxl362 [28 Feb 2018 17:43] – move obtaining source and added sw configurations under that Brandon Bushey | ||
---|---|---|---|
Line 3: | Line 3: | ||
The **ADuCM3029_demo_esp8266** is a Wi-Fi demo project for the **EVAL-ADICUP3029** base board with additional **EVAL-ADXL362-ARDZ** shield, created using the Analog Devices Cross Core Embedded Studio. | The **ADuCM3029_demo_esp8266** is a Wi-Fi demo project for the **EVAL-ADICUP3029** base board with additional **EVAL-ADXL362-ARDZ** shield, created using the Analog Devices Cross Core Embedded Studio. | ||
- | <note important> | + | <note important> |
===== General Description/ | ===== General Description/ | ||
Line 22: | Line 22: | ||
* PC or Laptop with a USB port | * PC or Laptop with a USB port | ||
* Software | * Software | ||
- | * ADICUP3029_ADXL362 | + | * ADuCM3029_demo_adxl362 |
* CrossCore Embedded Studio (2.6.0 or higher) | * CrossCore Embedded Studio (2.6.0 or higher) | ||
* ADuCM302x DFP (2.0.0 or higher) | * ADuCM302x DFP (2.0.0 or higher) | ||
Line 35: | Line 35: | ||
- Plug the **EVAL-ADXL362-ARDZ** shield in the **EVAL-ADICUP3029** base board. {{ : | - Plug the **EVAL-ADXL362-ARDZ** shield in the **EVAL-ADICUP3029** base board. {{ : | ||
- Plug the USB cable | - Plug the USB cable | ||
+ | |||
+ | ===== Obtaining the Source Code ===== | ||
+ | |||
+ | We recommend not opening the project directly, but rather import it into CrossCore Embedded Studios and make a local copy in your workspace. | ||
+ | |||
+ | The source code and include files of the **ADuCM3029_demo_esp8266** can be found here: | ||
+ | |||
+ | <WRAP round 80% download> | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round info 80%> | ||
+ | For more information on importing, debugging, or other tools related questions, please see the [[https:// | ||
+ | </ | ||
+ | |||
+ | ===== Configuring the Software ===== | ||
+ | |||
+ | * ** Accelerometer scan interval** - how often to update sensor information. Set the // SCAN_SENSOR_TIME // parameter (// | ||
+ | |||
+ | < | ||
+ | #define SCAN_SENSOR_TIME | ||
+ | </ | ||
+ | |||
+ | * ** Sensor activity and inactivity thresholds** - // | ||
+ | |||
+ | < | ||
+ | #define ACT_VALUE | ||
+ | #define INACT_VALUE | ||
+ | </ | ||
+ | |||
+ | * ** Sensor activity and inactivity time** - // | ||
+ | |||
+ | < | ||
+ | #define ACT_TIMER | ||
+ | #define INACT_TIMER | ||
+ | </ | ||
+ | |||
+ | * **ESP8266.c/ | ||
+ | |||
+ | < | ||
+ | #define SSID " | ||
+ | #define PASS " | ||
+ | #define MQTT_SERVER " | ||
+ | </ | ||
===== Using an MQTT Broker ===== | ===== Using an MQTT Broker ===== | ||
Line 85: | Line 131: | ||
- The program will publish x, y, z data on the **// | - The program will publish x, y, z data on the **// | ||
- At each ADXL362 movement, an interrupt is triggered and as a result, the x, y, z information is published. In the console **// | - At each ADXL362 movement, an interrupt is triggered and as a result, the x, y, z information is published. In the console **// | ||
- | |||
- | ===== Obtaining the Source Code ===== | ||
- | |||
- | We recommend not opening the project directly, but rather import it into CrossCore Embedded Studios and make a local copy in your workspace. | ||
- | |||
- | The source code and include files of the **AduCM3029_demo_esp8266** can be found here: | ||
- | |||
- | <WRAP round 80% download> | ||
- | |||
- | [[https:// | ||
- | |||
- | </ | ||
- | |||
===== How to use the Tools ===== | ===== How to use the Tools ===== | ||
Line 118: | Line 151: | ||
- **MQTT** folder contains the library which implements the MQTT protocol. We recommend to use it as is, without modifying anything. | - **MQTT** folder contains the library which implements the MQTT protocol. We recommend to use it as is, without modifying anything. | ||
- **ADXL362.c/ | - **ADXL362.c/ | ||
- | * ** Accelerometer scan interval** - how often to update sensor information. Set the // SCAN_SENSOR_TIME // parameter - **msec** (// | + | |
- | * ** Sensor activity and inactivity thresholds** - // | + | |
- | # | + | |
- | * ** Sensor activity and inactivity time** - // | + | |
- | # | + | |
- | - **ESP8266.c/ | + | |
- | * ** SSID, PASS and MQTT_SERVER** - replace with your specific data: < | + | |
- | # | + | |
- | # | + | |
// End of Document// | // End of Document// |