1. Introduction
This study focusses on the development of a system capable of performing fluorokinetics analysis by using a Micro-Electro-Mechanical System (MEMS)-based mini-spectrometer, adapted as a fluorimeter, controlled and operated by a microcontroller. The device is programmed under the open-source software declaration (FOSS) [
1]. As an initial application, a kinetic study of the evolution of the fluorescent product produced in the oxidation of Thiamine (TA) has been carried out.
The application of the phenomenon of fluorescence continues to be a subject of current interest in scientific publications. There are numerous applications in the literature for the development of fluorescent markers, which have applications in diverse fields, ranging from the development of fluorescent protein-based biosensors that allow for the monitoring of physiological processes [
2,
3,
4] to the monitoring and detection of contamination in environmental water, food samples, and pesticide residues [
5,
6,
7]. Some of these applications use fluorokinetics methods combined with chemometrics for the detection of cancer toxins [
8]. The worldwide economic impact relative to fluorescent detection devices is really important in many industrial applications. Thus, the food industry is projected to reach EUR 20 billion in 2025 [
9], pesticide and water pollutant analyses are estimated to be worth about EUR 1.5 billion annually [
10], and water management is expected to reach approximately EUR 4.5 billion in 2027 [
11,
12].
Kinetic fluorometry is also used in the study of photosynthesis using a technique called delayed fluorescence using far-red light for excitation. Response times typically range from milliseconds to several minutes [
13]. Recently, strategies have been developed for imaging applications of fluorescent probes for ATP [
14], which use longer excitation and emission wavelengths that allow for detection in deep biological samples. In this field, a very promising fluorescent probe (Bio-SiR) has been presented for the real-time imaging of ATP in cancer cells, which is a si-rhodamine-based fluorophore [
15]. It is presented as the first tumor-targeting (near IR) molecule fluorescent probe for endogenous ATP imaging in real time for tumor-bearing mice.
The basic instrument (hardware) and a proposed program (software) for kinetic measurements of fluorescence spectra are discussed in this work. The development is founded mainly on studies [
16,
17] and the references therein. Both papers constitute the fundamentals of the proposed system, the former focusing mainly on hardware requirements and the latter on software basics. The initial advantages are obviously the high reproducibility and sensitivity already demonstrated, the low budget, and portability. A new step has been taken to develop an inexpensive, portable, and simple diode array kinetic fluorimeter. Thus, it is possible to take advantage of the benefits and minimize the drawbacks pointed out in the bibliography (open source, stability, sensitivity, reliability, cost, etc.). More specifically, it is necessary to develop a system capable of recording fluorescence spectra with an acquisition frequency as wide as possible, minimizing difficulties derived from the slowness in obtaining and storing the measured spectra. The previous paper proposes the use of a development board based on the ATSAMD21G18 [
18] microcontroller for the acquisition and control of the Hamamatsu CA12880MA [
19] diode array spectrometer. The developed software was applied for stationary measurements of fluorescent samples, spectra, and static quantitative determinations. The time variable is only employed for the control of the spectrometer lines and the time that excitation light is on, allowing a very large sensitivity range. The second paper established the basis for both the external parameter verification (controlled by using a spreadsheet) and for the precise time control during the measurement. The add-on macro software embedded in the spreadsheet for the control of the system has been kept and is based on Parallax Data Acquisition Tools Release 2B [
20] but using a newer, more versatile and user-friendly version [
21].
To verify the usefulness and reliability of the proposed device, vitamin B1 or Thia-mine (TM) has been chosen as a starting compound acting as a fluorescent precursor. TM is an essential vitamin for human beings, the deficiency of which produces the well-known “beriberi” syndrome. It mainly affects the nervous and cardiovascular systems when blood levels are in the range of 9–14 nmol/L [
22]. In the literature, many analytical methods can be employed for TM investigations, such as colorimetric, fluorescence, electrochemical, chemiluminescence, electrochemiluminescence, HPLC, optical detection by using nanoparticle methods, etc. [
23]. The determination of TM and related compounds via fluorescence has been widely described in the literature for more than 80 years [
24]. Its sensitivity and specificity have been used to develop methods for the determination of other compounds that react with Thiamine [
25], and even specific detectors have been developed for its determination [
26,
27]. Ryan et al. [
28,
29] developed and exhaustively described a kinetic method for the analytical determination of TM, which is the methodological basis for the present work. Their methodology is so well founded that it has been the subject of undergraduate teaching material [
30]. Even more recently, there has been some interest in the study of the oxidation of TM to form fluorescent compounds, such as Thiochrome (TC) [
23,
31,
32]. The kinetic behavior of these compounds provides a suitable framework for testing the versatility and limits of the fluorokinetic device presented in this study. It offers many advantages in this field, such as a high sensitivity for fluorescence measurements, fast acquisition times, low cost, great portability, and full spreadsheet integration for experimental data analysis. The results are compared with those published in the literature to evaluate the system’s overall performance.
2. Materials and Methods
2.1. Experimental
Analytical-grade chemicals were purchased from Sigma Aldrich: Thiamine hydrochloride (CAS 67-03-8), Na3PO4·12H2O (CAS 10101-89-0), Na2HPO4 (CAS 7558-79-4), sodium hydroxide (CAS 1310-73-2), hydrochloric acid (CAS 7647-01-0) and mercury (II) chloride (CAS 7487-94-7). Water was purified using a Millipore system (Milli-Q Reference model), and all measurements were performed at 22 ± 2 °C. Hellma Suprasil precision quartz cells (type 101-QS) with a light path of 10 mm were used for experimental measurements.
Figure 1 shows a picture of the proposed device with the main components of the system. As can be noted, it is a portable device with small dimensions (120 mm × 80 mm × 60 mm), with an overall weight of 0.4 Kg. As excitation sources, it contains an LED (365 nm) and a laser diode (405 nm), which is included in the GroupGets board v1. The Hammatsu C12880MA has 15 nm of spectral resolution and a wavelength range from 340 to 850 nm, allowing one to acquire 288 spectrum points. The cell compartment has a standard size of 10 mm wide.
2.2. ATSAMD21G18 Microcontroller Hardware
The characteristics of the microcontroller selected in terms of processing speed, clock frequency (CLK), and internal 32 kB SRAM memory are interesting. However, two major difficulties were encountered at the beginning. Firstly, the process to obtain the internally stored data, using the common read mode, was particularly slow. Secondly, the available microcontroller memory is limited to storing the different spectra for a kinetic process. Furthermore, in the measurement process, there was no possibility to reduce the noise level by averaging without sacrificing its speed. Strategies for accelerating data acquisition, averaging, and memory optimization will be explained in the following sections.
2.3. Speeding up the Software Code for “analogRead”
Despite all the advantages mentioned in relation to the selected microcontroller, there was an added difficulty with the speed of processing the “analogRead” instruction, when the default compilation of the high-level language is employed. This instruction uses the microcontroller analog-to-digital converter (ADC) and is essential for reading/storing the light intensity values for each wavelength. A comparative speed study of the three microcontrollers (UNO, 2560, and ZERO) using the compiled instruction was performed to obtain a complete spectrum of 288 wavelength (WL) data. The time required for the first two boards was about 37 ms, but, incredibly, for the ZERO board, it was about 250 ms. Undoubtedly, the compiler used to translate the instruction for this board was inefficient and, with this timing, the use of the direct compiled instruction for ZERO makes it useless for kinetics purposes. Fortunately, this speed issue was pointed out on different internet forums. On the Arduino forum, an example code for “speeding-up” the analog-to-digital converter (ADC) compilation was presented [
33]. This code involved specific port control for the SAM21D analog-to-digital converter (more information is available in the
Supplementary Materials). The time required for retrieving a whole spectrum varies from 8 ms for an average of two samples to 89 ms for an average of 64 samples. A study of the error associated with the number of averages shows that the standard deviation is lower, and the absolute error changes its sign for an average between 32 and 64 samples.
2.4. Timing Control
One of the most important advantages of microcontrollers is the precise and fast timer control. Internal timers can be set up to obtain the number of microseconds or milliseconds elapsed since they were triggered. The time required to perform a measurement process involves different tasks, and each one has its own time consumption. To perform one single measurement and control the lines of the C12880MA, this process is fully described in the previous paper. The main difference is the faster procedure described in
Section 2.3. Next, the selected number of data points must be stored in the data matrix. To read a new measurement, the program checks whether the selected sample time is over. If the gap time is large enough, the program writes into Excel and plots one WL selected value to check the measurement evolution. Once the gap time is over, the sequence is repeated until it reaches the number of measurements selected. For checking purposes, those timer values can be exported to Excel by checking the ‘Debug mode’ box in the PLX-DAQ controller add-on.
2.5. Memory Optimization
Flash EPROM and SRAM memory types are implemented in microcontrollers, each one of them depending on its characteristics, and are usually assigned a specific task. Their organization and uses are widely discussed in the Arduino Memory Guide [
34]. Different alternatives for the storage of kinetic data have been considered, especially taking into account two fundamental issues: the time required for their storage and the amount of data to be stored. There are also other collateral considerations such as minimizing the cost and complexity of implementation. Although it might be thought that the amount of memory available in the microcontroller is scarce, with some optimization, it is possible to store a complete spectrum every 10 ms, using just 0.5 kB. In this way, about 50 complete spectra could be stored, without consuming the entire available SRAM memory. Nonetheless, in fluorescence measurements, the area of the spectrum corresponding to the excitation source can be neglected. This fact allows a larger number of spectra to be stored in memory. On the other hand, it is possible to store more than 10,000 points if a single WL is selected (at maximum emission). With these numbers, the decision was made to use the best option offered by ATSAMD21G18, which implies an easier, cheaper, and faster development, since it has a solid base in its hardware, regarding the spectrophotometer and the development of its software.
In addition, the optimization of the available SRAM provides a higher storage speed with a reasonable software modification effort to trim and organize the measured data spectra. Thus, a single array variable is used to store the succession of clipped spectra during a kinetic experiment, once the number of wavelengths and the total number of wavelengths to be stored are known. This array of clipped spectra for different acquisition times can be exported as a two-dimensional table with two output modes: columns containing the selected WL and rows for the selected time, or the transposed mode with time in cols/rows and WL.
2.6. Acquisition Software PLX_DAQ
As described in previous papers, the main advantage of using PLX-DAQ software Release 2B with Excel is to read and write specific parameters via USB without having to reload the code into the microcontroller every time a parameter changes. It also allows for the storage of the results and their graphing during the measurement. Moreover, using the different checkboxes included in the PLX-DAQ, the program flow and the parameter verification and validation can be performed easily.
One possible drawback is that the use of an Excel spreadsheet is mandatory, because this spreadsheet program has fundamental RS232 input/output control procedures, compatible with USB. However, its use has been developed by PLX-DAQ with open source. Version 2.11 [
21] has some additional improvements, such as the selection of the spreadsheet that interacts with the USB interface and a debug output that allows for scrutinizing possible communication problems. However, the main drawback is the strict language required to build the message syntax. Special characters, usually employed for control in the Serial communication interface, can interfere with Excel: comma, spaces, line feed, and carriage return characters. Thus, it is highly recommended to carefully read the user guide.
Figure 2 shows an Excel screenshot of the control datasheet and the PLX-DAQ add-on (orange framed) for a dummy experiment.
2.7. Input Parameters
The variables which control the fluorokinetics experiments are related to the spectroscopic and kinetic times. In the red frame shown in
Figure 2, the first column contains a brief description of the measured parameter and employed units, if applicable; the second column contains information about their valid range. The third column is used to write the desired actual values, and the fourth column contains their estimation from the actual values. The timer value (in µs) for debugging is displayed in the green frame. Their values are useful for additional testing and validation of the kinetic measurement process.
There are some interrelationships between some input parameters, and efforts have been made to maintain the maximum performance of the device (memory, time, WL). Thus, the number of kinetics points is limited by the number of WLs stored up to a maximum of 25kB. The minimum kinetic time interval is limited by the time required to operate the CA12880MA. Therefore, once the input parameters are typed in the Excel cells, it is necessary to recheck their values to verify that all device limits are matched (blue frame in
Figure 2). Thus, the number of WLs to be stored is estimated from the available memory. The minimum sampling time (in milliseconds) is estimated from the internal timer values (in microseconds) with a 5% increment for safety. The exact time at which the first spectrum is recorded corresponds to half the integration time of the first measurement (see a detailed description in
Supplementary Materials).
The time between measurements must be greater than the minimum sampling time. If the difference between the sampling time and the integration time is large enough (about 100 ms), it is possible to export and plot the actual kinetic data during the measurement process for a single selected WL (cyan frame in
Figure 2). In this case, it is highly recommended not to operate the add-on and/or Excel during the measurement process (see
Supplementary Materials for more information). Once the input parameters are set, they are checked and, if necessary, recalculated. If no errors are detected, they can be validated by marking the ‘Check_parameter’ checkbox on the add-on to proceed.
As the complete data matrix for a kinetic experiment could be very large, PLX-DAQ v2.11 allows one to select more than one datasheet to export data. Thus, one datasheet contains the control parameters, debugging, and the ADC data corresponding to the WLs selected for plotting. Other datasheets can store the entire output matrix of selected time/WL data for different experiments. This procedure can be a bit tricky initially, and special care has to be taken to avoid writing the output matrix on the control sheet or trying to read the input parameters from the data matrix sheet. Another checkbox, ‘Export_Data_matrix’, is used to minimize the possible error of writing into the wrong datasheet.
2.8. Measurement Routines
In addition to the usual code for microcontroller programming, setup and loop, several routines have been developed to efficiently perform each experiment. The most important ones are listed here (more detailed information can be found in the
Supplementary Materials).
Boosting analogRead procedure: AdcBooster(Avr_level).
Generate n CLK pulses: F_pulse_clk3MHz(n).
Management of the CA12880MA control lines for a single spectrum:
F_readSpectrometer(Ex_L).
Estimation of the wavelength associated from the manufacturer data:
Wavelength(order).
Computes the associated indexes according to the WL calibration data:
WL_Index_Data(&w_H, &w_L, &index_H, &index_L).
Output matrix spectra generation by row:
create_selected_matrix_by_row(&Row_Index_L, &Row_Index_H, &actual_col, *matrix).
Trimmed selection of the whole data matrix, including acquisition time:
printDataMatrixExcel(mode, &Row_Index_L, &Row_Index_H, &N_points, &Delta_ms, off_t_ms, *Data_Matrix).
Clean up in Excel datasheet of the parameter estimation:
Clean_estimated_param().
2.9. Software Flowchart
The device is connected via a USB port to a known COM port number. The Excel spreadsheet containing the enabled PLX_DAQ macro must use the same port value. The INIT and SETUP processes are executed only once, by writing the information in the Excel control sheet. The procedure is then controlled by pressing the device button briefly and following the instructions in the PLX-DAQ text messages. Once the measurement has been completed, special care should be taken to select the Excel sheet for data export. After exporting, select the control sheet again to be able to modify the parameters for a new measurement. This procedure is similar to the one already explained in the previous document [
16,
17]. The complete fluorokinetics source program, with multiple commentaries, can be obtained from the authors, upon request.
3. Results and Discussion
As a test of the versatility, capability, and accuracy of the designed fluorokinetics device, the rate of TC generation from the oxidation of TM in a basic medium has been studied.
3.1. TC Formation from TM Evolution
As mentioned in the Introduction, the reaction kinetics are very well known in the literature and are even used as an example at the higher educational level [
30]. The authors recommend using Hg(II) as the oxidant agent in basic media, despite other possible indications [
28,
29]. TC has an emission maximum at 450 nm when excited with UV light (365 nm).
Figure 4 shows the TC clipped spectrum obtained with the fluorimeter after complete oxidation of a 5 ppm TM solution in phosphate buffer (pH 12).
Figure 5 shows the progress of the TM oxidation with the evolution of the TC emission spectrum. These plots can be easily obtained from the exported matrix of the radiation intensity data at the selected WLs and times during the course of the TC formation reaction. The 3D view is a striking example of the visualization of fluorokinetics measurements obtained by the designed device.
When the kinetics are relatively slow (sampling time above 2.0 s), measurements can be made by switching off the excitation light between points. However, if it is desired to obtain the rate constant at zero time, measurements have to be made at the mixing reactant early stages with short sampling times to obtain a good resolution.
Figure 6 shows the evolution of the logarithm value of the ADC reading at the wavelength of the emission maximum (450 nm). The acquisition was carried out for about half an hour. The oxidation reaction tends to be a limiting value corresponding to the amount of initial TM.
The experimental conditions applied imply that the TM oxidation reaction takes place under pseudo-first-order conditions, since the oxidant concentration is two orders of magnitude higher. At the initial reaction stages, a pseudo-first-order kinetics condition can yet be considered applicable, and a logarithmic linear relationship between the ADC value and time can be obtained, as shown in
Figure 6. The evolution of the TM oxidation reaction is followed until total consumption. A sampling time of 5 s is used, and the excitation source is switched off between measurements. This avoids the possible decomposition of TC by the UV excitation light during the lengthy measurement period. A first estimation of the apparent rate constant can be obtained by the slope of the linear relationship (red line in
Figure 6), obtaining a value of 6.72 × 10
−3 s
−1.
However, the value of this apparent constant, even for these early stages of the reaction, may be somewhat compromised by two effects: on the one hand, the influence of the depletion of the amount of Thiamine, and, on the other hand, the possible decomposition of TM or TC formed when the UV excitation source is kept on. For a correct analysis of the kinetic measurements, when measuring the fluorescence of the TC formed, it is necessary to perform a small modification of the equation employed by using the Guggenheim method. The reading values at the beginning and the end of the reaction have limited fixed values. At the beginning of the reaction, there is no TC, and the ADC value corresponds to a dark current value (ADC
0 ≈ 400). When all the TM has been oxidized, a constant amount of TC has been formed, which will provide a limiting value of the ADC
lim. This value is approximately constant, since TC is quite stable in a basic medium and in the absence of light, as described in the literature [
30].
Thus, the TM concentration at any time will be proportional to [ADC
lim − ADC]. At the beginning of the reaction, this value is [ADC
lim − ADC
0]. Therefore, the first-order integrated kinetic equation will be:
Therefore, the representation of the first term of Equation (1) versus time has to be linear.
Figure 7 shows the application of this equation to a similar experiment, as presented in
Figure 6.
As can be seen in
Figure 6 and
Figure 7, the analysis using the value of the logarithm of the converter directly provides a value of the oxidation rate constant close to 0.007 s
−1, which is not in agreement with the literature, even using only the data corresponding to the very early stages of the reaction. In contrast, when the analysis is performed considering the limiting values, linear relationships are obtained over a wider range of reaction times. Furthermore, the value of the rate constant obtained is close to the published data, with a value of 2.02 × 10
−3 s
−1 [
29].
Additionally, a new set of experiments was carried out, keeping the same conditions but using just 100 ms for a sampling time lasting 20 s. Thus, the excitation light is kept switched on during the whole measurement process. In these conditions, the obtained rate constant (1.40 × 10−3 s−1) is somewhat lower than the reported value. This discrepancy can be influenced by the TC photo-chemical decomposition being formed.
3.2. TC Stability in Dark Conditions
The stability of the TC solution in the absence of light was also studied. For this purpose, experiments were designed to follow the evolution of the maximum absorption value over days with sampling times of several minutes.
The fluorescence measurement is performed during intervals of 3 min (180,000 ms) for 25 h. For this process, the excitation source is switched off and it is only switched on 500 ms before the measurement. This ‘pre-lighting’ of the UV LED before the spectroscopic measurement minimizes the light jittering, improving the signal-to-noise ratio. Thus, the light is kept switched on for only 600 ms for each data point. Throughout the whole experiment, the sample is irradiated less than 300 s over one day. The first-order decay constant that can be estimated is about 3.03 × 10
−7 s
−1, which corresponds to a half-life of more than 26 days. In addition, several stability tests were carried out on the weakly acidic TM stock solutions kept under the protection of ambient light (amber flask). For more than one month, the fluorescence intensity results of the generated TC are reproducible in the range of 2%. This result is also in agreement with that expressed in the literature [
30].
3.3. TC Calibration
Considering the stability of the TC solutions in the absence of light, a calibration of their fluorescence was performed to check linearity, detection and quantification limits. From a TC stock solution (5 ppm) stored in an amber flask, different solutions were prepared by dilution using NaOH 0.15 M as a solvent.
The spectra program described in the bibliography [
16] was used for these measurements. For recording, 10 spectra were averaged, using different integration times to re-adjust the intensity signal to a reliable value. Spectra were corrected for the solvent value used as background. The calibration curve is shown in
Figure 8.
The LOD value was calculated as three-times the signal-to-noise ratio [
35]. In order to evaluate the repeatability, replicate measurements were performed three times. The results show that the value of the minimum determinable concentration is LOD = 13 nM, which is in good agreement with the reported data in the literature [
29]. The values corresponding to the two most concentrated solutions (red dots) have not been used for the linear regression (blue line) due to a decrease in the fluorescence intensity due to the auto-quenching effect [
32].
3.4. TC Photo-Decomposition by UV Light
Both TM and TC were studied under UV light (360 nm), showing a photo-decomposition process [
36,
37]. For this purpose, experiments were designed where the excitation source was kept switched on during the whole measurement. In our case, TM decomposition cannot be detected using the 365 nm excitation light due to the low power of the LED source. For the TC case, a sampling time below 2 s can be used to carry out the experiments. Thus, the excitation source is kept switched on during the whole measurement.
Figure 9 shows that the corrected logarithm of the ADC decreases noticeably with time in a linear relationship. The estimated first-order decay constant is 1.75 × 10
−4 s
−1, which corresponds to a half-life of about 1 hour. The decomposition rate is more than 600-times faster in the presence of 365 nm UV light than in darkness. The reported value for photo-decomposition by UV light at pH 12 in the literature [
36], 4.2 × 10
−5 s
−1, is significantly lower than that reported here. However, the lamp type, power, distance, and irradiation time are significantly different from those used in this work.
In light of these results, a single fluorokinetic experiment can be designed to obtain all the kinetic parameters, that is, the TC formation from TM and the subsequent TC photo-decomposition. For this experiment, a sampling time of 1.999 s is used for 3 hours and 20 min (6000 points). In this way, there is sufficient time to observe the attenuation in the solution fluorescence that occurs due to the breakdown of the TC by the UV light.
Figure 10 shows the variation for the fluorescence signal with the time reaction of a 5 ppm solution of TM in a basic medium. Initially, TC is generated at a specific rate and subsequently degraded under UV light into a non-fluorescent compound (NF).
The shape of the fluorescence variation with time observed in the graph closely resembles the behavior of a consecutive reaction with two different reaction rates, where TC acts as an intermediate compound:
A nonlinear least squares fitting of the AD value has been performed, using the Equation [
38]:
Table 1 shows the estimated parameters and the statistical fit for the consecutive reaction. The red line in
Figure 10 corresponds to the fit with the parameters from
Table 1.
It can be easily checked that the constant rates found with the proposed method are in perfect agreement with those obtained for independent experiments corresponding to the formation of TC via the oxidation of TM and photochemical degradation of TC by exposure to 365 nm UV light (
Figure 7 and
Figure 9, respectively). The values for the fitted rate constants gathered in
Table 1 match those obtained in single experiments, as presented in
Section 3.1 and
Section 3.4.
On the other hand, as outlined above, the degradation of TC in the absence of light was estimated. The results for these three reactions are synthesized in
Scheme 1:
4. Conclusions
Finally, the versatility and precision of the device are worth mentioning, as it provides data consistent with the literature. Specifically, it yields a value of 0.0021 s−1 for the first-order constant of TM oxidation when the excitation source is kept on for the strictly necessary time. However, if the excitation source remains on, this value significantly changes to 0.0014 s−1, which aligns with the value obtained in the consecutive mode process, where the excitation source is used similarly.
Additionally, the device’s versatility in sampling time is noteworthy, ranging from 10 ms, which allows for the determination of rate constants in the early stages, to measurements lasting several days, enabling the determination of rate constants six orders of magnitude lower. This feature is coupled with the ability to acquire a large number of wavelengths simultaneously.
Regarding potential improvements and device modifications, the usage of fiber optic elements and the incorporation of a stopped-flow system to achieve sampling limits of 10 ms are under consideration for the near future. Other fluorophores groups with potential activity in the near IR, which are involved in cancer imaging diagnostics, are currently under investigation.