Next Article in Journal
On the Performance of Random Cognitive mmWave Sensor Networks
Next Article in Special Issue
Impacts of Imperfect Channel State Information, Transceiver Hardware, and Self-Interference Cancellation on the Performance of Full-Duplex MIMO Relay System
Previous Article in Journal
Sub-ppm Formaldehyde Detection by n-n TiO2@SnO2 Nanocomposites
Previous Article in Special Issue
An IoT Based Architecture for Enhancing the Effectiveness of Prototype Medical Instruments Applied to Neurodegenerative Disease Diagnosis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low-Power and Low-Cost Environmental IoT Electronic Nose Using Initial Action Period Measurements

by
Carlos J. García-Orellana
*,
Miguel Macías-Macías
,
Horacio M. González-Velasco
,
Antonio García-Manso
and
Ramón Gallardo-Caballero
CAPI Research Group and Instituto de Computación Científica Avanzada (ICCAEx), Universidad de Extremadura, E-06006 Badajoz, Spain
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(14), 3183; https://doi.org/10.3390/s19143183
Submission received: 13 June 2019 / Revised: 10 July 2019 / Accepted: 11 July 2019 / Published: 19 July 2019

Abstract

:
In this work, we present a complete hardware development and current consumption study of a portable electronic nose designed for the Internet-of-Things (IoT). Thanks to the technique of measuring in the initial action period, it can be reliably powered with a moderate-sized battery. The system is built around the well-known SoC (System on Chip) ESP8266EX, using low-cost electronics and standard sensors from Figaro’s TGS26xx series. This SoC, in addition to a powerful microcontroller, provides Wi-Fi connectivity, making it very suitable for IoT applications. The system also includes a precision analog-to-digital converter for the measurements and a charging module for the lithium battery. During its operation, the designed software takes measurements periodically, and keeps the microcontroller in deep-sleep state most of the time, storing several measurements before uploading them to the cloud. In the experiments and tests carried out, we have focused our work on the measurement and optimization of current consumption, with the aim of extending the battery life. The results show that taking measurements every 4 min and uploading data every five measurements, the battery of 750 mAh needs to be charged approximately once a month. Despite the fact that we have used a specific model of gas sensor, this methodology is quite generic and could be extended to other sensors with lower consumption, increasing very significantly the duration of the battery.

Graphical Abstract

1. Introduction

Monitoring with gas sensors is a subject of special relevance at present, from air quality in wearables to hazardous gases in industrial plants. In all of the cases, renouncing the use of cables to power the devices and to transfer data has many advantages, introducing us to the field of the Wireless Sensor Networks (WSN) and the Internet-of-Things (IoT).
A Wireless Sensor Network comprises a set of sensor nodes that can measure ambient conditions, such as detecting air quality through gas sensors that send the measurements wirelessly to a base station [1]. Each sensor node includes a radio transceiver, a power supply, a processing unit, sensors and a power management circuitry. Currently, there is also the possibility of a node, through the Wi-Fi infrastructure, directly publishing the information in the cloud using some of the known IoT platforms, although it is not widely used in the context of WSNs.
In the case of gas sensors there are many factors to take into account when designing a node: the target gas, sensitivity, speed of response, cost, stability, durability, safety requirements and lifetime, that is, the operating time without needing to use any external intervention, such as battery replacement [2].
Considering aspects such as good sensitivity, quick response, low-cost, and long life, semiconductor sensors (MOX) stand out as the ideal candidates for wireless nodes with gas sensors [3]. However, despite these advantages, this technology is not exempt from certain weaknesses such as low selectivity, weak reproducibility [4] and high-power consumption, the latter being a very important problem in the practical development of battery-powered wireless nodes.
MOX sensors have a heating resistance to favour redox reactions on the sensing surface that is responsible for their high-power consumption. Although many efforts have been made to reduce the power consumption in MOX gas sensors (e.g., decreasing the size of the sensitive layer and of the heater area [5], thus reaching a power consumptions of tens of milliwatts, see Figure 1), there are still applications that need sensors with relatively high-power consumption to meet safety requirements [5,6,7].
Therefore, to operate with a MOX sensor, a supply voltage must be applied to the heater resistance, which consumes a significant quantity of energy. In practical applications, MOX sensors can operate in three different modes: continuously powered, periodically powered or on demand. When a MOX sensor is energized, it enters into an unstable state with a fall in the sensor’s resistance immediately after energization, followed by a transition period during which the initial stable resistance level is reached. This period is known as the run-in phase or initial action [8], and depends, among other factors, on the time the sensor is unenergized.
Likewise, operation in continuous mode consumes a lot of power and it is prohibitive in the design of wireless gas sensors nodes. In contrast, on-demand operation can cause the sensor to be unenergized for a long time and therefore the initial action period needed to take a new measurement can be very long and vary between consecutive measurements.
Apart from the physics of the sensors, there have been many studies that address the problem of reducing the energy consumption of the nodes, based on low energy communications protocols, architectures and solutions [9,10,11], and on the shape of the heating pulses applied to the sensors [3,12,13,14].
In the last case the more common technique is based on duty-cycling the activity of a node and its sensors. That is, the gas sensor is not polarized all the time, but only a small fraction of it and, evidently, the smaller that time, the greater the energy saving. On the other hand, and as we will see in the next section, sensor manufacturers do not recommend making this time shorter than the initial action period, what makes this methodology less efficient. In that sense, we presented in [14] a new technique to minimize this time, called “gas sensor measures during the initial action period of duty-cycling”. In that work we put the emphasis on demonstrating the validity of the presented technique, but we did not make any additional study on the power consumption when the new technique is used in the construction of a real wireless sensor node.
In this work we will present the hardware development and a power consumption study of a very low-cost gas sensor node that collects data and publishes them directly in the cloud using the Thingspeak IoT platform, through the Wi-Fi infrastructure. The designed low-power node uses the new technique described in [14] to reduce the energization time of the sensors to the maximum. The node is built around the System On Chip ESP8266EX, as a processing unit and Wi-Fi (IEEE802.11 b/g/n) transceiver, and a gas sensor from Figaro’s well-known TGS26xx family, since the new duty-cycling technique was validated with these kind of sensor.
The Methods used in the construction of the electronic nose, with special emphasis on the description of the correction technique proposed in [14], are described in Section 2. Results are shown in Section 3 and, finally, conclusions are presented in Section 4.

2. Methods

In this section, we will expose the most important techniques applied in the work, as well as the main hardware and software components that we have used to develop the proposed system.

2.1. Measuring in the Initial Action Period

