Next Article in Journal
Improved Position Estimation Algorithm of Agricultural Mobile Robots Based on Multisensor Fusion and Autoencoder Neural Network
Next Article in Special Issue
Hermetic Welding of an Optical Fiber Fabry–Pérot Cavity for a Diaphragm-Based Pressure Sensor Using CO2 Laser
Previous Article in Journal
Rethinking Sampled-Data Control for Unmanned Aircraft Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

LED PEDD Discharge Photometry: Effects of Software Driven Measurements for Sensing Applications

1
SMART Infrastructure Facility, Engineering and Information Sciences, University of Wollongong, Wollongong, NSW 2522, Australia
2
School of Chemistry, Monash University, Clayton, VIC 3800, Australia
3
Intelligent Polymer Research Institute, AIIM Facility, University of Wollongong, Wollongong, NSW 2522, Australia
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(4), 1526; https://doi.org/10.3390/s22041526
Submission received: 21 January 2022 / Revised: 3 February 2022 / Accepted: 4 February 2022 / Published: 16 February 2022
(This article belongs to the Special Issue Photonics Based Sensing and Detection)

Abstract

:
This work explores the effects of embedded software-driven measurements on a sensory target when using a LED as a photodetector. Water turbidity is used as the sensory target in this study to explore these effects using a practical and important water quality parameter. Impacts on turbidity measurements are examined by adopting the Paired Emitter Detector Diode (PEDD) capacitive discharge technique and comparing common embedded software/firmware implementations. The findings show that the chosen software method can (a) affect the detection performance by up to 67%, (b) result in a variable sampling frequency/period, and (c) lead to an disagreement of the photo capacitance by up to 23%. Optimized code is offered to correct for these issues and its effectiveness is shown through comparative analyses, with the disagreement reduced significantly from 23% to 0.18%. Overall, this work demonstrates that the embedded software is a key and critical factor for PEDD capacitive discharge measurements and must be considered carefully for future measurements in sensor related studies.

Graphical Abstract

1. Introduction

LED photometry using the PEDD capacitive discharge technique was originally established as a bi-directional communications method [1] and later explored as a viable colorimetric chemical sensor [2]. This paved the way for other sensing related works such as ammonia [3], iron (II) [4], lead (II) and cadmium (II) [5], pH [6,7], phosphate [8], nitrite [9,10], carbon dioxide [11], oxygen [12], nitrate [13], ethanol and total sulfite [14]. Subsequently, and in line with the above, publications in the bio-sensing field began to emerge. Examples include sweat [15,16,17], hemoglobin [18], human serum [19,20,21], proteins [22,23], glucose [24], dissolved organic substances [25], creatinine in physiological fluids [20], urine [26,27,28], liver function screening [29] and saliva [30].
Throughout this literature, however, there has been no study related to the effects of embedded software implementations [31]. In lieu of this, most reports cite previous studies (including the seminal works of this field) on the subject [1,2]; however, these do not provide extensive or in depth accounts of the implemented software. What is clear is that different use cases have been identified, but not all aspects of this technique have been rigorously established. As timing is a critical aspect for a PEDD discharge measurements, a task the embedded software is responsible for, there are many factors that can impact measurements. This can be significant for the sensing fields requiring quantitative measurements, e.g., the physical/bio/chemical sensing domains.
Given that the bulk of the reported implementations of PEDD in the literature involve sensing [32], it is considered necessary to do the same here in order to explore the effects of software and timing aspects when measuring a sensory target. Turbidity was chosen for this purpose as it is a very practical and important indicator for water quality [32]—both for environmental monitoring [33,34,35,36,37,38,39,40,41,42] and for drinking water [43,44,45,46]. For water bodies such as rivers and lakes in the environment, turbidity is a measurement of the degree of ‘cloudiness’ caused by suspended particles with known contributing sources from human activities such as mining, agriculture or construction [38,39]. These suspended particles can absorb sunlight resulting in an increased water temperature and reduce the amount of light at deeper levels, which negatively impacts aquatic life [35].
It is noted that turbidity involves a direct measurement, without the introduction complicated setups such as filtering and colorimetric reagents for bio/chemical sensing. This simplifies the analysis and reduces the variables, thus allowing this study to focus on the software and timing aspects of the PEDD capacitive discharge measurement technique. Critical factors such as operation implementations (three variations compared)—capable of impacting the timing measurement—will be explored. Additionally, other timing related aspects such as whether the analyte under investigation influences the sampling period, which has otherwise been assumed to be constant, will be fully investigated.

2. Materials and Methods

2.1. Components and Characterization

The ISO 7027 standard for turbidity measurements outlines conditions under which turbidity should ideally be measured [47], and is used to guide this study. To conform with ISO 7027, a high intensity 860 nm emitter LED with a small emission angle ( ± 3 ) was sourced—SFH 4550 (OSRAM Opto Semiconductors, Regensburg, Germany). The LED emission spectrum was determined from the manufacturer’s data sheet, with data extracted using WebPlotDigitizer v4.3 (automeris.io). For the LED in detector mode, its External Quantum Efficiency (EQE) was measured with the device under short circuit conditions using monochromatic illumination (QEX10, PV Measurements, Boulder, CO, USA) from 700 nm to 900 nm, in increments of 10 nm.
A similar process, using the same light source, was performed using the LED in PEDD mode in order to examine and contrast the response from photo-voltaic (PV) measurements. This involved illuminating placing the LED under monochromatic light, again from 700–900 nm in 10 nm increments, but with data collected through the microcontroller rather than the QEX10 DAQ. The attained values were corrected based on the light intensity at each wavelength, measured independently using a calibrated photodiode (Hamamatsu S1010BR, Tokyo, Japan).

2.2. System Setup and Design

