Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
resources:eval:user-guides:eval-ad5940:software_examples:ad5940_bia [26 Sep 2018 18:33] – created Micheál Lamberesources:eval:user-guides:eval-ad5940:software_examples:ad5940_bia [05 Dec 2019 19:00] (current) Gustavo Velasco-Hernández
Line 3: Line 3:
 This demo will use  **EVAL-ADICUP3029**, **EVAL_AD5940BIOZ** and **Impedance-Test** board to carry out BIA measurements.   This demo will use  **EVAL-ADICUP3029**, **EVAL_AD5940BIOZ** and **Impedance-Test** board to carry out BIA measurements.  
  
-===== General Description/Overview =====+===== Overview =====
  
-BIA  +This example project is designed to carry out body impedance analysis (BIA) measurements. The Impedance Test board is provided with the hardware which models body impedance. It consists of a range of resistors and capacitors which can be used to model body impedance, contact impedance and electrode impedance.
  
-===== Demo Requirements =====+Alternatively, the custom cables can be connected to the body to measure actual body impedance.
  
-The following is a list of items needed in order to replicate this demo.+===== Measurement Requirements ===== 
 + 
 +The following is a list of items required to carry out the measurement.
   * Hardware   * Hardware
     * EVAL-ADICUP3029     * EVAL-ADICUP3029
     * EVAL-AD5940BIOZ     * EVAL-AD5940BIOZ
     * Z-Test Board     * Z-Test Board
-    * Mirco USB to USB cable+    * Micro USB to USB cable
     * PC or Laptop with a USB port     * PC or Laptop with a USB port
 +    * Custom Cables (Optional)
  
   * Software   * Software
     * AD5940_BIA Example Project (Git Lab)     * AD5940_BIA Example Project (Git Lab)
     * Serial Terminal Program, Such as Putty or RealTerm     * Serial Terminal Program, Such as Putty or RealTerm
 +    * IDE such as IAR or Keil
  
 ===== Setting up the Hardware ===== ===== Setting up the Hardware =====
  
-  - Set switch S2 to USB Arduino function in order to view data over UART also. The UART baud rate is **230400**+  - Set switch S2 to USB Arduino function in order to view data over UART. The UART baud rate is **230400**
   - Set S5 to Wall/USB to power the board from the USB cable{{ :resources:eval:user-guides:eval-adicup3029:reference_designs:img_20170612_144023_hdr.jpg?800 |}}   - Set S5 to Wall/USB to power the board from the USB cable{{ :resources:eval:user-guides:eval-adicup3029:reference_designs:img_20170612_144023_hdr.jpg?800 |}}