There are many works in the literature related to power management and saving in systems that use MOX gas sensors, based on duty-cycling the activity of a node. In a duty-cycling operation, a node follows a sleep–wake–sample–compute–communicate cycle in which the longest part is the low-power sleep state [15]. This process reduces the average power consumption of a node by many orders of magnitude. The duty-cycle (D) of a node’s activity is defined as the fraction of time when the node is active [16], as shown in Equation (1).
D = t a c t i v e T where T = t a c t i v e + t s l e e p
Hence, to decrease the power consumption of a node, one has to reduce its duty-cycle D, and to reduce the duty-cycle, the active time t a c t i v e should be decreased and the period T increased as much as possible. A duty-cycled operation is usually possible in WSNs since they are not required to sample or communicate continuously.
However, there are factors which prevent t a c t i v e from being reduced as much as desired. One of those factors is the transient in the gas sensor’s response. When a stannic oxide sensor is energized after being stored under ambient conditions for a long time, two transients are observed prior to the final stabilization, a short-term transient which may last tens of seconds or even minutes, and is usually called the initial action transient, and a long-term transient which may last from a week to a month [8].
The short-term transient is characterized by a fall in the sensor’s resistance immediately after energization, followed by a transition period during which the initial stable resistance level is reached. When we use the measurement circuit recommended by the manufacturer, the sensor resistance is converted to a voltage through a voltage divider, and this voltage is considered the sensor response, which rises as the resistance falls. The duration of the initial action depends on the atmospheric conditions during storage and the length of storage, and varies with different sensor models [17]. So when a duty-cycling sensor is switched on, the sensor’s response rises sharply for the first few seconds after energizing, and then reaches a stable level in accordance with the ambient conditions (see Figure S1 in Supplementary Materials).
Therefore, when a node in a WSN is woken up and the sensor is newly energized, the t a c t i v e of the node should be greater than the initial action period of the sensor, in order to have time to stabilize before measurements can be taken. Hence, the initial action of the gas sensors imposes a lower limit on how much the node’s power consumption can be reduced.
In [14], we proposed a correction for the sensor’s response in the initial action period so that measurements taken during this period could be useful. As a result, it is possible to reduce the value of t a c t i v e of the nodes in the sensor network, and therefore their power consumption. In summary, measurements can be taken during this initial action powering-up time, and the initial action error can be corrected with our method, eliminating the short-term transient (the rise in the sensor’s responses immediately after energization).
The proposed method consists in carrying out a linear transformation of the datum measured after n seconds of the initial action period start, so that this transformation corrects the error with respect to the sensor that is permanently powered, which we consider as reference. In this way, a different transformation is obtained for each value of n, but we found that, with the TGS26xx series, the correction stabilize for n > 50 s. Though the specific details of the process can be found in [14], the correction technique simply consists in applying Equations (2) and (3), where S n r e f and S n are the measurements of the reference sensor and the switched sensor respectively, taken n seconds after switching on, a n and b n are constants obtained by regression and are different for each value of n, while a and b are also constants obtained by regression, but once the stable value has been reached (in the case of TGS26xx, when n > 50 s). Finally, S n c is the corrected value of the measurement.
S n = a n + b n · S n r e f for n < 50 s a + b · S n r e f for n 50 s
S n c = a + b · S n - a n b n
In that work, we also showed that there is a trade-off between the error (the square of the correlation coefficient value, r 2 , obtained when we correlate the responses of the duty-cycling sensor and another sensor powered continuously) and the power savings (clearly dependent on n, the time in seconds after power-on). For n = 1 s (maximum power savings), the r 2 value was 0.81, while for n = 5 s, the r 2 value rose to 0.95. But for n = 20 s, the r 2 value was 0.98, with the behaviour being similar to the case of correlating the two continuously powered sensors.
To reach these conclusions, we tested four different TGS gas sensors (TGS2600, TGS2602, TGS2611, and TGS2620) in [14]. Their results were similar, so for simplicity we only presented the results obtained with the TGS2600 in that paper. The three TGS2600 gas sensors were placed in a sensor chamber, and different gases (air, ethanol, tobacco smoke) were randomly passed through the chamber using a micro-pump, so that all the sensors were exposed to the same gas. Since the main objective was to study the correlation between the responses of the permanently energized sensor and the switched one, we didn’t consider relevant the concentrations and concrete composition of the gases to which the sensors were exposed, but only that the conditions of measurement varied. Measurements were taken every second, collecting 250,000 measurements (approximately 76 h) for each sensor, 2400 in each sleep–wake cycle (40 min).
Figure 2 shows the result of the correlations for different values of n. In that figure, data from three sensors of the same model are shown, where S1 and S2 are permanently powered, while S3 is the switched sensor (whose response we want to correct). It can be observed in Figure 2a how the correlation between S1 and S2 is independent of n (which was to be expected, since they are permanently connected and are the same model). Besides, Figure 2b shows how the correlation depends on n in the case of S1 and S3, though from n = 40 s the dependence practically disappears.
On the other hand, Figure 3 shows the responses of the three sensors for a period between 72,000 and 75,000 s. As we can see in Figure 3 no drift correction method was applied over the sensors’ responses. The lines black and green correspond to the sensors powered continuously and the other one (red) corresponds to the duty-cycling sensor. In blue we can observe the corrected response of the the same sensor S 3 n c in which the short term instability in the initial action period period has been corrected.

2.2. Main Components

Next, we will describe the main electronic components used in the development of the proposed IoT sensory system, as well as the software platforms used.

2.2.1. SoC ESP8266

The ESP8266EX [18] is a System On Chip (SoC) that combines a powerful microcontroller with a Wi-Fi transceiver, which makes it suitable for low-cost IoT applications due to its low price. This SoC is designed and manufactured by Espressif Systems (Shanghai, China), and it is a very popular device with many applications. In Figure 4 we can see a block diagram of the SoC. Regarding its technical characteristics, we can highlight the following:
  • Tensilica 32 bits microcontroller, 80 or 160 MHz clock speed.
  • 64 KB program memmory, and 96 KB for data.
  • Power supply from 2.5 to 3.6 V.
  • Wi-Fi transceiver with 802.11 b/g/n support.
  • Low power consumption modes.
  • Common peripheral interfaces (SPI, I2C, UART, etc...)
  • One ADC (Analog Digital Converter) pin with 10-bit precision.
  • OTA (Over the Air programming) support.
The ESP8266EX does not have flash memory to store the program to be executed. Therefore, it needs an external flash memory, which is connected by SPI bus. Because of this, we usually find the ESP8266EX as part of a module that, in addition to the aforementioned flash memory, includes the minimum necessary components and the Wi-Fi antenna. In this work we used the module known as ESP-12E, which is very popular, not only due to its characteristics, but also due to its price, since it has a cost of approximately 1.5 €. The ESP-12E module has everything needed for our application. In particular, we need a GPIO (General Purpose Input Output) for the control of the power supply which feeds the electronics accompanying the sensor, an ADC input to monitor the battery, and the I2C bus for the ADC that will measure the voltage obtained in the gas sensor.

