WO2019174123A1 - Intelligent humidity sensor - Google Patents

Intelligent humidity sensor Download PDF

Info

Publication number
WO2019174123A1
WO2019174123A1 PCT/CN2018/087817 CN2018087817W WO2019174123A1 WO 2019174123 A1 WO2019174123 A1 WO 2019174123A1 CN 2018087817 W CN2018087817 W CN 2018087817W WO 2019174123 A1 WO2019174123 A1 WO 2019174123A1
Authority
WO
WIPO (PCT)
Prior art keywords
circuit
humidity sensor
voltage
output
resistor
Prior art date
Application number
PCT/CN2018/087817
Other languages
French (fr)
Chinese (zh)
Inventor
杜伟略
刘新平
平毅
谈向萍
肖国玲
Original Assignee
无锡职业技术学院
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 无锡职业技术学院 filed Critical 无锡职业技术学院
Publication of WO2019174123A1 publication Critical patent/WO2019174123A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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/048Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance for determining moisture content of the material
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21137Analog to digital conversion, ADC, DAC

Definitions

  • the invention relates to an intelligent humidity sensor, belonging to the technical field of sensors.
  • the invention provides an intelligent humidity sensor, the purpose of which is to provide a humidity sensor which can realize the adjustment of the amplification and zero point control circuit parameters by simple manual operation.
  • the technical solution of the invention is an intelligent humidity sensor, the structure thereof comprises a humidity sensor sampling circuit 001, an amplification control circuit 002, an A/D conversion pre-input circuit 004, a single-chip system 005, an A/D conversion pre-output circuit 006
  • the signal input end of the input circuit 004 is connected, and the signal output end of the A/D conversion pre-input circuit 004 is connected to the first signal input end of the single chip system 005, and the second signal input end of the single chip system 005 and the human-machine dialogue unit 007
  • the signal output end is connected, the third signal input end of the single chip system 005 is connected with the signal output end of the A/D conversion pre-output circuit 006,
  • the whole system has monitoring points at input VIN and output VO, and forms closed-loop control with single-chip microcomputer system and amplification control circuit, which is convenient to join various algorithm control;
  • Figure 1 is a schematic view of the structure of the present invention.
  • FIG. 2 is a schematic structural view of a humidity sensor sampling circuit 001.
  • FIG. 3 is a schematic structural view of an amplification control circuit 002.
  • FIG. 4 is a schematic structural view of an A/D conversion pre-input circuit 004.
  • FIG. 5 is a schematic structural view of the A/D conversion pre-output circuit 006.
  • FIG. 6 is a schematic diagram of the workflow of the single chip system 005.
  • FIG. 7 is a schematic structural diagram of the human-machine dialog unit 007.
  • FIG. 8 is a schematic structural diagram of the interface module 008.
  • 001 is the humidity sensor sampling circuit
  • 002 is the amplification control circuit
  • 003 is the drive output circuit
  • 004 is the A/D conversion pre-input circuit
  • 005 is the single-chip system
  • 006 is the A/D conversion pre-output circuit
  • 007 It is a human-machine dialogue unit
  • 008 is an interface module.
  • An intelligent humidity sensor the structure comprises a humidity sensor sampling circuit 001, an amplification control circuit 002, an A/D conversion pre-input circuit 004, a single-chip system 005, an A/D conversion pre-output circuit 006, a human-machine dialogue unit 007;
  • the first signal output end of the humidity sensor sampling circuit 001 is connected to the first signal input end of the amplification control circuit 002, the second signal output end of the humidity sensor sampling circuit 001 and the signal input of the A/D conversion pre-input circuit 004.
  • the signal output end of the A/D conversion pre-input circuit 004 is connected to the first signal input end of the single-chip system 005, and the second signal input end of the single-chip system 005 is connected to the signal output end of the human-machine dialog unit 007, the single-chip microcomputer
  • the third signal input end of the system 005 is connected to the signal output end of the A/D conversion pre-output circuit 006, and the first signal input and output end of the single chip system 005 is connected to the signal input and output end of the amplification control circuit 002, and the amplification control circuit 002
  • the signal output terminal is connected to the signal input terminal of the A/D conversion pre-output circuit 006.
  • the intelligent humidity sensor further includes an interface module 008, and the signal input and output end of the interface module 008 is connected to the second signal input and output end of the single chip system 005.
  • the humidity sensor sampling circuit 001 includes a polymer humidity sensor (RH), and the polymer humidity sensor adopts a polymer resistance type humidity sensor of Shenzhen Meiterui Technology Development Co., Ltd.;
  • a typical RC bridge oscillator circuit is formed by R20 resistor, C31 capacitor, C32 capacitor, R22 resistor, R23 resistor, R24 resistor and op amp U2A, and a sine wave with a frequency of 1KHz and an amplitude of 1V is generated as a polymer.
  • the humidity sensor provides power supply.
  • the first-stage operational amplifier U2B is added to function as an impedance isolation.
  • C33 capacitor is a DC blocking capacitor
  • polymer humidity sensor (RH) is divided with RT resistor and W3 resistor, RT is temperature compensating resistor, AC amplification is performed by another stage U2C, and diode D4 acts as half-wave rectification.
  • the R5 resistor and the C30 capacitor are first-order filtering, and the alternating current is converted into a direct current; the first signal output end of the humidity sensor sampling circuit 001, the second The signal output end inputs the same sampling voltage VIN to the signal input end of the first signal input end of the amplification control circuit 002 and the A/D conversion pre-input circuit 004, respectively; the first signal output end of the humidity sensor sampling circuit 001, The second signal output is a common output.
  • the amplification control circuit 002 includes a transmitter amplifying circuit, a zero point control circuit, and a driving output circuit 003.
  • the transmitter amplifying circuit uses a negative feedback operational amplifier amplifying circuit U2D to improve the digital potentiometer adjustment accuracy.
  • the W2 programmable potentiometer and the R4 resistor are feedback resistors for adjusting the amplification factor.
  • the transmitter amplifying circuit is mainly for satisfying the output of the intelligent humidity sensor to reach 5V; the zero point control circuit adopts a typical operational amplifier summation.
  • the circuit, the operational amplifier summation circuit comprises a positive polarity circuit and a negative polarity circuit; the negative polarity circuit is a sampling voltage VIN outputted by the first signal output end of the humidity sensor sampling circuit 001, and is connected to the negative feedback through the R9 resistor.
  • the negative feedback op amp amplifier circuit The input voltage of U2D is the sum of the two.
  • the function of the W1 programmable potentiometer is to adjust the low point of the voltage of the drive output circuit 003.
  • the W1 programmable potentiometer and the W2 programmable potentiometer all use a digital potentiometer x9110.
  • the driving output circuit 003 adopts an emitter follower, preferably a triode emitter follower output, to increase driving capability and impedance isolation; the voltage of the emitter of the transistor Q1 in FIG. 3 is VO.
  • the A/D conversion pre-input circuit 004 adopts the LM358 op amp for inverting amplification. If the resistance values of R29 and R30 are equal, the circuit functions as the sampling voltage VIN delivered by the humidity sensor sampling circuit 001. Negate.
  • the A/D conversion pre-output circuit 006 includes a voltage dividing circuit and an LM358 op amp follower; the A/D conversion pre-output circuit 006 mainly collects an emitter voltage of an emitter of the driving output circuit 003. VO voltage signal, and then use LM358 op amp follower to take out the voltage signal, so that the microcontroller system to operate and control.
  • the A/D conversion pre-output circuit 006 collects the voltage signal of the emitter voltage VO of the emitter of the driving output circuit 003 via the R27 resistor and the R28 resistor divider (the voltage range of the sampling by the single-chip system is 0-3.3V). Then, the voltage signal is taken out by the LM358 op amp follower U5B, so that the MCU system can perform calculation and control.
  • the single chip microcomputer system 005 includes an STM32 single chip microcomputer, and the model of the STM32 single chip microcomputer is preferably STM32F103R8; the STM32 single chip device is cost-effective, with A/D, communication, I/O, timing counter, watchdog, etc. Interface, strong computing power.
  • the human-machine dialog unit 007 includes a debug button and an LED indicator module; the debug button specifically uses two independent buttons; the LED indicator module is an LED light D1; the two independent The type buttons are respectively a measurement button KEY1 and a self-correction button KEY2; the measurement button KEY1 and the self-correction button KEY2 are preferably a 4-pin micro switch, further preferably a 4-pin micro switch 6*6*5;
  • the KEY1 is connected to the PC7 pin of the STM32 microcontroller, and the self-correction button KEY2 is connected to the PC8 pin of the STM32 microcontroller.
  • the interface module 008 is used for interface expansion and is optional according to user requirements; specifically, the RS232 interface is used for RS-232C communication, and the Max3232 chip of the US company is further preferably used.
  • the invention is mainly for the problem that the manual adjustment circuit parameters are arbitrarily large and the precision is inconsistent and inconsistent in the production of the intelligent humidity sensor, and the intelligent closed loop is formed by the A/D conversion pre-input circuit 004 and the A/D conversion pre-output circuit 006.
  • the control system adopts the intelligent closed-loop control system, self-adjusting the circuit parameters through the single-chip microcomputer system, and can increase the interface module 008 as the communication module, effectively improving the production process and widening the application range of the sensor; using the single-chip microcomputer system and the digital potentiometer Realize the adjustment of the zero point and magnification of the smart sensor.
  • the invention adds 008 as an interface module, which can realize the function of the digital sensor.
  • the module such as wifi or radio frequency
  • the wireless sensor network can be formed, which expands the application range of the sensor; conforms to the trend of intelligent transformation of the traditional sensor today, Promote value.
  • the invention can realize the automatic adjustment of the sensor, and the utility model can realize the adjustment of the transmitter amplification and the zero point control circuit parameter by using the single-chip computer system calculation by simple manual operation, and the specific working method of the intelligent humidity sensor of the invention is as shown in the table. 1:
  • the specific working method of the intelligent humidity sensor of the present invention is as follows:
  • the amplification control circuit 002 reads the voltage output by the humidity sensor sampling circuit 001 at the relatively low and relatively high humidity points as the corresponding sampling voltage VIN, relative low point and relative
  • the sampling voltage VIN corresponding to the high point is x1 and x2, respectively.
  • the specific method is as follows: the polymer humidity sensor RH is measured at a relative humidity of 30% under the condition of a relative humidity of 30%, and the button KEY1 is measured by one time in a period of 3 seconds. Corresponding sampling voltage x1, LED indicator flashes; polymer humidity sensor RH in the relative humidity of 85%, 3 seconds of continuous measurement button 2 KEY1 measured relative humidity high point corresponding sampling voltage x2 , the LED indicator flashes twice;
  • VIN represents the sampling voltage
  • VO represents the output voltage
  • RM is the maximum resistance of the digital potentiometer x9110 100K
  • the resistance of the R9 resistor and the R11 resistor are equal
  • the resistance of the W1 programmable potentiometer in the amplification control circuit 002 is R W1
  • the resistance of the W2 programmable potentiometer is R W2 ;
  • R W2 R9 ⁇ 2.75 / (x1-x2) - R4; (4)
  • the single chip system 005 calculates the values of the resistance value R W1 and the resistance value R W2 according to the above formula, and adjusts the programmable potentiometer W1 and the programmable potentiometer W2;
  • step 1) press the measurement button KEY1 to change to press the self-correction button KEY2;
  • the amplification control circuit 002 reads the voltage outputted by the humidity sensor sampling circuit 001 at the relatively low and relatively high humidity levels as the corresponding sampling voltage VIN x1, x2, respectively, and the amplification control The signal output end of the circuit 002 outputs a corresponding driving output voltage VO of y1, y2;
  • the specific method is as follows: the polymer humidity sensor RH is pressed at a relative humidity of 30%, and the self-calibration button KEY2 is pressed 1 time in a period of 3 seconds, and the sampling voltage x1 corresponding to the low relative humidity is measured, and the LED indicator flashes.
  • the output voltage y1 of the signal output end of the drive output circuit 003 is measured;
  • the relative humidity of the polymer humidity sensor RH is 85% in the period of 3 seconds, and the relative humidity is measured according to the self-correction button KEY2.
  • the sampling voltage x2, the LED indicator flashes twice, and the output voltage y2 of the signal output end of the driving output circuit 003 is measured;
  • the error is the absolute value of ⁇ 1 and ⁇ 2;
  • step 2) the values of the resistance value R W1 and the resistance value R W2 are calculated again, and the W1 programmable potentiometer and the W2 programmable potentiometer are adjusted;
  • step 3) for the second self-calibration to obtain the drive output voltages y1' and y2'
  • the new error is calculated as the absolute value of ⁇ 1' and ⁇ 2';
  • the value of the resistance value R W1 and the resistance value R W2 takes the value of the second time when the second error is relatively small.
  • An intelligent humidity sensor having a humidity sensor sampling circuit 001, an amplification control circuit 002, an A/D conversion pre-input circuit 004, a single-chip system 005, an A/D conversion pre-output circuit 006, a human-machine dialogue unit 007,
  • the interface module 008 is composed; wherein the first signal output end of the humidity sensor sampling circuit 001 is connected to the first signal input end of the amplification control circuit 002, the second signal output end of the humidity sensor sampling circuit 001 and the A/D conversion pre-input The signal input end of the circuit 004 is connected, and the signal output end of the A/D conversion pre-input circuit 004 is connected to the first signal input end of the single chip system 005, and the signal of the second signal input end of the single chip system 005 and the human-machine dialogue unit 007 The output end is connected, the third signal input end of the single chip system 005 is connected with the signal output end of the A/D conversion pre-output circuit 006, and
  • the signal output end of the amplification control circuit 002 is connected to the signal input end of the A/D conversion pre-output circuit 006; the intelligent humidity sensor is further Interface module 008 includes, a signal input and output interface module SCM system 008 and the second signal input connected to output terminal 005.
  • the humidity sensor sampling mode 001 circuit is shown in Figure 2.
  • a typical RC bridge oscillator circuit is formed by R20, C31, C32, R22, R23, R24 and the operational amplifier U2A, and a sine wave with a frequency of 1 kHz and an amplitude of 1 V is generated as the humidity.
  • the sensor is supplied with power.
  • the first-stage operational amplifier U2B is added to function as an impedance isolation;
  • C33 is a DC-blocking capacitor;
  • the humidity sensor is divided by RT and W3, and RT is a temperature compensation resistor.
  • the amplification control circuit 002 is as shown in FIG. 3.
  • the amplification control circuit 002 includes a transmitter amplifying circuit, a zero point control circuit, and a driving output circuit 003.
  • the transmitter amplifying circuit and the zero point control circuit include two parts, and the upper part is an amplifying circuit.
  • the negative feedback op amp amplifier circuit U2D is adopted, W2 and R4 are feedback resistors for adjusting the amplification factor, and the R4 is fixed to improve the adjustment accuracy of the digital potentiometer.
  • the amplification circuit is mainly for satisfying the output maximum of the intelligent humidity sensor to reach 5V;
  • the half is a zeroing circuit. It is a typical op amp summing circuit.
  • the resistance values of R9 and R11 are the same.
  • One end is the sampling voltage of the humidity sensor, the output voltage of the 001 module is VIN, and the other end is the digital potentiometer and two fixed.
  • the partial pressure of the resistors (R2, R3, W1) theoretically, when the relative humidity is 0%, the voltage values of VT and VIN are the same, and the direction is opposite. In this case, when the relative humidity is 0%, the output of the intelligent humidity sensor can be Zero.
  • the drive output circuit 003 uses a triode emitter follower Q1 output to increase drive capability and impedance isolation.
  • the A/D conversion pre-input circuit 004 adopts an LM358 op amp follower, and mainly collects a voltage signal transmitted by the humidity sensor sampling circuit 001 at the input end; before the A/D conversion
  • the output circuit 006 includes a voltage dividing circuit and an LM358 op amp follower; the A/D conversion pre-output circuit 006 mainly collects the voltage signal of the emitter voltage VO of the emitter of the output circuit 003, and then uses the LM358 op amp follower. The voltage signal is taken out for the operation and control of the microcontroller system.
  • the single chip system 005 adopts STM32 single chip STM32F103R8 (Fig. 6).
  • the chip is cost-effective, with A/D, communication, I/O, timing counter and watchdog interface, and has strong computing power; pin RXD1 TXD1 is a serial interface and is connected to the RS232 interface.
  • the pins ADC0 and ADC1 are respectively connected to the AD conversion pre-circuit module 004 and the AD conversion pre-circuit module 006 for input and output voltage signal acquisition, and the pins SO, SI SCK, CSW1, and CSW2 are used to connect the amplification control circuit 002 for adjusting the parameters of the circuit, and the remaining JNTRSR, JTDI, SWDIO, SWCLK, and JTDO are JTAG socket pins.
  • the human-machine dialog unit 007 includes a debug button and an LED indicator module; the debug button is specifically connected to the single-chip pins PC7 and PC8 by two independent buttons; the LED indicator module is an LED light D1;
  • the two independent keys are the measurement key KEY1 and the self-correction key KEY2; the measurement key KEY1 and the self-correction key KEY2 are preferably 4-pin micro-switches, further preferably 4-pin micro-switches 6*6*5.
  • the RS232 interface module 008 is used for interface expansion and is optional according to user requirements; specifically, the RS232 interface is used for RS-232C communication, and the Max3232 chip U4 of the US-based company is further preferably used; the RS232 interface module 008 mainly functions to convert the TTL level.
  • J2 is the output plug, the other five capacitors are peripheral circuits, specifically refer to the datasheet of the max3232 chip, the main function can easily access the wifi module, 4G communication module and RF module, etc., to expand the intelligent humidity sensor Application range.