Positioning of the emitter and detector LEDs were controlled using a chamber designed in CAD (FreeCAD, 0.18.4, Juergen Riegel, Werner Mayer, Yorik van Havre, http://www.freecadweb.org, accessed on 3 February 2022) as seen in Figure 1, which was fabricated using a 3D printer (Flashforge Dreamer, Zhejiang Flashforge 3D technology Co., Ltd., Jinhua, China). The chamber was designed to hold a standard 10 mm cuvette, similar to the physical arrangements found in standard bench top spectra-photometers. The LED electrical schematic is presented (KiCAD, 5.1.7, Jean-Pierre Charras, http://www.kicad.org, accessed on 3 February 2022) illustrating the connections to the micro-controller board (Arduino Nano v3.0, Atmega328, purchased at Jaycar Electronics, http://www.jaycar.com.au, accessed on 3 February 2022).

2.3. LED Detection Principle

The principle of detecting luminous intensity via a LED in reverse bias using a microcontroller has been known for some time now [1,2]. For context, Figure 1 shows the circuit schematic of the detector LED and Figure 2 presents an annotated version of a typical charge/discharge profile. The file ‘firmware.ino’, available in the Electronic Supplementary Information (ESI), provides the embedded code used in this study, with Table 1 listing all of the relevant functions associated with the undertaken experiments. The code was developed from an exact description of the process reported in the literature [1,2,48,49] and will be denoted as the ‘uncorrected T s ’ approach for reasons that will become evident later. Briefly, the detector LED is first charged in reverse bias mode (Figure 1) by the microcontroller’s I/O being set as an output for 100 ms. This time was heuristically determined for the LED used in this study. Subsequently, the I/O is switched to input mode, allowing the photo-capacitance to discharge over time ( t D i s c h a r g e ), see Figure 2. As it discharges, the logic state of the I/O is repeatedly checked ( t C 0 t C N ) and a software counter (typically 16-bit) is incremented when above the logic threshold. For example, in the case provided in Figure 2, the counter would report 7 as the measurement value. In addition to this, the total time taken for a measurement to take place (sampling period, T s ) is also recorded to adhere to the format of results expressed by studies in the literature [48,50].

2.4. Turbidity Measurement

The 1000 NTU and 100 NTU turbidity calibration standards were sourced (Formazin, TURBP1000 and TURBP100, respectively) from Sigma Aldrich, stored in a refrigerator until being diluted using purified water (Milli Q) to produce varying turbidity concentrations. The 0–1000 NTU range was prepared in steps of 200 NTU and within this a 0–100 NTU range was prepared in steps of 20 NTU to examine a lower sensing range. The solutions were transferred into fresh cuvettes where the maximum (1000 NTU) and minimum (0 NTU) suspension cuvettes were placed in the fabricated chamber (Figure 1). Here, a resistor of 56 k Ω in series with the emitter LED was found to maximize the dynamic measurement range of the detector. After that, each suspension was measured in turn and ∼10 measurements were recorded. This process was repeated in triplicate in order to investigate reproducibility.

2.5. Embedded Software Implementations

Table 2 presents three methods used to read the I/O status and perform the comparison check during a measurement. As mentioned, the embedded software used in this study, with the identified function listed in Table 1 can be found in the ESI, all of which follow the discharge model discussed in Section 2.3. For reading the I/O status, Method 1 uses the Arduino standard library function ‘digitalRead()’, while Methods 2 and 3 accesses the registry directly using bitwise operators. For the comparative operation, the ‘if’ statement is the most commonly used and is part of Methods 1 and 2, while the switch statement was considered and implemented as part of Method 3. While it can be argued that the Wiring style can implement the switch statement, any effect will appear as a difference between Methods 2 and 3.

3. Results

3.1. LED Spectral Sensitivity

Figure 3 presents the emission spectra (at IF = 100 mA) of the SFH 4550 LED, along with its electrical response, measured in PV mode and in PEDD mode. A 20–30 nm Stokes shift is seen between the emission peak and the peak of the EQE in PV mode, which is typical for inorganic semiconductors (see Figure A1 in Appendix A for the JV Curve), and similar to observations by Anh-Bui [51], Li [52] and Tymecki [49,53]. It is noted that the EQE spectral band (PV mode) is wider than the emission by ∼60–70 nm, which is counter to claims in the seminal study of Lau et al. that “an LED is sensitive to all wavelengths of light equal to or shorter than the emission wavelength” [2]. On the other hand, such a response agrees with other reports [51,53], which clearly showed that the responses from LEDs in PV detector mode are poor at lower wavelengths, and typically have a FWHM of only ∼40–60 nm. While it is known that most semiconductors have very broad absorption for photons of greater than the bandgap energy, this may be mitigated by other components in the LEDs, such as charge selective layers, which may absorb some of these wavelengths before the photons can reach the active material. It is noted that in some of Lau’s subsequent work [54,55], a multi-wavelength emitter LED system was used, with a single IR detector and a sensitivity of greater than ∼60–80 nm.
The PEDD mode measurement is shown here as the reciprocal of the time constant for each wavelength, divided by the intensity determined by our calibration diode. The rationale for this approach is explored in further detail in the ESI, see Figure A2, Figure A3 and Figure A4 in Appendix B for this process. There is considerable disagreement between the modes of measurement, i.e., PEDD discharge and PV modes, with, to the best of our knowledge, no previous studies comparing these different modes. This difference may be, at least in part, due to non-linear responses (with respect to light intensity) in PV mode, which is explored in more detail in the ESI.
This could also be due to the use of a reciprocal value increasing sensitivity to the absorption tail. Consider that the PV measurements relies upon light induced generation/recombination and exceed the energy threshold in order to surpass the band gap, while in the PEDD mode, there may be more opportunity for trapped charges (related to defect states) to facilitate relaxation. While outside the scope of this study, this highlights that further, in depth, investigations into LED spectral range/sensitivities (including differences in measurements being conducted via PV and PEDD mode) is warranted. Ultimately, for this study, the primary purpose of Figure 3 is to validate that the emitter and detector (in PEDD mode) are within the ISO recommended spectral range [47] and that they overlap—perhaps more so in PEDD than PV mode.

3.2. Turbidity Measurements

3.2.1. Literature Derived Method (Uncorrected T s )

Figure 4a,b presents the calibration of the turbidity samples using the procedures derived from the literature, outlined earlier in Section 2.3. The response is expressed in Figure 4a in terms of discharge counts, in line with the bulk of studies in the literature [10,11,12,56]. Each of these provide a response that can be well fitted to a power growth function using a model of y = A x τ + y 0 ( R 2 0.998 ), with parameters reported in Table 3. The data show that each method varies in their discharge count quantity when examining the same turbidity concentrations. This can be ranked from highest to lowest as Method 3, to 2, to 1, which implies that Method 3 can perform operations faster than Methods 2 or 1 and therefore can offer a higher resolution. As a result, if one wants to achieve the highest resolution and/or perform multiple measurements with a minimized sampling period then the ‘switch-memoryAddressing’ operation is recommended.
Considering that timing is the key factor in estimating the turbidity concentration using a PEDD setup, measurement of the samples was repeated and the sampling periods (duration for full measurements) were recorded, see Figure 4b and Table 3 for model parameters. While there is a difference in terms of implemented method, the sampling period was not constant and in fact varied for samples with different turbidities. This will introduce error as the PEDD measurement technique is time based on the discharge time, inferred from the number of cycles counted. The significance of this is that the response is not proportional to the turbidity concentration alone, but rather to an additional influencing factor attributed to the operational timing, which appears to be exponential in nature. When performing successive measurements, the very fact that the sampling period can vary, temporal data processing such as Fourier analysis/filtering would therefore not be possible.

3.2.2. Proposed Method (Corrected T s )

The most likely reason for the timing issues observed previously is based on the software operations. Referring back to Figure 2 for explanatory purposes, prior to the discharge profile crossing the logic threshold the operation includes the software increment, as described in Section 2.3. While such operations are rapidly executed, it is not clear whether this could have an effect on determining the sampling period. In the case of Figure 2, there would be a larger temporal weighting on the first 8 I/O logic checks ( t C 0 t C 7 ), and less thereafter ( t C 7 t C N ). In order to investigate this, an increment operation was added when the discharge profile was below the logic threshold (see ESI and Table 1 for the relevant code) with the experiments repeated.
Figure 4c,d presents the calibration of the system with respect to the turbidity standards, which was implemented here in order to achieve a constant sampling period. As before, power trends are suggested in Figure 4c and confirmed via fitting of the model, R 2 0.998 (see Table 3). Please note that methods 2 is difficult to see in Figure 4c. The reason for this is because methods 2 and 3 are in very good agreement (as per parameters in Table 3), resulting in method 3 obscuring method 2’s presentation. For the discharge count data, it appears that there are less equivalent discharge counts (vertical axis) than shown in Figure 4a, which implies a lower sampling rate and therefore a lower resolution—also indicated through the parameters in Table 3. This directly confirms that the time for an increment to take place does affect the measurement. What is lost in resolution, however, is gained through a constant sampling frequency as seen in the parameters and Figure 4d, with a range visually less than the timing data in Figure 4b. The proposed correction allows for a minimization of the sampling period variation, which was observed from the previous approach.

3.2.3. Quantitative Comparison

Figure 5 presents a comparison of the turbidity measurements between the literature derived (uncorrected T s ) approach (Figure 4a,b) and the proposed (corrected T s ) approach (Figure 4c,d). Figure 5a shows that there is a clear difference arising from the software method employed, which is in line with observations discussed previously. For uncorrected turbidity measurements, the resolution was affected by ∼67% (method 1) and 26 % (method 2), with respect to method 3. When employing the proposed approach, the relative discharge counter difference (with respect to the uncorrected Method 3 data) decreased to 30 % (method 1) and 63 % (methods 2 and 3), demonstrating that the uncorrected approach leads to softwares being executed differently, with relative performance extending to 70 % . For the timing of the measurements, Figure 5b shows that the sampling period range ( T s m a x T s m i n ) differs with the uncorrected approach (as much as 67 % ), while with the correction in place the sampling period has less than 1 μ s difference over the entire range. This is a strong indication that the sampling period varies considerably with respect to the uncorrected approach by demonstrating that the embedded programming operations can affect the timing considerably, which has not been addressed by the sensor literature. This is supported by the data from the corrected approach where the discharge timing sampling period difference is considerably and relatively small.

3.2.4. Comparison via Photo-Capacitance

In order to further explore the timing aspects as discussed above in more detail, the photo-capacitance of each measurement per method was examined for both the literature derived approach (Figure 6a) and the proposed approach (Figure 6b). This was calculated by the fitted model: V = V 0 e t / τ ( τ = T N T U C , V 0 = 5 V , V T H = 1.5 V ), with the photo-capacitance expressed as C = t / T N T U · ln ( 1.5 / 5 ) .
For the literature derived/uncorrected T s approach in Figure 6a, it can be seen that there is a disagreement between the photo-capacitance calculated using each method, which is more prominent at lower NTU values, as shown in the inset. Considering that the physical processes and parameters are constant at each turbidity concentration, the calculated photo-capacitance should agree regardless of the method employed. In this case the methods disagree by up to 23% or 160 pF, which is a factor that can impact estimations of the sensory target.
For the proposed/corrected T s approach in Figure 6b, the results were processed in the same way as before—to calculate the photo-capacitance. This shows that regardless of the implemented method, the estimated photo-capacitances are in excellent agreement, with a disagreement as low as 0.18% when compared to 23% in the uncorrected T s approach. Given the strong agreement between each methods, due to the corrected approach, a calculated percentage relative error between both approaches was found to be 9%, 20% and 26% for Methods 1, 2 and 3, respectively.

3.2.5. Graphical Comparison

In order to understand the implications of the timing effects more clearly in a graphical manner, consider that when measuring the same turbidity concentration the LED discharge profile should remain be identical, regardless of the software (method or correction) approach adopted. Figure 7 (middle) presents the measured values and extrapolated discharge profile of the 0 NTU and 1000 NTU samples expressed in the time domain. The corresponding results from the uncorrected approach is shown in Figure 7 (bottom) as horizontal bars. For each method a pair of bars of the same color (conforming with the color convention adopted previously and identification number as per Table 2) represent the results from the 0 NTU sample (top bar) and the 1000 NTU sample (bottom bar). Each bar’s full width represents the sampling period, while the solid color (left segment) represents the proportion above the logic threshold, in line with the vertical dashed lines provided in the discharge profile. From this, it is clear that the reported time varies with respect to turbidity concentration (pronounced colored section), which is expected. Additionally, the sampling period (full bar width) also varies with respect to turbidity concentration. This shows that with the uncorrected T s approach, the signal is not proportional to the turbidity concentration alone. For the corrected T s approach, it is clear that there is strong agreements between the 0 and 1000 NTU sampling periods independent of the implemented method, which means that the resulting signal is directly proportional to the turbidity concentration under investigation and has removed the second/unwanted proportionality issue, albeit at the expense of a slightly extended T s .
The implications of this allows for temporal data processing such as Fourier analysis/filtering, which would not be possible with the uncorrected T s approach. This can be a significant issue when performing successive measurements if there is a rapid change in conditions. While the implementation of a hardware timer can control the starting time of the discharge and counter/timer, it cannot address the secondary issue—that the sampling period varies with respect to turbidity concentration, yet the proposed correction proposed herein evidently has.
One aspect of PEDD research that has gone unaddressed in the literature is the inability to assess implemented methods due to unpublished code. When following the methodology section exactly, it is clear that there are differences in implementable methods and a constant/non-constant sampling period approach, which can evidently affect the results as shown previously in this study. An interesting question arising from this is reproducibility of the studies given the unknowns and relative differences between methods and approaches. To investigate this possibility in the context of turbidity estimations Figure 8 presents a heat map comparing all methods, i.e., each of the three methods and both uncorrected and corrected sampling periods. To explain, the fitted model of one approach/method was used to predict the turbidity concentration using the measured values of another. The presented values represent the maximum percentage relative error of this prediction. When each method is compared against itself, the values are 2.2%, which is relatively low. Depending on the approach/method, this can extend up to 45% error in the case of using uncorrected method 3’s model to estimate the corrected method 1’s turbidity data. This opens up the question as to the reproducibility of previously published studies in the literature given the incomplete or unpublished code.

3.3. Discussion

It is understandable why studies in the literature have not accounted for the timing issues discovered in this study. In many cases, the primary focus of reported studies has been to explore the capabilities of the PEDD approach when investigating another sensory target/application. In sensing studies a calibration model is achieved with the adoption of the general PEDD detection procedure [1,2,48], although the embedded software is not reported. This is concerning as without a complete account one cannot reproduce these studies, as different software implementations can impact sensor characteristics such as resolution, LOD or sensitivity, which therefore cannot be fully verified. For instance, Table 4 presents these sensory characteristics for each approach and method explored in this study [57]. In the discharge time domain it can be seen that the corrected T s approach yields more appealing characteristics with higher sensitivities, lower limits of detection and a greater agreeable range compared to the uncorrected T s approach, which is in line with previous discussions. This also shows that there is a larger disagreements between the uncorrected methods, which only illustrates the need for a standard method of measurement for PEDD sensing. Furthermore, note that better analysis appears to take place using the discharge time domain over the counter domain. While the counter results shown in Figure 4a,c appear to show less sensitivity, when converted to an SI measurement unit (ms in this case) a more reliable analysis can result. It is therefore recommended to adopt the time domain for future analyses.
As the work in this study has shown, there is no ubiquitous procedure when it comes to PEDD implementations with the choice of methodology and timing demonstrated herein to have a considerable effect on the response characteristics. The PEDD capacitive discharge technique has been identified as a low-cost and cost-effective method for sensing purposes [58] and allowed for a large number of studies to take place, as reviewed in the introduction section. The embedded software has, however, been a missing reported factor and demonstrated herein to play a significant role. Given that the sensing domain has focused primarily on chemical and biological sensing, it would be interesting to explore the software effects on targets such as those highlighted earlier in the introduction or by others in various reviews on the subject [50,59,60,61].
The timing effects would also be important to the research community adopting LEDs as optical communication devices [62,63,64] and warrants exploration. In all applications outside of controlled environments, noise can be a considerable issue for any detection device. While a detector LED can be quite sensitive [8,51], it relies on a very small current—often discharged from a capacitance in the pico-Farad range—and therefore prone to electromagnetic interferences, which may be one reason for large error bars found in previous studies [5,65]. Filtering this is not possible with a variable sampling period, which highlights the importance of a constant sampling period/frequency and therefore highlights the importance of the work in this study. Finally, the full exploration of all factors associated with the PEDD capacitive discharge technique is necessary for this to become a sensing standard.

4. Conclusions

This work has demonstrated the impact of the embedded software in measurements of a sensory target when implementing the PEDD capacitive discharge technique. This was done by first performing absorbance measurements of turbidity samples from 0–1000 NTU, based on the operation described in the literature, and implementing multiple software methods to achieve this. The choice of method involved was shown to affect the detection performance in terms of resolution by up to 67%, which can therefore affect the LOD and sensitivity detection capabilities. The results have also shown that the sampling period was variable with respect to analyte concentration. This was demonstrated by a disagreement of the photo-capacitance by the adopted methods of up to 23%. Timing effects were recognized and corrected using the proposed approach in this study, which resulted in a constant sampling period/frequency, evident from a maximum disagreement between the photo-capacitance estimations of less than 0.185%. A comparison between both approaches has shown that the error associated with the uncorrected approach can be as high as 26% (%RE), meaning that the implemented software, and operations thereof, play a significant role in the accuracy of PEDD capacitive discharge measurements and must be taken into consideration if a standard is to be accepted by the sensing community—or indeed established by standards organizations.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/s22041526/s1. The firmware.ino contains the code used in this study.

Author Contributions

Conceptualization, C.D.F.; methodology, C.D.F. and A.N.; software, C.D.F.; validation, C.D.F. and A.N.; formal analysis, C.D.F. and A.N.; investigation, C.D.F. and A.N.; resources, C.D.F. and A.N.; data curation, C.D.F. and A.N.; writing—original draft preparation, C.D.F. and A.N.; writing—review and editing, C.D.F. and A.N.; visualization, C.D.F. and A.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Australian Research Council (ARC) under the following funding schemes CoE (CE140100012) and DECRA (DE160100504).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors wish to acknowledge support from the following teams/entities. The SMART Infrastructure Facility team for their support—Johan Barthelemy, Hugh Forehead, Benoit Passot, and Pascal Perez. In addition, support from Global Challenges under the iOyster fund and Blue Futures for material support. The Strategic Water Infrastructure Lab (SWIL) for their help with laboratory facilities—particularly Ling Tie and Faisal Hai.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
PEDDPaired Emitter-Detector Diode
LEDLight Emitting Diode
IoTInternet of Things
NTUNephelometric Turbidity Unit
EQEExternal Quantum Efficiency
CADComputer Aided Design
nmnanometer
ESIElectronic Supplementary Information

Appendix A. LED JV Curve

Figure A1. JV Curve of the LED measured in open circuit.
Figure A1. JV Curve of the LED measured in open circuit.
Sensors 22 01526 g0a1

Appendix B. LED Spectral Response

Figure A2: The beam of monochromatic light (300 W Xe lamp, PV Measurements QEX10) was masked to its smallest size (6 × 6 mm) before being focused to a narrow point. An LED was placed in the test position, with the top of the dome at the focal point of the beam. For each wavelength 42 measurements were taken using method 1 for each wavelength.
Figure A2. Spectral sensitivity of the LED when measured in PEDD discharge counter mode from 5000 to 0. Inset: Full response from 0 to 2 26 on a log scale.
Figure A2. Spectral sensitivity of the LED when measured in PEDD discharge counter mode from 5000 to 0. Inset: Full response from 0 to 2 26 on a log scale.
Sensors 22 01526 g0a2
Figure A3: These measurements of the counts before the LED output voltage dropped below the threshold value are inversely correlated to the amount of charge generated in the active layer of the device, i.e., the greater the charge generated, the faster the voltage decay occurs. As such, the reciprocal of the above values can be plotted as below. It is important to note that the Xe lamp does not have equal intensity at all wavelengths, and as such this needs to be accounted for. The light intensity as a function of wavelength was independently determined using a calibrated photodiode (Hamamatsu 1010BR).
Figure A3. Inverse of discharge counter and light intensity.
Figure A3. Inverse of discharge counter and light intensity.
Sensors 22 01526 g0a3
Figure A4: The resulting spectra is comparatively smooth and featureless, as would be expected from an inorganic semiconductor, particularly when compared to the direct, PV mode, measurements. PV mode measurements show a dip at ~830 nm, which is where the excitation beam is brightest, suggesting that this may be an artefact. Note that the PEDD mode measurement has a longer tail into the NIR, which may be attributable to the different mode of operation, where non-band-to-band transitions may provide a response (inducing charge recombination). Again, this is an important topic, but beyond the scope of this study. We therefore suggest that it should be the focus of future studies.
Figure A4. Corrected intensity.
Figure A4. Corrected intensity.
Sensors 22 01526 g0a4

References

  1. Dietz, P.; Yerazunis, W.; Leigh, D. Very Low-Cost Sensing and Communication Using Bidirectional LEDs. In UbiComp 2003: Ubiquitous Computing; Dey, A.K., Schmidt, A., McCarthy, J.F., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; pp. 175–191. [Google Scholar] [CrossRef]
  2. Lau, K.; Baldwin, S.; Shepherd, R.; Dietz, P.; Yerzunis, W.; Diamond, D. Novel fused-LEDs devices as optical sensors for colorimetric analysis. Talanta 2004, 63, 167–173. [Google Scholar] [CrossRef]
  3. Shepherd, R.; Yerazunis, W.; Lau, K.T.; Diamond, D. Novel surface mount LED ammonia sensors. In Proceedings of the 2004 IEEE SENSORS, Vienna, Austria, 24–27 October 2004; Volume 2, pp. 951–954. [Google Scholar] [CrossRef]
  4. Baldwin, S.; Lau, K.; Shepherd, R.; Yerazunis, W.; Diamond, D. Colorimetric detection of iron (II) using novel paired emitter detector diode (PEDD) based optical system: Special section on recent progress in organic molecular electronics. IEICE Trans. Electron. 2004, 87, 2099–2102. [Google Scholar]
  5. Lau, K.T.; McHugh, E.; Baldwin, S.; Diamond, D. Paired emitter-detector light emitting diodes for the measurement of lead(II) and cadmium(II). Anal. Chim. Acta 2006, 569, 221–226. [Google Scholar] [CrossRef]
  6. Lau, K.T.; Shepherd, R.; Diamond, D.; Diamond, D. Solid State pH Sensor Based on Light Emitting Diodes (LED) As Detector Platform. Sensors 2006, 6, 848–859. [Google Scholar] [CrossRef] [Green Version]
  7. Orpen, D.; Beirne, S.; Fay, C.; Lau, K.; Corcoran, B.; Diamond, D. The optimisation of a paired emitter-detector diode optical pH sensing device. Sens. Actuators B Chem. 2011, 153, 182–187. [Google Scholar] [CrossRef] [Green Version]
  8. O’Toole, M.; Lau, K.T.; Shepherd, R.; Slater, C.; Diamond, D. Determination of phosphate using a highly sensitive paired emitter-detector diode photometric flow detector. Anal. Chim. Acta 2007, 597, 290–294. [Google Scholar] [CrossRef] [Green Version]
  9. O’Toole, M.; Shepherd, R.; Lau, K.T.; Diamond, D. Detection of nitrite by flow injection analysis using a novel paired emitter-detector diode (PEDD) as a photometric detector. In Advanced Environmental, Chemical, and Biological Sensing Technologies V; International Society for Optics and Photonics; Vo-Dinh, T., Lieberman, R.A., Gauglitz, G., Eds.; SPIE: Bellingham, WA, USA, 2007; Volume 6755, pp. 106–115. [Google Scholar] [CrossRef] [Green Version]
  10. Czugala, M.; Fay, C.; O’Connor, N.; Corcoran, B.; Benito-Lopez, F.; Diamond, D. Portable integrated microfluidic analytical platform for the monitoring and detection of nitrite. Talanta 2013, 116, 997–1004. [Google Scholar] [CrossRef]
  11. Vargas-Sansalvador, I.P.D.; Fay, C.; Phelan, T.; Ferndndez-Ramos, M.; Capitan-Vallvey, L.; Diamond, D.; Benito-Lopez, F. A new light emitting diode-light emitting diode portable carbon dioxide gas sensor based on an interchangeable membrane system for industrial applications. Anal. Chim. Acta 2011, 699, 216–222. [Google Scholar] [CrossRef] [Green Version]
  12. Perez De Vargas-Sansalvador, I.; Fay, C.; Fernandez-Ramos, M.; Diamond, D.; Benito-Lopez, F.; Capitan-Vallvey, L. LED-LED portable oxygen gas sensor. Anal. Bioanal. Chem. 2012, 404, 2851–2858. [Google Scholar] [CrossRef] [Green Version]
  13. Cogan, D.; Cleary, J.; Phelan, T.; McNamara, E.; Bowkett, M.; Diamond, D. Integrated flow analysis platform for the direct detection of nitrate in water using a simplified chromotropic acid method. Anal. Methods 2013, 5, 4798–4804. [Google Scholar] [CrossRef] [Green Version]
  14. Kraikaew, P.; Pluangklang, T.; Ratanawimarnwong, N.; Uraisin, K.; Wilairat, P.; Mantim, T.; Nacapricha, D. Simultaneous determination of ethanol and total sulfite in white wine using on-line cone reservoirs membraneless gas-liquid separation flow system. Microchem. J. 2019, 149, 104007. [Google Scholar] [CrossRef]
  15. Morris, D.; Schazmann, B.; Wu, Y.; Coyle, S.; Brady, S.; Hayes, J.; Slater, C.; Fay, C.; Lau, K.T.; Wallace, G.; et al. Wearable sensors for monitoring sports performance and training. In Proceedings of the 2008 5th International Summer School and Symposium on Medical Devices and Biosensors, Hong Kong, China, 1–3 June 2008; pp. 121–124. [Google Scholar] [CrossRef]
  16. Morris, D.; Schazmann, B.; Wu, Y.; Coyle, S.; Brady, S.; Fay, C.; Hayes, J.; Lau, K.T.; Wallace, G.; Diamond, D. Wearable technology for bio-chemical analysis of body fluids during exercise. In Proceedings of the 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Vancouver, BC, Canada, 20–24 August 2008; pp. 5741–5744. [Google Scholar] [CrossRef] [Green Version]
  17. Morris, D.; Schazmann, B.; Wu, Y.; Fay, C.; Beirne, S.; Slater, C.; Lau, K.T.; Wallace, G.; Diamond, D. Wearable technology for the real-time analysis of sweat during exercise. In Proceedings of the 2008 First International Symposium on Applied Sciences on Biomedical and Communication Technologies, Aalborg, Denmark, 25–28 October 2008; pp. 1–2. [Google Scholar] [CrossRef] [Green Version]
  18. Mieczkowska, E.; Koncki, R.; Tymecki, L. Hemoglobin determination with paired emitter detector diode. Anal. Bioanal. Chem. 2011, 399, 3293–3297. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Strzelak, K.; Koncki, R.; Tymecki, L. Serum alkaline phosphatase assay with paired emitter detector diode. Talanta 2012, 96, 127–131. [Google Scholar] [CrossRef] [PubMed]
  20. Tymecki, L.; Korszun, J.; Strzelak, K.; Koncki, R. Multicommutated flow analysis system for determination of creatinine in physiological fluids by Jaffe method. Anal. Chim. Acta 2013, 787, 118–125. [Google Scholar] [CrossRef] [PubMed]
  21. Fiedoruk-Pogrebniak, M.; Koncki, R. Multicommutated flow analysis system based on fluorescence microdetectors for simultaneous determination of phosphate and calcium ions in human serum. Talanta 2015, 144, 184–188. [Google Scholar] [CrossRef] [PubMed]
  22. Pokrzywnicka, M.; Tymecki, L.; Koncki, R. Low-cost optical detectors and flow systems for protein determination. Talanta 2012, 96, 121–126. [Google Scholar] [CrossRef]
  23. Strzelak, K.; Wisniewska, A.; Bobilewicz, D.; Koncki, R. Multicommutated flow analysis system for determination of total protein in cerebrospinal fluid. Talanta 2014, 128, 38–43. [Google Scholar] [CrossRef]
  24. Cocovi-Solberg, D.J.; Miro, M.; Cerda, V.; Pokrzywnicka, M.; Tymecki, L.; Koncki, R. Towards the development of a miniaturized fiberless optofluidic biosensor for glucose. Talanta 2012, 96, 113–120. [Google Scholar] [CrossRef]
  25. Libecki, B.; Kalinowski, S. Application of the PEDD flow detector for analysis of natural dissolved organic substances in coloured water. Water Sci. Technol. 2013, 68, 29–35. Available online: https://iwaponline.com/wst/article-pdf/68/1/29/439985/29.pdf (accessed on 21 January 2022). [CrossRef]
  26. Strzelak, K.; Koncki, R. Nephelometry and turbidimetry with paired emitter detector diodes and their application for determination of total urinary protein. Anal. Chim. Acta 2013, 788, 68–73. [Google Scholar] [CrossRef]
  27. Pokrzywnicka, M.; Koncki, R.; Tymecki, L. Towards optoelectronic urea biosensors. Anal. Bioanal. Chem. 2015, 407, 1807–1812. [Google Scholar] [CrossRef] [Green Version]
  28. Lewinska, I.; Tymecki, L.; Michalec, M. An alternative, single-point method for creatinine determination in urine samples with optoelectronic detector. Critical comparison to Jaffe method. Talanta 2019, 195, 865–869. [Google Scholar] [CrossRef] [PubMed]
  29. Nwankire, C.E.; Czugala, M.; Burger, R.; Fraser, K.J.; O’Connell, T.M.; Glennon, T.; Onwuliri, B.E.; Nduaguibe, I.E.; Diamond, D.; Ducree, J. A portable centrifugal analyser for liver function screening. Biosens. Bioelectron. 2014, 56, 352–358. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  30. Seetasang, S.; Kaneta, T. Development of a miniaturized photometer with paired emitter-detector light-emitting diodes for investigating thiocyanate levels in the saliva of smokers and non-smokers. Talanta 2019, 204, 586–591. [Google Scholar] [CrossRef] [PubMed]
  31. Fay, C.D.; Nattestad, A. Optical Measurements using LED Discharge Photometry (PEDD Approach): Critical Timing Effects Identified & Corrected. IEEE Trans. Instrum. Meas. 2021. [Google Scholar] [CrossRef]
  32. Fay, C.D.; Nattestad, A. Advances in Optical Based Turbidity Sensing Using LED Photometry (PEDD). Sensors 2022, 22, 254. [Google Scholar] [CrossRef]
  33. Bilotta, G.; Brazier, R. Understanding the influence of suspended solids on water quality and aquatic biota. Water Res. 2008, 42, 2849–2861. [Google Scholar] [CrossRef]
  34. Casey, T.; Karmo, O. The influence of suspended solids on oxygen transfer in aeration systems. Water Res. 1974, 8, 805–811. [Google Scholar] [CrossRef]
  35. Boyd, C.E. Water Quality; Chapter Solar Radiation and Water Temperature; Springer: Berlin/Heidelberg, Germany, 2019; pp. 21–39. [Google Scholar] [CrossRef]
  36. Radu, A.; Anastasova, S.; Fay, C.; Diamond, D.; Bobacka, J.; Lewenstam, A. Low cost, calibration-free sensors for in situ determination of natural water pollution. In Proceedings of the 2010 IEEE SENSORS, Waikoloa, HI, USA, 1–4 November 2010; pp. 1487–1490. [Google Scholar] [CrossRef]
  37. Fay, C.; Anastasova, S.; Slater, C.; Buda, S.T.; Shepherd, R.; Corcoran, B.; O’Connor, N.E.; Wallace, G.G.; Radu, A.; Diamond, D. Wireless Ion-Selective Electrode Autonomous Sensing System. IEEE Sens. J. 2011, 11, 2374–2382. [Google Scholar] [CrossRef] [Green Version]
  38. Shen, C.; Liao, Q.; Titi, H.H.; Li, J. Turbidity of Stormwater Runoff from Highway Construction Sites. J. Environ. Eng. 2018, 144, 04018061. [Google Scholar] [CrossRef]
  39. Szatten, D.A.; Habel, M.; Babinski, Z.; Obodovskyi, O. The Impact of Bridges on the Process of Water Turbidity on the Example of Large Lowland Rivers. J. Ecol. Eng. 2019, 20, 155–164. [Google Scholar] [CrossRef]
  40. Cogan, D.; Cleary, J.; Fay, C.; Rickard, A.; Jankowski, K.; Phelan, T.; Bowkett, M.; Diamond, D. The development of an autonomous sensing platform for the monitoring of ammonia in water using a simplified Berthelot method. Anal. Methods 2014, 6, 7606–7614. [Google Scholar] [CrossRef] [Green Version]
  41. Barthelemy, J.; Amirghasemi, M.; Arshad, B.; Fay, C.; Forehead, H.; Hutchison, N.; Iqbal, U.; Li, Y.; Qian, Y.; Perez, P. Problem-Driven and Technology-Enabled Solutions for Safer Communities. In Handbook of Smart Cities; Augusto, J.C., Ed.; Springer International Publishing: Cham, Switzerland, 2020; pp. 1–28. [Google Scholar] [CrossRef]
  42. Perez de Vargas Sansalvador, I.M.; Fay, C.D.; Cleary, J.; Nightingale, A.M.; Mowlem, M.C.; Diamond, D. Autonomous reagent-based microfluidic pH sensor platform. Sens. Actuators B Chem. 2016, 225, 369–376. [Google Scholar] [CrossRef]
  43. Mann, A.; Tam, C.; Higgins, C.; Rodrigues, L. The association between drinking water turbidity and gastrointestinal illness: A systematic review. BMC Public Health 2007, 7, 256. [Google Scholar] [CrossRef] [Green Version]
  44. De Roos, A.; Gurian, P.; Robinson, L.; Rai, A.; Zakeri, I.; Kondo, M. Review of epidemiological studies of drinking-water turbidity in relation to acute gastrointestinal illness. Environ. Health Perspect. 2017, 125. [Google Scholar] [CrossRef] [Green Version]
  45. Muoio, R.; Caretti, C.; Rossi, L.; Santianni, D.; Lubello, C. Water safety plans and risk assessment: A novel procedure applied to treated water turbidity and gastrointestinal diseases. Int. J. Hyg. Environ. Health 2020, 223, 281–288. [Google Scholar] [CrossRef]
  46. Wen, X.; Chen, F.; Lin, Y.; Zhu, H.; Yuan, F.; Kuang, D.; Jia, Z.; Yuan, Z. Microbial Indicators and Their Use for Monitoring Drinking Water Quality—A Review. Sustainability 2020, 12, 2249. [Google Scholar] [CrossRef] [Green Version]
  47. Beuth. Water Quality—Determination of Turbidity (ISO 7027,1999). Available online: https://www.iso.org/standard/30123.html (accessed on 21 January 2022). [CrossRef]
  48. Lau, K.T.; Baldwin, S.; O’Toole, M.; Shepherd, R.; Yerazunis, W.J.; Izuo, S.; Ueyama, S.; Diamond, D. A low-cost optical sensing device based on paired emitter-detector light emitting diodes. Anal. Chim. Acta 2006, 557, 111–116. [Google Scholar] [CrossRef]
  49. Tymecki, L.; Pokrzywnicka, M.; Koncki, R. Paired emitter detector diode (PEDD)-based photometry—An alternative approach. Analyst 2008, 133, 1501–1504. [Google Scholar] [CrossRef]
  50. Bui, D.A.; Hauser, P.C. Analytical devices based on light-emitting diodes—A review of the state-of-the-art. Anal. Chim. Acta 2015, 853, 46–58. [Google Scholar] [CrossRef]
  51. Anh Bui, D.; Hauser, P.C. Absorbance measurements with light-emitting diodes as sources: Silicon photodiodes or light-emitting diodes as detectors? Talanta 2013, 116, 1073–1078. [Google Scholar] [CrossRef] [PubMed]
  52. Li, S.; Pandharipande, A. LED-Based Color Sensing and Control. IEEE Sens. J. 2015, 15, 6116–6124. [Google Scholar] [CrossRef]
  53. Tymecki, L.; Brodacka, L.; Rozum, B.; Koncki, R. UV-PEDD photometry dedicated for bioanalytical uses. Analyst 2009, 134, 1333–1337. [Google Scholar] [CrossRef] [PubMed]
  54. Lau, K.T.; Yerazunis, W.S.; Shepherd, R.L.; Diamond, D. Quantitative colorimetric analysis of dye mixtures using an optical photometer based on LED array. Sens. Actuators B Chem. 2006, 114, 819–825. [Google Scholar] [CrossRef]
  55. Lau, K.T.; Shepherd, R.L.; Yerazunis, B.; Diamond, D. Low Cost Optical Array Sensing Platform. In Proceedings of the 2006 IEEE SENSORS, Daegu, Korea, 22–25 October 2006; pp. 287–290. [Google Scholar] [CrossRef]
  56. Czugala, M.; Gorkin, R., III; Phelan, T.; Gaughran, J.; Curto, V.F.; Ducree, J.; Diamond, D.; Benito-Lopez, F. Optical sensing system based on wireless paired emitter detector diode device and ionogels for lab-on-a-disc water quality analysis. Lab Chip 2012, 12, 5069–5078. [Google Scholar] [CrossRef] [Green Version]
  57. Armbruster, D.; Pry, T. Limit of Blank, Limit of Detection and Limit of Quantitation. Clin. Biochem. Rev. Aust. Assoc. Clin. Biochem. 2008, 29 (Suppl. 1), S49–S52. [Google Scholar]
  58. Dietz, P.H.; Alford, J.G. LEDs as Sensors. In ACM SIGGRAPH 2019 Studio; Association for Computing Machinery: New York, NY, USA, 2019. [Google Scholar] [CrossRef]
  59. Passos, M.L.; Saraiva, M.L.M. Detection in UV-visible spectrophotometry: Detectors, detection systems, and detection strategies. Measurement 2019, 135, 896–904. [Google Scholar] [CrossRef]
  60. Macka, M.; Piasecki, T.; Dasgupta, P.K. Light-Emitting Diodes for Analytical Chemistry. Annu. Rev. Anal. Chem. 2014, 7, 183–207. [Google Scholar] [CrossRef]
  61. Kaneta, T.; Alahmad, W.; Varanusupakul, P. Microfluidic paper-based analytical devices with instrument-free detection and miniaturized portable detectors. Appl. Spectrosc. Rev. 2019, 54, 117–141. [Google Scholar] [CrossRef] [Green Version]
  62. Li, S.; Pandharipande, A.; Willems, F.M.J. Two-Way Visible Light Communication and Illumination with LEDs. IEEE Trans. Commun. 2017, 65, 740–750. [Google Scholar] [CrossRef]
  63. Li, S.; Huang, B.; Xu, Z. LED Receiver Impedance and Its Effects on LED-LED Visible Light Communications. In Proceedings of the 2018 IEEE International Conference on Communications Workshops (ICC Workshops), Kansas City, MO, USA, 20–24 May 2018; pp. 1–6. [Google Scholar] [CrossRef] [Green Version]
  64. Dahri, F.A.; Umrani, F.A.; Baqai, A.; Mangrio, H.B. Design and implementation of LED-LED indoor visible light communication system. Phys. Commun. 2020, 38, 100981. [Google Scholar] [CrossRef]
  65. O’Toole, M.; Lau, K.T.; Diamond, D. Photometric detection in flow analysis systems using integrated PEDDs. Talanta 2005, 66, 1340–1344. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. CAD drawings illustrating the electrical schematic/connections and mechanical arrangement of the LEDs, cuvette and 3D printed cuvette holder.
Figure 1. CAD drawings illustrating the electrical schematic/connections and mechanical arrangement of the LEDs, cuvette and 3D printed cuvette holder.
Sensors 22 01526 g001
Figure 2. LED voltage model showing a charge and discharge profile for explanatory purposes.
Figure 2. LED voltage model showing a charge and discharge profile for explanatory purposes.
Sensors 22 01526 g002
Figure 3. Spectral sensitivity and emission of the LED from 700–900 nm. EQE response (blue line), PEDD in measurement mode (green line) and LED emission spectra (red line).
Figure 3. Spectral sensitivity and emission of the LED from 700–900 nm. EQE response (blue line), PEDD in measurement mode (green line) and LED emission spectra (red line).
Sensors 22 01526 g003
Figure 4. Turbidity calibration of the PEDD system adopting the literature derived (top: a,b) and proposed (bottom: c,d) approaches and compared using three software implementation methods. The average of multiple measurements are represented by the markers the standard deviation is represented by the error bars, and the lines show a fitted power model ( y = A x τ + y 0 ). Method 1 (), Method 2 () and Method 3 () are implementations of the parameters listed previously in Table 2. (a) Software counter: uncorrected T s . (b) Measurement duration: uncorrected T s . (c) Software counter: corrected T s . (d) Measurement duration: corrected T s .
Figure 4. Turbidity calibration of the PEDD system adopting the literature derived (top: a,b) and proposed (bottom: c,d) approaches and compared using three software implementation methods. The average of multiple measurements are represented by the markers the standard deviation is represented by the error bars, and the lines show a fitted power model ( y = A x τ + y 0 ). Method 1 (), Method 2 () and Method 3 () are implementations of the parameters listed previously in Table 2. (a) Software counter: uncorrected T s . (b) Measurement duration: uncorrected T s . (c) Software counter: corrected T s . (d) Measurement duration: corrected T s .
Sensors 22 01526 g004
Figure 5. Comparison between the uncorrected and corrected T s approaches calculated from the data sets shown in Figure 4. (a) Discharge counter. (b) Discharge time.
Figure 5. Comparison between the uncorrected and corrected T s approaches calculated from the data sets shown in Figure 4. (a) Discharge counter. (b) Discharge time.
Sensors 22 01526 g005
Figure 6. Photo-capacitance discharge profiles derived for each applied method for: the literature derived approach (a) and proposed approach (b). Method 1 (), Method 2 () and Method 3 () are implementations of the parameters listed previously in Table 2. (a) Photo-capacitance: uncorrected T s . (b) Photo-capacitance: corrected T s .
Figure 6. Photo-capacitance discharge profiles derived for each applied method for: the literature derived approach (a) and proposed approach (b). Method 1 (), Method 2 () and Method 3 () are implementations of the parameters listed previously in Table 2. (a) Photo-capacitance: uncorrected T s . (b) Photo-capacitance: corrected T s .
Sensors 22 01526 g006
Figure 7. Time domain view of the 0 and 1000 NTU measurements. The full width of the bars show the sampling period. The pronounced color area of the bars indicates the turbidity concentration. Top: Corrected sampling period approach. Middle: Extrapolated discharge profiles with logic and crossing thresholds. Bottom: Uncorrected sampling period approach. Colour key: Method 1 (red), Method 2 (green), Method 3 (blue).
Figure 7. Time domain view of the 0 and 1000 NTU measurements. The full width of the bars show the sampling period. The pronounced color area of the bars indicates the turbidity concentration. Top: Corrected sampling period approach. Middle: Extrapolated discharge profiles with logic and crossing thresholds. Bottom: Uncorrected sampling period approach. Colour key: Method 1 (red), Method 2 (green), Method 3 (blue).
Sensors 22 01526 g007
Figure 8. The relative error between methods and approaches when estimating the turbidity concentration using the fitted models from the data in Figure 4a,c and Table 3.
Figure 8. The relative error between methods and approaches when estimating the turbidity concentration using the fitted models from the data in Figure 4a,c and Table 3.
Sensors 22 01526 g008
Table 1. Lookup table for identifying the appropriate function in the ESI ‘firmware.ino’ file.
Table 1. Lookup table for identifying the appropriate function in the ESI ‘firmware.ino’ file.
T s MeasurementMethodFunction
UncorrectedCounter1uncorrectedCounterMethod1()
2uncorrectedCounterMethod2()
3uncorrectedCounterMethod3()
Timer1uncorrectedTimerMethod1()
2uncorrectedTimerMethod2()
3uncorrectedTimerMethod3()
CorrectedCounter1correctedCounterMethod1()
2correctedCounterMethod2()
3correctedCounterMethod3()
Timer1correctedTimerMethod1()
2correctedTimerMethod2()
3correctedTimerMethod3()
Table 2. List of three methods for PEDD software implementation.
Table 2. List of three methods for PEDD software implementation.
Method
123
StyleWiringC BitwiseC Bitwise
OperationdigitalRead()PIND & PD2PIND & PD2
Statementififswitch
Table 3. List of model parameters for the data presented in Figure 4 for the uncorrected and corrected measurement sampling period ( T s ) .
Table 3. List of model parameters for the data presented in Figure 4 for the uncorrected and corrected measurement sampling period ( T s ) .
T s Coeff.CounterTimer
123123
UncorrectedA550412,56816,906311871159566
τ 756761756757761756
y 0 −3810−8733−11,706352,200131,03684,035
R 2 0.9980.9980.9980.9980.9980.998
CorrectedA514410,72110,671000
τ 759758755111
y 0 −3566−7433−7382420,286201,908201,907
R 2 0.9980.9980.9980.3270.0390.006
Table 4. List of calculated sensory characteristics: sensitivities, limits of detection (LOD) and range for each method and approach.
Table 4. List of calculated sensory characteristics: sensitivities, limits of detection (LOD) and range for each method and approach.
Ts ApproachCharacteristicMethod
123
UncorrectedSensitivity ( μ s/NTU)40.5142.1346.01
LOD (NTU)1.611.170.46
Range (ms)8582.381.3
CorrectedSensitivity ( μ s/NTU)50.2650.3750.41
LOD (NTU)0.170.140.12
Range (ms)88.188.488.6
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Fay, C.D.; Nattestad, A. LED PEDD Discharge Photometry: Effects of Software Driven Measurements for Sensing Applications. Sensors 2022, 22, 1526. https://doi.org/10.3390/s22041526

AMA Style

Fay CD, Nattestad A. LED PEDD Discharge Photometry: Effects of Software Driven Measurements for Sensing Applications. Sensors. 2022; 22(4):1526. https://doi.org/10.3390/s22041526

Chicago/Turabian Style

Fay, Cormac D., and Andrew Nattestad. 2022. "LED PEDD Discharge Photometry: Effects of Software Driven Measurements for Sensing Applications" Sensors 22, no. 4: 1526. https://doi.org/10.3390/s22041526

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop