Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:eval:user-guides:circuits-from-the-lab:cn0503:fluorescence [20 May 2021 12:54] Angelo Nikko Catapangresources:eval:user-guides:circuits-from-the-lab:cn0503:fluorescence [21 Jan 2022 21:46] (current) Angelo Nikko Catapang
Line 1: Line 1:
-====== Optical Platform Fluorescence Measurement (EVAL-CN0503-ARDZ) ======+====== Optical PlatformFluorescence Measurement Demo ======
  
 Fluorescence occurs when the electrons of certain chemical compounds are excited by beam of light causing them to emit light at a different and typically longer wavelength. The intensity of the emitted fluorescent light is linear for a broad range of concentration of the substance. The method of measuring fluorescence intensity to obtain the concentration of the material is advantageous over standard colorimetry due to its specificity and resistance to noise. Since only the target chemical compound emits light at a different wavelength, using a detector or optical filter which detects or passes narrowband light centered at that wavelength decreases interference from the source or incident light. Fluorescence occurs when the electrons of certain chemical compounds are excited by beam of light causing them to emit light at a different and typically longer wavelength. The intensity of the emitted fluorescent light is linear for a broad range of concentration of the substance. The method of measuring fluorescence intensity to obtain the concentration of the material is advantageous over standard colorimetry due to its specificity and resistance to noise. Since only the target chemical compound emits light at a different wavelength, using a detector or optical filter which detects or passes narrowband light centered at that wavelength decreases interference from the source or incident light.
Line 5: Line 5:
 ===== General Description/Overview ===== ===== General Description/Overview =====
  
-The EVAL-CN0503-ARDZ is a four-channel optical platform capable of fluorescence, absorbance and scattering measurements for liquid solutions. Getting the concentration of a compound in a liquid solution using fluorescence involves either directly measuring the emitted light from the compound or from an added a reagent which introduced fluorescent material proportional to the concentration of the target compound. The sensor used is the fluorescence photodiode placed perpendicular to the light path from the source LED. This photodiode is sensitive to longer wavelength light than the transmit photodiode placed directly in the light path. Its position and spectral sensitivity help to remove any interference from the source LED to the fluorescent light samples. Additionally, an optical fluorescent filter (narrowband longpass filter) is inserted in the slot in front of the sensor to further isolate fluorescent light from noise.\\+The [[ADI>CN0503]] is a four-channel optical platform capable of fluorescence, absorbance and scattering measurements for liquid solutions. Getting the concentration of a compound in a liquid solution using fluorescence involves either directly measuring the emitted light from the compound or from an added a reagent which introduced fluorescent material proportional to the concentration of the target compound. The sensor used is the fluorescence photodiode placed perpendicular to the light path from the source LED. This photodiode is sensitive to longer wavelength light than the transmit photodiode placed directly in the light path. Its position and spectral sensitivity help to remove any interference from the source LED to the fluorescent light samples. Additionally, an optical fluorescent filter (narrowband longpass filter) is inserted in the slot in front of the sensor to further isolate fluorescent light from noise.\\
  
 The demo shows how directly measuring fluorescent light from tonic water indicates the presence and level of quinine. Directing 365nm wavelength light to tonic water causes the quinine in the solution to fluoresce blue light at around 450nm. The intensity of light that fluoresces from quinine is proportional to its concentration at low levels. The demo shows how directly measuring fluorescent light from tonic water indicates the presence and level of quinine. Directing 365nm wavelength light to tonic water causes the quinine in the solution to fluoresce blue light at around 450nm. The intensity of light that fluoresces from quinine is proportional to its concentration at low levels.
Line 12: Line 12:
  
 The following is a list of items needed in order to replicate this demo. The following is a list of items needed in order to replicate this demo.