Abstract

An intelligent humidity sensor, wherein the structure thereof comprises that a first signal output terminal of a humidity sensor sampling circuit (001) is connected to a first signal input terminal of an amplification control circuit (002); a second signal output terminal of the humidity sensor sampling circuit (001) is connected to a signal input terminal of an A/D conversion pre-input circuit (004); a signal output terminal of the A/D conversion pre-input circuit (004) is connected to a first signal input terminal of a single-chip computer system (005); a second signal input terminal of the single-chip computer system (005) is connected to a signal output terminal of a human-machine dialogue unit (007); a third signal input terminal of the single-chip computer system (005) is connected to a signal output terminal of an A/D conversion pre-output circuit (006); a first signal input and output terminal of the single-chip computer system (005) is connected to a signal input and output terminal of the amplification control circuit (002); and a signal output terminal of the amplification control circuit (002) is connected to a signal input terminal of the A/D conversion pre-output circuit (006).

Description

一种智能湿度传感器Intelligent humidity sensor 技术领域Technical field
本发明涉及一种智能湿度传感器,属于传感器技术领域。The invention relates to an intelligent humidity sensor, belonging to the technical field of sensors.
背景技术Background technique
近年来随着人工智能、大数据的快速发展,而智能传感器作为数据的最前端,智能传感器的需求量比较大,在传感器生产中,由于湿度传感器的一致性及稳定性不高,而且每年需要维护;在湿度传感器把非电量转化为标准的0~5V时,要通过变送器进行调理电路进行整理,以前,一般通过人工反复多次调整两个电位器,来调整放大电路的零点及放大倍数,这样导致生产效率不高,精度不一致等问题。In recent years, with the rapid development of artificial intelligence and big data, smart sensors are the front-end of data, and the demand for smart sensors is relatively large. In the production of sensors, the consistency and stability of humidity sensors are not high, and they need to be needed every year. Maintenance; when the humidity sensor converts the non-electricity into the standard 0~5V, it is necessary to carry out the conditioning circuit through the transmitter for finishing. In the past, the two zero potentiometers were manually adjusted repeatedly to adjust the zero point and enlargement of the amplifying circuit. Multiples, which leads to problems such as low production efficiency and inconsistent precision.
发明内容Summary of the invention
本发明提出的是一种智能湿度传感器,其目的旨在提供一种只需要通过简单的人工操作便能实现放大和零点控制电路参数调整的湿度传感器。The invention provides an intelligent humidity sensor, the purpose of which is to provide a humidity sensor which can realize the adjustment of the amplification and zero point control circuit parameters by simple manual operation.
本发明的技术解决方案:一种智能湿度传感器,其结构包括湿度传感器取样电路001,放大控制电路002,A/D转换前置输入电路004,单片机系统005,A/D转换前置输出电路006,人机对话单元007;其中,湿度传感器取样电路001的第一信号输出端与放大控制电路002的第一信号输入端相连,湿度传感器取样电路001的第二信号输出端与A/D转换前置输入电路004的信号输入端相连,A/D转换前置输入电路004的信号输出端与单片机系统005的第一信号输入端相连,单片机系统005的第二信号输入端与人机对话单元007的信号输出端相连,单片机系统005的第三信号输入端与A/D转换前置输出电路006的信号输出端相连,单片机系统005的第一信号输入输出端与放大控制电路002的信号输入输出端相连,放大控制电路002的信号输出端与A/D转换前置输出电路006的信号输入端相连。The technical solution of the invention is an intelligent humidity sensor, the structure thereof comprises a humidity sensor sampling circuit 001, an amplification control circuit 002, an A/D conversion pre-input circuit 004, a single-chip system 005, an A/D conversion pre-output circuit 006 The human-machine dialogue unit 007; wherein the first signal output end of the humidity sensor sampling circuit 001 is connected to the first signal input end of the amplification control circuit 002, and the second signal output end of the humidity sensor sampling circuit 001 is before the A/D conversion The signal input end of the input circuit 004 is connected, and the signal output end of the A/D conversion pre-input circuit 004 is connected to the first signal input end of the single chip system 005, and the second signal input end of the single chip system 005 and the human-machine dialogue unit 007 The signal output end is connected, the third signal input end of the single chip system 005 is connected with the signal output end of the A/D conversion pre-output circuit 006, and the signal input and output of the first signal input and output end of the single chip system 005 and the amplification control circuit 002 Connected to the terminal, the signal output terminal of the amplification control circuit 002 is connected to the signal input terminal of the A/D conversion preamplifier circuit 006.
本发明的优点:Advantages of the invention:
1)整个系统在输入VIN和输出VO都有监测点,与单片机系统和放大控制电路形成闭环控制,方便的加入各种算法控制;1) The whole system has monitoring points at input VIN and output VO, and forms closed-loop control with single-chip microcomputer system and amplification control circuit, which is convenient to join various algorithm control;
2)减少了调试人员技术难度,省去了人工调整电位器的反复过程,提高了调试精度;2) The technical difficulty of the debugging personnel is reduced, the repeated process of manually adjusting the potentiometer is omitted, and the debugging precision is improved;
3)改进了生产工艺和工作效率;3) Improved production process and work efficiency;
4)同时,为了扩展智能传感器的应用范围,增加通信接口,若通信接口在连接wifi模块。还可实现远程维护。4) At the same time, in order to expand the application range of the smart sensor, increase the communication interface, if the communication interface is connected to the wifi module. Remote maintenance is also possible.
附图说明DRAWINGS
附图1是本发明的结构示意图。Figure 1 is a schematic view of the structure of the present invention.
附图2是湿度传感器取样电路001的结构示意图。2 is a schematic structural view of a humidity sensor sampling circuit 001.
附图3是放大控制电路002的结构示意图。3 is a schematic structural view of an amplification control circuit 002.
附图4是A/D转换前置输入电路004的结构示意图。4 is a schematic structural view of an A/D conversion pre-input circuit 004.
附图5是A/D转换前置输出电路006的结构示意图。FIG. 5 is a schematic structural view of the A/D conversion pre-output circuit 006.
附图6是单片机系统005的工作流程示意图。FIG. 6 is a schematic diagram of the workflow of the single chip system 005.
附图7是人机对话单元007的结构示意图。FIG. 7 is a schematic structural diagram of the human-machine dialog unit 007.
附图8是接口模块008的结构示意图。FIG. 8 is a schematic structural diagram of the interface module 008.
附图中001是湿度传感器取样电路,002是放大控制电路,003是驱动输出电路,004是A/D转换前置输入电路,005是单片机系统,006是A/D转换前置输出电路,007是人机对话单元,008是接口模块。In the drawing, 001 is the humidity sensor sampling circuit, 002 is the amplification control circuit, 003 is the drive output circuit, 004 is the A/D conversion pre-input circuit, 005 is the single-chip system, 006 is the A/D conversion pre-output circuit, 007 It is a human-machine dialogue unit, and 008 is an interface module.
具体实施方式detailed description
一种智能湿度传感器,其结构包括湿度传感器取样电路001,放大控制电路002,A/D转换前置输入电路004,单片机系统005,A/D转换前置输出电路006,人机对话单元007;其中,湿度传感器取样电路001的第一信号输出端与放大控制电路002的第一信号输入端相连,湿度传感器取样电路001的第二信号输出端与A/D转换前置输入电路004的信号输入端相连,A/D转换前置输入电路004的信号输出端与单片机系统005的第一信号输入端相连,单片机系统005的第二信号输入端与人机对话单元007的信号输出端相连,单片机系统005的第三信号输入端与A/D转换前置输出电路006的信号输出端相连,单片机系统005的第一信号输入输出端与放大控制电路002的信号输入输出端相连,放大控制电路002的信号输出端与A/D转换前置输出电路006的信号输入端相连。An intelligent humidity sensor, the structure comprises a humidity sensor sampling circuit 001, an amplification control circuit 002, an A/D conversion pre-input circuit 004, a single-chip system 005, an A/D conversion pre-output circuit 006, a human-machine dialogue unit 007; The first signal output end of the humidity sensor sampling circuit 001 is connected to the first signal input end of the amplification control circuit 002, the second signal output end of the humidity sensor sampling circuit 001 and the signal input of the A/D conversion pre-input circuit 004. Connected to the end, the signal output end of the A/D conversion pre-input circuit 004 is connected to the first signal input end of the single-chip system 005, and the second signal input end of the single-chip system 005 is connected to the signal output end of the human-machine dialog unit 007, the single-chip microcomputer The third signal input end of the system 005 is connected to the signal output end of the A/D conversion pre-output circuit 006, and the first signal input and output end of the single chip system 005 is connected to the signal input and output end of the amplification control circuit 002, and the amplification control circuit 002 The signal output terminal is connected to the signal input terminal of the A/D conversion pre-output circuit 006.
所述智能湿度传感器还包括接口模块008,接口模块008的信号输入输出端与单片机系统005的第二信号输入输出端相连接。The intelligent humidity sensor further includes an interface module 008, and the signal input and output end of the interface module 008 is connected to the second signal input and output end of the single chip system 005.
对照附图2,所述湿度传感器取样电路001中包括有高分子湿度传感器(RH),所述高分子湿度传感器采用深圳市美特瑞科技发展有限公司的高分子电阻型湿度传感器;所述湿度传感器取样电路001中由R20电阻、C31电容、C32电容、R22电阻、R23电阻、R24电阻与运放U2A组建典型的RC桥式振荡电路,产生频率为1KHz、幅度为1V的正弦波为高分子湿度传感器提供电源,电路为了减少后面电路对前面电路的影响增加了一级运放U2B,起阻抗隔离的作用,为了减少后面电路对前面电路的影响增加了另一级运放U2C,起隔离的作用;C33电容为隔直电容;高分子湿度传感器(RH)与RT电阻、W3电阻进行分压,RT为温度补偿电阻,通过另一级运放U2C进行交流放大,二极管D4作用为半波整流,最后R5电阻与C30电容为1阶滤波,把交流变成直流;所述湿度传感器取样电路001的第一信号输出端、第二信号输出端分别向放大控制电路002的第一信号输入端、A/D转换前置输入电路004的信号输入端输入相同的取样电压VIN;所述湿度传感器取样电路001的第一信号输出端、第二信号输出端为一个共用输出端。Referring to FIG. 2, the humidity sensor sampling circuit 001 includes a polymer humidity sensor (RH), and the polymer humidity sensor adopts a polymer resistance type humidity sensor of Shenzhen Meiterui Technology Development Co., Ltd.; In the sensor sampling circuit 001, a typical RC bridge oscillator circuit is formed by R20 resistor, C31 capacitor, C32 capacitor, R22 resistor, R23 resistor, R24 resistor and op amp U2A, and a sine wave with a frequency of 1KHz and an amplitude of 1V is generated as a polymer. The humidity sensor provides power supply. In order to reduce the influence of the rear circuit on the front circuit, the first-stage operational amplifier U2B is added to function as an impedance isolation. In order to reduce the influence of the latter circuit on the front circuit, another stage of the operational amplifier U2C is added, and the isolation is performed. Function; C33 capacitor is a DC blocking capacitor; polymer humidity sensor (RH) is divided with RT resistor and W3 resistor, RT is temperature compensating resistor, AC amplification is performed by another stage U2C, and diode D4 acts as half-wave rectification. Finally, the R5 resistor and the C30 capacitor are first-order filtering, and the alternating current is converted into a direct current; the first signal output end of the humidity sensor sampling circuit 001, the second The signal output end inputs the same sampling voltage VIN to the signal input end of the first signal input end of the amplification control circuit 002 and the A/D conversion pre-input circuit 004, respectively; the first signal output end of the humidity sensor sampling circuit 001, The second signal output is a common output.
对照附图3,所述放大控制电路002包括变送器放大电路,零点控制电路,驱动输出电路003;所述变送器放大电路采用负反馈运放放大电路U2D,为了提高数字电位器调节精度,W2可编程电位器和R4电阻为反馈电阻,用于调节放 大倍数,变送器放大电路主要为了满足智能湿度传感器的输出最大值要达到5V;所述零点控制电路采用典型的运放求和电路,运放求和电路包括1个正极性电路,1个负极性电路;所述负极性电路为湿度传感器取样电路001的第一信号输出端输出的取样电压VIN,通过R9电阻接到负反馈运放放大电路U2D的负端;正极性电路包括12V电压端、W1可编程电位器、R2电阻、R3电阻、模拟地,12V电压端与外部12V电源相接,W1可编程电位器中心抽头通过R11电阻也接到负反馈运放放大电路U2D的负端,只要R9电阻与R11电阻的阻值相等,那么,负反馈运放放大电路U2D的输入电压就是两者之和,W1可编程电位器的作用就是调整驱动输出电路003的电压的低点。Referring to FIG. 3, the amplification control circuit 002 includes a transmitter amplifying circuit, a zero point control circuit, and a driving output circuit 003. The transmitter amplifying circuit uses a negative feedback operational amplifier amplifying circuit U2D to improve the digital potentiometer adjustment accuracy. The W2 programmable potentiometer and the R4 resistor are feedback resistors for adjusting the amplification factor. The transmitter amplifying circuit is mainly for satisfying the output of the intelligent humidity sensor to reach 5V; the zero point control circuit adopts a typical operational amplifier summation. The circuit, the operational amplifier summation circuit comprises a positive polarity circuit and a negative polarity circuit; the negative polarity circuit is a sampling voltage VIN outputted by the first signal output end of the humidity sensor sampling circuit 001, and is connected to the negative feedback through the R9 resistor. Negative terminal of the operational amplifier amplifier circuit U2D; positive polarity circuit includes 12V voltage terminal, W1 programmable potentiometer, R2 resistor, R3 resistor, analog ground, 12V voltage terminal is connected with external 12V power supply, W1 programmable potentiometer center taps through The R11 resistor is also connected to the negative terminal of the negative feedback op amp amplifier circuit U2D. As long as the resistance of the R9 resistor and the R11 resistor are equal, then the negative feedback op amp amplifier circuit The input voltage of U2D is the sum of the two. The function of the W1 programmable potentiometer is to adjust the low point of the voltage of the drive output circuit 003.
所述W1可编程电位器、W2可编程电位器均采用数字电位器x9110。The W1 programmable potentiometer and the W2 programmable potentiometer all use a digital potentiometer x9110.
所述驱动输出电路003采用射极跟随器,优选采用三极管射极跟随器输出,起增加驱动能力和阻抗隔离作用;对照附图3中的三极管Q1的发射极的电压为VO。The driving output circuit 003 adopts an emitter follower, preferably a triode emitter follower output, to increase driving capability and impedance isolation; the voltage of the emitter of the transistor Q1 in FIG. 3 is VO.
对照附图4,所述A/D转换前置输入电路004采用了LM358运放进行反相放大,若R29和R30电阻值相等,则该电路的作用将湿度传感器取样电路001输送的取样电压VIN取反。Referring to FIG. 4, the A/D conversion pre-input circuit 004 adopts the LM358 op amp for inverting amplification. If the resistance values of R29 and R30 are equal, the circuit functions as the sampling voltage VIN delivered by the humidity sensor sampling circuit 001. Negate.
对照附图5,所述A/D转换前置输出电路006包括分压电路和LM358运放跟随器;所述A/D转换前置输出电路006主要采集驱动输出电路003发射极的发射极电压VO的电压信号,再用LM358运放跟随器把电压信号取出,以便单片机系统进行运算和控制。Referring to FIG. 5, the A/D conversion pre-output circuit 006 includes a voltage dividing circuit and an LM358 op amp follower; the A/D conversion pre-output circuit 006 mainly collects an emitter voltage of an emitter of the driving output circuit 003. VO voltage signal, and then use LM358 op amp follower to take out the voltage signal, so that the microcontroller system to operate and control.
所述A/D转换前置输出电路006采集驱动输出电路003发射极的发射极电压VO的电压信号经R27电阻、R28电阻分压(因单片机系统的采样的电压范围为0~3.3V),再通过LM358运放跟随器U5B把电压信号取出,以便单片机系统进行运算和控制。The A/D conversion pre-output circuit 006 collects the voltage signal of the emitter voltage VO of the emitter of the driving output circuit 003 via the R27 resistor and the R28 resistor divider (the voltage range of the sampling by the single-chip system is 0-3.3V). Then, the voltage signal is taken out by the LM358 op amp follower U5B, so that the MCU system can perform calculation and control.
对照附图6,所述单片机系统005包括STM32单片机,所述STM32单片机的型号优选为STM32F103R8;所述STM32单片机性价比高,带有A/D、通信、I/O、定时计数器和看门狗等接口,运算能力强。Referring to FIG. 6, the single chip microcomputer system 005 includes an STM32 single chip microcomputer, and the model of the STM32 single chip microcomputer is preferably STM32F103R8; the STM32 single chip device is cost-effective, with A/D, communication, I/O, timing counter, watchdog, etc. Interface, strong computing power.
对照附图7,所述人机对话单元007包括调试按钮和LED指示灯模块;所述调试按钮具体采用2个独立式按键;所述LED指示灯模块为一个LED灯D1;所述2个独立式按键分别为测量按键KEY1和自校正按键KEY2;所述测量按键KEY1和自校正按键KEY2均优选为4脚微动开关,进一步优选为4脚微动开关6*6*5;所述测量按键KEY1与STM32单片机的PC7引脚相接,自校正按键KEY2与STM32单片机的PC8引脚相接。Referring to FIG. 7, the human-machine dialog unit 007 includes a debug button and an LED indicator module; the debug button specifically uses two independent buttons; the LED indicator module is an LED light D1; the two independent The type buttons are respectively a measurement button KEY1 and a self-correction button KEY2; the measurement button KEY1 and the self-correction button KEY2 are preferably a 4-pin micro switch, further preferably a 4-pin micro switch 6*6*5; The KEY1 is connected to the PC7 pin of the STM32 microcontroller, and the self-correction button KEY2 is connected to the PC8 pin of the STM32 microcontroller.
所述接口模块008用于接口扩展,根据用户需求可选;具体包括采用RS232接口进行RS-232C通信,进一步优选采用美新公司的max3232芯片。The interface module 008 is used for interface expansion and is optional according to user requirements; specifically, the RS232 interface is used for RS-232C communication, and the Max3232 chip of the US company is further preferably used.
本发明主要针对在智能湿度传感器生产中人工调整电路参数随意性大、精度有偏差并不一致的问题,采用A/D转换前置输入电路004和A/D转换前置输出电路006形成了智能闭环控制系统,采用智能闭环控制系统,通过单片机系统对电路参数进行自我调整,并可增加接口模块008作为通信模块,有效地提升了生产工艺,拓宽的传感器的应用范围;利用单片机系统和数字电位器实现智能传感器的零点和放大倍数的调整。The invention is mainly for the problem that the manual adjustment circuit parameters are arbitrarily large and the precision is inconsistent and inconsistent in the production of the intelligent humidity sensor, and the intelligent closed loop is formed by the A/D conversion pre-input circuit 004 and the A/D conversion pre-output circuit 006. The control system adopts the intelligent closed-loop control system, self-adjusting the circuit parameters through the single-chip microcomputer system, and can increase the interface module 008 as the communication module, effectively improving the production process and widening the application range of the sensor; using the single-chip microcomputer system and the digital potentiometer Realize the adjustment of the zero point and magnification of the smart sensor.
本发明增加了008是接口模块,可以实现数字传感器功能,只要再增加wifi或射频等模块就可以组成无线传感网,拓展了传感器应用范围;符合当今对传统传感器进行智能化改造的潮流,具有推广价值。The invention adds 008 as an interface module, which can realize the function of the digital sensor. As long as the module such as wifi or radio frequency is added, the wireless sensor network can be formed, which expands the application range of the sensor; conforms to the trend of intelligent transformation of the traditional sensor today, Promote value.
本发明能够实现传感器的自动调整,利用本实用新型只要通过简单的人工操作便能通过单片机系统计算来实现变送器放大和零点控制电路参数的调整,本发明智能湿度传感器的具体工作方法如表1:The invention can realize the automatic adjustment of the sensor, and the utility model can realize the adjustment of the transmitter amplification and the zero point control circuit parameter by using the single-chip computer system calculation by simple manual operation, and the specific working method of the intelligent humidity sensor of the invention is as shown in the table. 1:
表1 智能湿度传感器W1、W2调整与x、y关系过程Table 1 Intelligent humidity sensor W1, W2 adjustment and x, y relationship process
Figure PCTCN2018087817-appb-000001
Figure PCTCN2018087817-appb-000001
本发明智能湿度传感器的具体工作方法如下:The specific working method of the intelligent humidity sensor of the present invention is as follows:
选取以相对湿度0%~100%对应0V~5V的变送器;在调试中,一般选取湿度的相对低点(相对湿度为30%)与相对高点(相对湿度为85%)作为参考点,那么,具有自适应功能的智能湿度传感器的理论上对应输出电压应该为1.5V、4.25V;所述相对低点和相对高点,本发明分别为湿度30%和湿度85%,调试整个过程如下:Select a transmitter with a relative humidity of 0% to 100% corresponding to 0V to 5V; during commissioning, generally select a relatively low humidity (relative humidity of 30%) and a relative high point (relative humidity of 85%) as reference points. Then, the theoretical corresponding output voltage of the intelligent humidity sensor with adaptive function should be 1.5V, 4.25V; the relatively low point and the relatively high point, the present invention is 30% humidity and 85% humidity respectively, and the whole process of debugging as follows:
1)通过模拟相对低点和相对高点湿度环境,放大控制电路002读取湿度传 感器取样电路001在湿度相对低点和相对高点时输出的电压作为对应的取样电压VIN,相对低点和相对高点对应的取样电压VIN分别为x1、x2;具体方法为:高分子湿度传感器RH在相对湿度为30%条件下,3秒的时间段内按1下测量按键KEY1,测得相对湿度低点对应的取样电压x1,LED指示灯闪烁一下;高分子湿度传感器RH在相对湿度为85%条件下,3秒的时间段内连续按2下测量按键KEY1测得相对湿度高点对应的取样电压x2,LED指示灯闪烁二下;1) By simulating the relatively low point and relatively high point humidity environment, the amplification control circuit 002 reads the voltage output by the humidity sensor sampling circuit 001 at the relatively low and relatively high humidity points as the corresponding sampling voltage VIN, relative low point and relative The sampling voltage VIN corresponding to the high point is x1 and x2, respectively. The specific method is as follows: the polymer humidity sensor RH is measured at a relative humidity of 30% under the condition of a relative humidity of 30%, and the button KEY1 is measured by one time in a period of 3 seconds. Corresponding sampling voltage x1, LED indicator flashes; polymer humidity sensor RH in the relative humidity of 85%, 3 seconds of continuous measurement button 2 KEY1 measured relative humidity high point corresponding sampling voltage x2 , the LED indicator flashes twice;
2)如附图3,计算W1可编程电位器、W2可编程电位器的理论阻值,放大控制电路002的输出电压与输入取样电压的对应关系为:2) As shown in Fig. 3, calculate the theoretical resistance of the W1 programmable potentiometer and the W2 programmable potentiometer, and the corresponding relationship between the output voltage of the amplification control circuit 002 and the input sampling voltage is:
VO=-(R4+R W2)×(VIN+12×(R2+R W1)/(R2+R3+RM))/R9(1) VO=-(R4+R W2 )×(VIN+12×(R2+R W1 )/(R2+R3+RM))/R9(1)
其中,VIN表示取样电压,VO表示输出电压,RM为数字电位器x9110的最大电阻100K,R9电阻、R11电阻的阻值相等,放大控制电路002中的W1可编程电位器的阻值为R W1、W2可编程电位器的阻值为R W2Among them, VIN represents the sampling voltage, VO represents the output voltage, RM is the maximum resistance of the digital potentiometer x9110 100K, the resistance of the R9 resistor and the R11 resistor are equal, and the resistance of the W1 programmable potentiometer in the amplification control circuit 002 is R W1 The resistance of the W2 programmable potentiometer is R W2 ;
输入取样电压x1、取样电压x2,对应的输出电压理论值为1.5V、4.25V,代入(1),可得方程:Input sampling voltage x1, sampling voltage x2, the corresponding output voltage theoretical value is 1.5V, 4.25V, substituted into (1), can get the equation:
-(R4+R W2)×(x1+12×(R2+R W1)/(R2+R3+RM))/R9=1.5;(2) -(R4+R W2 )×(x1+12×(R2+R W1 )/(R2+R3+RM))/R9=1.5; (2)
-(R4+R W2)×(x2+12×(R2+R W1)/(R2+R3+RM))/R9=4.25;(3) -(R4+R W2 )×(x2+12×(R2+R W1 )/(R2+R3+RM))/R9=4.25;(3)
由(2)、(3)方程可解:Solved by equations (2) and (3):
R W2=R9×2.75/(x1-x2)-R4;(4) R W2 = R9 × 2.75 / (x1-x2) - R4; (4)
把(4)代入(2)可以求得R W1Substituting (4) into (2) can find R W1 ;
单片机系统005依据上面公式计算出阻值R W1、阻值R W2的值,并对可编程电位器W1和可编程电位器W2进行调整; The single chip system 005 calculates the values of the resistance value R W1 and the resistance value R W2 according to the above formula, and adjusts the programmable potentiometer W1 and the programmable potentiometer W2;
3)自校准:因为每个湿度传感器和电路都会有差异,实际相对低点和相对高点对应的输出电压有可能不是正好1.5V和4.25V,所以还要和实际值比较进行误差计算,具体方法如下:3) Self-calibration: Because each humidity sensor and circuit will have differences, the actual relative low and relative high output voltages may not be exactly 1.5V and 4.25V, so the error calculation should be compared with the actual value. Methods as below:
重复步骤1),按测量按键KEY1改成按自校正按键KEY2;Repeat step 1), press the measurement button KEY1 to change to press the self-correction button KEY2;
通过模拟相对低点和相对高点湿度环境,放大控制电路002读取湿度传感器取样电路001在湿度相对低点和相对高点时输出的电压作为对应的取样电压VIN分别为x1、x2,放大控制电路002的信号输出端输出对应的驱动输出电压VO分别为y1、y2;By simulating the relatively low-point and relatively high-point humidity environment, the amplification control circuit 002 reads the voltage outputted by the humidity sensor sampling circuit 001 at the relatively low and relatively high humidity levels as the corresponding sampling voltage VIN x1, x2, respectively, and the amplification control The signal output end of the circuit 002 outputs a corresponding driving output voltage VO of y1, y2;
具体方法为:高分子湿度传感器RH在相对湿度为30%条件下,3秒的时间段内按1下按自校正按键KEY2,测得相对湿度低点对应的取样电压x1,LED指示灯闪烁一下,测得驱动输出电路003信号输出端的输出电压y1;高分子湿度传感器RH在相对湿度为85%条件下,3秒的时间段内连续按2下按自校正按键KEY2测得相对湿度高点对应的取样电压x2,LED指示灯闪烁二下,测得驱动输 出电路003信号输出端的输出电压y2;The specific method is as follows: the polymer humidity sensor RH is pressed at a relative humidity of 30%, and the self-calibration button KEY2 is pressed 1 time in a period of 3 seconds, and the sampling voltage x1 corresponding to the low relative humidity is measured, and the LED indicator flashes. The output voltage y1 of the signal output end of the drive output circuit 003 is measured; the relative humidity of the polymer humidity sensor RH is 85% in the period of 3 seconds, and the relative humidity is measured according to the self-correction button KEY2. The sampling voltage x2, the LED indicator flashes twice, and the output voltage y2 of the signal output end of the driving output circuit 003 is measured;
湿度低点误差:Δ1=y1-1.5;Humidity low point error: Δ1 = y1-1.5;
湿度高点误差:Δ2=y2-4.25;Humidity high point error: Δ2 = y2-4.25;
误差即为Δ1、Δ2中绝对值大者;The error is the absolute value of Δ1 and Δ2;
4)根据实际值计算R W1、R W2的值: 4) Calculate the values of R W1 and R W2 based on actual values:
将对应的输出电压代入公式(2)、(3),输出电压理论值为1.5V、4.25V变为实际值y1、y2;Substituting the corresponding output voltage into equations (2) and (3), the theoretical value of the output voltage is 1.5V, 4.25V becomes the actual value y1, y2;
-(R4+RW2)×(x1+12×(R2+RW1)/(R2+R3+RM))/R9=y1;(5)-(R4+RW2)×(x1+12×(R2+RW1)/(R2+R3+RM))/R9=y1;(5)
-(R4+RW2)×(x2+12×(R2+RW1)/(R2+R3+RM))/R9=y2;(6)-(R4+RW2)×(x2+12×(R2+RW1)/(R2+R3+RM))/R9=y2;(6)
根据步骤2)方法,再次计算出阻值R W1、阻值R W2的值,并对W1可编程电位器和W2可编程电位器进行调整; According to the method of step 2), the values of the resistance value R W1 and the resistance value R W2 are calculated again, and the W1 programmable potentiometer and the W2 programmable potentiometer are adjusted;
5)重复步骤3)进行第二次自校准,可得驱动输出电压y1’和y2’5) Repeat step 3) for the second self-calibration to obtain the drive output voltages y1' and y2'
湿度低点误差:Δ1’=y1’-1.5;Humidity low point error: Δ1' = y1'-1.5;
湿度高点误差:Δ2’=y2’-4.25;Humidity high point error: Δ2' = y2' - 4.25;
计算出新的误差即为Δ1’、Δ2’中绝对值大者;The new error is calculated as the absolute value of Δ1' and Δ2';
再次根据实际值驱动输出电压y1’和y2’,计算出此时阻值R W1、阻值R W2的值: The output voltages y1' and y2' are driven again according to the actual values, and the values of the resistance values R W1 and the resistance values R W2 are calculated:
最终,阻值R W1、阻值R W2的值取二次误差比较小的那次的值。 Finally, the value of the resistance value R W1 and the resistance value R W2 takes the value of the second time when the second error is relatively small.
实施例Example
一种智能湿度传感器,其结构有湿度传感器取样电路001,放大控制电路002,A/D转换前置输入电路004,单片机系统005,A/D转换前置输出电路006,人机对话单元007,接口模块008组成;其中,湿度传感器取样电路001的第一信号输出端与放大控制电路002的第一信号输入端相连,湿度传感器取样电路001的第二信号输出端与A/D转换前置输入电路004的信号输入端相连,A/D转换前置输入电路004的信号输出端与单片机系统005的第一信号输入端相连,单片机系统005的第二信号输入端与人机对话单元007的信号输出端相连,单片机系统005的第三信号输入端与A/D转换前置输出电路006的信号输出端相连,单片机系统005的第一信号输入输出端与放大控制电路002的信号输入输出端相连,放大控制电路002的信号输出端与A/D转换前置输出电路006的信号输入端相连;所述智能湿度传感器还包括接口模块008,接口模块008的信号输入输出端与单片机系统005的第二信号输入输出端相连接。An intelligent humidity sensor having a humidity sensor sampling circuit 001, an amplification control circuit 002, an A/D conversion pre-input circuit 004, a single-chip system 005, an A/D conversion pre-output circuit 006, a human-machine dialogue unit 007, The interface module 008 is composed; wherein the first signal output end of the humidity sensor sampling circuit 001 is connected to the first signal input end of the amplification control circuit 002, the second signal output end of the humidity sensor sampling circuit 001 and the A/D conversion pre-input The signal input end of the circuit 004 is connected, and the signal output end of the A/D conversion pre-input circuit 004 is connected to the first signal input end of the single chip system 005, and the signal of the second signal input end of the single chip system 005 and the human-machine dialogue unit 007 The output end is connected, the third signal input end of the single chip system 005 is connected with the signal output end of the A/D conversion pre-output circuit 006, and the first signal input and output end of the single chip system 005 is connected to the signal input and output end of the amplification control circuit 002. The signal output end of the amplification control circuit 002 is connected to the signal input end of the A/D conversion pre-output circuit 006; the intelligent humidity sensor is further Interface module 008 includes, a signal input and output interface module SCM system 008 and the second signal input connected to output terminal 005.
所述湿度传感器取样模001电路如图2,由R20、C31、C32、R22、R23、R24与运放U2A组建典型的RC桥式振荡电路,产生频率为1KHz、幅度为1V的正弦波为湿度传感器供电源,电路为了减少后面电路对前面电路的影响增加了一级运放U2B,起阻抗隔离的作用;C33为隔直电容;湿度传感器与RT、W3进行分压,RT为温度补偿电阻,通过U2C进行交流放大,D4为半波整流,最后R5与 C30为1阶滤波,把交流变成直流;VIN为输入A/D转换模块004,以及变送器放大和零点控制电路002的输入电压。The humidity sensor sampling mode 001 circuit is shown in Figure 2. A typical RC bridge oscillator circuit is formed by R20, C31, C32, R22, R23, R24 and the operational amplifier U2A, and a sine wave with a frequency of 1 kHz and an amplitude of 1 V is generated as the humidity. The sensor is supplied with power. In order to reduce the influence of the rear circuit on the front circuit, the first-stage operational amplifier U2B is added to function as an impedance isolation; C33 is a DC-blocking capacitor; the humidity sensor is divided by RT and W3, and RT is a temperature compensation resistor. AC amplification by U2C, D4 is half-wave rectification, and finally R5 and C30 are 1st-order filtering, turning AC into DC; VIN is input A/D conversion module 004, and input voltage of transmitter amplification and zero control circuit 002 .
所述放大控制电路002如图3,放大控制电路002包括变送器放大电路,零点控制电路,驱动输出电路003;变送器放大电路和零点控制电路包括两部分,上半部分为放大电路,采用了负反馈运放放大电路U2D,W2和R4为反馈电阻,用于调节放大倍数,固定R4为了提高数字电位器调节精度,放大电路主要为了满足智能湿度传感器的输出最大值要达到5V;下半部分为调零电路,是一个典型的运放求和电路,R9与R11的阻值相同,一端是湿度传感器的采样电压,001模块的输出电压VIN,另一端为数字电位器和两个固定电阻(R2、R3、W1)的分压,理论上,当相对湿度为0%,VT与VIN的电压值相同,方向相反,这样的话,当相对湿度为0%,智能湿度传感器的输出就可以为零。The amplification control circuit 002 is as shown in FIG. 3. The amplification control circuit 002 includes a transmitter amplifying circuit, a zero point control circuit, and a driving output circuit 003. The transmitter amplifying circuit and the zero point control circuit include two parts, and the upper part is an amplifying circuit. The negative feedback op amp amplifier circuit U2D is adopted, W2 and R4 are feedback resistors for adjusting the amplification factor, and the R4 is fixed to improve the adjustment accuracy of the digital potentiometer. The amplification circuit is mainly for satisfying the output maximum of the intelligent humidity sensor to reach 5V; The half is a zeroing circuit. It is a typical op amp summing circuit. The resistance values of R9 and R11 are the same. One end is the sampling voltage of the humidity sensor, the output voltage of the 001 module is VIN, and the other end is the digital potentiometer and two fixed. The partial pressure of the resistors (R2, R3, W1), theoretically, when the relative humidity is 0%, the voltage values of VT and VIN are the same, and the direction is opposite. In this case, when the relative humidity is 0%, the output of the intelligent humidity sensor can be Zero.
所述驱动输出电路003采用三极管射极跟随器Q1输出,起增加驱动能力和阻抗隔离作用。The drive output circuit 003 uses a triode emitter follower Q1 output to increase drive capability and impedance isolation.
为了实现自我调整的闭环控制系统,所述A/D转换前置输入电路004采用了LM358运放跟随器,主要在输入端采集湿度传感器取样电路001输送的电压信号;所述A/D转换前置输出电路006包括分压电路和LM358运放跟随器;所述A/D转换前置输出电路006主要采集驱动输出电路003发射极的发射极电压VO的电压信号,再用LM358运放跟随器把电压信号取出,以便单片机系统进行运算和控制。In order to realize a self-adjusting closed-loop control system, the A/D conversion pre-input circuit 004 adopts an LM358 op amp follower, and mainly collects a voltage signal transmitted by the humidity sensor sampling circuit 001 at the input end; before the A/D conversion The output circuit 006 includes a voltage dividing circuit and an LM358 op amp follower; the A/D conversion pre-output circuit 006 mainly collects the voltage signal of the emitter voltage VO of the emitter of the output circuit 003, and then uses the LM358 op amp follower. The voltage signal is taken out for the operation and control of the microcontroller system.
所述单片机系统005采用了STM32单片机STM32F103R8(如图6),该芯片性价比高,带有A/D、通信、I/O、定时计数器和看门狗等接口,运算能力强;引脚RXD1、TXD1为串行接口,与RS232接口相连,引脚ADC0、ADC1分别于AD转换前置电路模块004、AD转换前置电路模块006相连,用于输入、输出电压信号的采集,引脚SO、SI、SCK、CSW1、CSW2用于连接放大控制电路002用于调整该电路的参数,其余JNTRSR、JTDI、SWDIO、SWCLK、JTDO为JTAG插座引脚。The single chip system 005 adopts STM32 single chip STM32F103R8 (Fig. 6). The chip is cost-effective, with A/D, communication, I/O, timing counter and watchdog interface, and has strong computing power; pin RXD1 TXD1 is a serial interface and is connected to the RS232 interface. The pins ADC0 and ADC1 are respectively connected to the AD conversion pre-circuit module 004 and the AD conversion pre-circuit module 006 for input and output voltage signal acquisition, and the pins SO, SI SCK, CSW1, and CSW2 are used to connect the amplification control circuit 002 for adjusting the parameters of the circuit, and the remaining JNTRSR, JTDI, SWDIO, SWCLK, and JTDO are JTAG socket pins.
所述人机对话单元007包括调试按钮和LED指示灯模块;所述调试按钮具体采用2个独立式按键与单片机引脚PC7、PC8相连;所述LED指示灯模块为一个LED灯D1;所述2个独立式按键分别为测量按键KEY1和自校正按键KEY2;所述测量按键KEY1和自校正按键KEY2均优选为4脚微动开关,进一步优选为4脚微动开关6*6*5。The human-machine dialog unit 007 includes a debug button and an LED indicator module; the debug button is specifically connected to the single-chip pins PC7 and PC8 by two independent buttons; the LED indicator module is an LED light D1; The two independent keys are the measurement key KEY1 and the self-correction key KEY2; the measurement key KEY1 and the self-correction key KEY2 are preferably 4-pin micro-switches, further preferably 4-pin micro-switches 6*6*5.
所述RS232接口模块008用于接口扩展,根据用户需求可选;具体包括采用RS232接口进行RS-232C通信,进一步优选采用美新公司的max3232芯片U4;RS232接口模块008主要作用将TTL电平转换成RS-232C电平,J2为输出插头, 其他5个电容为外围电路,具体参考max3232芯片的datasheet,主要作用可以方便的接入wifi模块、4G通信模块和射频模块等,拓展智能湿度传感器的应用范围。The RS232 interface module 008 is used for interface expansion and is optional according to user requirements; specifically, the RS232 interface is used for RS-232C communication, and the Max3232 chip U4 of the US-based company is further preferably used; the RS232 interface module 008 mainly functions to convert the TTL level. Into the RS-232C level, J2 is the output plug, the other five capacitors are peripheral circuits, specifically refer to the datasheet of the max3232 chip, the main function can easily access the wifi module, 4G communication module and RF module, etc., to expand the intelligent humidity sensor Application range.

