2. Hardware Design
The AB4mb is capable of being used with four sensors at a time, it is provided by the shorting JFET transistor for the ready use of the sensors when the device is powered, and also, the modification of the amplification levels of the sensor output signals is allowed, thanks to the resistive trimmers present in the amplification blocks, and their core constitutes of the operational amplifiers in trans-impedance configuration (see
Figure A1,
Figure A2,
Figure A3 and
Figure A4 in the
Appendix A). To implement these features and functionalities, the board design was performed by using the “Orcad 10.5” CAD (Computer-Aided Design).
Another feature characterizing this board is represented by the possibility of fine-adjusting the “zero” levels of the output signals through the precision resistive trimmers, as shown in
Figure A1,
Figure A2,
Figure A3 and
Figure A4. Adjusting the amplification of the sensor signals and their “zero” levels allows the use of the board in both heavily polluted environments and in all those situations featured by an averagely less polluted environment. As a matter of fact, when the board is used for measuring low gas concentrations, a greater amplification is beneficial to increase the resolution of the device; on the contrary, when it is used to measure high pollutant gas concentrations, it is favorable to limit the amplification level and properly adjust the electronic “zero” of the sensor signals in order to prevent the clamping of the device outputs, which brings to erroneous measurements.
The electronic circuit of the board can be schematized in four sections comprising all the electronic components and their wirings for correctly operating each of the four sensors that can be mounted on the board. Each of these sections is in turn composed of two main blocks whose cores are, respectively, represented by the ADA4051 operational amplifier and by the AD8609 operational amplifier. The first block is the potentiostatic circuit designed by following the indications provided in the AAN 105-03 application note. This block is necessary to ensure that the proper electronic currents flow through the sensor electrodes, and it is also characterized by the JFET transistor devoted to automatically shortening the two electrodes of the sensor. The second block is composed of two amplification chains, each of them formed by two operational amplifiers integrated into the AD8609 chip. Particular attention should be paid to the operational amplifier selection: as highlighted in the AAN 105-03 application note, the potentiostatic circuit must use a device having a low input bias current (<5 nA), a low offset voltage (<100 µA), and at least 2.2 V of voltage output swing. These requirements are fulfilled by the ADA4051 device, which is characterized by a top input bias current equal to 50 pA, a maximum offset voltage equal to 15 µA, and a rail-to-rail input/output capability, which means an output swing equal to 3.5 V. Regarding the amplification chains, it is recommended to use an operational amplifier having a low electronic noise and a stable unity gain. Both these characteristics were found to be present in the AD8609 device, which was therefore selected for the board design. This operational amplifier is dedicated to amplifying the weak currents coming out from the “working” and the “auxiliary” electrodes of the sensors. The functions of these two electrodes can be, respectively, summarized as providing a current proportional to the concentration of the gas experienced by the sensing element (the “working” electrode), and compensating the variations in the “zero” level of the sensor (the “auxiliary” electrode).
Although, in the previous figures, the symbols of the NO
2-B43F, OX-B431, CO-B4, and SO
2-B4 sensors are displayed, the AB4mb can be used with other sensors belonging to the “B-series” of the Alphasense manufacturer. The complete list of sensors belonging to the “B-series” usable with the AB4mb board is described in
Table 1.
The sensors listed in
Table 1 are a part of the “B-series” sensors produced by Alphasense. As a matter of fact, there are some sensor models that need a bias potential on the “working” electrode to correctly operate, which cannot be used with the AB4mb board, because its electronic circuitry is not designed to provide such feature. This is the case, for example, of the NO-B4 sensor, designed to measure NO concentrations.
A minimum voltage of 3.5 V is required for powering the board, while the maximum voltage is 5 V. This last value is due to the maximum voltage required by the AD8609 operational amplifier used in the circuitry of the board. The total current drawn by the device is less than 3 mA. The powering voltage range and the total current consumption make this board suitable to be integrated into portable monitors or battery-powered devices.
Another goal pursued in designing this board is represented by the minimization of its size. A suitable level of miniaturization can enhance the level of portability of the air quality monitors or instruments using this board. For this reason, the design of the Printed Circuit Board (PCB) is based on the Surface-Mounted Technology (SMT), and the electronic parts used to implement the AB4mb are Surface-Mounted Devices (SMD) (see
Figure 3). As shown in
Figure 3, the PCB implemented for the board is a double-layer PCB, whose top layer hosts the sensor sockets and the regulation trimmers for better accessibility.
The “auxiliary” and “working” currents of the four sensors are amplified and translated into eight analogic voltage levels that constitute the output signals of the board. The location of the pins related to these signals, along with the power and ground pins are shown in
Figure 4. The output signals reflect the concentrations of the gases experienced by the sensors mounted on the board.
By referring to
Figure 4, the meaning of the labels indicating the output signals has to be intended as follows: the minus symbol (−) refers to the “auxiliary” electrode of the sensor, while the plus symbol (+) refers to the “working” electrode of the sensor. So, for example, the pin S4+ is the output voltage related to the “working” electrode of the sensor mounted in the S4 socket.
The capability of regulating the amplification levels of the sensor output currents is ensured by the resistive trimmers, whose position on the board is shown in
Figure 5.
4. Operating Instructions
4.1. Preliminary Operations for the First Use of the Sensors
For the proper use of the device, we must distinguish two different cases: the case concerning the use of the board when the sensors present on it are going to be used for the first time, and the case when the sensors present on the board were already used other times in the past. In the second circumstance, it is sufficient to power the board through a stable source whose voltage is between 3.5 V and 5 V, minding to not exceed the latter value in order to prevent the damaging of the operational amplifiers present on the board. After powering the AB4mb, it is advisable to wait for a few minutes due to the stabilization period needed by the sensors. Once the stabilization period finishes, we can consider the readings of the device outputs as reliable and effectively use the device.
In the first case, namely, when we are going to mount on the board a new sensor, some operations are necessary for effectively using the device, before powering it. The first thing to do is setting of the amplification levels of the output currents of the sensors selected to be mounted on the board. Setting the amplification levels means fixing the resistive values of the resistive trimmers shown in
Figure 5. The purpose of the various resistors described in
Figure 5 is schematically summarized in
Table 2.
By using a screwdriver and an ohmmeter, the user can set the resistor to the desired value and check its real value by putting the ohmmeter probes on the points indicated in
Figure 5. To obtain an indicative value of the resistance to set, the user can calculate it by Equation (1):
where
R is the resistive value to set expressed in ohms,
SS is the sensitivity of the sensor,
Cmax is the maximum expected concentration of the gas to measure, and
ΔVmax is the output voltage maximum swing of the AD8609 operational amplifier, which is equal to the power voltage in good approximation, with AD8609 being a rail-to-rail device. As an example for better clarifying Equation (1), we can use the CO-B4 sensor designed to measure the CO concentrations. By reading the CO-B4 datasheet published by Alphasense, we find that the mean sensitivity (
SS) of the CO-B4 sensor can be considered equal to 500 × 10
−9 A/ppm, and also, we can suppose that the power voltage provided to the AB4mb is 3.5 V. If the maximum expected concentration of CO gas in the environment where the AB4mb and the CO-B4 sensor will be deployed is equal to 10 ppm, therefore, Equation (1) gives us a value equal to 40 Kohm. Thus, the user will set the R28 and R35 resistances to such values (see
Table 2,
Figure A2 and
Figure 5). As mentioned earlier, the value given by Equation (1) represents just an indication of the final value to set. The reason is due to the fact that the sensitivity of the electrochemical sensors can significantly vary from piece to piece. As a matter of fact, the manufacturer provides a range of possible sensitivity values in the datasheets of each sensor model. The final resistance can be found by fine adjusting the initial value after empirical evaluations.
Once the resistance values of the resistors listed in
Table 2 have been set, the sensors can be mounted on the board sockets (see
Figure 3). It must be noted that each sensor model listed in
Table 1 can be mounted in any of the sockets shown in
Figure 3, even though each socket is labeled by a specific sensor model. After inserting the sensors in their socket, the user can power the device by applying a voltage between 3.5 V and 5 V to the “Vcc” and “gnd” pins shown in
Figure 4.
After powering the AB4mb, it is necessary to wait for the stabilization of the sensor signals. If one or more sensors have been just mounted, or used for the first time, the stabilization period can take a couple of hours, or something more. Unfortunately, the sensor manufacturer does not specify this parameter, but based on our experience, in general, it can take up to four hours. It is advisable that during this period, the device is placed in environments characterized by a low concentration of the “target” gases (namely, the gases for which the sensors in use are designed). Once the output signals have been stabilized, the “zero” levels can be set by acting through a screwdriver on the precision resistive trimmers listed in
Table 3 and shown in
Figure 4.
The “zero” level of an output signal is represented by the output voltage given when the sensor is described to a very low concentration of the gas, or near zero. Its exact value is at the user’s discretion, but some considerations must be made concerning this aspect. It has to be noted that some Alphasense sensor models, such as the NO2-B43F designed for measuring the NO2 gas, provide output currents proportional to the gas concentration, while, other models, such as the CO-B4 designed for measuring the CO gas, provide output currents inversely proportional to the gas concentration. The output signals of the AB4mb reflect the trends of the sensor currents; therefore, it is worthwhile to set the zero close to the 0 V (or ground) in the first case, while it is advisable to set it close to the power voltage in the second case.
4.2. Calibration of the Device
As earlier explained, the output signals of the AB4mb are related to the concentrations of the gases to which the sensors are described, but an appropriate algorithm, mathematical law, or calculation is necessary to translate the output signals into data expressing gas concentrations; in other words, it is necessary to calibrate the system composed of the AB4mb and the sensors mounted on it.
Various procedures and methods are viable for calibrating the device with various levels of complexity. As a matter of fact, we must consider that the currents provided by the sensors are influenced not only by the “target” gas but also by interfering factors, such as temperature and humidity variations, sensor drift, or the presence of interfering gases, namely, other gas types to which the sensing element of the sensor is also sensitive [
3,
8,
10]. All these factors constitute the source of the inaccuracies affecting the technology of electrochemical gas sensors. As mentioned in the Introduction Section, the scientific community has investigated and still continues to investigate [
2,
3,
4,
6,
8,
10] the techniques to mitigate the negative effects of such interfering factors. One possible approach can be given by the use of advanced algorithms, such as multivariate linear regressions, or the use of artificial neural networks, that take into account as inputs, temperature, humidity, and the concentrations of the interfering gases in addition to the signals provided by the sensors [
6,
10,
15,
16,
17].
However, there are some cases in which temperature and humidity variations are very limited, and the expected concentrations of the interfering gases are very low, or near zero. This situation could happen when we are monitoring the CO gas concentration (for example) in apartments or flats. In these cases, the calibration of the device can follow a simpler scheme, avoiding the use of advanced algorithms, and considering just the AB4mb outputs as input variables as expressed by Equation (2):
where
C is the gas concentration,
Si+ is
ith (
i = 1, 2, 3, 4) output “working” signal,
Si− is the
ith output “auxiliary” signal,
C0 is the “zero concentration” offset, and
GA is a coefficient that in first approximation can be calculated through Equation (3):
In this Equation,
SS represents the mean sensor sensitivity obtainable by reading the sensor datasheet, and
Ri is the value of the variable resistance listed in
Table 2. The condition under which Equation (2) can be used is that the value of the resistance concerning the “working” signal of a sensor on the board must be roughly equal to the one related to the “auxiliary” signal. To clarify this aspect, as an example, we can consider a sensor mounted in the socket S1 (see
Figure 5); in this case, the user must set R17(G1-) and R10(G1+) (see
Table 2) roughly at the same value. It could happen that the difference between “working” and “auxiliary” signals in Equation (2) is not zero when there is an absence of the “target” gas. In this case, the coefficient
C0 is necessary to correct this situation, and its value can be found by Equation (4):
where
Si+(0) and
Si−(0) are the output signals of the board when there is absence of the “target” gas.
Equations (3) and (4) can represent a theoretical approach for the calibration issue, but from a practical point of view, if we consider that the sensitivity parameters of the sensors can significantly vary from one piece to another one of the same sensor model, it appears clear that an experimental, or empirical, way is necessary to improve the accuracy of this calibration method.
Under the light of these considerations, the “three-point” calibration method represents a valid option, providing a relatively simple way to effectively calibrate the device. This procedure consists of exposing the sensors to three distinct known gas concentrations:
C2,
C1, and zero. If the difference between “working” and “auxiliary” output signals of the board is Δ
S2 and Δ
S1 at the concentrations
C2 and
C1, then, the coefficient
GA can be given by Equation (5):
Obviously, the C0 coefficient can be still calculated by using Equation (4).
5. Validation
The AB4mb device was tested both in the laboratory and during an experiment designed to measure the concentrations of O
3, CO, and NO
2 in an apartment occupied by a family composed of four individuals during their everyday lives [
10]. In this experiment, the use of the AB4mb allowed us to understand the potentialities of different calibration algorithms, and at the same time, it acted as a test bed for the AB4mb device.
The sensors mounted on the board for this experiment were the OX-B431, the CO-B4, and the NO
2-B43F; moreover, the AB4mb was installed in the “SentinAir” portable air quality monitor designed and developed in our laboratories [
9]. The monitor hardware was necessary to convert the AB4mb analogic outputs into digital data to store in a dataset useful to study the performance provided by four different calibration models: a multivariate linear regression, a random forest regression, a support vector machine, and an artificial neural network. The SentinAir monitor was also used to capture the data coming out from the reference instruments co-located with the sensors that were useful to measure the real O
3, CO, and NO
2 concentrations. The chemical analyzers used for measuring NO
2, CO, and O
3 were, respectively, the “405nm” by 2Btech [
27], the “CO12m” by Envea [
28], and the “106-m” by 2Btech [
27].
The inputs selected for the calibration models were the gas sensor outputs, the temperature, the relative humidity, and the real gas concentrations provided by the reference instruments. The temperature and the relative humidity measurements were performed by using, respectively, the TC1047A sensor by Microchip, and the HIH5031 sensor by Honeywell [
10]. These sensors are a part of a module previously installed in the SentinAir monitor [
6].
The whole experiment duration lasted roughly eight days, during which, the measurements of the first four days, namely, the calibration period, were used to calculate the calibration model parameters, and therefore, to find the algorithms capable of providing the gas concentrations starting from the inputs earlier specified; while, in the last four days, namely, the validation period, the algorithms just found were used to calculate the real gas concentrations measured by the reference instruments. The main indicators used to understand the performance quality of the system given by the AB4mb, and the gas sensors calibrated by the different algorithms were the Mean Absolute Error (MAE), the Root Mean Squared Error (RMSE), and the coefficient of determination R
2 defined as follows:
In Equations (6)–(8), N represents the number of measurements, ri is the ith measure of the reference instrument, mi is the ith gas concentration predicted by the device under test, is the average of the reference measures, and is the average of the predicted values. The indicators just introduced were selected because they give us a complete idea about the potentialities of the device under test composed of the AB4mb and the sensors installed on it, to accurately follow the measurements of the reference instrument providing the real gas concentrations. The MAE and the RMSE are indicators providing the overall gap between the measures of the references, considered reliable and accurate, and the measures performed by the device under test. A good performance means MAE and RMSE values close to zero. The coefficient of determination (R2) improves the understanding of the performance of the device under test because it gives us a quantification of the capability of the AB4mb output signals to follow the trends of the reference measures. It expresses a dimensionless quantity that can vary from 0 to 1. Values ranging from 0.7 to 1 denote a good performance, while values ranging from 0.4 to 0.7 represent a moderate capacity to follow the accurate measures of the reference, and lastly, values less than 0.4 indicate a poor performance.
The results provided by this experiment showed that the different calibration methods produced different results, depending on the considered performance indicator, and the considered period of the experiment (calibration or validation period); therefore, it was not possible to find the best calibration method in absolute terms. For this reason, and for the sake of conciseness, the best results related to the validation period are summarized in
Table 4.
The performance indicators shown in
Table 4 provide quantitative information about the final performance of the system under evaluation. Anyway, for a more complete picture of the achievable quality of data, it is useful to inspect
Figure 6,
Figure 7 and
Figure 8. Regarding the temperature and the relative humidity measurements, they ranged, respectively, from 20.5 °C to 30 °C and from 23% to 60%.
In these figures, the plots of the time series concerning the measurements performed during the validation period by both the reference instruments and the device under test are described to add more completeness for understanding how close the measures of the system under evaluation are to the real gas concentrations.
By inspecting
Figure 6,
Figure 7 and
Figure 8 and
Table 4, it is possible to obtain an idea about the performance of the device under test compared to the reference instrument. In the case of CO measurements, if we compare the MAE and RMSE low values (0.377 ppm and 0.366 ppm, respectively) with the range of concentrations detected by the reference instrument (which is about 2.5 ppm), we note a good performance. This consideration is confirmed by the value expressed by the coefficient of determination (R
2 = 0.924) being very close to 1, which indicates a good capacity of the device under test to follow the trends of the real gas concentrations measured by the reference instrument. The same considerations can be drawn in the case of the NO
2 gas, while, for the O
3 measurements, we can note a low R
2 value. This datum indicates poor capacity to follow the reference measurements, which can be explained by considering two concurrent elements: the simultaneous presence of NO
2 and O
3 gases and the lack of a filter for the NO
2 gas on the ozone sensor. Indeed, the OXB431 sensor is equally responsive to O
3 and NO
2 gases, and this fact can be a source of error in ozone measurements. On the contrary, the NO
2 sensor is equipped with a filter for the ozone gas, and even though it is equally responsive to both O
3 and NO
2, it does not show any performance degradation in the case of simultaneous presence of both gases.
Making a comparison with previous studies represents a challenging task due to several factors. In the first place, we must consider that the performance assessment of LCSs or LCAQMs strongly depends on the test environment: laboratory test chamber, indoor, or outdoor environment. Moreover, the evaluation of LCSs or LCAQMs in previous studies is often performed by considering different indicators, different types of LCSs, or different calibration methods [
3,
10,
29]. In addition to this, the values of the performance indicators used to evaluate the same device can vary by considering the calibration or the validation data [
3,
10], and also, they may depend on the concentration ranges experienced by the LCSs or LCAQMs. Anyway, by considering the R
2 indicator and excluding the cases of evaluations carried out in the laboratory (which is well known that they provide performance indicators way better than the ones found in any other environment), it is possible to make an indicative comparison that is summarized in
Table 5.
The data described in
Table 5 are drawn from some review articles that addressed the issue related to the performance assessment and the comparison of LCSs and LCAQMs [
3,
29]. As can be seen, we can find a very wide range of values for each pollutant gas considered. This aspect can be explained through the earlier mentioned various conditions and situations affecting the LCS or LCAQM assessment process. The so far described results of the validation test proved to us that the goals of the AB4mb design were achieved, and all our expectations were met.
6. Conclusions
The electrochemical sensors represent an attractive option for air quality monitoring activities by using portable and easy-to-use LCAQMs. In particular, the “B series” of the electrochemical sensors produced by Alphasense are characterized by a good quality/price ratio. Their operation is supported by electronic boards that, even though providing good performance, are characterized by a flexibility grade not corresponding to the requirements of the experimental activities of our laboratory. For this reason, the AB4mb has been designed and developed in support of such types of sensors.
The hardware designed for the purpose of allowing to shorten the stabilization period of the sensor output signals by the introduction of suitable electronic parts as suggested by the sensor producer. Moreover, the capability of regulating the amplification levels of the sensor electric currents and the regulation of the “electronic zero” were implemented in the AB4mb device. Another important characteristic of the AB4mb is given by its capability of the simultaneous use of up to four sensors. All the features of the AB4mb have been implemented by designing hardware offering the highest miniaturization level possible subject to its building costs.
This device was tested in the laboratory, but the most interesting results were found during an on-field experiment performed in the indoor environment to measure the concentrations of CO, NO2, and O3 by using different calibration methods. During the test, the device provided useful data without any failures, proving that the aims of the AB4mb design were completely fulfilled.
However, it needs to be acknowledged that, if, on the one hand, the AB4mb can offer a higher flexibility grade in its use by allowing the regulation of the amplification of the sensor signals and their “zero” levels, on the other hand, the same flexibility adds one more step of complexity due to the calibration process left in charge of the user, but necessary for the proper use of this device.