-  * EVAL-CN0503-ARDZ, completely assembled (see Hardware User Guide) +  * [[ADI>CN0503]], completely assembled (see [[resources:eval:user-guides:circuits-from-the-lab:cn0503|Hardware User Guide]]
-  * EVAL-ADICUP3029 with firmware (see Software User Guide) +  * [[ADI>EVAL-ADICUP3029]] with firmware (see [[resources:eval:user-guides:eval-adicup3029:reference_designs:demo_cn0503|Software User Guide]]
-  * Host computer with CN0503 software (see Quick Setup Guide) and Microsoft Excel (Optional for generating your own measurement curve)+  * Host computer with CN0503 software (see {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_gui_quick_start_guide.docx | Quick Setup Guide }}) and Microsoft Excel (Optional for setting up computation of concentration)
   * Tonic water from commercial brands   * Tonic water from commercial brands
  
 ===== Setting Up the EVAL-CN0503-ARDZ ===== ===== Setting Up the EVAL-CN0503-ARDZ =====
  
-Before starting with these steps, please check the Hardware User Guide for the steps to assembling the EVAL-CN0503-ARDZ. Additionally, please check the Software User Guide for the steps in setting up the firmware and the Quick Setup Guide for running the software. This demo assumes that you already have an assembled board with a working firmware already programmed on the EVAL-ADICUP3029 and a ready-to-run software in the host computer.+Before starting with these steps, please check the [[resources:eval:user-guides:circuits-from-the-lab:cn0503|Hardware User Guide]] for the steps to assembling the [[ADI>CN0503]]. Additionally, please check the [[resources:eval:user-guides:eval-adicup3029:reference_designs:demo_cn0503|Software User Guide]] for the steps in setting up the firmware and the {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_gui_quick_start_guide.docx | Quick Setup Guide }} for running the software. This demo assumes that you already have an assembled board with a working firmware already programmed on the [[ADI>EVAL-ADICUP3029]] and a ready-to-run software in the host computer.
  
 Configure the onboard jumper shunt connection as below: Configure the onboard jumper shunt connection as below:
Line 29: Line 29:
  
 <note important>You can use either path 1 or 4 for fluorescence measurements. The steps outlined here will use path 1, and setting LED1, P1ASEL, and P1BSEL.</note> <note important>You can use either path 1 or 4 for fluorescence measurements. The steps outlined here will use path 1, and setting LED1, P1ASEL, and P1BSEL.</note>
-  - Connect the 365nm LED Board and the 615nm LED Board to LED1.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_ledplacement.jpg?nolink&600 |}} +  - Connect the 365nm LED Board and the 615nm LED Board to LED1.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_ledplacement.jpg?nolink&400|}} 
-  - Place the fluorescent filter into the slot in front of PD1B. and set the jumper connection as below:\\ +  - Place the fluorescent filter into the slot in front of PD1B. and set the jumper connection as below:\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_fluorescentfilter.png?nolink&400 |}}
  
 ^ Jumper Header            ^ Setting      ^ Image ^ ^ Jumper Header            ^ Setting      ^ Image ^
Line 39: Line 39:
  
   - Connect the EVAL-ADICUP3029 to the EVAL-CN0503-ARDZ and connect a microUSB-to-USB cable from the board to the host computer.   - Connect the EVAL-ADICUP3029 to the EVAL-CN0503-ARDZ and connect a microUSB-to-USB cable from the board to the host computer.
-  - Run the software (using python scripts or the executable) and wait for the main window to open.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:ph_mainwindow.png?nolink&600 |}} +  - Run the software (using python scripts or the executable) and wait for the main window to open.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:ph_mainwindow.png?nolink&600|}} 
-  - Click the Gear icon at the top right of the window to open Settings.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:ph_opensettings.png?nolink&600 |}} +  - Click the Gear icon at the top right of the window to open Settings.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:ph_opensettings.png?nolink&600|}} 
-  - In the settings window, select the correct COM Port of the device and connect (see Software User Guide for help)\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:ph_clickconnect.png?nolink&600 |}}+  - In the settings window, select the correct COM Port of the device and connect (see {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_gui_quick_start_guide.docx | Quick Setup Guide }} for help)\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:ph_clickconnect.png?nolink&600|}}
   - Load the configuration file for Fluorescence Measurement ({{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_defaults_fluorescence.zip |}})   - Load the configuration file for Fluorescence Measurement ({{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_defaults_fluorescence.zip |}})
-  - Configure the settings for path 1 with the desired name (e.g. Quinine), set wavelength to 365.0, and select measurement type: Fluorescence.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_pathsetting.png?nolink&600 |}} +  - Configure the settings for path 1 with the desired name (e.g. Quinine), set wavelength to 365.0, and select measurement type: Fluorescence.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_pathsetting.png?nolink&600|}} 
-  - Add empty cuvette/s (or filled with distilled water) to the cuvette holder assembly, and insert to path 1. Set the jumper connection of P1ASEL temporarily to 0DEG. This uses the transmit photodiode directly in the path of light from LED1 to check measure the intensity of light source.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_optimizeled.jpg?nolink&600 |}}+  - Add empty cuvette/s (or filled with distilled water) to the cuvette holder assembly, and insert to path 1. Set the jumper connection of P1ASEL temporarily to 0DEG. This uses the transmit photodiode directly in the path of light from LED1 to check and measure the intensity of the light source.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_optimizeled.jpg?nolink&600|}}
   - Click Optimize LED. This properly sets the LED current in the path so that the light intensity measured by the photodetector is close to 50%.   - Click Optimize LED. This properly sets the LED current in the path so that the light intensity measured by the photodetector is close to 50%.
-  - Return the P1ASEL jumper connection to 90DEG and click Okay here and on the settings window to go back to the main. Remove the empty cuvette or distilled water sample.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_returnjumper.jpg?nolink&600 |}} +  - Return the P1ASEL jumper connection to 90DEG and click Okay here and on the settings window to go back to the main. Remove the empty cuvette or distilled water sample.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_returnjumper.jpg?nolink&600|}} 
-  - Place a cuvette with filled with tonic water sample up to the marking, as shown below, to the cuvette holder in path 1.\\  +  - Place a cuvette with filled with tonic water sample levelled just below the marking, as shown below, to the cuvette holder in path 1.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_cuvette.jpg?nolink&400|}} 
-  - Select path 1, set display mode to INS1, and press Start Measurement. The concentration of quinine in g/L will be shown in a live plot as shown below.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_data.png?nolink&600 |}}\\ For quick demo purposes, the system was configured in path 1, by default, for the Beer-Lambert conversion of the intensity ratio to quinine concentration as shown in the equation below. Check the Computing Concentration section for the mathematical details on this.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_beerlambert.png?nolink&600 |}}\\  +  - Select path 1, set display mode to INS1, and press Start Measurement. The concentration of quinine in g/L will be shown in a live plot as shown below.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_data.png?nolink&600|}}\\ For quick demo purposes, the system was configured in path 1, by default, using a polynomial approximation. Check the [[resources:eval:user-guides:circuits-from-the-lab:cn0503:fluorescence#computing_concentration | Computing Concentration]] section for more details.\\  
-<note important>Optionally, you can set the unit displayed in the plot to g/L by writing this in the primary unit field of path 1 found by clicking the Advanced button in the Settings window.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_advancedunits.png?nolink&600 |}}</note>+<note important>Optionally, you can set the unit displayed in the plot to g/L by writing this in the primary unit field of path 1 found by clicking the Advanced button in the Settings window.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fluoresenceunit.png?nolink&600|}}</note>
  
 ===== Computing Concentration ===== ===== Computing Concentration =====
  
-The CN0503 measures the light intensity of the incident light through a reference photodiode and the light intensity of the fluorescent light through a right angle photodiode. This section details the mathematical method of calculating the concentration of the target fluorescent material in the solution from raw light intensity 16-bit ADC values and the polynomial approximation of the re-arranged Beer-Lambert equation.\\ +The CN0503 measures the intensity of the fluorescent light through a right angle photodiode and the intensity of the incident light through a reference photodiode. A polynomial approximation for computing quinine concentration can be modeled using the ratios of the two intensities measured from samples of known values.\\ 
 <note important>The configuration file in ({{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_defaults_fluorescence.zip |}}) has already been set up to include everything in this section to calculate the concentration of quinine. There is no need to perform the steps below unless to make changes in the calculation.</note> <note important>The configuration file in ({{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_defaults_fluorescence.zip |}}) has already been set up to include everything in this section to calculate the concentration of quinine. There is no need to perform the steps below unless to make changes in the calculation.</note>
