This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:eval:user-guides:eval-adicup3029:reference_designs:demo_adt7420 [24 May 2017 04:40] – created Srinivas Gollakota | resources:eval:user-guides:eval-adicup3029:reference_designs:demo_adt7420 [14 Mar 2021 06:04] (current) – [Obtaining the Source Code] adding in .Hex files Zuedmar Arceo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Demo Title ====== | + | ====== |
+ | |||
+ | The **ADICUP3029_ADT7420** is a temperature sensor demo project for the **EVAL-ADICUP3029** base board with additional **EVAL-ADT7420-PMDZ** shield, created using the Analog Devices Cross Core Embedded Studio. | ||
- | FIXME! | ||
- | ADT7420 Temperature sensor Demo | ||
===== General Description/ | ===== General Description/ | ||
- | FIXME! | + | The **ADICUP3029_ADT7420** project uses [[adi> |
+ | |||
+ | ===== Demo Video ===== | ||
+ | |||
+ | {{analogTV> | ||
+ | |||
+ | ===== Demo Requirements | ||
+ | |||
+ | The following is a list of items needed in order to replicate this demo. | ||
+ | * Hardware | ||
+ | * EVAL-ADICUP3029 | ||
+ | * EVAL-ADT7420-PMDZ | ||
+ | * Mirco USB to USB cable | ||
+ | * PC or Laptop with a USB port | ||
+ | * Software | ||
+ | * ADICUP3029_ADT7420 software | ||
+ | * Inside Sensor_Sw Pack (1.0.0 | ||
+ | * CrossCore Embedded Studio (2.6.0 or higher) | ||
+ | * ADuCM302x DFP (2.0.0 or higher) | ||
+ | * ADICUP3029 BSP (1.0.0 or higher) | ||
+ | * Android IoTNode App (optional - For Bluetooth transmission only) | ||
+ | * Serial Terminal Program (Required for running in release mode only) | ||
+ | * Such as Putty or Tera Term | ||
===== Setting up the Hardware ===== | ===== Setting up the Hardware ===== | ||
+ | - Plug the **EVAL-ADT7420-PMDZ** PMOD into the **EVAL-ADICUP3029** board' | ||
+ | - Place the **(S5)** switch position to read " | ||
+ | - Plug in the micro USB cable into the **(P10)** USB port on the EVAL-ADICUP3029, | ||
- | FIXME! | + | {{: |
===== Configuring the Software ===== | ===== Configuring the Software ===== | ||
- | FIXME! | + | In the // |
+ | \\ | ||
+ | * **ADI_APP_DISPATCH_TIMEOUT** - //DISPATCH TIMEOUT// will define how often the data is sent over Bluetooth. | ||
+ | * **ADI_APP_USE_BLUETOOTH ** - //ENABLE BLUETOOTH// parameter - will either use Bluetooth or will have the option to print to console window in debug mode or terminal in release mode. | ||
===== Outputting Data ===== | ===== Outputting Data ===== | ||
- | FIXME! | + | Once the hardware is setup and software |
- | ===== Obtaining | + | There are **three** different ways to visualize |
+ | * CrossCore Embedded Studio Console Window (through semihosting) | ||
+ | * Serial Terminal Program (such as Putty or Tera Term) | ||
+ | * IoTNode Smart Device App | ||
- | We recommend not opening | + | Depending on how you want to operate |
+ | {{ : | ||
+ | \\ | ||
+ | \\ | ||
- | The source code and include files of the FIXME!**file_name_of_demo** can be found here: | + | ^ Data Output Destination ^ Connected to Debugger ^ Configuration File ^ |
+ | ^ CCES Console Window | Yes | ADICUP3029_Debug.launch | | ||
+ | ^ PC/Laptop Serial Terminal | No | ADICUP3029_Release.launch | | ||
+ | ^ IoTNode Smart App | Yes | ADICUP3029_Debug.launch | | ||
+ | ^ IoTNode Smart App | No | ADICUP3029_Release.launch | | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
- | <WRAP round 80% download> | + | |
+ | ==== Debug Launch Mode ==== | ||
- | FIXME! | + | **Debug launch mode** is used when connected to the debugger. |
+ | \\ | ||
+ | |||
+ | Figure shows when ADI_APP_USE_BLUETOOTH is set to 1, sensor data is sent to android application. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | If you have the app installed on your phone, these figure shows the output on android device. | ||
+ | <WRAP center round important 80%> | ||
+ | Do not try to connect directly (or pair) to the EVAL-ADICUP3029 from your phone. | ||
+ | - Simply open up the IoTNode application on your phone. | ||
+ | - " | ||
+ | - Once you find your demo, click on it to open it up. | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | {{: | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | It's important to remember that when you use the Debug.launch | ||
+ | |||
+ | ==== Release Launch Mode ==== | ||
+ | |||
+ | **Release launch mode** is used for running without the debugger connected. When in release mode, console output is redirected to UART. Bluetooth is enabled, and sensor data is sent to android application. If disabled, sensor data is directed only to the UART. If you are using the UART to make print to the PC/laptop, here are the settings your TCP client must be set too. | ||
+ | Following | ||
+ | Select COM Port | ||
+ | Baud rate: 9600 | ||
+ | Data: 8 bit | ||
+ | Parity: none | ||
+ | Stop: 1 bit | ||
+ | Flow Control: none | ||
+ | \\ | ||
+ | |||
+ | Figure shows when ADI_APP_USE_BLUETOOTH is set to 1 | ||
+ | |||
+ | {{: | ||
+ | |||
+ | If you have the app installed on your phone, these figure shows the output on android device. | ||
+ | <WRAP center round important 80%> | ||
+ | Do not try to connect directly (or pair) to the EVAL-ADICUP3029 from your phone. | ||
+ | - Simply open up the IoTNode application on your phone. | ||
+ | - " | ||
+ | - Once you find your demo, click on it to open it up. | ||
+ | </ | ||
+ | \\ | ||
+ | {{: | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | ===== Obtaining the Software ===== | ||
+ | |||
+ | There are two basic ways to program the ADICUP3029 with the software for the ADT7420. | ||
+ | - 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 | ||
+ | |||
+ | 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. Below screen shot shows how to open project from CCES Example browser. | ||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | The software for the **ADuCM3029_demo_adt7420** demo can be found here: | ||
+ | |||
+ | <WRAP round 80% download> | ||
+ | Prebuilt ADT7420 Hex File | ||
+ | * [[https:// | ||
+ | Complete ADT7420 Source Files | ||
+ | * [[https:// | ||
- | [[https:// | ||
- | |||
</ | </ | ||
Line 49: | Line 159: | ||
==== Project Structure ==== | ==== Project Structure ==== | ||
- | FIXME! | + | The **ADICUP3029_ADT7420** is a C project that uses ADuCM3029 C/C++ Project structure. |
+ | |||
+ | This project contains: system initialization part - disabling watchdog, setting system clock, enabling clock for peripherals; | ||
+ | |||
+ | {{: | ||
+ | \\ | ||
+ | adt7420_app.cpp and adt7420_app.h are the main source and header files related to **ADICUP3029_ADT7420** be found under RTE/ | ||
+ | \\ | ||
+ | **pinmux.c** – contains GPIO pinmuxing for UART and SPI. | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ====== More Information ====== | ||
+ | |||
+ | {{page> | ||
// End of Document // | // End of Document // | ||