sensors
Article Spectroscopy Transmittance by LED Calibration
Daniel Carreres-Prieto 1,* , Juan T. García 1,* , Fernando Cerdán-Cartagena 2 and Juan Suardiaz-Muro 3
1 Department of Mining and Civil Engineering, Technical University of Cartagena, 30202 Cartagena, Spain 2 Department of Information and Communications Technologies, Technical University of Cartagena, 30202 Cartagena, Spain 3 Department of Electronic Technology, Technical University of Cartagena, 30202 Cartagena, Spain * Correspondence: [email protected] (D.C.-P.); [email protected] (J.T.G.)
Received: 30 May 2019; Accepted: 2 July 2019; Published: 4 July 2019
Abstract: Local administrations demand real-time and continuous pollution monitoring in sewer networks. Spectroscopy is a non-destructive technique that can be used to continuously monitor quality in sewers. Covering a wide range of wavelengths can be useful for improving pollution characterization in wastewater. Cost-effective and in-sewer spectrophotometers would contribute to accomplishing discharge requirements. Nevertheless, most available spectrometers are based on incandescent lamps, which makes it unfeasible to place them in a sewerage network for real-time monitoring. This research work shows an innovative calibration procedure that allows (Light-Emitting Diode) LED technology to be used as a replacement for traditional incandescent lamps in the development of spectrophotometry equipment. This involves firstly obtaining transmittance values similar to those provided by incandescent lamps, without using any optical components. Secondly, this calibration process enables an increase in the range of wavelengths available (working range) through a better use of the LED’s spectral width, resulting in a significant reduction in the number of LEDs required. Thirdly, this method allows important reductions in costs, dimensions and consumptions to be achieved, making its implementation in a wide variety of environments possible.
Keywords: LED spectrophotometer; LEDs; water pollutants
1. Introduction Continuous and on-line quality monitoring of wastewater and stormwater is nowadays a primal objective to comply with the Urban Wastewater Treatment Directive (UWWTD 91/271/EEC), Bathing Water Directive (BWD, 2006/7/EC) and the Environmental Quality Standards Directive (EQS, 2008/105/EC). Variable wavelength spectroscopy is a non-destructive technique without the addition of chemicals reagents to wastewater that can be used for the quality monitoring and real-time control of sewers [1,2]. Several authors have proposed partial least squares calibration models for the indirect monitoring of chemical oxygen demand (COD) or total suspended solids (TSS) through Ultraviolet-Visible (UV–VIS) and Visible (VIS) spectroscopy for wastewater and stormwater combined sewer overflows (CSOs) [3–5]. Continuous and consistent data collection in sewers are presented. Spectrometer calibration experiments for total-COD in Reference [6] resulted in an absolute error in the range of 30–300 mg COD/L and a corresponding relative error in the range of 8–60%, where validation experiences led to underestimating high concentrations during daily peaks and in overestimating low concentrations during night periods [6,7]. Dissolved organic matter (DOM) was described by ratios of UV absorbance at 254 nm and 365 nm [8]. Different researchers have studied the absorbance at different wavelengths and its
Sensors 2019, 19, 2951; doi:10.3390/s19132951 www.mdpi.com/journal/sensors Sensors 2019, 19, 2951 2 of 23 relation between different wavelength-absorbance as an indicator of the COD [8–10]. UV–Vis and VIS spectroscopy was performed in the wavelength range of 200–400 nm, where it was found that the ratio of absorbance at 250 and 365 nm was a good measurement for the COD correlation [10]. Ultraviolet-visible absorption spectra in two distinct spectral slope regions (275–295 nm and 350–400 nm) within log-transformed absorption spectra were used to compare DOM concentrations from contrasting water types [11]. Pollutants track-down during CSOs through cost-effective methods is demanded by municipalities to comply with legal requirements [12,13]. In the same way, industrial wastewater discharge control throughout the sewer systems is of great interest for administrations nowadays. Therefore, a large number of sensors are required for the real-time control of the CSOs and industrial discharges in the sewer systems during rainfall events and dry periods. To achieve this real-time monitoring of pollution in sewers, a robust, portable and cost-effective device is needed to continuously monitor quality in sewers. LED lights have been selected as a replacement for traditional incandescent lamps, due to their low consumption, cost and the fact that they reach their operating regime almost immediately, which reduces downtime. The specific objective of this research is the development of a precision spectrophotometer, based on LED technology, and which is cost-effective, portable and with consumptions much lower than those provided by incandescent lamps [14], to enable them to be located in sewers systems massively. For the validation and acceptance of results obtained with LEDs, the first steps of the present work were dedicated to reproducing and comparing them to commercial equipment. The advantage of reproducing the footprint of a commercial spectrometer is the validation of the transmittance values with LED technology according to the configuration proposed in the present work, which avoids the use of an optical lens covering a wide range of wavelengths. Therefore, the present research includes a calibration process that can be useful for the design of an innovative LED spectrophotometer capable of operating at a wide range of wavelengths. This availability of a greater working range (far beyond that of a turbidimeter that operates under a single wavelength, typically 860 nm) is expected to enable a more exhaustive analysis of a sample’s properties. Depending on the composition and concentration of wastewater and stormwater, variations in transmittance and absorbance values will be detected in certain regions of the working spectrum, which could enable a greater number of indirectly contaminating parameters to be determined. Different types of LED based on light sources could be used in a spectrophotometer [15], but in practice not all are adequate for this purpose. In general, we can divide the types of LEDs into three categories: White light LED, RGB LED, and limited-bandwidth LED (Common LED). In spectrophotometry, the use of white light for generating the working spectrum is a common practice. White light requires the use of optical elements, such as monochromators [16]. This supposes an increase in the cost of the equipment and in its dimensions, while making them more sensitive to mismatch as a result of impacts or vibrations, and thus not being suitable for all types of environments. There are studies [17] that raise the feasibility of using LED technology for the generation of white light, however, it must be pointed out that this type of LED semiconductor has a different emission spectrum than monochromatic white light. These are based on blue LEDs that are coated with a layer of phosphorus, which react with short wavelengths (blue), emitting low energy yellow light. Therefore, this type of LED is currently not the best solution for the generation of white light for spectrophotometry operations. RGB LEDs were used to generate different wavelengths in the visible spectrum and through the combination of the three primary colors (Red, Green and Blue) with different levels of emission intensity [18]. An RGB LED is composed of three individual LEDs, that is, a red, green and blue LED that emit at specific wavelengths. However, in order to clarify the explanations, we shall refer to this type of light source as “RGB LED”, as these three LEDs are inside the same housing. The idea of generating all the wavelengths that make up the visible spectrum using an RGB LED was shown to be unfeasible. It is based on an incorrect understanding of the human eye to affirm Sensors 2019, 19, 2951 3 of 23 that certain wavelengths are being emitted [19], when in fact the primary colors are being emitted separately at different intensity levels, giving rise to an optical effect known as “rendering of color” [20]; television monitors are based on this. Although empirical equations exist between the values of λ and RGB, such as the Fortran code [21,22], which is one of the most used color generation systems in LED screens, this “color matching” cannot be used for the development of spectrophotometric equipment by only emitting the wavelengths corresponding to red: 625 nm; green: 525 nm; and blue: 460 nm [19]. Common LEDs represent the best option for the development of portable and cost-effective equipment. LED diodes are designed to emit in a limited range of wavelengths simultaneously (spectral width), so they are suitable for describing specific regions of the visible spectrum. Herein, in the present work we will refer to this type of LED. The contributions of this work as follows: First, an innovative calibration process of the transmittance values for these LEDs without the use of optical elements such as lenses and diffraction matrix; thus reducing costs, dimensions and complexity. Second, increasing the valid range of wavelengths of each LED, in addition to its own peak wavelength. This allows the number of LEDs to be significantly reduced. The rest of the article is organized as follows: In Section2, all the materials and methods used in this research work are explained. The section details the samples analyzed, the type of sensor used, as well as the commercial equipment based on incandescent lamps used as a reference during the calibration process. Likewise, the assembly carried out during the experiment is described, in order to provide a detailed guide to reproduce the results. Section3 focuses on the study of the use of LEDs as a viable alternative to incandescent lamps, detailing the limitations and problems associated with them. The need for a specific calibration process is evident to match the results obtained with reference commercial equipment based on incandescent lamps. The results obtained after the calibration process are also presented. Finally, Section4 discusses the considerations reached at the end of the research work.
2. Materials and Methods
2.1.Sensors Analyzed 2019, 19, Samplesx FOR PEER REVIEW 4 of 24 In order to enable different values of transmittance to be compared, 21 different samples were M19 Sea water 100% prepared of different naturesM20 and concentrations, asTea shown in Figure1. Moreover,80% Table1 describes the different substances employedM21 in each sampleFabric and softener their dissolution. 40%
Figure 1. View of the 21 samples used in the present analysis.
It should be noted that samples M11 and M12 were discarded from the present study due to the fact that all the incidentincident lightlight waswas absorbed,absorbed, makingmaking thethe transmittancetransmittance valuevalue null.null. All these samples were storedstored inin standardstandard 1212 × 12 × 50 mm plastic test tubes specially designed × × for spectrophotometry.
2.2. Sensors Individual photodiodes were used in the present work rather than Charge-Coupled Device (CCD) sensors [23]. The individual photodiode is designed to capture a single beam of incident light [24,25]. These are sensitive to a wide range of wavelengths. This enables the dimensions and costs of the equipment to be reduced [26]. A single sensor usually collects a larger area in proportion to that of the photodiodes of the CCD. The individual photodiodes have a different spectral response depending on the incident wavelength. This is the sensor sensitivity. To study the effect of sensitivity in the measurements of transmittance, values at different wavelengths and two types of photodiodes with different sensitivities have been used to determine the most appropriate. These are S1223-01 [27] and OSD15- E [28], the spectral responses of which are shown in Figure 2.
S1223–01 OSD15-E (A) (B)
Figure 2. Sensitivity curves of the photodiodes (A) S1223–01 and (B) OSD15-E.
Sensors 2019, 19, 2951 4 of 23
Table 1. Analyzed samples. Sensors 2019, 19, x FOR PEER REVIEW 4 of 24 Designation Substance Dissolution M19 Sea water 100% M0 Distilled water 100% M1M20 Red foodTea coloring 4080% 50% M2M21 BlueFabric food softener coloring 40% 50% M3 Yellow food coloring 40% M4 Washing machine detergent 50% M5 Red food coloring 40 75% M6 Red food coloring 40 55% M7 Washing machine detergent 65% M8 Washing machine detergent 75% M9 Kitchen oil 100% M10 Vinegar 90% M11 Milk 100% M12 Milk 50% M13 Soluble coffee 75% M14 Soluble coffee 50% FigureM15 1. View of the 21 samples Red wine used in the present analysis. 100% M16 Red wine 50% It should be noted thatM17 samples M11 Blue andandYellow M12 were food discarded coloring from 20–80% the present study due to the fact that all the incident lightM18 was absorbed, Blue making food coloring the transmittance value 30% null. M19 Sea water 100% All these samples were stored in standard 12 × 12 × 50 mm plastic test tubes specially designed M20 Tea 80% for spectrophotometry. M21 Fabric softener 40%
2.2. Sensors 2.2. Sensors Individual photodiodes were used in the present work rather than Charge-Coupled Device Individual photodiodes were used in the present work rather than Charge-Coupled Device (CCD) (CCD) sensors [23]. The individual photodiode is designed to capture a single beam of incident light sensors [23]. The individual photodiode is designed to capture a single beam of incident light [24,25]. [24,25]. These are sensitive to a wide range of wavelengths. This enables the dimensions and costs of These are sensitive to a wide range of wavelengths. This enables the dimensions and costs of the the equipment to be reduced [26]. A single sensor usually collects a larger area in proportion to that equipment to be reduced [26]. A single sensor usually collects a larger area in proportion to that of the of the photodiodes of the CCD. photodiodes of the CCD. The individual photodiodes have a different spectral response depending on the incident The individual photodiodes have a different spectral response depending on the incident wavelength. This is the sensor sensitivity. To study the effect of sensitivity in the measurements of wavelength. This is the sensor sensitivity. To study the effect of sensitivity in the measurements of transmittance, values at different wavelengths and two types of photodiodes with different transmittance, values at different wavelengths and two types of photodiodes with different sensitivities sensitivities have been used to determine the most appropriate. These are S1223-01 [27] and OSD15- have been used to determine the most appropriate. These are S1223-01 [27] and OSD15-E [28], E [28], the spectral responses of which are shown in Figure 2. the spectral responses of which are shown in Figure2.
S1223–01 OSD15-E (A) (B)
FigureFigure 2. 2. SensitivitySensitivity curves curves of of the the photodiodes photodiodes ( (AA)) S1223–01 S1223–01 and and ( (BB)) OSD15-E.
Sensors 2019, 19, x FOR PEER REVIEW 5 of 24
2.3. Light Emitting Diode (LED)
SensorsAs 2019 the, 19 , sourcex FOR PEER of light,REVIEW traditional incandescent lamps were replaced by LEDs of 5 mm5 of 24in Sensorsdiameter,2019 ,which19, 2951 emit a fixed range of wavelengths determined by their manufacturing process. These5 of 23 2.3.are Lightlow energy Emitting consumers, Diode (LED) cost-effective and are commercially available in a wide variety of peak wavelengths. This type of LED is designed to emit a narrow range of wavelengths simultaneously As the source of light, traditional incandescent lamps were replaced by LEDs of 5 mm in 2.3.[29] Lightand according Emitting Diode to a normal (LED) distribution curve shape (Figure 3). The spectral width of an LED is diameter, which emit a fixed range of wavelengths determined by their manufacturing process. These defined by those wavelengths that have an emission intensity equal to or greater than 50%, as shown are lowAs theenergy source consumers, of light, traditional cost-effective incandescent and are commercially lamps were replaced available by in LEDs a wide of 5 mmvariety in diameter, of peak in Figure 3. wavelengths.which emit a fixedThis type range of of LED wavelengths is designed determined to emit a bynarrow their manufacturingrange of wavelengths process. simultaneously These are low For instance, the VAOL-5EUV8T4 LED shown in Figure 3 [30], emits at 385 nm at its maximum [29]energy and consumers, according cost-eto a normalffective distribution and are commercially curve shape available (Figure in 3). a wideThe spectral variety of width peak of wavelengths. an LED is intensity level (peak wavelength) and at 400 nm at the upper limit of the spectral width of the LED, definedThis type by of those LED wavelengths is designed to that emit have a narrow an emission range of intensity wavelengths equal simultaneously to or greater than [29 ]50%, and accordingas shown also known as “center wavelength”, λ0.5m, which is defined as the wavelength halfway between the into Figure a normal 3. distribution curve shape (Figure3). The spectral width of an LED is defined by those two points with a spectral density of 50% of the peak. wavelengthsFor instance, that havethe VAOL-5EUV8T4 an emission intensity LED shown equal toin or Figure greater 3 [30], than emits 50%, asat 385 shown nm inat Figureits maximum3. intensity level (peak wavelength) and at 400 nm at the upper limit of the spectral width of the LED, also known as “center wavelength”, λ0.5m, which is defined as the wavelength halfway between the two points with a spectral density of 50% of the peak.
Figure 3. EmissionEmission spectrum of 385 nm LED (VAOL-5EUV8T4) [[30].30].
For instance, the VAOL-5EUV8T4 LED shown in Figure3[ 30], emits at 385 nm at its maximum The whole range of wavelengths are emitted simultaneously. This results in higher values of intensitytransmittance level than (peak those wavelength) provided and by a at spectropho 400 nm attometer the upper based limit on of incandescent the spectral widthlamps. of As the shown LED, Figure 3. Emission spectrumλ of 385 nm LED (VAOL-5EUV8T4) [30]. alsoin Figure known 4 in as the “center case of wavelength”, the 385 nm wavelength,0.5m, which the is definedresults provided as the wavelength by the LED halfway reach deviations between the in twothe range points of with 14–20% a spectral with densityrespect ofto 50% the ofvalues the peak. obtained by means of the commercial equipment. The whole range of wavelengths are emitted simultaneously. This results in higher values of Therefore,The whole a calibration range of process wavelengths to compensate are emitted for th simultaneously.is deviation is required. This results Brightness in higher selection values will of transmittance than those provided by a spectrophotometer based on incandescent lamps. As shown transmittancealso be discussed than in those the present provided work. by a spectrophotometer based on incandescent lamps. As shown inin Figure Figure 4 in the case case of of the the 385 385 nm nm wavelength, wavelength, the the results results provided provided by by the the LED LED reach reach deviations deviations in thein the range range of of14–20% 14–20% with with respect respect to tothe the values values obtained obtained by by means means of of the the commercial commercial equipment. equipment. 100% Therefore, a calibration process to compensate for th thisis deviation is required. Brightness Brightness selection selection will will alsoalso be be discussed in the present work. 80% Transmittance Commercial Equipment 100% 60% Brightness 120
80% Transmittance Commercial
Transmittance 40% EquipmentBrightness 350
60% Brightness 120 20%
Transmittance 40% Brightness 350 0%
20% Analyzed samples 0% Figure 4. Transmittance comparison at 385 nm between commercial equipment and LED VAOL- 5EUV8T4 [30] with two different brightnesses. Analyzed samples
FigureFigure 4. TransmittanceTransmittance comparison comparison at 385 at nm385 between nm be commercialtween commercial equipment equipment and LED VAOL-5EUV8T4 and LED VAOL- [30] 5EUV8T4with two di[30]fferent with brightnesses. two different brightnesses. Sensors 2019, 19, x FOR PEER REVIEW 6 of 24
Sensors 2019, 19, 2951 6 of 23 To characterize the transmittance between 380 and 700 nm in a first attempt 59 LEDs were needed. At the end of this research work, through the optimization of the wavelength calibration and selectionTo characterizeprocess we had the transmittancereduced this number between to 380 34 andLEDs. 700 These nm in 34 a firstLEDs attempt are listed 59 LEDsin the were Appendix needed. AAt (Table the end A1). of this research work, through the optimization of the wavelength calibration and selection process we had reduced this number to 34 LEDs. These 34 LEDs are listed in the AppendixA (Table A1). 2.4. Hardware 2.4. Hardware In order to reduce the dimensions of the equipment and thus improve its portability, in the presentIn research order to reducework it the was dimensions decided to of theeliminate equipment the use and of thus any improve optical itselements portability, such in as the lenses, present diffractionresearch workmatrix it or was monochromators. decided to eliminate the use of any optical elements such as lenses, diffraction matrixThe orproposed monochromators. assembly is shown in Figure 5, constructed entirely in black thermoplastic PolylacticThe Acid proposed (PLA) assembly by a 3D is printer. shown in The Figure tests5, carried constructed out revealed entirely inthat black the thermoplastic most accurate Polylactic results wereAcid obtained (PLA) by when a 3D printer.the sensor The tests(Figure carried 5 right) out revealed was as thatclose the as most possible accurate to the results sample were without obtained touchingwhen the it, sensorand the (Figure light source5 right) (Figure was as 5 closeleft) was as possible at a distance to the of sample about 20 without mm with touching reference it, and to the the testlight tube. source (Figure5 left) was at a distance of about 20 mm with reference to the test tube.
FigureFigure 5. 5.ViewView of ofexperiment experiment assembly. assembly.
ToTo minimize minimize the dispersiondispersion ofof the the LED LED light light beam, beam, it was it was necessary necessary to have to ahave cone-shaped a cone-shaped entrance entrancearea to capturearea to capture a greater a amountgreater am of light,ount of as light, can be as seen can be in Figureseen in5 .Figure Additionally, 5. Additionally, a channel a directingchannel directingthe beam the to beam the center to the of center the sample of the sample was needed. was needed. This channel This channel needed needed to have to a have diameter a diameter slightly slightlygreater greater than the than diameter the diameter of the LEDof the so LED as not so toas obstructnot to obstruct the passage the passage of light. of light.
2.5.2.5. Reference Reference Equipment Equipment InIn the the present present work, work, all all the the results results have have been been contrasted contrasted with with the the commercial commercial equipment equipment V-5000 V-5000 VISVIS [31]. [31 ].This This has has a aworking working spectrum spectrum between between 325 325 and and 1000 1000 nm, nm, with with a abandwidth bandwidth of of 4 4nm, nm, which which compliescomplies with with the the following following standards: standards:
• ISOISO 22891: 22891: 2013: 2013: Determination Determination of of transmi transmittancettance by by diffuse diffuse reflectance reflectance measurement. measurement. • • ISOISO 10110-9: 10110-9: 2016: 2016: Preparation Preparation of of drawings drawings for for optical optical elements elements and and systems—Part systems—Part 9: 9: Surface Surface • treatmenttreatment and and coating. coating. • ISOISO 7887:2011: 7887:2011: Water Water Quality—Examination Quality—Examination and and determination determination of of color. color. • • ISOISO 9001 9001 7.6 7.6 Control Control of of monitoring monitoring and and measuring measuring equipment. equipment. • 2.6.2.6. Brightness Brightness Level Level Definition Definition TheThe definition definition of of the the brightness brightness level level of of the the LEDs LEDs is isa key a key aspect aspect of ofthe the entire entire calibration calibration process. process. HigherHigher values values will will cause cause sensor sensor saturation, saturation, while while low low values values may may not not allow allow the the light light to to pass pass through through thethe sample. sample. To Toenable enable the the brightness brightness level level to be to varied, be varied, a driver a driver [32] [with32] witha resolution a resolution of 16 ofbits 16 has bits beenhas used, been used,capable capable of providing of providing a maximum a maximum of 40 ofmA 40 mAto each to each LED. LED. The Theuse useof 16 of bits 16bits provides provides a SensorsSensors 20192019,, 1919,, 2951x FOR PEER REVIEW 7 of 2324
range of brightness levels between 0 and 4095 [33,34], the value at which the maximum level of a range of brightness levels between 0 and 4095 [33,34], the value at which the maximum level of illumination is reached (40 mA). Based on this, a brightness level of 100 corresponds to a current of illumination is reached (40 mA). Based on this, a brightness level of 100 corresponds to a current of 0.977 mA. Continuing with this example, the level of brightness 100 has been designated with the 0.977 mA. Continuing with this example, the level of brightness 100 has been designated with the nomenclature T B100, used throughout this article. Low brightness levels are typically used when nomenclature T B100, used throughout this article. Low brightness levels are typically used when using high luminescence LEDs located a short distance from the sensor. using high luminescence LEDs located a short distance from the sensor. In this way, we consider that the amount of light detected (with a test tube of distilled water) In this way, we consider that the amount of light detected (with a test tube of distilled water) corresponds to that emitted by the LED, ignoring the possible losses produced by the dispersion of corresponds to that emitted by the LED, ignoring the possible losses produced by the dispersion of the the beam at the entrance of the channel (LED viewing angle). beam at the entrance of the channel (LED viewing angle).
2.7. Methodology To carrycarry outout thethe calibrationcalibration processprocess thatthat allowsallows LEDLED technologytechnology toto produceproduce resultsresults comparablecomparable toto thosethose obtainedobtained with incandescent lamps, it is necessary to carry out an adequate data collection. ToTo dodo this, this, the the transmittance transmittance values values obtained obtained by using by using LEDs LEDs of diff erentof different peak wavelengths peak wavelengths on different on samplesdifferent mustsamples be recordedmust be recorded (Table1), (Table so that 1), they so that can they be contrasted can be contrasted with the with transmittance the transmittance values obtainedvalues obtained by means by ofmeans the commercial of the commercial equipment equipment [31]. [31]. The methodologymethodology and and procedure procedure followed followed (with the(with help the of softwarehelp of andsoftware electronic and components) electronic tocomponents) obtain the data to obtain used the for data the measurement used for the measurement and calibration and process calibration are shown process in Figureare shown6. This in figureFigure also6. This shows figure the also duration shows of the the dura transmittancetion of the transmittance tests. tests.
Figure 6. Scheme of the work methodology. Sensors 2019, 19, 2951 8 of 23 Sensors 2019, 19, x FOR PEER REVIEW 8 of 24
3. Result and Discussion 3. Result and Discussion
3.1. Preliminary Preliminary Tests Tests As seen in Figure 7, when performing an analysis through 59 LEDs with 𝜆 between 385 and As seen in Figure7, when performing an analysis through 59 LEDs with λ peak between 385 and 700 nm, discrepancies in the transmittance values in comparison comparison with the the reference reference equipment based on incandescent lamps are observed. In In this this figu figure,re, each each of of the the LEDs LEDs used used has been denoted by a vertical line. Each Each LED LED operates operates at at a a wide wide range range of wavelengths when when it is traversing the sample (Figure3 3),), resultingresulting inin higherhigher thanthan expected expected transmittance transmittance values. values.
Sample M2 100%
90%
80%
70%
60% Transmittance Incandescent lamp 50% Transmittance Raw LED 40% Transmittance
30%
20%
10%
0% 385 400 430 468 475 505 522 558 568 583 591 602 609 627 632 639 655 697 λ(nm)
Figure 7. Comparison of the transmittance values obtained by a 5 mm LEDs spectral and those obtained Figure 7. Comparison of the transmittance values obtained by a 5 mm LEDs spectral and those by means of the commercial equipment. obtained by means of the commercial equipment. Moreover, the emission intensity of the LED plays a fundamental role in determining the Moreover, the emission intensity of the LED plays a fundamental role in determining the transmittance values. Values which are too low could make the photons not pass correctly through a transmittance values. Values which are too low could make the photons not pass correctly through a water sample with a certain turbidity. In contrast, too high a value would cause the saturation of the water sample with a certain turbidity. In contrast, too high a value would cause the saturation of the sensor, making the reading impossible. In conclusion, all these questions require the definition of a sensor, making the reading impossible. In conclusion, all these questions require the definition of a calibration process that compensates for this deviation in results. calibration process that compensates for this deviation in results. 3.2. LED Calibration 3.2. LED Calibration 3.2.1. Brightness Level Selection 3.2.1. Brightness Level Selection When working with LEDs with different properties and from several manufacturers, it is not alwaysWhen possible working to use with a commonLEDs with brightness different levelproperties for all and of them. from Eachseveral LED manufacturers, has different lightingit is not alwayscapacities possible (Luminous to use Intensity)a common determined brightness bylevel its fo manufacturingr all of them. process,Each LED in has such different a way thatlighting two capacitiesdifferent LEDs, (Luminous powered Intensity) by the determined same voltage by and its manufacturing current can emit process, different in brightnesssuch a way intensities. that two differentTherefore, LEDs, if we powered change this by current,the same we voltage can also and obtain current diff erentcan emit brightness different levels. brightness intensities. Therefore,If we if take we achange known this sample current, (M1), we atca din alsofferent obtain brightness different levels brightness with an levels. LED of a certain peak wavelengthIf we take (e.g., a 385known nm), sample in Figure (M1),8 we observeat different that brightness the transmittance levels valueswith an remain LED constantof a certain between peak wavelength68% and 70%, (e.g., which 385 corresponds nm), in Figure to the 8 brightnesswe observ levele that obtained the transmittance through a currentvalues fromremain 0.073 constant mA to between2.051 mA. 68% With and high 70%, luminescence which corresponds LEDs, at to low the currents, brightness we level achieve obtained an enough through brightness a current level from to 0.073carry outmA theto analysis2.051 mA. of theWith samples. high luminescence In this range LEDs, of values, at low the currents, transmittance we achieve values experimentan enough brightnesslittle variation. level As to commented,carry out the the analysis transmittance of the samples. value is In higher this range than the of referencevalues, the value transmittance of 54.35%, valuesmeasured experiment with the little commercial variation. equipment As commented, [31]. the transmittance value is higher than the reference value of 54.35%, measured with the commercial equipment [31]. Sensors 2019, 19, 2951 9 of 23 Sensors 2019, 19, x FOR PEER REVIEW 9 of 24
100%
90%
80%
70%
60%
50%
40% Transmittance 30%
20%
10%
0% T B4 T B8 T B30 T B70 T B100 T B180 T B220 T B280 T B350 (0.039 mA) (0.078 mA) (0.293 mA) (0.683 mA) (0.977 mA) (1.758 mA) (2.149 mA) (2.735 mA) (3.412 mA) Brightness levels (Current levels)
Sample M1 Transmittance commercial equipment
FigureFigure 8. 8. EffectsEffects of of the brightness level inin thethe transmittancetransmittance measurement, measurement, using using a 385a 385 nm nm LED LED [30 [30]] on onSample Sample M1. M1. Each LED is able to emit at a maximum brightness level, determined by the manufacturer using Each LED is able to emit at a maximum brightness level, determined by the manufacturer using the “Luminous Intensity” parameter, which is usually expressed in mcd (millicandelas) or lumens. the “Luminous Intensity” parameter, which is usually expressed in mcd (millicandelas) or lumens. In the case of the 385 nm LED used [30], its maximum luminous intensity is 100 mcd. Measuring the In the case of the 385 nm LED used [30], its maximum luminous intensity is 100 mcd. Measuring the brightness level of the LED would require the use of expensive and complex equipment such as lux brightness level of the LED would require the use of expensive and complex equipment such as lux meters. Therefore, we have associated the brightness level with the current applied to the LED, which meters. Therefore, we have associated the brightness level with the current applied to the LED, which is a parameter that can be easily measured without having to use any additional equipment. is a parameter that can be easily measured without having to use any additional equipment. The current level selected must be within a certain range to achieve a stable transmittance The current level selected must be within a certain range to achieve a stable transmittance value, value, even if it is greater than the expected one. As shown in Figure3, the intensity at which the even if it is greater than the expected one. As shown in Figure 3, the intensity at which the different different wavelengths emit follows a normal distribution. The further away the wavelength is from wavelengths emit follows a normal distribution. The further away the wavelength is from the peak the peak value, the lower its emission intensity. At low brightness values (low current), the effect of value, the lower its emission intensity. At low brightness values (low current), the effect of wavelengths is negligible. This can be seen in the transmittance value corresponding to brightness wavelengths is negligible. This can be seen in the transmittance value corresponding to brightness level 4 (T B4). We are using a 16-bit driver (a number between 0 and 4095) to control the current up level 4 (T B4). We are using a 16-bit driver (a number between 0 and 4095) to control the current up 40 mA, so that, the brightness level designed as “T B4”, is obtained by applying a current of 0.039 mA 40 4 mA,40 mAso that, the brightness level designed as “T B4”, is obtained by applying a current of 0.039 mA ×× = 0.039 mA . 4095 = 0.039 mA . The transmittance value was 54%, fairly close to the expected one of 54.35%. However, although the resultsThe transmittance are close, such value a lowwas level54%, offairly brightness close to isthe unsuitable expected one for spectrophotometryof 54.35%. However, operations. although theIf the results sample are hadclose, a highersuch a turbidity,low level photonsof brightness could is not unsuitable pass through for spectrophotometry it. Therefore, the use operations. of a current If thelevel sample within had the a stabilized higher turbidity, values of photons transmittance could no ist the pass best through and most it. Therefore, suitable option. the use of a current level withinAlthough the itstabilized is possible values to select of transmi any currentttance levelis the lower best and than most which suitable causes option. the saturation of the sensorAlthough [35], it isit highlyis possible recommended to select any to selectcurrent one leve whichl lower provides than which a response causes between the saturation 50–70% of of the the sensorresolution [35], ofit is the highly sensor recommended (with the distilled to select water one sample). which provides In our case, a response we are usingbetween a 16-bit 50–70% resolution of the resolution of the sensor (with the distilled water sample). In our case, we are using a 16-bit resolution (or a number between 0 and 4095), that is, an I0 value between 511 and 716 (i.e., 2.5 and 3.5 V). This is (orthe a criterion number between followed 0 here. and 4095), In Figure that8 is, it wouldan I0 value correspond between to 511 brightness and 716 (i.e., levels 2.5 between and 3.5 V). TB30 This and is theTB280, criterion i.e., 0.293 followed mA andhere. 2.735 In Figure mA. 8 it would correspond to brightness levels between TB30 and TB280, i.e., 0.293 mA and 2.735 mA. 3.2.2. Sensor Selection 3.2.2. Sensor Selection We observe from Figure2 that photodiode OSD15-E (Figure2B) presents, for example, at 470 nm, a referenceWe observe value fromI0, (measured Figure 2 that with photodiode a test-tube ofOSD1 distilled5-E (Figure water), 2B) higher presents, than S1223-01 for example, (Figure at 2470A), nm,since a reference OSD15-E hasvalue a sensitivity𝐼 , (measured greater with than a test-tube 50%, while of distilled S1223 barely water), manages higher than to reach S1223-01 25%. (Figure 2A), sinceHowever, OSD15-E the sensitivityhas a sensitivity of the greater sensor than is not 50%, a critical while parameter.S1223 barely If manages the reference to reach value 25%.(I0 ) is greater,However, the light the intensity sensitivity crossing of the the sensor sample is to not be analyzeda critical( parameter.I), will increase If the proportionally. reference value Therefore, (𝐼 ) is greater, the light intensity crossing the sample to be analyzed (𝐼), will increase proportionally. Sensors 2019, 19, x FOR PEER REVIEW 10 of 24
Sensors 2019, 19, 2951 10 of 23 Sensors 2019, 19, x FOR PEER REVIEW 10 of 24 Therefore, the transmittance value 𝑇 = will remain constant regardless of the type of sensor used. BasedTherefore, on the the tests transmittance carried out, value we can 𝑇 say = that will this remain statement constant is regardlesstrue provided of the that type the of sensor sensor has used. a the transmittance value T = I will remain constant regardless of the type of sensor used. Based on sensitivity of at least 5% for theI0 wavelength to be analyzed. Finally, the selected photodiode was theBased tests on carried the tests out, carried we can out, say we that can this say statement that this is statement true provided is true that provided the sensor that has the a sensitivity sensor has of a S1223-01, with a monetary cost three times lower than OSD15-E. atsensitivity least 5% forof at the least wavelength 5% for the to bewavelength analyzed. to Finally, be analyzed. the selected Finally, photodiode the selected was S1223-01,photodiode with was a S1223-01, with a monetary cost three times lower than OSD15-E. 3.2.3.monetary Peak costValue three Calibration times lower than OSD15-E. 3.2.3.3.2.3.In PeakPeak preliminary ValueValue CalibrationCalibration tests, each LED was only used to obtain the transmittance for a unique value of wavelength, its peak wavelength. A linear relation is observed between the transmittance values InIn preliminarypreliminary tests,tests, eacheach LEDLED waswas onlyonly usedused toto obtainobtain thethe transmittancetransmittance forfor aa uniqueunique valuevalue ofof registered with the LED and those corresponding to its 𝜆 from the reference equipment, as shown wavelength,wavelength, itsits peakpeak wavelength.wavelength. A linearlinear relationrelation isis observed observed betweenbetween thethe transmittancetransmittance valuesvalues in Figure 9. The calibration of the peak value of the LED𝜆 always produces a better fit, above 98%, as registeredregistered withwith thethe LEDLED andand thosethose correspondingcorresponding toto its λ peak from from the the reference reference equipment, equipment, as as shownshown it is the highest wavelength intensity emitted by LED. inin FigureFigure9 .9. The The calibration calibration of of the the peak peak value value of of the the LED LED always always produces produces a better a better fit, fit, above above 98%, 98%, as itas isit theis the highest highest wavelength wavelength intensity intensity emitted emitted by by LED. LED. 100%
100% Transmittance = 0.8517*Transmittance_LED + 0.0018 80% R² = 0.9919 Transmittance = 0.8517*Transmittance_LED + 0.0018 80% R² = 0.9919 60%
60% 40%
40% 20%
20% 0% Transmittance Commercial Equipment 0% 20% 40% 60% 80% 100% 0%
Transmittance Commercial Equipment Transmittance LED (Brightness 40) 0% 20% 40% 60% 80% 100% Transmittance LED (Brightness 40) Figure 9. Scatter diagram between reference transmittance value and the most suitable brightness Figure 9. Scatter diagram between reference transmittance value and the most suitable brightness level (T40). levelFigure (T40). 9. Scatter diagram between reference transmittance value and the most suitable brightness level (T40). After the fit, fit, in Figure 10 we can observe goodgood agreement between the reference values of transmittanceAfter the obtained fit, in Figure by the 10commercial commercial we can observe equipmen equipment goodt and agreement those those measured measured between with with the a a limited-bandwidthreference limited-bandwidth values of LEDtransmittance after after the the calibration obtained calibration by process. process.the commercial To Tomake make equipmen it easier it easier fort and forthe those thereader reader measured to follow, to follow, with the a samples limited-bandwidth the samples have havebeen orderedbeenLED after ordered in thean increasingcalibration in an increasing way, process. according way, To make according to theit easier transmittance to for the the transmittance reader values to obtainedfollow, values the with obtainedsamples the commercial have with been the equipment.commercialordered in an equipment. increasing way, according to the transmittance values obtained with the commercial equipment. T Reference T Estimated
100% T Reference T Estimated 100%90%
80%90%
70%80%
60%70%
50%60% Transmittance 40%50% Transmittance 30%40%
20%30%
10%20%
10%0%
0% Analyzed samples
Analyzed samples Figure 10. ComparisonComparison of of calibration calibration equations equations for 470 nm wavelength and brightness level 40. Figure 10. Comparison of calibration equations for 470 nm wavelength and brightness level 40. Sensors 2019, 19, 2951 11 of 23 Sensors 2019, 19, x FOR PEER REVIEW 11 of 24
3.2.4.3.2.4. Extension Extension of of the the Working Working Range Range InIn this this section, section, we we show show how how it itis ispossible possible to to use use the the spectral spectral width width of of an an LED LED to to model model the the transmittancetransmittance of of other other wavelengths wavelengths in in addition addition to to that that of of the the peak peak value. value. TheThe tests tests carried carried out out showed showed that that the the portion portion of of the the spectrum spectrum that that can can be be used used to to extend extend the the workingworking range range of of a a spectrophotometer spectrophotometer is defined defined byby thosethose wavelengthswavelengths between between 10 10 and and 20 20 nm nm over over the thepeak peak value value in in the the upper upper limit limit and andthe the lowerlower spectralspectral width limit (LSWL). (LSWL). The The LSWL LSWL is is a aparameter parameter defineddefined by by the the manufacturer manufacturer (Table (Table A1). A1 ).These These limi limitsts have have been been shown shown in in Figure Figure 11, 11 using, using the the LED LED withwith a a470 470 nm nm peak peak wavelength, wavelength, as as an an example example only. only.
FigureFigure 11. 11. RepresentationRepresentation of ofthe the useful useful working working rang rangee of ofthe the 470 470 nm nm peak peak wavelength wavelength LED LED [36]. [36 ].
AsAs shown shown in in Equation (1),(1), despitedespite being being able able to useto use the lowerthe lower limit limit of the of spectral the spectral width towidth calibrate to calibratethe wavelengths, the wavelengths, with a fitwith above a fit 96%,above from 96%, tests from carried tests carried out we out recommend we recommend working working about about 10 nm 10above nm above this lower this lower limit, limit, in order in order to achieve to achieve a fit above a fit above 98%. 98%. ( 𝜆 <𝜆 < 𝜆 + 10~20𝑛𝑚, 0.962 <𝑅 <0.99 λLSWL < λpeak < λpeak + 10 20nm, 0.96 < R < 0.99 ∼ (1) (1) 𝜆 λ + 10𝑛𝑚+ 10nm <𝜆 λ < 𝜆<