Low Power Modes

For our work, one of the most important aspects of the ESP8266EX SoC are its low-power modes [19]. Specifically, the ESP8266EX has three main modes of low consumption, that we summarize in Table 1. Of these modes, the most relevant for us is the Deep-Sleep, since the SoC is completely asleep in this mode, except for the RTC (Real Time Clock). In order to wake up from this mode it is necessary to connect the terminals of RESET and GPIO16, since once the ’Deep-Sleep’ time has elapsed, the GPIO16 terminal will turn on and restart the SoC. The reason for the restart can be later ascertained by software.
The RTC is a clock that stays active even in the Deep-Sleep mode and allows to control how long the ES8266EX is in that energy saving mode. For our application, the existence of what is known as RTC memory is very important. The RTC memory is a 768 bytes RAM that maintains its value between the Deep-Sleep mode restarts. Of those 768 bytes, only 512 are for the user. This memory area can be used by our application to temporarily store a set of measurements before uploading them to the IoT server, which allows us an additional energy saving by not having to activate the Wi-Fi modem.

2.2.2. TGS 2620 Gas Sensor

As we mentioned in the introduction, there are currently very-low-power sensors on the market, with heating resistors operating at 1.8 V, which are very interesting for low-power applications. However, in this work, we decided to use the TGS 2620 [20] sensor from Figaro Engineering, Inc. (Osaka, Japan), a sensor based on Metal Oxide Semiconductor (MOX), for several reasons. First, the Figaro’s TGS26xx series sensors are well known, studied and of proven quality. Besides, though its power consumption is higher than in other more recent sensors, we know from our previous work [14] that we can successfully apply the measurement method in the initial action period with the Figaro’s TGS26xx series, which significantly reduces the consumption. Nevertheless, our methodology and design does not depend on any specific sensor, and it could be adapted to any other MOX sensor provided that we can apply this measurement method. On the other hand, the TGS2620 (see Figure 5a) it is an adequate sensor for the detection of low levels of alcohol and organic volatiles [20], with an optimum detection range from 50 to 5000 ppm of concentration. It is currently used in many practical applications, such as in the tea flavor estimation [21], in the detection of volatile organic compounds [22] or in the monitoring of mint leaves during the drying process [23].
As it is usual in other MOX sensors, the TGS26xx series presents reproducibility problems and long term ageing, as well as important differences in behavior when replacing a sensor by another of the same model, making necessary a periodic recalibration in most cases [24]. In addition, they also have problems with short-term stability and reproducibility, although this can be partially corrected [25].
The TGS2620 heating element is powered with 5 V and consumes approximately 210 mW. The maximum power dissipated by the sensor element must be less than 15 mW. Figure 5b shows the measurement circuit recommended by the manufacturer, which emphasizes that the polarity of the sensor element indicated in the figure must be maintained, but not necessarily for the heating element.
Using the proposed circuit, the resistance of the sensor element ( R S ) can be calculated according to Equation (4), while in order to know the maximum power dissipated by the sensor element ( P S ) we can use the Equation (5), which also allows us to determine the minimum value of R L .
R S = V C - V R L V R L × R L
P S = ( V C - V R L ) 2 R S
Although the TGS2620 is considered a low consumption sensor, Figaro recommends a warm-up of at least 2 min, which makes any low-power application powered by small batteries unviable. For this reason, we decided to use the measurement technique in the initial action period, which reduces to a minimum the sensor consumption.

2.2.3. Precision Analog to Digital Converter

To measure the voltage on the TGS2620 sensor we used a pull-down resistor and a precision ADC. We chose the ADS1100 model from Texas Instruments (Dallas, TX, USA) [26], which is a 16-bit converter with auto calibration, low-power consumption, programmable gain, wide power supply range (from 2.7 to 5.5 V) and I2C interface. The ADS1100 is designed for high resolution measurements, offering 8 SPS with 16-bit accuracy. It is presented in a SOT23-6 small package, and its current consumption when idle is 90 μ A, although this fact is not very important in our case, since we will disconnect the ADC when not using it.

2.2.4. ThingSpeak

ThingSpeak [27] is an important element of our work, since it is the IoT platform that we chose to upload the data to the cloud. The use of IoT in our system allows monitoring to be followed in any part of the globe with a simple web browser, and also lets us simplify the system by not having to store large amounts of data locally.
ThingSpeak started as an open source project in 2010 by ioBridge. It is an IoT platform, organized in channels, that provides a web interface (see Figure S2 in Supplementary Materials) to consult data stored by sensors in these channels, and to carry out some other actions based on that data. The platform has an API based on HTTP, so that the sensors can upload or recover data.
The project is now managed by MathWorks Inc. (Natick, MA, USA), who has included support for the use of MatLab in the analysis and visualization of data. This has caused that the open version of ThingSpeak has not been updated for several years. However, it is possible to install the open version and have a private IoT service.

2.3. Proposed Circuit

The circuit we propose to implement our IoT sensor can be seen in Figure 6, Figure 7, Figure 8 and Figure 9. As can be observed in these figures, the proposed system consists of four parts:
The first of the schematics corresponds to the circuitry necessary for the operation of the ESP-12E microcontroller module (Figure 6). This is the circuit generally used with this module, though we would like to highlight the presence of a large capacitor in the power supply, in order to be able to supply enough current in moments of high demand of the module when the battery is low. We would also like to highlight the presence of the R4 bridge to allow operation in Deep-Sleep. The GPIO14 was used to control the power supply of the rest of the design (CTRL_PW signal). Two buttons were included, SW1 for Reset and SW2 to put the ESP8266EX in programming mode. This circuit is permanently powered through +3V3.
Figure 7 shows the schematic corresponding to the TGS2620 gas sensor and the ADS1100 ADC converter. Since both the sensor and the ADC are powered with +5 V, we used level adapters to connect them to the microcontroller. The method we applied to measure with the TGS2620 sensor is proposed in its technical documentation [20], and has been discussed previously. This part of the circuit is powered only when the measurement is being made.
The next part of our system’s schematic is shown in Figure 8, and it is the charge and control circuit of the 3.7 V Lithium Ion battery, through a micro USB connector. The circuit consist of the chip TP4056, from NanJing Extension Microelectronics, to control the charging process, and a protection for the Li-Ion cell designed using the integrated circuits DW01-P and FS8205A from Fortune Semiconductor. In addition, a voltage divider (R16 and R17) is incorporated to measure the battery voltage through the internal ADC of the ESP8266EX. The charging current is controlled by resistor R7, and the status is indicated by an RGB LED. The jumper P3 (JP_PW) has been included to measure the charge and discharge current through the battery. The battery chosen in our case is a Li-Ion cell of 3.7 V and 750 mAh, and 14,500 size. The specific model selected for the system already includes a protection cell, so it could be eliminated from the design. However, we decided to keep it so that another battery without a protection cell can be chosen. The last important block of the proposed circuit can be seen in Figure 9, and it is the part that controls and adapts the power supply of the rest of the components. First, we have the HT7333 voltage regulator from Holtek Semiconductor (Hsinchu, Taiwan). It is a low drop-out 3.3 V regulator, and it is necessary because the ESP8266EX has a maximum supply voltage of 3.6 V and the fully charged battery supplies 4.2 V.
On the other hand, we can see in the lower part of Figure 9 the circuit responsible for connecting and disconnecting the power supply of the sensor and the precision ADC, in order to minimize consumption when the system is in sleep mode. The power supply connection and disconnection is carried out using a PMOS transistor (AO3401) with a low drain-source on resistance, using an output of the microcontroller control the transistor. To obtain the 5 V needed for the sensor we used a step-up DC-DC converter module, based on the SX1308 chip from SuoSemi Corporation (Shenzhen, China). We also included a second 3.3 V regulator to power the ADC level adapters only when necessary and thus minimize consumption.

2.4. Software Details

The software plays a very important role in the design of a low-power application. In our system we have considered two fundamental strategies to minimize the average consumption of the system and therefore maximize battery life. On the one hand, the measurement circuitry have been connected only when the system is measuring, and the Wi-Fi modem have been activated only when we are uploading data. Also, when the system is not in either of these two states (between measurements), we have kept the ESP8266 in Deep-Sleep. These states can be seen summarized in Table 2.
On the other hand, since the Wi-Fi connection is an important source of power consumption, we accumulated a certain number of measurements in the RTC memory area, uploading them to ThingSpeak in batches, in order to minimize the connection time.
In Figure 10 the diagram of the software implemented can be observed. In this figure we have separated the part of the software from the part of the hardware that the ESP8266 performs when it is in Deep-Sleep mode. First, the software checks the reason for the last restart. If it came from the Deep-Sleep state, a new measurement is made (otherwise the RTC memory area is initialized) and, if the number of measurements that form an upload batch ( N m e a s ) has been reached, the Wi-Fi modem is activated and the batch of measurements (sensor data and battery status) is uploaded to the IoT ThingSpeak platform in JSON format.
As shown in Figure 10, the measurement process starts by activating the power supply of the TGS2620 and the ADC. Then, after waiting for a concrete time ( t m e a s ), measurements are taken (from the sensor and the voltage supplied), and the power supply of the sensor and the ADC is turned off. Subsequently, the Equation (2) is applied to obtain the corrected value by using the measurement method based on the initial action period.

2.5. PCB and Assembly

For the assembly of the circuit in a compact way we designed a PCB (Printed Circuit Board), using SMD type components almost completely. The designed PCB is approximately 60 × 35 mm size, that is, quite smaller than a credit card.
The final assembly can be seen in Figure 11. In this figure, the dimensions of the assembly can be observed, as well as the layout of the components. On the upper side, the ESP-12E module can be seen, along with the push buttons, the TGS2620, the ADC ADS1100, the jumper JP_PW2, part of the power control circuit and the charging circuit with the micro USB connector. Also, the programming connector is placed in this side of the board.
On the back, the battery and the DC-DC step-up converter can be observed, apart from the main voltage regulator and two jumpers JP_PW and JP_PW3, which are used to measure the currents of the circuit.
To finish this section, we made an estimate of the total design cost. Depending on the chosen suppliers, the cost may vary a lot. By choosing the proper suppliers, we could build the proposed design for less than 20 €, including components and PCB, but not including assembly. We must bear in mind that only the TGS2620 can cost more than 20 € in some suppliers, so it is important to choose them well. Even in that case, the complete design did not exceed a cost of 40 € (without assembly).
The most expensive elements, apart from the sensor itself, are the Li-Ion battery and the ADS1100 converter (which could be replaced by the Microchip MCP3421, but at the cost of sacrificing performance a bit).

3. Results

In this work, we focus on the study of our design’s power consumption, comparing the different operating alternatives, and offering an estimate of the battery life. Therefore, we do not show any results of gas measurements, since the methodology of measurement in the initial action period has been validated in our previous work [14].
As we explained in Section 2.1 and Section 2.4, our system’s operation is cyclical, alternating activity periods and deep-sleep periods. In our case, the periods of activity can be of two types: those in which we only take measurements, and those in which we upload a batch of data to the IoT platform after measuring. In Figure 12, the typical evolution of the consumption can be observed. In this particular case, we considered four measurements per uploaded batch ( N m e a s ), a measurement time in the initial action period ( t m e a s ) of 2 s, and a rest time ( t s l e e p ) of 20 s.
As we stated above, our objective is to estimate the average power consumption in different scenarios. For this, we divided the study into three parts: “deep-sleep consumption”, “measuring-only consumption” and “measuring-and-uploading consumption” (Wi-Fi activated). With these base data, we studied the evolution of consumption in complete cycles, with different duration of each of the parts.

3.1. Study of Consumption in Each of the States

We next present the study of consumption in each of the three states mentioned above.

3.1.1. Consumption in “Deep-Sleep” State

Most of the time our system will be ”waiting between measurements” (see Table 2), and in that state the ESP8266EX is in “deep-sleep” mode and the power supply of the measurement circuit is disconnected.
In this situation, the ESP8266EX must consume less than 20 μ A, the charging circuit must consume less than 10 μ A (according to its components datasheets), the HT7333 regulator 8 μ A at most (according to its datasheet), and the voltage divider formed by R16 and R17, about 8 μ A. This way, we expect a global consumption of about 46 μ A, which we could reduce to 38 μ A if the voltage divider were connected after the AO3401 transistor.
We made the consumption measurements in each of the three jumpers JP_PW, JP_PW2 and JP_PW3 (see Figure 8 and Figure 9) using an Amprobe 38XR-A multimeter (Amprobe GmbH, Glottertal, Germany), and the results are shown in Table 3. In this table, the errors shown correspond to twice the standard error calculated from 15 independent measurements. It can be observed a good correspondence with the expected consumption, as well as an extrapolation of the charge consumed for three different durations of deep-sleep mode. As is clear from the values, the amount of current consumed in this state is very small, especially if we compare it with the current consumed in the other states. However, given that the system will be in this state for a long time, it is important to consider this current. Equation (6) shows the charge consumed in this state ( C C s l e e p ) as a function of the time (in seconds) that the system is in that state ( t s l e e p ).
C C s l e e p ( μ A s ) = 42.8 · t s l e e p

3.1.2. “Measuring-Only” Consumption

The measurement of consumption in the other states is somewhat more laborious. For this we used a precision clamp ammeter, of the brand Aim-TTi (TTI, United Kingdom), model I-Prober 520, which allows us to measure the instantaneous consumption with an oscilloscope (as it is shown in Figure 12).
In the state “measuring-only” we analysed numerous peaks for different values of the measurement time ( t m e a s ). In this case we focused only on the global consumption (that is, on the jumper JP_PW), since it is what really interests us.
Specifically, for each measurement time of the initial action period ( t m e a s ), about 10 to 20 peaks were analysed. From each of these peaks the average value of the current was obtained, and the global average was calculated for each value of t m e a s . The results are shown in Table 4, in which we can find, for each value of t m e a s , the average current, the average duration of the measurement process and the average consumed charge.
In order to obtain an expression for the load consumed as a function of the measurement time ( t m e a s ) we performed a linear regression using the data in Table 4. The graphical representation of this regression can be seen in Figure 13, in which we can observe a clearly linear trend of the charge consumption as a function of the measurement time. The correlation factor ( r 2 ) is equal to 0.996 which gives us an idea of the accuracy of the adjustment. The expression in Equation (7) shows the value of the charge consumption, ( C C m e a s , in mAs), as a function of the measurement time used to implement the initial action period ( t m e a s , in seconds).
C C m e a s ( m A s ) = 24.50 + 84.43 · t m e a s

3.1.3. “Measuring-and-Uploading” Consumption

The last state in which our system can work is found when, after the measurement, we must upload the data to the IoT platform. As can be seen in Figure 12, there are two clearly differentiated parts in this state regarding consumption: a first part that corresponds to the measurement (very similar to the state “measuring-only”) and a second part that corresponds to the data upload itself.
In this state the consumption of the part corresponding to the measurement is not exactly the same as in the case of “measuring-only” state. The reason is that, in this case, the Wi-Fi modem is available (although not activated yet) after the “deep-sleep” period, which causes the average current consumption to be a bit higher. However, this is offset by the fact that this measurement phase lasts somewhat less, as we go directly to the data upload process. This way, the charge consumed is practically the same as in the “measuring-only” state, so in order to simplify the calculations we will assume that the expression Equation (7) is valid in the first part of this state, since the error is less than 1% in almost all cases.
The charge consumption in the second part of this state, i.e., when we upload the data to the IoT platform, is much more variable than in the previous cases. This is because the connection and upload times are much more variable. Therefore, to obtain reliable statistics we analysed more than 75 data uploads and calculated the average current in each case, as well as the time. As a result, we obtained an average current of 70.8 ± 0.3 mA and an average upload time of 3.10 ± 0.07 s. Thus, we can conclude that the average charge consumption due to data upload ( C C u p l o a d ) is 219.3 ± 5.8 mAs. As in previous cases, the error shown corresponds to twice the standard error.

3.2. Global Consumption and Estimation of Battery Life

For the estimation of global consumption we must know when, and for how long, each of the partial consumptions acts. In a complete cycle (see Figure 12), the charge consumption will be given by the expression in Equation (8).
C C c y c l e = N m e a s · C C m e a s ( t m e a s ) + N m e a s · C C s l e e p ( t s l e e p ) + C C u p l o a d
The number of cycles ( N c y c l e s ) that we can be performed with a battery of capacity B a t c a p is given by Equation (9).
N c y c l e s = B a t c a p C C c y c l e
Logically, to estimate the duration of the battery ( t b a t ) we must multiply the cycle time ( t c y c l e ) by the number of cycles ( N c y c l e s ) that can be performed with that battery. The cycle time is the sum of the individual times that the system is in each of the three states. Two of those times are obvious: the deep-sleep time ( t s l e e p ) and the upload time ( t u p l o a d ). However, the time used in the measurement is not exactly the product of the number of measurements per cycle by the measurement time, since as we can see in Table 4, the average measurement time takes about 0.45 s more than the measurement time of the initial action period. Therefore, the cycle time would be given by the expression in Equation (10), and the battery life in Equation (11).
t c y c l e = N m e a s · t s l e e p + N m e a s · ( t m e a s + 0.45 ) + t u p l o a d
t b a t = N c y c l e s · t c y c l e = B a t c a p C C c y c l e · ( N m e a s · ( t s l e e p + t m e a s + 0.45 ) + t u p l o a d )
Substituting the previous equations in Equation (11), and using the numerical values, we obtain the final expression shown in Equation (12).
t b a t = B a t c a p · ( N m e a s · ( t s l e e p + t m e a s + 0.45 ) + t u p l o a d ) N m e a s · ( C C m e a s + C C s l e e p ) + C C u p l o a d t b a t = B a t c a p · ( N m e a s · ( t s l e e p + t m e a s + 0.45 ) + 3.10 ) N m e a s · ( 24.50 + 84.43 · t m e a s + 0.0428 · t s l e e p ) + 219 . 3
As we can see, the battery life is a function of the three fundamental parameters of the method used ( N m e a s , t m e a s and t s l e e p ). In Table 5 we can observe the estimated battery life for some combinations of these parameters that we think are more likely, assuming a battery capacity of 750 mAh.
It is also interesting to graphically see the evolution of battery life. Figure 14 shows the evolution of the battery life keeping the deep-sleep time fixed at 180 s. On the other hand, in Figure 15 we can observe this evolution when fixing the number of measurements between data uploads (5 measurements in the figure).
In Figure 14, we can see how increasing the number of measurements stored between data uploads ( N m e a s ) improves battery life, but with an asymptotic behaviour (which would be easy to obtain by calculating the limit on Equation (12)). This way, from a certain number of stored measurements on, battery saving is not worth very much. Therefore, we could say that between 3 and 5 stored measurements would be adequate in most cases (except perhaps when the measurement time is 1 s).
On the other hand, we can see graphically in Figure 15 how the battery duration depends very sharply (especially for long deep-sleep times between measurements) on the duration of the initial action period. It is for this reason that, thanks to our methodology, we can consider building a system of this type powered by batteries.
Finally, if we analyse the results in Table 5 (along with the Figures mentioned above), it can be observed that in many cases a battery life of more than 15 days is achieved, provided that the deep-sleep time between measurements ( t s l e e p ) is equal to or greater than 120 s, and the measurement time of the initial action period is at most 3 s. Specifically, if we consider a 750 mAh battery and take measurements every 240 s, with a measurement time of 2 s and uploading data every five measurements, we could obtain a battery life of 1 month.
With the previous data, the energy consumption per day would be about 90 mWh (considering a battery voltage of 3.7 V), an amount of energy that can be easily recovered with a small solar cell, and we would have a completely autonomous system.
To emphasize the importance of using the measurement in the first seconds of the initial action period, let’s consider the case in which we do not use the first seconds, but we follow the usual measurement procedure. In this scenario, we should let the sensor stabilize at least around 2 min [20] (i.e., we would have t m e a s = 120 s). Therefore, to have a measurement every 240 s, we should set t s l e e p in 120 s. Keeping N m e a s = 5 , and applying Equation (12), we would have a battery duration of about 17 h. This means that using the measurement in the initial action period makes the battery last about 42 times longer.
If we calculate the energy consumption of this last case (waiting for the sensor to stabilize 2 min), we obtain 3.75 Wh. This way, to maintain the system with solar cells we would need a panel that gave an energy 42 times higher than the one needed when we use the measure in the initial action period.
Although the use of Wi-Fi is not common in the WSNs world, it avoids having to provide gateways and routing nodes to access IoT platforms, allows us to take advantage of an extensive indoor connectivity, and it significantly lowers the cost of the node. We mitigate the increase in consumption due to Wi-Fi by turning off the modem when not needed and accumulating measures to upload data to the IoT platform in batches.
We should also consider what would happen if we use an array of sensors instead of a single sensor. In this case, the correction in the initial action period would be made individually on each sensor, and then the corrected values would be used as input to a pattern classification system (formed, for example, by a feature extraction stage with PCA or ICA, and followed by a classifier based on SVM or neural networks). This classification could also be done in ThingSpeak, as MatLab is available on this platform. Regarding the consumption, we do not reckon that making the classifier’s inference calculation in the microcontroller would involve a significant power cost.
However, the use of several sensors would boost the consumption very significantly. For example, if we include a second sensor of the same type, the consumption of the new sensor heater would be, according to the manufacturer, about 210 mW. This power, with a voltage of around 3.7 V and a DC-DC converter efficiency of 90%, would result in an additional battery current of around 63 mA. If we consider the case in which the battery had a duration of one month ( t m e a s = 2 s, N m e a s = 5 and t s l e e p = 240 s), only C C m e a s would change with the new sensor, increasing from 194 mAs to 348 mAs, while the value of both C C s l e e p and C C u p l o a d would remain the same. As a result we would obtain a consumption per cycle of 2011 mAs instead of 1237 mAs, and now the battery would last approximately 18 days, that is, about a 40% less.
We would also like to comment on some of the limitations and disadvantages of our design. In our view, the main one is the need for maintenance, i.e., the need to recharge the battery and the possible recalibration due to sensor ageing, although the latter is common to all the systems based on MOX sensors. Another aspect that could be seen as a disadvantage is the use of WiFi as a communication system, as its power consumption is quite high. However, as we said before, it also has an important advantage, as the WiFi infrastructure is available in many places and is directly usable without the need of any additional gateway.

4. Conclusions

In this work we showed the complete development at software and hardware level (including the development of a PCB) of a battery-operated IoT system for the measurement with TGS26xx series gas sensors by Figaro. The system uses the method of measurement in the initial action period, which makes it viable to be powered with batteries. This strategy allows to make the battery duration about 42 times longer (with respect to measuring using a heating period of 2–3 min as recommended by the manufacturer) in a typical use scenario, with measurements every 240 s. Therefore, with the proposed method it would be possible to power the system with a small solar cell, which would recharge the daily consumption of the battery. Besides, we kept the cost of the developed system very low, thanks to the use of common hardware and free software.
It has also been shown that storing several measurements (using the RTC memory of the SoC ESP8266EX) and uploading them as a batch to the IoT platform extends the battery duration, because the time in which the Wi-Fi modem works is reduced. However, this improvement in consumption due to measurement storage has an asymptotic behaviour, so it is not practical to accumulate more than 3 to 5 measurements.
Finally, regarding our future work we will focus on applying the methodology presented in this work to more modern sensors, with I2C digital interface, whose heater consumes less power, and we will also consider the use of lower-power wireless communications, such as Bluetooth or LoRa.

Supplementary Materials

The following are available online at https://www.mdpi.com/1424-8220/19/14/3183/s1, Figure S1: Typical initial action of a duty cycling gas sensor (red line), versus a continuously energized one (black line), Figure S2: Image of one of the ThingSpeak IoT platform pages.

Author Contributions

C.J.G.-O. has designed and coordinated the whole work. He carried out part of the software, obtained and analyzed the results and wrote a great part of the paper. M.M.-M. focused his work on the initial documentation, the introduction of the paper and the part corresponding to the initial action period. H.M.G.-V. wrote and reviewed a large part of the paper, and participated in the analysis of the results. A.G.-M. contributed to the design and assembly of the final PCB, and collaborated in the analysis and discussion of the results. Finally, R.G.-C. made part of the software and also collaborated in the analysis of the results.

Funding

This work has been partly supported by “Junta de Extremadura” and “Fondo Europeo de Desarrollo Regional” through the grant GR18100.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADCAnalog Digital Converter
GPIOGeneral Purpose Input Output
I2CInter-Integrated Circuit Bus
ICAIndependent Component Analysis
IoTInternet of Things
JSONJavaScript Object Notation
MEMSMicroelectromechanical systems
MOXMetal Oxide Semiconductor
OTAOver the Air programming
PCAPrincipal Component Analysis
PCBPrinted Circuit Board
RTCReal-Time Clock
SoCSystem on Chip
SPISerial Peripheral Interface
SVMSupport Vector Machines
WSNWireless sensor network