-  - The first and most important variable is the ratio of the incident light intensity to emitted light intensity. The CN0503 denotes each sampled light intensity in the format <light path><photodiode number> (e.g. A1 for first light path and the first photodiode). For path 1 and 4, the first photodiode can be either the transmit photodiodedirectly in the light pathor the fluorescent photodiode, configurable through the P1ASEL and P4ASEL, respectively. By defaultthe CN0503 adds a digital raw adc offset of 2048. Thus, the equation for the ratio can be written as shown in the equation belowThis is defined in the CN0503 application as the absolute ratio ARAT and set using the **DEFX ARAT** command also shown below.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_arat.png?nolink&600 |}} +  - The ratio of the fluorescent light intensity and incident light intensity is calculated using the CN0503 firmware and is called the **absolute ratio (ARAT)**. 
-  - The CN0503 allows setting a baseline ratio to remove small factors contributed by the optical glass elements such as the beams splitter, lens, and filters. This can be used if a quinine solution of known concentration is available. For this demo, it will not be used and is set to 1. The result of referencing the obtained ARAT to a baseline ratio is defined as the relative ratio RRAT.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_rrat.png?nolink&600 |}} +  - The computation of the ARAT is configurable through software in reverse polish notation (RPN). The variable naming format for the measured light intensities is shown below:\\ <code> 
-  - The CN0503 application does not implement a mathematical log operation. Instead, it uses a 5th-order polynomial approximation to convert the relative ratios to desired valuesUsing Microsoft Excel, the quinine concentration is calculated for several data points from set values of the relative ratio.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_exceldata.png?nolink&600 |}} +<light path><photodiode number> 
-  - The 5th-order polynomial approximation can be obtained from the trendline of the xy scatter plot of the data.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_trendline.png?nolink |}}\\  +where:  
-<note important>The number of significant digits of the coefficients of the polynomial equation is crucial to the accuracy of the approximation. However, the CN0503 also has an 80-character limit for each command. It is recommended to use a **3 decimal digit scientific notation** for the coefficients.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_scinotation.png?nolink&600 |}}</note> +<light path> = A for path 1, B for path 2, C for path 3, D for path 4 
-The polynomial approximation is applied to the CN0503 using the **DEFX INS0** or **DEFX INS1** command (See the Software User Guide for more details on this). With this, the CN0503 will now calculate quinine concentration from real-time intensity samples.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_commandins.png?nolink&400 |}} +<photodiode number> = 1, 2 
 +</code>For path 1 and 4, the photodiode can be configured to the transmit photodiode (directly in the light pathor the right-angle (fluorescentphotodiode, through the P1ASEL and P4ASEL headers, respectively, while photodiode 2 can be configured to the right-angle (fluorescent) photodiode or the reference (incident) photodiodeYou can use the **DEFX ARAT** command to change the ARAT equation. The example shown below sets the ARAT computation in path 1 which subtracts a 2048 raw ADC offset from each light intensity value in the ratio.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_aratcmd.png?nolink&400|}} 
 +  - **Optionally**, the CN0503 allows setting a baseline ratio to remove small factors contributed by the optical glass elements such as the beams splitter, lens, and filters. The ARAT value is divided by the baseline ratio to produce the relative ratio (RRAT). The common way to set the baseline ratio is to take the average ARAT when its expected value is 1For this demo, the baseline ratio is neglected and set to 1 
 +  - Using samples with known quinine concentration, the measured RRAT values for each are used as data points for the polynomial approximation.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_datapoints.png?nolink&400|}} 
 +  - A 3rd order polynomial approximation can be obtained from the trendline of the x-y scatter plot of the data.\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_polynomial.png?nolink|}}\\  
 +<note important>The number of significant digits of the coefficients of the polynomial equation is crucial to the accuracy of the approximation. However, the CN0503 also has an 80-character limit for each command. It is recommended to use a **3 decimal digit scientific notation** for the coefficients.\\ {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_scinotation.png?nolink&400 |}}</note> 
 +The polynomial approximation is applied to the CN0503 using the **DEFX INS1** or **DEFX INS2** command (See the [[resources:eval:user-guides:eval-adicup3029:reference_designs:demo_cn0503|Software User Guide]] for more details on this). Once set, the INS1 and INS2 values represent the approximated quinine concentration\\ {{:resources:eval:user-guides:circuits-from-the-lab:cn0503:fl_inscmd.png?nolink&600|}} 
 +===== Reference Links ===== 
 +  * [[resources:eval:user-guides:circuits-from-the-lab:cn0503|Hardware User Guide]] 
 +  * [[resources:eval:user-guides:eval-adicup3029:reference_designs:demo_cn0503|Software User Guide]] 
 +  * {{ :resources:eval:user-guides:circuits-from-the-lab:cn0503:cn0503_gui_quick_start_guide.docx | Quick Setup Guide }}
resources/eval/user-guides/circuits-from-the-lab/cn0503/fluorescence.1621508055.txt.gz · Last modified: 20 May 2021 12:54 by Angelo Nikko Catapang