Claims (10)

  1. 智能湿度传感器,其特征是包括湿度传感器取样电路(001),放大控制电路(002),A/D转换前置输入电路(004),单片机系统(005),A/D转换前置输出电路(006),人机对话单元(007);其中,湿度传感器取样电路(001)的第一信号输出端与放大控制电路(002)的第一信号输入端相连,湿度传感器取样电路(001)的第二信号输出端与A/D转换前置输入电路(004)的信号输入端相连,A/D转换前置输入电路(004)的信号输出端与单片机系统(005)的第一信号输入端相连,单片机系统(005)的第二信号输入端与人机对话单元(007)的信号输出端相连,单片机系统(005)的第三信号输入端与A/D转换前置输出电路(006)的信号输出端相连,单片机系统(005)的第一信号输入输出端与放大控制电路(002)的信号输入输出端相连,放大控制电路(002)的信号输出端与A/D转换前置输出电路(006)的信号输入端相连。The intelligent humidity sensor is characterized by comprising a humidity sensor sampling circuit (001), an amplification control circuit (002), an A/D conversion pre-input circuit (004), a single-chip system (005), and an A/D conversion pre-output circuit ( 006) a human-machine dialog unit (007); wherein the first signal output end of the humidity sensor sampling circuit (001) is connected to the first signal input end of the amplification control circuit (002), and the humidity sensor sampling circuit (001) is The second signal output end is connected to the signal input end of the A/D conversion pre-input circuit (004), and the signal output end of the A/D conversion pre-input circuit (004) is connected to the first signal input end of the single chip system (005). The second signal input end of the single chip system (005) is connected to the signal output end of the human machine dialogue unit (007), the third signal input end of the single chip system (005) and the A/D conversion pre-output circuit (006) The signal output end is connected, the first signal input and output end of the single chip system (005) is connected with the signal input and output end of the amplification control circuit (002), and the signal output end of the amplification control circuit (002) and the A/D conversion pre-output circuit are connected. The signal inputs of (006) are connected.
  2. 根据权利要求1所述的智能湿度传感器,其特征是所述智能湿度传感器还包括接口模块(008),接口模块(008)的信号输入输出端与单片机系统(005)的第二信号输入输出端相连接。The intelligent humidity sensor according to claim 1, wherein the intelligent humidity sensor further comprises an interface module (008), a signal input and output end of the interface module (008) and a second signal input and output end of the single chip system (005). Connected.
  3. 根据权利要求1或2所述的智能湿度传感器,其特征是所述湿度传感器取样电路(001)中包括有高分子湿度传感器(RH),所述高分子湿度传感器(RH)采用高分子电阻型湿度传感器,所述高分子湿度传感器由RC桥式振荡电路供电,RC桥式振荡电路产生频率为1KHz、幅度为1V的正弦波为高分子湿度传感器提供电源,所述RC桥式振荡电路与高分子湿度传感器(RH)、温度补偿电阻RT、W3电阻、电源地构成分压电路,分压通过另一级运放U2C进行交流放大,二极管D4作用为半波整流,最后R5电阻与C30电容为1阶滤波,把交流变成直流电压VIN;所述RC桥式振荡电路包括R20电阻、C31电容、C32电容、R22电阻、R23电阻、运放U2A。The intelligent humidity sensor according to claim 1 or 2, wherein the humidity sensor sampling circuit (001) includes a polymer humidity sensor (RH), and the polymer humidity sensor (RH) is a polymer resistor type. The humidity sensor is powered by an RC bridge oscillating circuit, and the RC bridge oscillating circuit generates a sine wave having a frequency of 1 kHz and an amplitude of 1 V to supply power to the polymer humidity sensor, and the RC bridge oscillating circuit is high. The molecular humidity sensor (RH), the temperature compensation resistor RT, the W3 resistor, and the power supply form a voltage dividing circuit. The voltage division is AC amplified by another stage of the operational amplifier U2C, and the diode D4 acts as a half-wave rectification. Finally, the R5 resistor and the C30 capacitor are The first-order filtering converts the alternating current into a direct current voltage VIN; the RC bridge type oscillation circuit includes an R20 resistor, a C31 capacitor, a C32 capacitor, an R22 resistor, an R23 resistor, and an operational amplifier U2A.
  4. 根据权利要求1或2所述的智能湿度传感器,其特征是所述放大控制电路(002)包括变送器放大电路,零点控制电路,驱动输出电路(003);所述变送器放大电路采用负反馈运放放大电路,为了提高数字电位器调节某一区段的电阻分辨率,W2可编程电位器和R4电阻串联,构成反馈电阻,用于调节放大倍数,变送器放大电路主要为了满足智能湿度传感器的输出最大值要达到5V;所述零点控制电路采用运放求和电路,运放求和电路包括1个正极性电路,1个负极性电路;所述负极性电路为湿度传感器取样电路(001)的第一信号输出端输出的取样电压(VIN),通过R9电阻接到负反馈运放放大电路(U2D)的负端;正极性电路包括12V电压端、W1可编程电位器、R2电阻、R3电阻、模拟地,12V电压端与外部12V电源相接,W1可编程电位器中心抽头通过R11电阻也接到负反馈运放放大电路(U2D)的负端,只要R9电阻与R11电阻的阻值相等,那么,负反馈运放放大电路(U2D)的输入电压就是两者之和,W1可编程电位器的作用就是调整驱动输出电路(003)的电压的低点。The intelligent humidity sensor according to claim 1 or 2, wherein said amplification control circuit (002) comprises a transmitter amplifying circuit, a zero point control circuit, and a driving output circuit (003); said transmitter amplifying circuit adopts Negative feedback op amp amplifier circuit, in order to improve the digital potentiometer to adjust the resistance resolution of a certain section, W2 programmable potentiometer and R4 resistor in series, constitute a feedback resistor, used to adjust the amplification factor, the transmitter amplifier circuit is mainly to meet The output of the intelligent humidity sensor has a maximum value of 5V; the zero point control circuit uses an operational amplifier summing circuit, and the operational amplifier summation circuit includes one positive polarity circuit and one negative polarity circuit; the negative polarity circuit samples the humidity sensor The sampling voltage (VIN) outputted by the first signal output terminal of the circuit (001) is connected to the negative terminal of the negative feedback operational amplifier amplifier circuit (U2D) through the R9 resistor; the positive polarity circuit includes a 12V voltage terminal, a W1 programmable potentiometer, R2 resistor, R3 resistor, analog ground, 12V voltage terminal is connected with external 12V power supply, W1 programmable potentiometer center tap is also connected to negative feedback op amp amplifier circuit (U2D) through R11 resistor As long as the resistance of the R9 resistor is equal to the resistance of the R11 resistor, the input voltage of the negative feedback op amp amplifier circuit (U2D) is the sum of the two. The function of the W1 programmable potentiometer is to adjust the voltage of the drive output circuit (003). Low point.
  5. 根据权利要求4所述的智能湿度传感器,其特征是所述W1可编程电位器、 W2可编程电位器均采用数字电位器x9110。The intelligent humidity sensor according to claim 4, wherein the W1 programmable potentiometer and the W2 programmable potentiometer each use a digital potentiometer x9110.
  6. 根据权利要求4所述的智能湿度传感器,其特征是所述驱动输出电路(003)采用三极管射极跟随器输出。The intelligent humidity sensor of claim 4 wherein said drive output circuit (003) employs a triode emitter follower output.
  7. 根据权利要求1或2所述的智能湿度传感器,其特征是所述A/D转换前置输入电路(004)采用了LM358运放(U5A)进行反相放大,若R29和R30电阻值相等,则该电路的作用将湿度传感器取样电路(001)输送的取样电压(VIN)取反;所述A/D转换前置输出电路(006)包括分压电路和LM358运放跟随器(U5B);所述A/D转换前置输出电路(006)采集驱动输出电路(003)发射极的发射极电压(VO)的电压信号经R27电阻、R28电阻分压,再通过LM358运放跟随器(U5B)把电压信号取出,以便单片机系统进行运算和控制。The intelligent humidity sensor according to claim 1 or 2, wherein said A/D conversion pre-input circuit (004) uses an LM358 op amp (U5A) for inverting amplification, and if R29 and R30 have equal resistance values, Then the function of the circuit reverses the sampling voltage (VIN) delivered by the humidity sensor sampling circuit (001); the A/D conversion pre-output circuit (006) includes a voltage dividing circuit and an LM358 op amp follower (U5B); The A/D conversion pre-output circuit (006) collects the voltage signal of the emitter voltage (VO) of the emitter of the drive output circuit (003) via the R27 resistor, the R28 resistor divider, and then passes the LM358 op amp follower (U5B). Take out the voltage signal for the microcontroller system to perform calculations and control.
  8. 根据权利要求1或2所述的智能湿度传感器,其特征是所述单片机系统(005)包括STM32单片机;所述人机对话单元(007)包括调试按钮和LED指示灯模块;所述LED指示灯模块为一个LED灯;所述2个独立式按键分别为测量按键(KEY1)和自校正按键(KEY2);所述测量按键(KEY1)和自校正按键(KEY2)均为4脚微动开关;所述测量按键(KEY1)与STM32单片机的PC7引脚相接,自校正按键(KEY2)与STM32单片机的PC8引脚相接。The intelligent humidity sensor according to claim 1 or 2, wherein said single chip microcomputer system (005) comprises an STM32 single chip microcomputer; said human machine dialogue unit (007) comprises a debug button and an LED indicator module; said LED indicator light The module is an LED lamp; the two independent buttons are a measurement button (KEY1) and a self-correction button (KEY2); the measurement button (KEY1) and the self-correction button (KEY2) are 4-pin micro-switches; The measurement button (KEY1) is connected to the PC7 pin of the STM32 microcontroller, and the self-calibration button (KEY2) is connected to the PC8 pin of the STM32 microcontroller.
  9. 根据权利要求2所述的智能湿度传感器,其特征是所述接口模块008采用RS232接口进行RS-232C通信。The intelligent humidity sensor according to claim 2, wherein said interface module 008 performs RS-232C communication using an RS232 interface.
  10. 如权利要求1所述的智能湿度传感器,其特征在于具体工作方法如下:The intelligent humidity sensor according to claim 1, wherein the specific working method is as follows:
    选取以相对湿度0%~100%对应0V~5V的变送器;在调试中,一般选取湿度的相对低点与相对高点作为参考点,那么,具有自适应功能的智能湿度传感器的理论上对应输出电压应该为1.5V、4.25V;所述相对低点和相对高点分别为湿度30%和湿度85%,调试整个过程如下:Select a transmitter with a relative humidity of 0% to 100% corresponding to 0V to 5V; in debugging, generally select the relative low point of the humidity and the relative high point as the reference point, then the intelligent humidity sensor with adaptive function is theoretically The corresponding output voltage should be 1.5V, 4.25V; the relative low point and relative high point are humidity 30% and humidity 85% respectively. The whole process of debugging is as follows:
    1)通过模拟相对低点和相对高点湿度环境,放大控制电路(002)读取湿度传感器取样电路(001)在湿度相对低点和相对高点时输出的电压作为对应的取样电压(VIN),相对低点和相对高点对应的取样电压(VIN)分别为x1、x2;具体方法为:高分子湿度传感器(RH)在相对湿度为30%条件下,3秒的时间段内按1下测量按键(KEY1),测得相对湿度低点对应的取样电压x1,LED指示灯闪烁一下;高分子湿度传感器(RH)在相对湿度为85%条件下,3秒的时间段内连续按2下测量按键(KEY1)测得相对湿度高点对应的取样电压x2,LED指示灯闪烁二下;1) By simulating the relatively low and relatively high humidity environment, the amplification control circuit (002) reads the voltage output by the humidity sensor sampling circuit (001) at the relatively low and relatively high humidity levels as the corresponding sampling voltage (VIN). The sampling voltages (VIN) corresponding to the relatively low points and the relatively high points are respectively x1 and x2; the specific method is: the polymer humidity sensor (RH) is pressed at a relative humidity of 30%, and is pressed for 1 time in a period of 3 seconds. The measurement button (KEY1) measures the sampling voltage x1 corresponding to the low relative humidity, and the LED indicator flashes; the polymer humidity sensor (RH) continuously presses 2 times in the 3 second period under the condition of relative humidity of 85%. The measurement button (KEY1) measures the sampling voltage x2 corresponding to the high relative humidity, and the LED indicator flashes twice;
    2)计算W1可编程电位器、W2可编程电位器的理论阻值,放大控制电路(002)的输出电压与输入取样电压的对应关系为:2) Calculate the theoretical resistance of the W1 programmable potentiometer and W2 programmable potentiometer. The corresponding relationship between the output voltage of the amplification control circuit (002) and the input sampling voltage is:
    VO=-(R4+R W2)×(VIN+12×(R2+R W1)/(R2+R3+RM))/R9 (1) VO=-(R4+R W2 )×(VIN+12×(R2+R W1 )/(R2+R3+RM))/R9 (1)
    其中,VIN表示取样电压,VO表示输出电压,RM为数字电位器x9110的最大电阻100K,R9电阻、R11电阻的阻值相等,放大控制电路(002)中的W1可编程电位器的阻值为R W1、W2可编程电位器的阻值为R W2Where VIN represents the sampling voltage, VO represents the output voltage, RM is the maximum resistance of the digital potentiometer x9110 100K, the resistance of the R9 resistor and the R11 resistor are equal, and the resistance of the W1 programmable potentiometer in the amplification control circuit (002) The resistance of R W1 and W2 programmable potentiometer is R W2 ;
    输入取样电压x1、取样电压x2,对应的输出电压理论值为1.5V、4.25V,代入(1),可得方程:Input sampling voltage x1, sampling voltage x2, the corresponding output voltage theoretical value is 1.5V, 4.25V, substituted into (1), can get the equation:
    -(R4+R W2)×(x1+12×(R2+R W1)/(R2+R3+RM))/R9=1.5; (2) -(R4+R W2 )×(x1+12×(R2+R W1 )/(R2+R3+RM))/R9=1.5; (2)
    -(R4+R W2)×(x2+12×(R2+R W1)/(R2+R3+RM))/R9=4.25; (3) -(R4+R W2 )×(x2+12×(R2+R W1 )/(R2+R3+RM))/R9=4.25; (3)
    由(2)、(3)方程可解:Solved by equations (2) and (3):
    R W2=R9×2.75/(x1-x2)-R4; (4) R W2 =R9×2.75/(x1-x2)-R4; (4)
    把(4)代入(2)可以求得R W1Substituting (4) into (2) can find R W1 ;
    单片机系统(005)依据上面公式计算出阻值R W1、阻值R W2的值,并对可编程电位器W1和可编程电位器W2进行调整; The single-chip microcomputer system (005) calculates the values of the resistance value R W1 and the resistance value R W2 according to the above formula, and adjusts the programmable potentiometer W1 and the programmable potentiometer W2;
    3)自校准:因为每个湿度传感器和电路都会有差异,实际相对低点和相对高点对应的输出电压有可能不是正好1.5V和4.25V,所以还要和实际值比较进行误差计算,具体方法如下:3) Self-calibration: Because each humidity sensor and circuit will have differences, the actual relative low and relative high output voltages may not be exactly 1.5V and 4.25V, so the error calculation should be compared with the actual value. Methods as below:
    重复步骤1),按测量按键(KEY1)改成按自校正按键(KEY2);Repeat step 1), press the measurement button (KEY1) to change to press the self-correction button (KEY2);
    通过模拟相对低点和相对高点湿度环境,放大控制电路(002)读取湿度传感器取样电路(001)在湿度相对低点和相对高点时输出的电压作为对应的取样电压(VIN)分别为x1、x2,放大控制电路(002)的信号输出端输出对应的驱动输出电压(VO)分别为y1、y2;By simulating the relatively low and relatively high humidity environment, the amplification control circuit (002) reads the voltage output by the humidity sensor sampling circuit (001) at the relatively low and relatively high humidity levels as the corresponding sampling voltage (VIN), respectively. X1, x2, the output output voltage (VO) of the signal output end of the amplification control circuit (002) is y1, y2;
    具体方法为:高分子湿度传感器(RH)在相对湿度为30%条件下,3秒的时间段内按1下按自校正按键(KEY2),测得相对湿度低点对应的取样电压x1,LED指示灯闪烁一下,测得驱动输出电路(003)信号输出端的输出电压y1;高分子湿度传感器(RH)在相对湿度为85%条件下,3秒的时间段内连续按2下按自校正按键(KEY2)测得相对湿度高点对应的取样电压x2,LED指示灯闪烁二下,测得驱动输出电路(003)信号输出端的输出电压y2;The specific method is as follows: the polymer humidity sensor (RH) is pressed at a relative humidity of 30%, and the self-calibration button (KEY2) is pressed for 1 time in a period of 3 seconds, and the sampling voltage x1 corresponding to the low relative humidity is measured. The indicator light flashes to measure the output voltage y1 of the signal output terminal of the drive output circuit (003); the polymer humidity sensor (RH) presses the self-correction button continuously for 2 seconds in the period of 3 seconds under the condition of relative humidity of 85%. (KEY2) measured the sampling voltage x2 corresponding to the high relative humidity, the LED indicator flashes twice, and the output voltage y2 of the signal output end of the driving output circuit (003) is measured;
    湿度低点误差:Δ1=y1-1.5;Humidity low point error: Δ1 = y1-1.5;
    湿度高点误差:Δ2=y2-4.25;Humidity high point error: Δ2 = y2-4.25;
    误差即为Δ1、Δ2中绝对值大者;The error is the absolute value of Δ1 and Δ2;
    4)根据实际值计算R W1、R W2的值: 4) Calculate the values of R W1 and R W2 based on actual values:
    将对应的输出电压代入公式(2)、(3),输出电压理论值为1.5V、4.25V变为实际值y1、y2;Substituting the corresponding output voltage into equations (2) and (3), the theoretical value of the output voltage is 1.5V, 4.25V becomes the actual value y1, y2;
    -(R4+R W2)×(x1+12×(R2+R W1)/(R2+R3+RM))/R9=y1; (5) -(R4+R W2 )×(x1+12×(R2+R W1 )/(R2+R3+RM))/R9=y1; (5)
    -(R4+R W2)×(x2+12×(R2+R W1)/(R2+R3+RM))/R9=y2; (6) -(R4+R W2 )×(x2+12×(R2+R W1 )/(R2+R3+RM))/R9=y2; (6)
    根据步骤2)方法,再次计算出阻值R W1、阻值R W2的值,并对W1可编程电位器和W2可编程电位器进行调整; According to the method of step 2), the values of the resistance value R W1 and the resistance value R W2 are calculated again, and the W1 programmable potentiometer and the W2 programmable potentiometer are adjusted;
    5)重复步骤3)进行第二次自校准,可得驱动输出电压y1’和y2’5) Repeat step 3) for the second self-calibration to obtain the drive output voltages y1' and y2'
    湿度低点误差:Δ1’=y1’-1.5;Humidity low point error: Δ1' = y1'-1.5;
    湿度高点误差:Δ2’=y2’-4.25;Humidity high point error: Δ2' = y2' - 4.25;
    计算出新的误差即为Δ1’、Δ2’中绝对值大者;The new error is calculated as the absolute value of Δ1' and Δ2';
    再次根据实际值驱动输出电压y1’和y2’,计算出此时阻值R W1、阻值R W2的值: The output voltages y1' and y2' are driven again according to the actual values, and the values of the resistance values R W1 and the resistance values R W2 are calculated:
    最终,阻值R W1、阻值R W2的值取二次误差比较小的那次的值。 Finally, the value of the resistance value R W1 and the resistance value R W2 takes the value of the second time when the second error is relatively small.
