Gas sensor dynamic environmental compensation using auto-calibration method
A gas sensor system and a method of operating the gas sensor system can include a group of sensors and a microcontroller that can receive sensor measurements from the group of sensors. Feedback from the group of sensors can generate a sensor offset and a pulse width modulation (PWM) demodulator can be varied to reduce the sensor offset to null and provide sensor-to-sensor variations, which are independent of error in the sensor measurements.
1 . A gas sensor system, comprising:
an electrochemical sensor configured to generate output data, wherein the output data is indicative of a concentration of a gay;
a plurality of sensors;
a microcontroller configured to receive sensor measurements from the plurality of sensors wherein the microcontroller is configured to generate a pulse width modulated (PWM) signal based on the sensor measurements; and
a pulse width modulation (PWM) demodulator configured to generate a compensation signal based on the PWM signal, wherein the compensation signal is utilized to reduce a sensor offset in the output data to null and provide sensor-to-sensor variations, which are independent of error in the sensor measurements.
2 . The gas sensor system of claim 1 wherein the plurality of sensors comprises at least one temperature sensor.
3 . The gas sensor system of claim 1 wherein the plurality of sensors comprises at least one pressure sensor.
4 . The gas sensor system of claim 1 wherein the plurality of sensors comprises at least one humidity sensor.
5 . The gas sensor system of claim 1 , wherein the plurality of sensors comprises a humidity sensor and a temperature sensor wherein the PWM signal is generated based on temperature sensor value and humidity sensor value determined by the humidity sensor and the temperature sensor.
6 . The gas sensor system of claim 1 , wherein the PWM signal is varied in a closed loop to nullify the sensor offset.
7 . A method of operating a gas sensor system, the method comprising:
receiving, by a microcontroller, an output data indicative of a concentration of a gas;
receiving, by the microcontroller, sensor measurements from a plurality of sensors;
generating by the microcontroller, a pulse width modulated (PWM) signal based on the sensor measurements; and
generating a compensation signal based on the PWM signal, wherein the compensation signal is utilized to reduce the sensor offset to null and provide sensor-to-sensor variations independent of error in the sensor measurements.
8 . The method of claim 7 wherein the plurality of sensors comprises at least one temperature sensor.
9 . The method of claim 7 wherein the plurality of sensors comprises at least one pressure sensor.
10 . The method of claim 7 wherein the plurality of sensors comprises at least one humidity sensor.
11 . The method of claim 7 , wherein the plurality of sensors comprises a humidity sensor and a temperature sensor, wherein the PWM signal is generated based on temperature sensor value and a humidity sensor value.
12 . The method of claim 7 , wherein the PWM signal is varied in a closed loop to nullify the sensor offset.
13 . A gas sensor system, comprising:
at least one processor and a memory storing instructions to cause the at least one processor to perform:
receiving an output data indicative of a concentration of a gas:
receiving sensor measurements from a plurality of sensors;
generating a pulse width modulated (PWM) signal based on the sensor measurements; and
generating a compensation signal based on the PWM signal, wherein the compensation signal is utilized to reduce the sensor offset to null and provide sensor-to-sensor variations independent of error in the sensor measurements.
14 . The gas sensor system of claim 13 , wherein the plurality of sensors comprises a humidity sensor and a temperature sensor, wherein the PWM signal is generated based on a temperature sensor value and a humidity sensor value.
15 . The gas sensor system of claim 13 wherein the instructions cause the at least one processor to perform: varying the PWM signal in a closed loop to nullify the sensor offset.