References

  1. Yick, J.; Mukherjee, B.; Ghosal, D. Wireless sensor network survey. Comput. Netw. 2008, 52, 2292–2330. [Google Scholar] [CrossRef]
  2. Mukherjee, N.; Neogy, S.; Roy, S. Building Wireless Sensor Networks: Theoretical and Practical Perspectives; CRC Press: Boca Raton, FL, USA, 2015; p. 254. [Google Scholar]
  3. Burgués, J.; Marco, S. Low Power Operation of Temperature-Modulated Metal Oxide Semiconductor Gas Sensors. Sensors 2018, 18, 339. [Google Scholar] [CrossRef] [PubMed]
  4. Peterson, P.J.D.; Aujla, A.; Grant, K.H.; Brundle, A.G.; Thompson, M.R.; Vande Hey, J.; Leigh, R.J. Practical Use of Metal Oxide Semiconductor Gas Sensors for Measuring Nitrogen Dioxide and Ozone in Urban Environments. Sensors 2017, 17, 1653. [Google Scholar] [CrossRef] [PubMed]
  5. Baranov, A.; Spirjakin, D.; Akbari, S.; Somov, A. Optimization of power consumption for gas sensor nodes: A survey. Sens. Actuators A Phys. 2015, 233, 279–289. [Google Scholar] [CrossRef]
  6. Figaro Engineering Inc. Figaro Combustible Gas Sensors. 2019. Available online: http://www.figarosensor.com/feature/combustible-gas-sensors.html (accessed on 28 June 2019).
  7. Standard EN50194-2000. Electrical Apparatus for the Detection of Combustible Gases in Domestic Premises: Test Methods and Performance Requirements; CENELEC: Brussels, Belgium, 2000. [Google Scholar]
  8. Ihokura, K.; Watson, J. The Stannic Oxide Gas Sensor Principles and Applications; CRC Press: Boca Raton, FL, USA, 1994. [Google Scholar]
  9. Piyare, R.; Murphy, A.L.; Magno, M.; Benini, L. On-Demand LoRa: Asynchronous TDMA for Energy Efficient and Low Latency Communication in IoT. Sensors 2018, 18, 3718. [Google Scholar] [CrossRef] [PubMed]
  10. Darroudi, S.M.; Caldera-Sànchez, R.; Gomez, C. Bluetooth Mesh Energy Consumption: A Model. Sensors 2019, 19, 1238. [Google Scholar] [CrossRef] [PubMed]
  11. Addabbo, T.; Fort, A.; Mugnaini, M.; Parri, L.; Parrino, S.; Pozzebon, A.; Vignoli, V. A low power IoT architecture for the monitoring of chemical emissions. Acta IMEKO 2019, 8, 53–61. [Google Scholar] [CrossRef]
  12. Yin, X.; Zhang, L.; Tian, F.; Zhang, D. Temperature Modulated Gas Sensing E-Nose System for Low-Cost and Fast Detection. IEEE Sens. J. 2016, 16, 464–474. [Google Scholar] [CrossRef]
  13. Baek, Y.; Atiq, M.K.; Kim, H.S. Adaptive Preheating Duration Control for Low-Power Ambient Air Quality Sensor Networks. Sensors 2014, 14, 5536–5551. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Macías, M.M.; Orellana, C.J.G.; Velasco, H.M.G.; Manso, A.G.; Garzón, J.E.A.; Santamaría, H.S. Gas sensor measurements during the initial action period of duty-cycling for power saving. Sens. Actuators B Chem. 2017, 239, 1003–1009. [Google Scholar] [CrossRef]
  15. Dutta, P.K.; Culler, D.E. System software techniques for low-power operation in wireless sensor networks. In Proceedings of the IEEE/ACM International Conference on Computer-Aided Design, Digest of Technical Papers, ICCAD, San Jose, CA, USA, 6–10 November 2005; Volume 2005, pp. 924–931. [Google Scholar]
  16. Alippi, C.; Anastasi, G.; Di Francesco, M.; Roveri, M. Energy management in wireless sensor networks with energy-hungry sensors. IEEE Instrum. Meas. Mag. 2009, 12, 16–23. [Google Scholar] [CrossRef]
  17. Figaro Engineering Inc. Technical Information on Usage of TGS Sensors for Toxic and Explosive Gas Leak Detectors; Figaro Engineering Inc.: Osaka, Japan, 2005. [Google Scholar]
  18. Espressif IOT Team. ESP8286EX Datasheet. 2018. Available online: https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf (accessed on 15 March 2019).
  19. Espressif IOT Team. ESP8286 Low Power Solutions. 2018. Available online: https://www.espressif.com/sites/default/files/documentation/9b-esp8266-low_power_solutions_en.pdf (accessed on 15 March 2019).
  20. Figaro Engineering Inc. Technical Information for TGS2620. 2013. Available online: http://www.figarosensor.com/product/data/Long%202620C00%20Layout%201013.pdf (accessed on 10 June 2019).
  21. Dutta, L.; Talukdar, C.; Hazarika, A.; Bhuyan, M. A Novel Low-Cost Hand-Held Tea Flavor Estimation System. IEEE Trans. Ind. Electron. 2018, 65, 4983–4990. [Google Scholar] [CrossRef]
  22. Itoh, T.; Akamatsu, T.; Tsuruta, A.; Shin, W. Selective detection of target volatile organic compounds in contaminated humid air using a sensor array with principal component analysis. Sensors 2017, 17, 1662. [Google Scholar]
  23. Kiani, S.; Minaei, S.; Ghasemi-Varnamkhasti, M. Real-time aroma monitoring of mint (Mentha spicata L.) leaves during the drying process using electronic nose system. Measurement 2018, 124, 447–452. [Google Scholar] [CrossRef]
  24. Romain, A.; Nicolas, J. Long term stability of metal oxide-based gas sensors for e-nose environmental applications: An overview. Sens. Actuators B Chem. 2010, 146, 502–506. [Google Scholar] [CrossRef] [Green Version]
  25. Macías Macías, M.; Agudo, J.E.; García Manso, A.; Orellana García, C.J.; González Velasco, H.M.; Gallardo Caballero, R. Improving Short Term Instability for Quantitative Analyses with Portable Electronic Noses. Sensors 2014, 14, 10514–10526. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Texas Instruments. ADS1100 Datasheet. 2003. Available online: http://www.ti.com/lit/ds/symlink/ads1100.pdf (accessed on 25 March 2019).
  27. ThingSpeak Home Page. Available online: http://www.thingspeak.com (accessed on 15 March 2019).
Figure 1. Reduction in the power consumption of MOX gas sensors in the last decades [3].
Figure 1. Reduction in the power consumption of MOX gas sensors in the last decades [3].
Sensors 19 03183 g001
Figure 2. Correlations of data from three sensors of the same model. S1 and S2 are permanently powered, while S3 is the switched sensor. (a) S1 vs. S2 for n = 1 , 3 , 5 , 10 , 20 , 40 , 100 , 200 s. (b) S1 vs. S3 for n = 1 , 3 , 5 , 10 , 20 , 40 , 100 , 200 s. Taken from [14].
Figure 2. Correlations of data from three sensors of the same model. S1 and S2 are permanently powered, while S3 is the switched sensor. (a) S1 vs. S2 for n = 1 , 3 , 5 , 10 , 20 , 40 , 100 , 200 s. (b) S1 vs. S3 for n = 1 , 3 , 5 , 10 , 20 , 40 , 100 , 200 s. Taken from [14].
Sensors 19 03183 g002
Figure 3. Response of the three sensors, for a period between 72,000 and 75,000 s, showing the effect of the application of the method described in [14].
Figure 3. Response of the three sensors, for a period between 72,000 and 75,000 s, showing the effect of the application of the method described in [14].
Sensors 19 03183 g003
Figure 4. Block diagram of the ESP8266EX SoC.
Figure 4. Block diagram of the ESP8266EX SoC.
Sensors 19 03183 g004
Figure 5. (a) A photograph of the TGS2620 sensor. (b) Measurement circuit recommended by the manufacturer [20]. It is important to maintain the polarity of the sensor element.
Figure 5. (a) A photograph of the TGS2620 sensor. (b) Measurement circuit recommended by the manufacturer [20]. It is important to maintain the polarity of the sensor element.
Sensors 19 03183 g005
Figure 6. Schematic corresponding to the elements of the ESP-12E module.
Figure 6. Schematic corresponding to the elements of the ESP-12E module.
Sensors 19 03183 g006
Figure 7. Schematic showing the TGS2620 sensor and the external ADC converter.
Figure 7. Schematic showing the TGS2620 sensor and the external ADC converter.
Sensors 19 03183 g007
Figure 8. Schematic where the charging circuit of the battery that powers the design is shown.
Figure 8. Schematic where the charging circuit of the battery that powers the design is shown.
Sensors 19 03183 g008
Figure 9. Schematic corresponding to the control and adjustment circuit of the power supply.
Figure 9. Schematic corresponding to the control and adjustment circuit of the power supply.
Sensors 19 03183 g009
Figure 10. Diagram of the software developed.
Figure 10. Diagram of the software developed.
Sensors 19 03183 g010
Figure 11. Image showing both sides of the final assembly.
Figure 11. Image showing both sides of the final assembly.
Sensors 19 03183 g011
Figure 12. Typical evolution of the power consumption, considering a batch of 4 measurements and a rest period of 20 s.
Figure 12. Typical evolution of the power consumption, considering a batch of 4 measurements and a rest period of 20 s.
Sensors 19 03183 g012
Figure 13. Charge consumed in the “measuring-only” state, as a function of the measurement time ( t m e a s ).
Figure 13. Charge consumed in the “measuring-only” state, as a function of the measurement time ( t m e a s ).
Sensors 19 03183 g013
Figure 14. Estimated duration of a 750 mAh battery, keeping the deep-sleep time between measurements ( t s l e e p ) equal to 180 s, as a function of N m e a s and t m e a s .
Figure 14. Estimated duration of a 750 mAh battery, keeping the deep-sleep time between measurements ( t s l e e p ) equal to 180 s, as a function of N m e a s and t m e a s .
Sensors 19 03183 g014
Figure 15. Estimated duration of a 750 mAh battery, keeping the number of measurements between uploads ( N m e a s ) equal to 5, as a function of t m e a s and t s l e e p .
Figure 15. Estimated duration of a 750 mAh battery, keeping the number of measurements between uploads ( N m e a s ) equal to 5, as a function of t m e a s and t s l e e p .
Sensors 19 03183 g015
Table 1. Summary of the ESP8266EX’s low-power modes.
Table 1. Summary of the ESP8266EX’s low-power modes.
ItemModem-SleepLight-SleepDeep-Sleep
GPIO stateunchangedunchangedunchanged
Wi-FiOFFOFFOFF
System clockONOFFOFF
RTCONONON
CPUONPendingOFF
Substrate current15 mA0.4 mA≈20  μ A
Table 2. Summary of the elements activated at each time.
Table 2. Summary of the elements activated at each time.
ItemMeasuringUploading to IoTWaiting between Measurements
ESP8266-CPUONONDeep-Sleep
ESP8266-Wi-FiOFFONOFF
Measurement circuitONOFFOFF
Expected consumption≈60 mA≈85 mA (with peaks)≈20  μ A
Table 3. Consumption in the “waiting between measurements” state. The real values are the average result of 15 measurements.
Table 3. Consumption in the “waiting between measurements” state. The real values are the average result of 15 measurements.
JumperExpected CurrentMeasured Real ValueConsumed Charge in 60 sConsumed Charge in 120 sConsumed Charge in 240 s
JP_PW (Global)≈46  μ A42.8 ± 0.3 μ A2.57  ± 0.02  mAs5.14  ± 0.04  mAs10.27  ± 0.07  mAs
JP_PW2 (Meas. Circuit)≈0  μ A0.02  ± 0.01 μ A1.2  ± 0.6 μ As2.4  ± 1 μ As4.8  ± 2 μ As
JP_PW3 (ESP8266)≈20  μ A28.6  ± 0.4 μ A1.72  ± 0.02  mAs3.43  ± 0.05  mAs6.9  ± 0.1  mAs
Table 4. Consumption in “measuring-only” state. Data for different values of t m e a s are shown.
Table 4. Consumption in “measuring-only” state. Data for different values of t m e a s are shown.
Measurement Time ( t m e a s )Average CurrentAverage Active TimeConsumed Charge
1 s69.3  ± 0.5  mA1.48  ± 0.01  s102.6  ± 1.7  mAs
2 s79.1  ± 0.2  mA2.44  ± 0.01  s193.9  ± 0.9  mAs
3 s84.3  ± 0.3  mA3.47  ± 0.01  s292.5  ± 1.6  mAs
4 s80.5  ± 0.4  mA4.45  ± 0.01  s358.1  ± 1.7  mAs
5 s81.5  ± 0.1  mA5.43  ± 0.01  s443.4  ± 0.4  mAs
Table 5. Estimated battery life for several cases of interest. The capacity of the battery is considered to be 750 mAh.
Table 5. Estimated battery life for several cases of interest. The capacity of the battery is considered to be 750 mAh.
Measurement Time ( t m e a s )Number of Measurements ( N m e a s )Deep-Sleep Time ( t m e a s )Cycle Time ( t c y c l e )Cycle Charge ( C C c y c l e )Battery Duration ( t b a t ) in Days
1560 s310.4 s776.8 mAs12.5
21120 s120.6 s417.8 mAs9.4
25120 s615.4 s1211.8 mAs15.9
25180 s915.4 s1225.6 mAs23.4
110180 s1827.6 s2229.94 mAs25.6
25240 s1215.4 s1237.5 mAs30.7
35240 s1220.4 s1659.6 mAs23.0
110240 s2417.4 s1411.3 mAs53.5

Share and Cite

MDPI and ACS Style

García-Orellana, C.J.; Macías-Macías, M.; González-Velasco, H.M.; García-Manso, A.; Gallardo-Caballero, R. Low-Power and Low-Cost Environmental IoT Electronic Nose Using Initial Action Period Measurements. Sensors 2019, 19, 3183. https://doi.org/10.3390/s19143183

AMA Style

García-Orellana CJ, Macías-Macías M, González-Velasco HM, García-Manso A, Gallardo-Caballero R. Low-Power and Low-Cost Environmental IoT Electronic Nose Using Initial Action Period Measurements. Sensors. 2019; 19(14):3183. https://doi.org/10.3390/s19143183

Chicago/Turabian Style

García-Orellana, Carlos J., Miguel Macías-Macías, Horacio M. González-Velasco, Antonio García-Manso, and Ramón Gallardo-Caballero. 2019. "Low-Power and Low-Cost Environmental IoT Electronic Nose Using Initial Action Period Measurements" Sensors 19, no. 14: 3183. https://doi.org/10.3390/s19143183

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

Article Metrics

Back to TopTop