CN106093136A - A kind of application algorithm of semiconductor gas sensor - Google Patents

A kind of application algorithm of semiconductor gas sensor Download PDF

Info

Publication number
CN106093136A
CN106093136A CN201610394872.XA CN201610394872A CN106093136A CN 106093136 A CN106093136 A CN 106093136A CN 201610394872 A CN201610394872 A CN 201610394872A CN 106093136 A CN106093136 A CN 106093136A
Authority
CN
China
Prior art keywords
value
sensor
higher limit
gas sensor
semiconductor gas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610394872.XA
Other languages
Chinese (zh)
Other versions
CN106093136B (en
Inventor
于红勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guli Tech Co Ltd
Original Assignee
Guli Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guli Tech Co Ltd filed Critical Guli Tech Co Ltd
Priority to CN201610394872.XA priority Critical patent/CN106093136B/en
Publication of CN106093136A publication Critical patent/CN106093136A/en
Application granted granted Critical
Publication of CN106093136B publication Critical patent/CN106093136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/02Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance
    • G01N27/04Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance
    • G01N27/12Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance of a solid body in dependence upon absorption of a fluid; of a solid body in dependence upon reaction with a fluid, for detecting components in the fluid

Abstract

The invention discloses the application algorithm of a kind of semiconductor gas sensor, including: step 1, system initialization, set higher limit and the difference of alarm detection;Step 2, obtains an AD value of sensor, and compares with higher limit, when an AD value is more than higher limit alarm, returns step 2;Step 3, when an AD value is less than higher limit, is stored as basic value by an AD value;Step 4, obtains the 2nd AD value of sensor, and compares with higher limit, when the 2nd AD value is more than higher limit alarm, returns step 4;Step 5, when the 2nd AD value is more than basic value, returns step 4;Step 6, when the 2nd AD value is more than basic value with difference sum less than higher limit and the 2nd AD value, is stored as basic value by the 2nd AD value, releases warning simultaneously;And return step 4.Invention additionally discloses a kind of semiconductor gas sensor testing circuit.The present invention has been truly realized circuit according to different sensors or the different self adaptation using environment.

Description

A kind of application algorithm of semiconductor gas sensor
Technical field
The present invention relates to the application of a kind of gas sensor, the application being specifically related to a kind of semiconductor gas sensor is calculated Method.
Background technology
The sensitive material of MQ series semiconductor gas sensor is the metal-oxide semiconductor (MOS) using activity the highest, the most often Be SnO2, the features such as it is simple that it has drive circuit, the long-life, low cost, to an oxidation in wider concentration range The fuel gas such as carbon, methane has good sensitivity.
But in actually used, being limited to production technology and use environment, causing in batch production, different sensors is sampled Detected value out has the biggest drift, and same sensor is under difference uses temperature and humidity, and the detected value of sampling also can There is the biggest drift, it is impossible to measure output accurately.
Summary of the invention
The present invention is directed to the deficiency that above-mentioned prior art exists, propose the application algorithm of a kind of semiconductor gas sensor, According to the characteristic of semiconductor gas sensor, automatically sample and set the basic value of warning, utilizing difference to calculate alarm voltage Value, has been truly realized circuit according to different sensors or the different self adaptation using environment.
For solving the problems referred to above, the technical solution used in the present invention is: the application algorithm of a kind of semiconductor gas sensor, Specifically include following steps:
Step 1, system initialization, set higher limit and the difference of alarm detection;
Step 2, obtains an AD value of sensor, and compares with higher limit, when an AD value is more than higher limit alarm, Return step 2;
Step 3, when an AD value is less than higher limit, is stored as basic value by an AD value;
Step 4, obtains the 2nd AD value of sensor, and compares with higher limit, when the 2nd AD value is more than higher limit alarm, Return step 4;
Step 5, when the 2nd AD value is more than basic value, returns step 4;
Step 6, when the 2nd AD value is more than basic value with difference sum less than higher limit and the 2nd AD value, by the 2nd AD Value is stored as basic value, releases warning simultaneously;And return step 4.
Further, in described step 2, obtaining an AD value of sensor, wherein the acquisition time of an AD value is for being System powers on latter 2 minutes.
Further, described sensor is the semiconductor gas sensor of MQ series.
A kind of semiconductor gas sensor testing circuit, including: sensor circuit, controller, alarm and display lamp electricity Road, the outfan of described sensor connects controller, and the outfan of described controller connects audible-visual annunciator and indicator light circuit.
Further, described sensor circuit includes sensor, resistance R1, resistance R2 and electric capacity C11, the output of sensor End is connected with the input of controller, and audible-visual annunciator includes audion Q1, buzzer BEEP1 resistance R5 and alarm lamp L5-L8, Base stage and one end of resistance R5 of audion are connected with the outfan of controller, and the emitter stage of audion connects buzzer BEEP1, The other end of resistance R5 is connected with alarm lamp L5-L8, and the outfan of controller is connected with display lamp L1-L4 by resistance R4,
Further, described controller uses LGT8 single-chip microcomputer.
Further, described sensor is the semiconductor gas sensor of MQ series.
Beneficial effects of the present invention: inventive sensor uses the semiconductor gas sensor of MQ series, according to quasiconductor The characteristic of gas sensor, automatically samples and sets the basic value of warning, utilizing difference to calculate alarm voltage value, be truly realized Whether circuit, according to different sensors or the different self adaptation using environment, is less than basic value by sensors A D value, is In order to sensor along with using for a long time, aging, the pedestal voltage value of sensor can reduce, and is always maintained at the base of MCU record Plinth value is the lowest base value of sensor, it is ensured that the integrated circuit sensitivity to gas.
Accompanying drawing explanation
Fig. 1 is the application algorithm flow chart that the present invention proposes a kind of semiconductor gas sensor;
Fig. 2 is the control circuit figure that the present invention proposes described in a kind of semiconductor gas sensor testing circuit;
Fig. 3 is the sensor circuit figure that the present invention proposes described in a kind of semiconductor gas sensor testing circuit;
Fig. 4 is the indicator light circuit figure that the present invention proposes described in a kind of semiconductor gas sensor testing circuit;
Fig. 5 is the sound and light alarm circuit figure that the present invention proposes described in a kind of semiconductor gas sensor testing circuit.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is further detailed.
Embodiment one
See Fig. 1, propose the application algorithm flow chart of a kind of semiconductor gas sensor for the present invention.
As it is shown in figure 1, the application algorithm of a kind of semiconductor gas sensor, comprise the following steps:
Step 1, system initialization, set higher limit and the difference of alarm detection;
Step 2, obtains an AD value of sensor, and compares with higher limit, when an AD value is more than higher limit alarm, Return step 2;
Step 3, when an AD value is less than higher limit, is stored as basic value by an AD value;
Step 4, obtains the 2nd AD value of sensor, and compares with higher limit, when the 2nd AD value is more than higher limit alarm, Return step 4;
Step 5, when the 2nd AD value is more than basic value, returns step 4;
Step 6, when the 2nd AD value is more than basic value with difference sum less than higher limit and the 2nd AD value, by the 2nd AD Value is stored as basic value, releases warning simultaneously;And return step 4.
The most in step 2, an AD value of sensor is obtained, after wherein the acquisition time of an AD value is system electrification 2 minutes.Because semiconductor gas sensor characteristic, need to preheat 2 minutes and could enter normal operating conditions, therefore, in preheating 2 Detection is started after minute.
In the embodiment of the present invention, sensor uses the semiconductor gas sensor of MQ series.Sense according to semi-conductor gas The characteristic of device, automatically samples and sets the basic value of warning, utilizing difference to calculate alarm voltage value, be truly realized circuit root According to different sensors or the different self adaptation using environment.
Rule of judgment in step 6, whether sensors A D value, less than basic value, is in order to sensor is along with for a long time Use, aging, the pedestal voltage value of sensor can reduce, and the basic value being always maintained at MCU record is the lowest base of sensor Value, it is ensured that the integrated circuit sensitivity to gas.
Embodiment two
The CO alarming value concentration that the difference relationship that the present invention sets when system initialization sets to product, specifically uses number Value needs to adjust according to actual product.Arranging sensor higher limit is a upper limit guard value, more than this numerical value, produces Product can be reported to the police always, and specific product can adjust accordingly.Workflow is only described, not as reality below by way of citing numerical value Product selects numerical value.
Using MQ-9 semiconductor gas sensor, load resistance is 1K, and the heating voltage of sensor is 5V, setting sensor Upper limit of detection value is 4.5V, and the difference of use is 2V.
When normal use environment, owing to not having the fuel gas such as CO in environment, not having alarm condition, detailed process is such as Under:
1. system electrification, controller is started working, and initializes each parameter, and sensor heats 2 minutes, does not detects in 2 minutes Sensors A D value;
2. arriving preheating time, reading current sensor AD value, such as detected value is 0.5V, compares detected value and is not above Limit value 4.5V, enters next step, and the 0.5V numerical value currently read is saved as basic value;
3. again read off sensors A D value, be such as 1V, compare detected value and be not above higher limit 4.5V, enter next Step, compares reading value and is not above 3V (basic value 1V+ difference 2V=3V), enter next step, compare reading value and exceed basic value, Cancel alarm condition, be recycled to the 3rd step and start to again read off sensors A D value.
Embodiment three
Starting normal use not report to the police, occur the fuel gas such as CO in environment, enter alarm condition, its process is concrete such as Under:
1. system electrification, single-chip microcomputer is started working, and initializes each parameter, and sensor heats 2 minutes (because of semi-conductor gas Sensor characteristics, need to preheat 2 minutes could enter normal operating conditions), do not detect sensors A D value in 2 minutes.
2. arriving preheating time, read current sensor AD value, illustrate such as 0.5V, compares detected value and is not above higher limit 4.5V, enters next step, and the 0.5V numerical value currently read is saved as basic value;
3. again read off sensors A D value, be such as 4V, compare detected value and be not above higher limit 4.5V, enter next Step, compares reading value more than 3V (basic value 1V+ difference 2V=3V), enters next step, and beginning sound, light alarm condition are recycled to 3rd step starts to again read off sensors A D value.Until in environment, CO concentration is reduced to detected value is 1V, releasing sound, light warning shape State, and reenter the 3rd step start the cycle over reading sensors A D value.
Embodiment four
During use, in environment, the fuel gas such as CO exceeds standard, and concrete detection process is as follows:
1. system electrification, single-chip microcomputer is started working, and initializes each parameter, and sensor heats 2 minutes, does not detects in 2 minutes Sensors A D value;
2. arriving preheating time, read current sensor AD value, illustrate such as 4.6V, compares detected value and exceedes higher limit 4.5V, Entering next step, beginning sound, light are reported to the police, and are recycled to second beginning, and sensors A D value is read in circulation again, until detected value Low 4.5V higher limit excessively, enters into the 3rd step;
3. again read off sensors A D value, be such as 1V, compare detected value and be not above higher limit 4.5V, enter next Step, compares reading value and is not above 3V (basic value 1V+ difference 2V=3V), enter next step, compare reading value and exceed basic value, Cancel alarm condition, be recycled to the 3rd and start to again read off sensors A D value.
Embodiment five
Seeing Fig. 2 to Fig. 5, wherein Fig. 2 is the control that the present invention proposes described in a kind of semiconductor gas sensor testing circuit Circuit diagram processed;Fig. 3 is the sensor circuit figure that the present invention proposes described in a kind of semiconductor gas sensor testing circuit;Fig. 4 is The present invention proposes the indicator light circuit figure described in a kind of semiconductor gas sensor testing circuit;Fig. 5 is that the present invention proposes one Sound and light alarm circuit figure described in semiconductor gas sensor testing circuit.
As shown in Figures 2 to 5, the present invention proposes a kind of semiconductor gas sensor inspection according to the consistent embodiment of embodiment four Slowdown monitoring circuit, including: sensor circuit, controller, alarm and indicator light circuit, the outfan of described sensor connects control Device, the outfan of described controller connects audible-visual annunciator and indicator light circuit.
Wherein sensor circuit includes sensor, resistance R1, resistance R2 and electric capacity C11, the outfan of sensor and control The input of device connects, and audible-visual annunciator includes audion Q1, buzzer BEEP1 resistance R5 and alarm lamp L5-L8, audion One end of base stage and resistance R5 is connected with the outfan of controller, and the emitter stage of audion connects buzzer BEEP1, resistance R5's The other end is connected with alarm lamp L5-L8, and the outfan of controller is connected with display lamp L1-L4 by resistance R4,
Preferably, controller uses LGT8 single-chip microcomputer.
Sensor is the semiconductor gas sensor of MQ series.
Sensor circuit passes through 5V power voltage supply, and after system electrification, indicator light circuit is lighted, and represents normal work, works as biography Sensor detects when fuel gas exceeds standard, and drives audion Q1 to make audible-visual annunciator report to the police by controller.
Above in conjunction with accompanying drawing, the preferred embodiment for the present invention is explained in detail, but the invention is not restricted to above-mentioned enforcement Mode, in the ken that those of ordinary skill in the art are possessed, it is also possible on the premise of without departing from present inventive concept Make a variety of changes.Many other can be made without departing from the spirit and scope of the present invention to change and remodeling.Should be appreciated that this Bright being not limited to specific embodiment, the scope of the present invention is defined by the following claims.

Claims (7)

1. the application algorithm of a semiconductor gas sensor, it is characterised in that comprise the following steps:
Step 1, system initialization, set higher limit and the difference of alarm detection;
Step 2, obtains an AD value of sensor, and compares with higher limit, when an AD value is more than higher limit alarm, returns Step 2;
Step 3, when an AD value is less than higher limit, is stored as basic value by an AD value;
Step 4, obtains the 2nd AD value of sensor, and compares with higher limit, when the 2nd AD value is more than higher limit alarm, returns Step 4;
Step 5, when the 2nd AD value is more than basic value, returns step 4;
Step 6, when the 2nd AD value is more than basic value with difference sum less than higher limit and the 2nd AD value, deposits the 2nd AD value It is worth based on storage, releases warning simultaneously;And return step 4.
The application algorithm of a kind of semiconductor gas sensor the most according to claim 1, it is characterised in that described step 2 In, obtain an AD value of sensor, wherein the acquisition time of an AD value is after system electrification 2 minutes.
The application algorithm of a kind of semiconductor gas sensor the most according to claim 1, it is characterised in that described sensor Semiconductor gas sensor for MQ series.
4. a kind of quasiconductor of the application algorithm of the employing a kind of semiconductor gas sensor according to any one of claim 1-3 Gas sensor testing circuit, it is characterised in that including: sensor circuit, controller, alarm and indicator light circuit, described The outfan of sensor connects controller, and the outfan of described controller connects audible-visual annunciator and indicator light circuit.
A kind of semiconductor gas sensor testing circuit the most according to claim 4, it is characterised in that described sensor electricity Road includes sensor, resistance R1, resistance R2 and electric capacity C11, and the outfan of sensor is connected with the input of controller, acousto-optic report Alert device include audion Q1, buzzer BEEP1 resistance R5 and alarm lamp L5-L8, the base stage of audion and one end of resistance R5 with The outfan of controller connects, and the emitter stage of audion connects buzzer BEEP1, the other end of resistance R5 and alarm lamp L5-L8 Connecting, the outfan of controller is connected with display lamp L1-L4 by resistance R4.
A kind of semiconductor gas sensor testing circuit the most according to claim 4, it is characterised in that described controller is adopted Use LGT8 single-chip microcomputer.
A kind of semiconductor gas sensor testing circuit the most according to claim 4, it is characterised in that described sensor is The semiconductor gas sensor of MQ series.
CN201610394872.XA 2016-06-06 2016-06-06 A kind of processing method of semiconductor gas sensor Active CN106093136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610394872.XA CN106093136B (en) 2016-06-06 2016-06-06 A kind of processing method of semiconductor gas sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610394872.XA CN106093136B (en) 2016-06-06 2016-06-06 A kind of processing method of semiconductor gas sensor

Publications (2)

Publication Number Publication Date
CN106093136A true CN106093136A (en) 2016-11-09
CN106093136B CN106093136B (en) 2019-09-17

Family

ID=57448113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610394872.XA Active CN106093136B (en) 2016-06-06 2016-06-06 A kind of processing method of semiconductor gas sensor

Country Status (1)

Country Link
CN (1) CN106093136B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109682858A (en) * 2018-12-19 2019-04-26 苏州慧闻纳米科技有限公司 A method of utilizing gas sensor real-time detection gas concentration

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001194330A (en) * 2000-01-13 2001-07-19 Yazaki Corp Gas alarm unit and gas alarming method
CN101599208A (en) * 2009-07-16 2009-12-09 北京联合大学 Combustible gas leakage alarm
CN201465266U (en) * 2009-07-16 2010-05-12 北京联合大学 Fuel gas leakage alarm
CN201909754U (en) * 2010-11-19 2011-07-27 上海翼捷工业安防技术有限公司 Optical gas sensor
CN102436720A (en) * 2011-09-28 2012-05-02 清华大学 Repeated alarm processing method based on data filtering
CN102721667A (en) * 2012-06-29 2012-10-10 中国科学院自动化研究所 Optical interference type intelligent gas sensor
CN105301195A (en) * 2015-10-30 2016-02-03 桂林市腾瑞电子科技有限公司 Method and system for detecting gas

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001194330A (en) * 2000-01-13 2001-07-19 Yazaki Corp Gas alarm unit and gas alarming method
CN101599208A (en) * 2009-07-16 2009-12-09 北京联合大学 Combustible gas leakage alarm
CN201465266U (en) * 2009-07-16 2010-05-12 北京联合大学 Fuel gas leakage alarm
CN201909754U (en) * 2010-11-19 2011-07-27 上海翼捷工业安防技术有限公司 Optical gas sensor
CN102436720A (en) * 2011-09-28 2012-05-02 清华大学 Repeated alarm processing method based on data filtering
CN102721667A (en) * 2012-06-29 2012-10-10 中国科学院自动化研究所 Optical interference type intelligent gas sensor
CN105301195A (en) * 2015-10-30 2016-02-03 桂林市腾瑞电子科技有限公司 Method and system for detecting gas

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109682858A (en) * 2018-12-19 2019-04-26 苏州慧闻纳米科技有限公司 A method of utilizing gas sensor real-time detection gas concentration
CN109682858B (en) * 2018-12-19 2021-09-17 苏州慧闻纳米科技有限公司 Method for detecting gas concentration in real time by using gas sensor

Also Published As

Publication number Publication date
CN106093136B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN102881120B (en) Gas leakage alarm controller with intelligent alarm threshold value and control method thereof
CN103698691B (en) Electric car bridge board automatic testing calibration method
CN201765209U (en) In-car air detecting device
CN202837402U (en) Thermistor detection apparatus
CN102183947A (en) Detection device for temperature-sensing thermal actuators
CN101930029B (en) Measuring device for detecting resistors in air-condition circuits automatically
CN110530408A (en) A kind of Transducer-fault Detecting Method, detection circuit and detector
CN106093136A (en) A kind of application algorithm of semiconductor gas sensor
CN104237762A (en) Semiconductor laser testing device, system and method
CN103090899A (en) Test device and test method for sensor
CN211454771U (en) Combustible gas leakage detection circuit capable of preventing false alarm
CN104698316A (en) Connection state detecting circuit, battery internal resistance detecting device and battery tester
CN201813072U (en) Wireless sensor network measure and control device for prefabricated substations
CN107543574B (en) Automatic detector for high-temperature aging test of airborne sensor and operation method
CN102854378B (en) Current testing circuit
CN105842560A (en) Relay protection type component testing system
CN108152712A (en) Board failure detection method and equipment
CN205427154U (en) Stifled winding measuring device that changes of motor
CN104198920B (en) Power amplifier direct current working point detector
CN203849320U (en) Automatic alarm device used for detecting current over range
CN204008908U (en) Semiconductor laser detection device, system
CN113794444A (en) Photovoltaic panel cleanliness detection and alarm method and device
CN206257036U (en) The integrated data monitoring assembly of air compressor machine
CN113671281A (en) High-voltage aging screening control system
CN204086480U (en) A kind of direct current 24V relay automatic calibrating instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant