This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:arduino-uno:reference_designs:demo_cn0391 [10 Jan 2018 18:13] – Brandon Bushey | resources:eval:user-guides:arduino-uno:reference_designs:demo_cn0391 [06 Jan 2021 10:01] (current) – Fixed bad link for en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/EVAL-CN0391-ARDZ.html Ioana Chelaru | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== General Description/ | ===== General Description/ | ||
- | The **ADuCM360_demo_cn0391** project uses the [[http:// | + | The **CN0391_example** project uses the [[resources:eval:user-guides:eval-adicup360:hardware:cn0391|EVAL-CN0391-ARDZ |
- | The EVAL-CN0391-ARDZ shield uses the [[http:// | + | The EVAL-CN0391-ARDZ shield uses the [[adi>en/ |
- | {{: | + | {{ : |
The **EVAL-CN0391-ARDZ** board has 4 thermocouple ports: **P1**~**P4**. The board has **4 Pt1000** RTDs: **R1**~**R4** close to each thermocouple socket for cold junction compensation. It supports all 8 types of thermocouple: | The **EVAL-CN0391-ARDZ** board has 4 thermocouple ports: **P1**~**P4**. The board has **4 Pt1000** RTDs: **R1**~**R4** close to each thermocouple socket for cold junction compensation. It supports all 8 types of thermocouple: | ||
- | FIXME | + | The **CN0391_example** application reads the 4 RTD channels and the 4 thermocouple channels, processes them, makes all necessary calculations in order to output a linearized temperature for each available port. The **UART** interface (9600 baud rate, 1 start bit, 8-bits data length, no parity bits and 1 stop bits) is used to send data to a terminal window. |
- | The **ADuCM360_demo_cn0391** application reads the 4 RTD channels and the 4 thermocouple channels, processes them, makes all necessary calculations in order to output a linearized temperature for each available port. The **UART** interface (19200 baud rate, 1 start bit, 8-bits data length, no parity bits and 2 stop bits) is used to send data to a terminal window. | + | |
The user has the possibility to enable/ | The user has the possibility to enable/ | ||
Line 45: | Line 44: | ||
\\ | \\ | ||
< | < | ||
- | The second approximation formula was implemented for [[http:// | + | The second approximation formula was implemented for [[adi>en/ |
</ | </ | ||
Line 76: | Line 75: | ||
* PC or Laptop with a USB port | * PC or Laptop with a USB port | ||
* Software | * Software | ||
- | * Arduino_Uno_CN0391 | + | * CN0391_example |
* Arduino Interactive Development Environment(IDE) | * Arduino Interactive Development Environment(IDE) | ||
Line 89: | Line 88: | ||
===== Obtaining the Source Code ===== | ===== Obtaining the Source Code ===== | ||
- | The source code and include files of the FIXME!**file_name_of_demo** can be found here: | + | The source code and include files of the **CN0391_example** can be found here: |
<WRAP round 80% download> | <WRAP round 80% download> | ||
- | [[https:// | + | [[https:// |
</ | </ | ||
- | ===== Project Structure ===== | + | ===== Project Structure===== |
- | FIXME | + | {{ : |
+ | The Arduino Sketch is used to open the example into Arduino IDE. The project is composed of three main parts: | ||
+ | |||
+ | * the main program (arduino sketch) | ||
+ | * application layer | ||
+ | * communication layer | ||
+ | * driver layer (IC drivers and sensor data) | ||
===== Configuring the Software Parameters ===== | ===== Configuring the Software Parameters ===== | ||
Before running your program, make sure that you have configured the software appropriately to your settings: | Before running your program, make sure that you have configured the software appropriately to your settings: | ||
- | * **RTD channel calibration** | + | * **RTD channel calibration** - enable/ |
- | * **Thermocouple channel calibration** | + | < |
- | * **Terminal refresh** | + | #define USE_RTD_CALIBRATION |
- | * **Thermocouple types** | + | </ |
+ | * **Thermocouple channel calibration** - enable/ | ||
+ | < | ||
+ | #define USE_TH_CALIBRATION | ||
+ | </ | ||
+ | * **Terminal refresh** - how often to refresh the output data - input time value in [msec] (// | ||
+ | < | ||
+ | #define DISPLAY_REFRESH | ||
+ | </ | ||
+ | * **Thermocouple types** - selects available thermocouple types for each port (//Thermocouple.h//). | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
===== Compiling, Verifying, and Programming ===== | ===== Compiling, Verifying, and Programming ===== | ||
Line 129: | Line 149: | ||
You may need to configure the serial terminal depending on the current settings of the Arduino IDE. Make sure the settings are as follows: | 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 of USB device | Select COM Port of USB device | ||
- | Baud rate: 19200 | + | Baud rate: 9600 |
Data: 8 bit | Data: 8 bit | ||
Parity: none | Parity: none | ||
- | Stop: 2 bit | + | Stop: 1 bit |
Flow Control: none | Flow Control: none | ||
\\ | \\ |