CN102353699A - Method for sampling of humidity sensors by using square waves - Google Patents

Method for sampling of humidity sensors by using square waves Download PDF

Info

Publication number
CN102353699A
CN102353699A CN2011101511975A CN201110151197A CN102353699A CN 102353699 A CN102353699 A CN 102353699A CN 2011101511975 A CN2011101511975 A CN 2011101511975A CN 201110151197 A CN201110151197 A CN 201110151197A CN 102353699 A CN102353699 A CN 102353699A
Authority
CN
China
Prior art keywords
humidity
resistance
square wave
mcu
hygristor
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.)
Pending
Application number
CN2011101511975A
Other languages
Chinese (zh)
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.)
Ningbo Aux Group Co Ltd
Original Assignee
Ningbo Aux Group 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 Ningbo Aux Group Co Ltd filed Critical Ningbo Aux Group Co Ltd
Priority to CN2011101511975A priority Critical patent/CN102353699A/en
Publication of CN102353699A publication Critical patent/CN102353699A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Or Analyzing Materials By The Use Of Fluid Adsorption Or Reactions (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)

Abstract

The invention provides a method for sampling of humidity sensors by using square waves. The method comprises the following steps: (1) generating square waves; (2) parallelly connecting a humidity sensitive resistor RH and a first resistor R1 and then cascading a second resistor R2 to form a circuit, and respectively connecting two ends of the circuit with two I/O ports of an MCU of a one-chip microcomputer in step (1); (3) measuring voltages V2 at two ends of the second resistor R2 with the MCU of the one-chip microcomputer, and calculating the value of RH; (4) acquiring current ambient temperature T and acquiring a humidity characteristic resistance table of the sensitive resistor RH at current ambient temperature based on a humidity characteristic resistance table humidity of the sensitive resistor RH; (5) calculating the value of current humidity according to the humidity characteristic resistance table humidity of the sensitive resistor RH at current ambient temperature and the humidity characteristic resistance table humidity of the sensitive resistor RH so as to finish sampling. The method provided in the invention has the advantages of simple design of the circuit and low cost.

Description

The method that adopts square wave that humidity sensor is sampled
Technical field:
The present invention relates to field of household appliances, specifically is the method that a kind of employing square wave that is used for air-conditioning, dehumidifier is sampled to humidity sensor.
Background technology:
Along with the continuous pursuit of people to quality of life, the applied more and more of humidity sensor in household electrical appliances.At present; The sampling of humidity is all adopted the humidity sensor module of forming by comparator circuit, compensating circuit, amplifying circuit, temperature and resistance, humidity sensor, resistance, electric capacity, wiring board and integrated IC chip or the like; Completion is to the detection of ambient humidity; Output voltage signal then; Accomplish sampling by the single-chip microprocessor MCU on the control main board in the household electrical appliances again, adopt this method of sampling, the hardware circuit design of humidity sensor module is comparatively complicated; Required electronic component is more, and cost is higher.
Summary of the invention:
The technical matters that the present invention will solve is, overcomes the defective of prior art, and a kind of circuit design method that simple, lower-cost employing square wave is sampled to humidity sensor is provided.
Technical solution of the present invention is, a kind of method that adopts square wave that humidity sensor is sampled is provided, and it may further comprise the steps:
(1), produce square wave: use two I/O ports of single-chip microprocessor MCU to produce two amplitudes, frequency is identical, opposite polarity square wave, the amplitude of said square wave is V1, frequency is F;
(2), connect with second resistance R 2 again, the two ends of this circuit connect two I/O ports of MCU respectively with after hygristor RH and 1 parallel connection of first resistance R;
(3), MCU MCU measure the voltage across the second resistor R2 V2; according to the formula
Figure BSA00000511977400011
calculate the resistance RH;
(4), obtain current environmental temperature T, obtain the humidity characteristic resistance table of hygristor RH under the current environmental temperature then according to the temperature characterisitic resistance table of hygristor RH;
(5), tabling look-up according to the resistance of the humidity characteristic resistance table of the hygristor RH under the Current Temperatures and RH draws current humidity value, sampling finishes.
The method that adopts employing square wave of the present invention that humidity sensor is sampled has the following advantages:
Adopt the method for the invention to adopt circuit structure simple; The employing method only need be measured the humidity that a magnitude of voltage can obtain current environment; And adopt circuit component only to need two resistance and a temperature sensor; Cost is lower; And this method need not adopt the humidity sensor module; Promptly need not carry out type selecting to humidity sensor to environment, only the parameter that need adjust in the single-chip microprocessor MCU gets final product, and circuit design is simple, cost is lower.
As improvement, single-chip microprocessor MCU is measured the voltage V2 at second resistance R, 2 two ends in the said step (3), and single-chip microprocessor MCU is averaged after measuring repeatedly.The value that draws like this is accurate more, stable.
Description of drawings:
Accompanying drawing is the circuit theory diagrams that method adopted that the present invention adopts square wave that humidity sensor is sampled;
Embodiment:
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation.
As shown in the figure: the present invention provides a kind of method that adopts square wave that humidity sensor is sampled, and it may further comprise the steps:
(1), produce square wave: use two I/O ports of single-chip microprocessor MCU to produce two amplitudes, frequency is identical, opposite polarity square wave, the amplitude of said square wave is V1, frequency is F; The amplitude V1=5V of the square wave of Cai Yonging in the present embodiment, frequency F=1KHz.
(2), connect with second resistance R 2 again, the two ends of this circuit connect two I/O ports of MCU respectively with after hygristor RH and 1 parallel connection of first resistance R; Hygristor RH is a humidity sensor.
(3), MCU MCU measure the voltage across the second resistor R2 V2; according to the formula
Figure BSA00000511977400021
calculate the resistance RH; MCU MCU using an analog AD port connected to the second resistor R2 and the first resistor R1 between, in order to gain first the voltage across the second resistor R2.
(4), obtain current environmental temperature T, obtain the humidity characteristic resistance table of hygristor RH under the current environmental temperature then according to the temperature characterisitic resistance table of hygristor RH; The temperature characterisitic resistance table of hygristor RH and humidity characteristic resistance table all can be provided by hygristor manufacturer, are known technology.
(5), table look-up according to the resistance of the humidity characteristic resistance table of the hygristor RH under the Current Temperatures and RH and draw current humidity value.
As improvement, single-chip microprocessor MCU is measured the voltage V2 at second resistance R, 2 two ends in the said step (3), and single-chip microprocessor MCU is averaged after measuring repeatedly.The value that draws like this is accurate more, stable.
Accompanying drawing is for adopting the circuit theory diagrams of the inventive method; It comprises single-chip microprocessor MCU; Temperature sensor TM; First resistance R 1; Second resistance R 2; Hygristor RH; Said temperature sensor TM is connected with single-chip microprocessor MCU; Connect with second resistance R 2 again after said hygristor RH and 1 parallel connection of first resistance R; The 1/O1 mouth of the common port one termination single-chip microprocessor MCU of first resistance R 1 and hygristor RH; The other end connects the AD mouth of single-chip microprocessor MCU; The common port of second resistance R 2 and hygristor RH connects the AD mouth of single-chip microprocessor MCU, and the other end of second resistance R 2 connects the 1/O2 mouth of single-chip microprocessor MCU.

Claims (3)

1. method that adopts square wave that humidity sensor is sampled, it is characterized in that: it may further comprise the steps:
(1), produce square wave: use two I/O ports of single-chip microprocessor MCU to produce two amplitudes, frequency is identical, opposite polarity square wave, the amplitude of said square wave is V1, frequency is F;
(2), connect with second resistance R 2 again, the two ends of this circuit connect two I/O ports of single-chip microprocessor MCU in the step (1) respectively with after hygristor RH and 1 parallel connection of first resistance R;
(3), MCU MCU measure the voltage across the second resistor R2 V2; according to the formula
Figure FSA00000511977300011
calculate the resistance RH;
(4), obtain current environmental temperature T, obtain the humidity characteristic resistance table of hygristor RH under the current environmental temperature then according to the temperature characterisitic resistance table of hygristor RH;
(5), tabling look-up according to the resistance of the humidity characteristic resistance table of the hygristor RH under the Current Temperatures and RH draws current humidity value, sampling finishes.
2. the method that employing square wave according to claim 1 is sampled to humidity sensor is characterized in that: single-chip microprocessor MCU is measured the voltage V2 at second resistance R, 2 two ends in the said step (3), and single-chip microprocessor MCU is averaged after measuring repeatedly.
3. the method that employing square wave according to claim 1 is sampled to humidity sensor is characterized in that: the amplitude V1=5V of square wave described in the step (1), frequency F=1KHz.
CN2011101511975A 2011-06-03 2011-06-03 Method for sampling of humidity sensors by using square waves Pending CN102353699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101511975A CN102353699A (en) 2011-06-03 2011-06-03 Method for sampling of humidity sensors by using square waves

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101511975A CN102353699A (en) 2011-06-03 2011-06-03 Method for sampling of humidity sensors by using square waves

Publications (1)

Publication Number Publication Date
CN102353699A true CN102353699A (en) 2012-02-15

Family

ID=45577303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101511975A Pending CN102353699A (en) 2011-06-03 2011-06-03 Method for sampling of humidity sensors by using square waves

Country Status (1)

Country Link
CN (1) CN102353699A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104634855A (en) * 2015-02-03 2015-05-20 广东美的制冷设备有限公司 Household appliance humidity detecting method and household appliance humidity detecting device
CN104865297A (en) * 2014-02-20 2015-08-26 钰太芯微电子科技(上海)有限公司 Humidity detecting circuit and mobile terminal
CN105527317A (en) * 2014-09-29 2016-04-27 华为技术有限公司 Method and apparatus for measuring humidity
CN109539497A (en) * 2017-09-21 2019-03-29 奥克斯空调股份有限公司 A kind of intelligent air condition and its control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6165149A (en) * 1984-09-06 1986-04-03 Toshiba Corp Humidity detector
CN1499207A (en) * 2002-11-08 2004-05-26 中国人民解放军第二炮兵第一研究所 Method for measuring pseudo altemate current signal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6165149A (en) * 1984-09-06 1986-04-03 Toshiba Corp Humidity detector
CN1499207A (en) * 2002-11-08 2004-05-26 中国人民解放军第二炮兵第一研究所 Method for measuring pseudo altemate current signal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴钢: "通用机电测控教学平台的研究", 《中国优秀硕士学文论文全文数据库 信息科技辑》, 15 May 2009 (2009-05-15) *
张肇昕 等: "数字纪录式温度湿度监控仪", 《信息技术》, 30 June 2002 (2002-06-30) *
李文强 等: "一种具有温度补偿的盐雾湿度传感器的设计", 《传感器世界》, 30 November 2008 (2008-11-30) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104865297A (en) * 2014-02-20 2015-08-26 钰太芯微电子科技(上海)有限公司 Humidity detecting circuit and mobile terminal
CN105527317A (en) * 2014-09-29 2016-04-27 华为技术有限公司 Method and apparatus for measuring humidity
CN105527317B (en) * 2014-09-29 2018-12-25 华为技术有限公司 A kind of method and device of moisture measurement
CN104634855A (en) * 2015-02-03 2015-05-20 广东美的制冷设备有限公司 Household appliance humidity detecting method and household appliance humidity detecting device
CN109539497A (en) * 2017-09-21 2019-03-29 奥克斯空调股份有限公司 A kind of intelligent air condition and its control method
CN109539497B (en) * 2017-09-21 2021-01-05 奥克斯空调股份有限公司 Intelligent air conditioner and control method thereof

Similar Documents

Publication Publication Date Title
CN202928716U (en) High precision intelligent temperature measurement circuit
CN203981571U (en) A kind of infrared gas sensor signal processing circuit
CN203241165U (en) Thermal resistor temperature measurement circuit based on three-wire system
CN202648827U (en) Temperature measurement circuit, temperature acquisition system, frequency converter and temperature transmitter
CN102353699A (en) Method for sampling of humidity sensors by using square waves
TW201217961A (en) Conversion efficiency testing device and using the same
CN106248240B (en) A kind of temperature transmitter with temperature-compensating
CN203376076U (en) A temperature detection circuit for a permanent magnet synchronous motor for an electric car and a controller of the motor
CN106166329B (en) Portable detector and method based on neuromuscular electric stimulation therapy instrument
CN204631128U (en) A kind of test circuit of resonance frequency
CN103575434A (en) Pressure detection circuit
WO2016188496A1 (en) Touchscreen terminal and weight measurement method thereof
US20130043892A1 (en) Resistance measurement circuit
CN203930003U (en) A kind of simulating signal excitation system for chip detection
CN203337317U (en) Debugging and temperature compensation circuit for pressure sensor
CN211878070U (en) Test module
CN204228286U (en) A kind of Moisture Meter temperature collection circuit
US8143881B2 (en) Current measuring apparatus for power supply
CN201352255Y (en) Battery analyzer
CN210323186U (en) Current detection circuit
CN204129211U (en) A kind of base passive and wireless multi-parameter sensor intelligent electric energy meter temperature rise detecting device
CN104569069A (en) Method for sampling humidity sensor by adopting square waves
CN102095756B (en) Humidity sensing circuit with temperature compensation function
CN204155097U (en) Analog signal voltage acquisition circuit
CN203758953U (en) Humidity testing circuit with temperature compensation function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120215