PCT/CN2018/087817 2018-03-15 2018-06-14 Intelligent humidity sensor WO2019174123A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810215451.5A CN108536053B (en) 2018-03-15 2018-03-15 Intelligent humidity sensor
CN201810215451.5 2018-03-15

Publications (1)

Publication Number Publication Date
WO2019174123A1 true WO2019174123A1 (en) 2019-09-19

Family

ID=63484026

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/087817 WO2019174123A1 (en) 2018-03-15 2018-06-14 Intelligent humidity sensor

Country Status (2)

Country Link
CN (1) CN108536053B (en)
WO (1) WO2019174123A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109374946A (en) * 2018-09-26 2019-02-22 江苏史利姆智能测控技术有限公司 A kind of detection sensor for high-power charging equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050116023A1 (en) * 2003-12-02 2005-06-02 Amundson John B. Controller interface with spparate schedule review mode
CN202471857U (en) * 2012-01-19 2012-10-03 无锡爱森思电气科技有限公司 Multifunctional digital electric power instrument with temperature and humidity control
CN106441437A (en) * 2016-10-14 2017-02-22 国网上海市电力公司 Multifunctional portable comprehensive measurement device for soil environment parameters
CN107346916A (en) * 2017-07-01 2017-11-14 国网山东省电力公司德州市陵城区供电公司 A kind of power equipment online detection and control system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6795871B2 (en) * 2000-12-22 2004-09-21 General Electric Company Appliance sensor and man machine interface bus
KR100904225B1 (en) * 2007-06-05 2009-06-25 (주)바이텍코리아 Apparatus for measuring water level
CN204101205U (en) * 2014-07-31 2015-01-14 武汉松野智能仪表有限公司 Intelligent digital temperature transmitter
CN206609821U (en) * 2017-01-24 2017-11-03 重庆电子工程职业学院 A kind of humidity measuring circuit based on HS1101
CN208521147U (en) * 2018-03-15 2019-02-19 无锡职业技术学院 A kind of humidity sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050116023A1 (en) * 2003-12-02 2005-06-02 Amundson John B. Controller interface with spparate schedule review mode
CN202471857U (en) * 2012-01-19 2012-10-03 无锡爱森思电气科技有限公司 Multifunctional digital electric power instrument with temperature and humidity control
CN106441437A (en) * 2016-10-14 2017-02-22 国网上海市电力公司 Multifunctional portable comprehensive measurement device for soil environment parameters
CN107346916A (en) * 2017-07-01 2017-11-14 国网山东省电力公司德州市陵城区供电公司 A kind of power equipment online detection and control system