-  - Place the **EVAL-AD5940BIOZ** on top of the **EVAL-ADICUP3029**. +  - Place the **EVAL-AD5940BIOZ** on top of the **EVAL-ADICUP3029**.{{ :resources:eval:user-guides:eval-ad5940:software_examples:eval-ad5940bioz.jpg?nolink&800 |}} 
-  - Make sure the jumpers are correct. (TODO add details)+  - Connect the AD5940 Z Test board to the EVAL-AD5940BIOZ board 
 +  - All jumpers should be in their default position
   - Plug in the micro USB cable into the (P10) USB port on the EVAL-ADICUP3029, and the other end into the PC or laptop.   - Plug in the micro USB cable into the (P10) USB port on the EVAL-ADICUP3029, and the other end into the PC or laptop.
 +==== AD5940 Z Test Board ====
 +
 +The AD5940 Z Test board is designed to model skin impedance, body impedance, electrode contact impedance and electrode impedance. There are 5 banks of switches on the board labelled S1, S2, S3, S4 and S5. The function of each bank is described in the following table: 
 +^ Switch Bank ^ Bank Function ^
 +| S1         | Used to model Body Impedance  |                
 +| S2 | Used to model contact impedance on F+ electrode |
 +| S3         | Used to model contact impedance on S+ electrode |
 +| S4         | Used to model contact impedance on F- electrode |
 +| S5         | Used to model contact impedance on S- electrode |
 +
 +The following tables indicate the resistor or capacitor value associated with each switch in the bank. Moving the switch to the ON position connects the corresponding resistor or capacitor value in series on the signal path. If more than one switch is active the corresponding resistor values are connected in series.
 +<WRAP column 30%>
 +^ S1 Bank ^ Corresponding Res/Cap Value ^
 +| S1         | 100 Ω |                
 +| S2 | 200 Ω |
 +| S3         | 300 Ω |
 +| S4         | 340 Ω |                
 +| S5 | 510 Ω |
 +| S6         | 1 kΩ |
 +| S7         | 2 kΩ  |                
 +| S8         | 3.01 kΩ |  
 +| S9         | 4.02 kΩ |                
 +| S10 | 4.99 kΩ |
 +| S11         | 1000 pF |
 +| S12         | 0.01 μF |
 +</WRAP>
 +<WRAP column 30%>
 +^ S2 Bank ^ Corresponding Res/Cap Value ^
 +| S1         | 100 Ω |                
 +| S2 | 200 Ω |
 +| S3         | 300 Ω |
 +| S4         | 402 Ω |                
 +| S5 | 10 kΩ |
 +| S6         | 23.7 kΩ  |
 +| S7         | 42.2 kΩ  |
 +| S8         | 42.2 kΩ  |                
 +| S9         | 100 kΩ |  
 +| S10         | 200 kΩ |                
 +| S11         | 1000 pF |
 +| S12         | 0.01 μF |
 +</WRAP>
 +<WRAP column 30%>
 +^ S3 Bank ^ Corresponding Res/Cap Value ^
 +| S1         | 100 Ω |                
 +| S2 | 200 Ω |
 +| S3         | 300 Ω |
 +| S4         | 402 Ω |                
 +| S5 | 4.22 MΩ |
 +| S6         | 4.22 MΩ  |
 +| S7         | 1.43 MΩ  |
 +| S8         | 1 MΩ  |                
 +| S9         | 300 kΩ |  
 +| S10         | 300 kΩ |                
 +| S11         | 1000 pF |
 +| S12         | 0.01 μF |
 +</WRAP>
 +<WRAP clear></WRAP>
 +<WRAP column 30%>
 +^ S4 Bank ^ Corresponding Res/Cap Value ^
 +| S1         | 100 Ω |                
 +| S2 | 200 Ω |
 +| S3         | 300 Ω |
 +| S4         | 402 Ω |                
 +| S5 | 499 Ω |
 +| S6         | 1 kΩ  |
 +| S7         | 2 kΩ  |
 +| S8         | 3.01 kΩ |                
 +| S9         | 4.02 kΩ |  
 +| S10         | 4.99 kΩ |                
 +| S11         | 1000 pF |
 +| S12         | 0.01 μF |
 +</WRAP>
 +<WRAP column 30%>
 +^ S5 Bank ^ Corresponding Res/Cap Value ^
 +| S1         | 100 Ω |                
 +| S2 | 200 Ω |
 +| S3         | 300 Ω |
 +| S4         | 402 Ω |                
 +| S5 | 499 Ω |
 +| S6         | 1 kΩ  |
 +| S7         | 2 kΩ  |
 +| S8         | 3.01 kΩ |                
 +| S9         | 4.02 kΩ |  
 +| S10         | 4.99 kΩ |                
 +| S11         | 1000 pF |
 +| S12         | 0.01 μF |
 +</WRAP>
 +<WRAP clear></WRAP>
 +
 +===== AD5940 Z Test Schematic and Layout =====
 +
 +<WRAP round 80% download>
 +
 +{{ :resources:eval:user-guides:eval-ad5940:software_examples:ad5940_z_test_.pdf | Schematic}}
 +
 +{{ :resources:eval:user-guides:eval-ad5940:software_examples:ad5940_z_test.pdf | Layout}}
 +</WRAP>
  
 ===== Obtaining the Source Code ===== ===== Obtaining the Source Code =====
Line 34: Line 136:
 <WRAP round 80% download> <WRAP round 80% download>
  
-  Add link to Git +[[https://github.com/analogdevicesinc/ad5940-examples| AD5940 Source Code]]
- +
 </WRAP> </WRAP>
  
 ===== Configuring the Software ===== ===== Configuring the Software =====
  
-To compile and run the example open the project in either Keil or IAR.+To compile and run the example open the project in either Keil or IAR. The AD5940BIAStructInit() function configures the main application parameters. These include the sample frequency (BiaODR), and number of samples to feed to DFT block (DFT_Num). Compile the project and download to the hardware.  
  
 ===== Outputting Data ===== ===== Outputting Data =====
Line 53: Line 154:
     Stop: 1 bit     Stop: 1 bit
     Flow Control: none     Flow Control: none
-\\ 
  
-{{ :resources:eval:user-guides:eval-adicup3029:reference_designs:capture.png?500 |}}+The data on the terminal consists of the Frequency of the excitation signal, the magnitude of the impedance and the phase of the impedance in degrees as in below screenshot.
  
 +{{ :resources:eval:user-guides:eval-ad5940:software_examples:bia_terminal.png?nolink&400 |}}
  
  
-// End of Document // 
resources/eval/user-guides/eval-ad5940/software_examples/ad5940_bia.1537979630.txt.gz · Last modified: 26 Sep 2018 18:33 by Micheál Lambe