Also Published As

Publication number Publication date
CN108536053B (en) 2024-04-09
CN108536053A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
WO2019174123A1 (en) Intelligent humidity sensor
CN101706249A (en) Remote monitoring device for mountain cracks
CN103487172A (en) Heat metering wireless temperature control system based on fuzzy control algorithm
CN104280157A (en) Low-power-consumption transmitter
WO2022105697A1 (en) Drive system for medical vacuum negative-pressure machine
CN106621318A (en) Handle rocking bar system and method for acquiring signal based on sensor mpu6050
CN208521147U (en) A kind of humidity sensor
CN205748669U (en) A kind of multiple wireless system for detecting temperature
CN204133440U (en) A kind of non-contact infrared body temperature meter
CN202994075U (en) Displacement measuring device
CN209278606U (en) A kind of adjustable Discrete control pneumatic stopping valve
CN102636622B (en) Wide-area oxygen concentration measurement method and realization device intelligent wide-area oxygen measurement instrument thereof
CN207674689U (en) A kind of Intelligent constant-voltage air blowing control device device
CN202521786U (en) Air conditioner control system based on biological signals
CN204758159U (en) Wireless heating quality monitor terminal
Gao Design of Temperature Control System
Huang et al. Design of greenhouse environment monitoring system
CN213780721U (en) Integrated environmental parameter detection device based on single chip microcomputer
CN102955035A (en) Portable intelligent blood glucose meter with rapid printout function
CN218446422U (en) Control system of miniature current transformer calibrator
CN214096154U (en) Temperature and humidity alarm control system based on single chip microcomputer
CN213067635U (en) Acquisition circuit of precision displacement measuring instrument
CN203204066U (en) Ammeter used for hollow-core mutual inductor
Su et al. Design of remote monitoring system for Smart home
Liang et al. Design of CNC constant current source based on incremental PID control

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18909773

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18909773

Country of ref document: EP

Kind code of ref document: A1