CN114091273A - Humidity detection method and device, electronic equipment and storage medium - Google Patents

Humidity detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114091273A
CN114091273A CN202111412646.7A CN202111412646A CN114091273A CN 114091273 A CN114091273 A CN 114091273A CN 202111412646 A CN202111412646 A CN 202111412646A CN 114091273 A CN114091273 A CN 114091273A
Authority
CN
China
Prior art keywords
humidity
data
temperature
partial pressure
sample
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
CN202111412646.7A
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.)
Guangdong TCL Intelligent HVAC Equipment Co Ltd
Original Assignee
Guangdong TCL Intelligent HVAC Equipment 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 Guangdong TCL Intelligent HVAC Equipment Co Ltd filed Critical Guangdong TCL Intelligent HVAC Equipment Co Ltd
Priority to CN202111412646.7A priority Critical patent/CN114091273A/en
Publication of CN114091273A publication Critical patent/CN114091273A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/08Thermal analysis or thermal optimisation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)

Abstract

The application provides a humidity detection method, a humidity detection device, electronic equipment and a storage medium, relates to the electrical field, solves the problems of low humidity sensing speed and poor stability of the current humidity detection mode, and comprises the steps of obtaining a temperature partial pressure value of a temperature detection module and a humidity partial pressure value of the humidity detection module; determining current temperature data in the space to be measured according to the temperature partial pressure value; based on the preset humidity comparison table, look-up tables are taken as input to the current temperature data and the humidity partial pressure value, so that the current relative humidity data in the space to be detected is obtained.

Description

Humidity detection method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electrical technologies, and in particular, to a humidity detection method and apparatus, an electronic device, and a storage medium.
Background
The humidity-sensitive resistors in the existing market are uneven in material, after the input waveform of part of the humidity-sensitive resistors is turned over, the sampled voltage is distorted, a certain stabilization time needs to be waited, an accurate partial voltage value can be obtained and returned to a data processor for calculation and processing, the humidity can not be quickly analyzed by adopting the mode that the humidity is detected by the sensor detection module of the single-line output voltage value, and the problems of low speed and poor stability of humidity sensing exist.
Disclosure of Invention
The application provides a humidity detection method, a humidity detection device, an electronic device and a storage medium, wherein the humidity detection method, the humidity detection device, the electronic device and the storage medium can shorten the processing time of a data processor on temperature detection data and improve the humidity detection speed and the relative humidity analysis speed in a space to be detected after acquiring the temperature detection data input by a humidity sensitive resistor.
In one aspect, the present application provides a humidity detection method, which performs humidity detection through a humidity detection device disposed in a space to be detected, where the humidity detection device includes a humidity detection module and a temperature detection module, and the humidity detection method includes:
acquiring a temperature partial pressure value of the temperature detection module and a humidity partial pressure value of the humidity detection module;
determining current temperature data in the space to be measured according to the temperature partial pressure value;
and based on a preset humidity comparison table, looking up the table by taking the current temperature data and the humidity partial pressure value as input to obtain the current relative humidity data in the space to be measured.
In a possible implementation manner of the present application, before the obtaining of the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module, the method includes:
acquiring a plurality of temperature sample data of the space to be tested, a plurality of temperature sample partial pressure data corresponding to the temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data corresponding to the humidity sample data;
and performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain the humidity comparison table.
In a possible implementation manner of the present application, before performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data, and the plurality of humidity sample partial pressure data to obtain the humidity lookup table, the method includes:
performing point tracing on a temperature two-dimensional coordinate according to the relation between the plurality of temperature sample data and the plurality of temperature sample partial pressure data to obtain a two-dimensional temperature curve;
performing point tracing on a humidity two-dimensional coordinate according to the relation between the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain a two-dimensional humidity curve;
and integrating the two-dimensional temperature curve and the two-dimensional humidity curve to obtain a three-dimensional curved surface.
In a possible implementation manner of the present application, the performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data, and the plurality of humidity sample partial pressure data to obtain the humidity comparison table includes:
converting the interior of the three-dimensional curved surface into a two-dimensional array, wherein the two-dimensional array comprises a plurality of array elements formed by basic arrays;
and taking the two-dimensional array as the humidity comparison table.
In one possible implementation manner of the present application, the converting the three-dimensional curved surface into a two-dimensional array, where the two-dimensional array includes a plurality of array elements formed by a base array, includes:
determining a first-level index value of the basic array according to the temperature sample data;
determining a secondary index value of the basic array according to the humidity sample data;
and determining the array value of the basic array according to the humidity sample partial pressure data.
And taking a two-dimensional array formed by a plurality of the basic arrays as the humidity comparison table.
In a possible implementation manner of the present application, the determining a first-level index value of the basic array according to the temperature sample data includes:
dividing N temperature sample data with adjacent numerical values in the plurality of temperature sample data into a temperature data interval to obtain a plurality of temperature data intervals, wherein N is a natural number smaller than 4;
labeling the temperature data intervals in sequence to obtain a plurality of temperature data intervals with numerical labels;
and determining the numerical value label as a first-level index value of the basic array.
In a possible implementation manner of the present application, the determining a secondary index value of the basic array according to the humidity sample data includes determining a secondary index value of the basic array according to the humidity sample data, where the determining includes
Determining N humidity sample data corresponding to N temperature sample data in the temperature data interval according to the temperature data interval;
calculating the average value of the N humidity sample data to obtain average humidity sample data;
and determining the humidity sample average data as a secondary index value of the base array.
In a possible implementation manner of the present application, based on a preset humidity comparison table, the current temperature data and the humidity partial pressure value are used as input to perform table lookup to obtain the current relative humidity data in the space to be measured, including:
according to the current temperature data, determining a temperature data interval corresponding to the current temperature data in the humidity comparison table;
determining the current first-level index value corresponding to the temperature data interval according to the temperature data interval;
determining the current secondary index value according to the humidity partial pressure value and the current primary index value;
and taking the current secondary index value as the current relative humidity data in the space to be detected.
In one possible implementation manner of the present application, the obtaining of the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module includes
Receiving and acquiring a trigger signal within a preset time period;
and acquiring the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module once according to the acquired trigger signal.
In another aspect, the present application provides a humidity detection apparatus, which includes a humidity detection module and a temperature detection module;
the acquisition module is used for acquiring a temperature partial pressure value of the temperature detection module and a humidity partial pressure value of the humidity detection module;
the conversion module is used for determining the current temperature data in the space to be measured according to the temperature partial pressure value;
and the determining module is used for looking up the table by taking the current temperature data and the humidity partial pressure value as input based on a preset humidity comparison table to obtain the current relative humidity data in the space to be measured.
Humidity detection device still includes data integration module, data integration module specifically is:
the humidity measuring device is used for acquiring a plurality of temperature sample data, a plurality of temperature sample partial pressure data corresponding to the temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data corresponding to the humidity sample data of the space to be measured;
and the humidity comparison table is obtained by performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data and the plurality of humidity sample partial pressure data.
The data integration module is further specifically:
the temperature control device is used for performing point tracing on a temperature two-dimensional coordinate according to the relation between the plurality of temperature sample data and the plurality of temperature sample partial pressure data to obtain a two-dimensional temperature curve;
the humidity two-dimensional coordinate system is used for performing point tracing on a humidity two-dimensional coordinate according to the relation between the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain a two-dimensional humidity curve;
and the two-dimensional temperature curve and the two-dimensional humidity curve are integrated to obtain a three-dimensional curved surface.
The data integration module is further specifically:
the system comprises a three-dimensional curved surface, a data processing module and a data processing module, wherein the three-dimensional curved surface is used for converting the inside of the three-dimensional curved surface into a two-dimensional array, and the two-dimensional array comprises a plurality of array elements formed by basic arrays;
the two-dimensional array is used as the humidity comparison table.
The data integration module is further specifically:
the basic array is used for determining a first-level index value of the basic array according to the temperature sample data;
the second-level index value of the basic array is determined according to the humidity sample data;
and the data processing unit is used for determining the array value of the basic array according to the humidity sample partial pressure data.
The two-dimensional array formed by a plurality of the basic arrays is used as the humidity comparison table.
The data integration module is further specifically:
the temperature data processing device is used for dividing N temperature sample data with adjacent numerical values in the plurality of temperature sample data into a temperature data interval to obtain a plurality of temperature data intervals, wherein N is a natural number smaller than 4;
the temperature data intervals are sequentially marked to obtain a plurality of temperature data intervals with numerical marks;
the index value determining unit is used for determining the numerical value index as a primary index value of the basic array.
The data integration module is further specifically:
the humidity data interval is used for determining N humidity sample data corresponding to N temperature sample data in the temperature data interval;
the humidity sample data acquisition unit is used for carrying out average value calculation on the N humidity sample data to obtain average humidity sample data;
for determining the humidity sample average data as a secondary index value of the base array.
The determining module is specifically:
the temperature data interval corresponding to the current temperature data in the humidity comparison table is determined according to the current temperature data;
the index value of the current level corresponding to the temperature data interval is determined according to the temperature data interval;
the current secondary index value is determined according to the humidity partial pressure value and the current primary index value;
and the current secondary index value is used as the current relative humidity data in the space to be measured.
The acquisition module specifically comprises:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving and acquiring a trigger signal in a preset time period;
and the humidity control module is used for acquiring the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module once according to the acquired trigger signal.
In another aspect, the present application further provides an electronic device, wherein the electronic device includes:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the wetness detection method.
In another aspect, the present application further provides a computer readable storage medium, on which a computer program is stored, the computer program being loaded by a processor to execute the steps of the humidity detection method.
This application is through acquireing current temperature data and humidity partial pressure value, look up the table according to current temperature data and humidity partial pressure value, can directly obtain the current temperature data in the space that awaits measuring, for passing through sensor detection module single line output voltage value among the conventional art, need calculate the mode of handling in order to obtain humidity to voltage value through data processor, this application is when gathering corresponding humidity partial pressure value, the direct look up table that can be quick obtains current relative humidity data, shorten the processing duration to temperature detection data, improve humidity detection speed and the interior relative humidity analysis speed of space that awaits measuring.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an embodiment of a humidity detection module provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an embodiment of a temperature detection module provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating one embodiment of a humidity detection method provided in embodiments of the present application;
FIG. 4 is a schematic flow chart diagram illustrating one embodiment of a humidity detection method provided in embodiments of the present application;
FIG. 5 is a schematic view of a three-dimensional curved surface provided in an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram illustrating one embodiment of a humidity detection method provided in embodiments of the present application;
FIG. 7 is a schematic illustration of a humidity map provided in an embodiment of the present application;
FIG. 8 is a schematic flow chart diagram illustrating one embodiment of a humidity detection method provided in embodiments of the present application;
FIG. 9 is a schematic flow chart diagram illustrating one embodiment of a humidity detection method provided in embodiments of the present application;
FIG. 10 is a schematic structural diagram of one embodiment of a humidity detection device provided in the embodiments of the present application;
fig. 11 is a schematic structural diagram of an embodiment of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Embodiments of the present application provide a humidity detection method, a humidity detection device, an electronic apparatus, and a storage medium, which are described in detail below.
In this embodiment, the humidity detection method is implemented by performing humidity detection through a humidity detection device disposed in a space to be detected, as shown in fig. 1 and 2, the humidity detection device includes a humidity detection module and a temperature detection module, and the humidity detection device further includes a data processor.
As shown in fig. 1, the humidity detection module includes a humidity sensor RH and a first voltage dividing resistor RS, one end of the humidity sensor RH is electrically connected to a port IO1 of the data processor to form a connection point V1, the other end of the humidity sensor RH is electrically connected to the first voltage dividing resistor RS, the other end of the first voltage dividing resistor RS is electrically connected to a port IO2 of the data processor to form a connection point V3, an AD port of the data processor is electrically connected to an electrical connection point of the humidity sensor RH and the first voltage dividing resistor RS, and a connection point V2 is formed at an AD port of the data processor. In the detection process, two ports of the data processor send 1kHz rectangular waves, the connecting point V1 and the connecting point V3 are opposite 5V pulse levels and can also be pulse voltages of other voltage values, the resistance value of the humidity sensor RH is changed under the condition of different humidity, meanwhile, the humidity sensor RH and the first divider resistor RS form divided voltage, and the sampled humidity divided value data are returned to an AD port of the data processor.
As shown in fig. 2, the temperature detection module includes a temperature sensor TP and a second voltage dividing resistor RS, the temperature sensor TP is connected in parallel with the second voltage dividing resistor RS, one of the electrical connection points of the temperature sensor TP and the second voltage dividing resistor RS forms a connection point V4, and the AD port of the data processor is electrically connected to the connection point V4. In the application process, after the external power supply VCC supplies power to the temperature sensor TP, the temperature field in the space is monitored in real time through the temperature sensor TP, when the temperature field in the space changes, the resistance value of the temperature field changes, so that the voltage value of the second divider resistor RS also changes synchronously, the voltage division value of the second divider resistor RS is acquired, and the acquired temperature division value data is transmitted to an AD port of the data processor.
As shown in fig. 3, which is a schematic flow chart of an embodiment of a humidity detection method in the embodiment of the present application, the humidity detection method includes the following steps 101 to 103:
101. and acquiring a temperature partial pressure value of the temperature detection module and a humidity partial pressure value of the humidity detection module.
Carry out real-time detection to ambient temperature and ambient humidity through setting up the humidity detection device in waiting to detect the environment, the temperature partial pressure value that temperature detection module detected transmits to data processor's AD port to acquire the temperature partial pressure value, the temperature partial pressure value that humidity detection module detected transmits to data processor's AD port, thereby acquires the humidity partial pressure value.
102. And determining the current temperature data in the space to be measured according to the temperature partial pressure value.
The data processor receives the temperature partial pressure value and converts the temperature partial pressure value into current temperature data corresponding to the temperature partial pressure value.
103. And based on a preset humidity comparison table, looking up the table by taking the current temperature data and the humidity partial pressure value as input to obtain the current relative humidity data in the space to be measured.
And taking the obtained humidity partial pressure value and temperature partial pressure value as input, looking up a table based on a humidity comparison table, directly inquiring corresponding current relative humidity data according to the data corresponding relation in the humidity comparison table, and obtaining the current relative humidity data.
This application is through acquireing current temperature data and humidity partial pressure value, look up the table according to current temperature data and humidity partial pressure value, can directly obtain the current temperature data in the space that awaits measuring, for passing through sensor detection module single line output voltage value among the conventional art, need calculate the mode of handling in order to obtain humidity to voltage value through data processor, this application is when gathering corresponding humidity partial pressure value, the direct look up table that can be quick obtains current relative humidity data, shorten the processing duration to temperature detection data, improve humidity detection speed and the interior relative humidity analysis speed of space that awaits measuring.
In some embodiments of the present application, before performing humidity measurement, an accurate humidity comparison table needs to be established according to the actual situation of the space to be measured, so as to facilitate data query.
Before acquiring a temperature partial pressure value of a temperature detection module and a humidity partial pressure value of a humidity detection module, the method comprises the following steps:
the method comprises the steps of obtaining a plurality of temperature sample data of a space to be measured, a plurality of temperature sample partial pressure data corresponding to the temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data corresponding to the humidity sample data.
The method comprises the steps of acquiring voltage change data corresponding to the temperature, the humidity and the humidity of a space to be detected in real time through a humidity detection device, namely acquiring a plurality of temperature sample data, a plurality of temperature sample partial pressure data corresponding to the temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data corresponding to the humidity sample data at different temperatures, and taking the plurality of groups of experimental data as data samples.
And performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain a humidity comparison table.
In some embodiments of the present application, as shown in fig. 4, before performing data integration on a plurality of temperature sample data, a plurality of temperature sample partial pressure data, a plurality of humidity sample data, and a plurality of humidity sample partial pressure data to obtain a humidity comparison table, the method includes the following steps 201 to 203:
201. and performing point tracing on a temperature two-dimensional coordinate according to the relation between the plurality of temperature sample data and the plurality of temperature sample partial pressure data to obtain a two-dimensional temperature curve.
Firstly, establishing a temperature two-dimensional coordinate, in the actual situation, when the temperature field of the space to be measured changes, the temperature sample partial pressure data acquired by the data processor also changes synchronously, after the acquired temperature sample partial pressure data is processed and converted into temperature sample data by the data processor, according to the one-to-one correspondence relationship between the temperature sample partial pressure data and the temperature sample data obtained by conversion, performing point tracing on the temperature two-dimensional coordinate to obtain a two-dimensional temperature curve.
202. And performing point tracing on a humidity two-dimensional coordinate according to the relation between the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain a two-dimensional humidity curve.
And establishing a humidity two-dimensional coordinate, wherein in an actual situation, when a temperature field of a space to be measured changes, the humidity in the corresponding space to be measured also changes correspondingly, so that the humidity sample partial pressure data acquired by the data processor also changes synchronously, and after the acquired humidity sample partial pressure data is processed and converted into humidity sample data by the data processor, the humidity two-dimensional coordinate is dotted according to the one-to-one correspondence relationship between the humidity sample partial pressure data and the humidity sample data obtained by conversion, so as to obtain a two-dimensional humidity curve.
203. And integrating the two-dimensional temperature curve and the two-dimensional humidity curve to obtain a three-dimensional curved surface.
Establishing a humidity three-dimensional coordinate, and performing point tracing on the humidity three-dimensional coordinate according to a two-dimensional temperature curve, a two-dimensional humidity curve and a corresponding relation between temperature sample data and humidity sample data, wherein the data of the three-dimensional curved surface comprises a plurality of temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data which are mutually corresponding to form a three-dimensional curved surface, the three-dimensional curved surface is shown in figure 5, and the three-dimensional curved surface covers all humidity points which can be detected by a humidity detection module at a specified temperature.
In some embodiments of the present application, data integration is performed on a plurality of temperature sample data, a plurality of temperature sample partial pressure data, a plurality of humidity sample data, and a plurality of humidity sample partial pressure data to obtain a humidity comparison table, which includes the following steps:
and converting the inside of the three-dimensional curved surface into a two-dimensional array, wherein the two-dimensional array comprises a plurality of array elements formed by basic arrays, and the two-dimensional array is used as a humidity comparison table.
TABLE 1 two-dimensional array (temperature-humidity-voltage value)
Figure BDA0003374747930000101
In order to simplify the relationship between data, a data processor performs a programming process on a three-dimensional curved surface, and the three-dimensional curved surface is converted into a two-dimensional array including a plurality of temperature sample data, a plurality of humidity sample data, and a plurality of humidity sample partial pressure data, which are corresponding to each other, for example, the two-dimensional array obtained according to the three-dimensional curved surface may be as shown in table 1, the two-dimensional array includes a primary index value, a secondary index value, and a group value, for example, in this embodiment, as shown in table 1, the temperature in the table is the temperature sample data, the temperature sample data may be used as the primary index value, the relative humidity in the table is the humidity sample data, the humidity sample data may be used as the secondary index value, the voltage value in the table is the humidity sample partial pressure data, the humidity sample partial pressure data may be used as the group value of the two-dimensional array, and the table content may be adjusted according to actually detected data, and is not particularly limited herein. The other value can be obtained through any two values of the first-level index value, the second-level index value and the array value, and therefore rapid data query is achieved.
In some embodiments of the present application, as shown in fig. 6, converting the inside of the three-dimensional curved surface into a two-dimensional array, where the two-dimensional array includes a plurality of array elements composed of basic arrays, includes the following steps 301 to 303:
301. and determining a first-level index value of the basic array according to the temperature sample data.
The first-level index value of the basic array may be any one of temperature sample data, humidity sample data, or humidity sample partial pressure data.
In the application process, the detected temperature partial pressure value is constantly changed according to the temperature change of the space to be detected, so that the table look-up process of the data processor needs to frequently inquire the current humidity data, and the current relative humidity data of the space to be detected constantly generates data fluctuation.
Therefore, in an embodiment, determining the first-level index value of the base array according to the temperature sample data includes:
dividing N temperature sample data with adjacent values in the plurality of temperature sample data into a temperature data interval to obtain a plurality of temperature data intervals, wherein N is a natural number smaller than 4.
In this embodiment, N is set to 3, that is, 3 temperature sample data with adjacent values in the plurality of temperature sample data are divided into one temperature data interval, for example, as shown in table 1, three data with temperature sample data of 5, 6, and 7 are taken as one temperature data interval, and so on, a plurality of temperature data intervals covering more temperature sample data are obtained, and since the change of the humidity voltage relationship between each adjacent temperature sample data of the plurality of temperature sample data is slight, the error can still be made to be less than or equal to 1%, and the accuracy is not lost.
And marking the temperature data intervals in sequence to obtain a plurality of temperature data intervals with numerical marks, and determining a first-level index value of the numerical mark as a basic array.
In order to facilitate the data processor to look up the table, the corresponding temperature data interval may be labeled, so that after the data processor obtains the actually measured current temperature data, the corresponding temperature data interval is determined according to the current temperature data, and the numerical label corresponding to the temperature data interval is obtained, i.e., the primary index value can be determined.
302. And determining a secondary index value of the basic array according to the humidity sample data.
The second-level index value of the basic array may be any one of temperature sample data, humidity sample data, or humidity sample partial pressure data.
Specifically, since the first-level index value is a temperature data interval, according to the corresponding relationship between the humidity sample data and the temperature sample data in the three-dimensional curved surface, the temperature data interval is formed by 3 temperature sample data whose data sizes are adjacent to each other, and the temperature data interval corresponds to 3 humidity sample data whose data values are the same or different in the three-dimensional curved surface, in order to facilitate the use of the basic array, in this embodiment, the average value of the 3 humidity sample data corresponding to the temperature data interval is calculated, and the average value of the obtained 3 humidity sample data is used as the second-level index value of the basic array.
Therefore, according to the humidity sample data, determining a secondary index value of the base array comprises the following steps:
and determining N humidity sample data corresponding to the N temperature sample data in the temperature data interval according to the temperature data interval.
In this embodiment, if the temperature data interval is 3 temperature sample data, it is determined that 3 humidity sample data correspond to the temperature data interval. For example, when the temperature data interval is 5 to 7 ℃, in the temperature data interval, if the actual measured partial pressure data of the humidity sample is 3.51V, the corresponding 3 humidity sample data are 87% RH, 86% RH, and 85% RH.
And carrying out average calculation on the N humidity sample data to obtain humidity sample average data, and determining the humidity sample average data as a secondary index value of the basic array.
In this embodiment, if the temperature data interval is 5 to 7 ℃, and the 3 corresponding humidity sample data are 87% RH, 86% RH, and 85% RH, averaging the 3 humidity sample data, and the obtained average data of the humidity sample is 86% RH, the average data of the humidity sample with the value of 86% RH is determined as the secondary index value of the basic array. Therefore, in the application process, when the detected current temperature data is in a certain temperature data interval, the average data of the humidity sample is directly obtained in a table look-up mode, the current relative humidity data corresponding to the current temperature data can be obtained, the frequent table look-up of the switching interval due to the temperature change is prevented, and the obtained current relative humidity data can be more stable.
303. And determining array values of the basic arrays according to the partial pressure data of the humidity samples, and taking the two-dimensional arrays formed by the plurality of basic arrays as a humidity comparison table.
The array value of the basic array may be any one of temperature sample data, humidity sample data, or humidity sample partial pressure data, and in this embodiment, the array value of the basic array is determined according to the humidity sample partial pressure data.
TABLE 2 humidity comparison table (temperature-humidity-voltage value)
Figure BDA0003374747930000131
After the numerical value labels corresponding to the temperature data intervals are used as the first-level index values of the basic arrays, the humidity sample average data corresponding to the temperature data intervals are used as the second-level index values of the basic arrays, the humidity sample partial pressure data corresponding to the temperature data intervals and the humidity sample average data are determined, the humidity sample partial pressure data are used as the array values of the basic arrays, and finally the formed two-dimensional arrays formed by the plurality of basic arrays are used as the humidity comparison table. For example, the humidity comparison table may be as shown in table 2, or a comparison table as shown in fig. 7 may be obtained, and the table content is also adjusted according to the actually detected data, which is not limited herein.
In some embodiments of the present application, as shown in fig. 8, based on a preset humidity comparison table, looking up a table by using current temperature data and a humidity partial pressure value as inputs to obtain current relative humidity data in a space to be measured, including the following steps 401 to 403:
401. and determining a temperature data interval corresponding to the current temperature data in the humidity comparison table according to the current temperature data.
And after the current temperature data is acquired, the data processor determines the temperature data interval according to the current temperature data. For example, when the acquired current temperature data is 5 degrees, the temperature data interval to which the temperature data belongs is determined to be 5-7 degrees.
402. And determining the current primary index value corresponding to the temperature data interval according to the temperature data interval.
And determining a corresponding numerical value label according to the temperature data interval, namely determining a current first-level index value serving as a query condition.
403. And determining a current secondary index value according to the humidity partial pressure value and the current primary index value, and taking the current secondary index value as current relative humidity data in the space to be detected.
The method comprises the steps that the resistance value of a humidity sensor RH is changed at different environmental temperatures, so that voltage values at two ends of a first divider resistor RS are synchronously changed, namely, humidity division values are synchronously changed, under the environment of current temperature data, the humidity division values obtained by a data processor are array values serving as query conditions, table lookup is carried out according to the determined first-level index values and the determined array values, then the current second-level index values under the environment of the current temperature data can be determined, and namely, the current relative humidity data in a space to be measured is determined.
In some embodiments of the present application, as shown in fig. 9, the obtaining of the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module includes the following steps 501 to 502:
501. and receiving an acquisition trigger signal within a preset time period.
The data processor generates a trigger signal once within a preset time period, which may be set by itself, for example, 60 ms.
502. And acquiring a temperature partial pressure value of the primary temperature detection module and a humidity partial pressure value of the humidity detection module according to the acquired trigger signal.
After the temperature detection module and the humidity detection module acquire the trigger signal, the data processor detects the voltage value at the AD port, so that the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module are acquired at one time, and the automatic acquisition of the temperature partial pressure value and the humidity partial pressure value by the data processor is realized.
In some embodiments of the present application, in order to better implement the humidity detection method in the embodiments of the present application, on the basis of the humidity detection method, an embodiment of the present application further provides a humidity detection apparatus, as shown in fig. 10, the humidity detection apparatus 600 includes:
the humidity detection device comprises a humidity detection module 601, a temperature detection module 602, and a data processor 603, wherein the data processor 603 specifically comprises:
an obtaining module 604, configured to obtain a temperature partial pressure value of the temperature detection module and a humidity partial pressure value of the humidity detection module;
the conversion module 605 is configured to determine current temperature data in the space to be measured according to the temperature partial pressure value;
the determining module 606 is configured to look up a table by taking the current temperature data and the humidity partial pressure value as inputs based on a preset humidity comparison table, so as to obtain current relative humidity data in the space to be measured.
Humidity detection device still includes data integration module, and data integration module specifically is:
the system comprises a temperature acquisition module, a humidity acquisition module, a temperature acquisition module, a humidity acquisition module and a humidity acquisition module, wherein the temperature acquisition module is used for acquiring a plurality of temperature sample data of a space to be detected, a plurality of temperature sample partial pressure data corresponding to the temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data corresponding to the humidity sample data;
and the humidity comparison table is used for performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain the humidity comparison table.
The data integration module is also specifically:
the temperature two-dimensional coordinate system is used for performing point tracing on a temperature two-dimensional coordinate according to the relation between a plurality of temperature sample data and a plurality of temperature sample partial pressure data to obtain a two-dimensional temperature curve;
the humidity two-dimensional coordinate system is used for performing point tracing on a humidity two-dimensional coordinate according to the relation between a plurality of humidity sample data and a plurality of humidity sample partial pressure data to obtain a two-dimensional humidity curve;
and the two-dimensional temperature curve and the two-dimensional humidity curve are integrated to obtain a three-dimensional curved surface.
The data integration module is also specifically:
the two-dimensional array comprises a plurality of array elements formed by basic arrays;
the two-dimensional array is used as a humidity comparison table.
The data integration module is also specifically:
the first-level index value of the basic array is determined according to the temperature sample data;
the second-level index value of the basic array is determined according to the humidity sample data;
and the data processing unit is used for determining array values of the basic array according to the partial pressure data of the humidity sample.
The two-dimensional array formed by a plurality of basic arrays is used as a humidity comparison table.
The data integration module is also specifically:
the temperature data processing device is used for dividing N temperature sample data with adjacent values in the plurality of temperature sample data into a temperature data interval to obtain a plurality of temperature data intervals, wherein N is a natural number smaller than 4;
the temperature data interval labeling device is used for labeling the temperature data intervals in sequence to obtain a plurality of temperature data intervals with numerical labels;
the first-level index value is used for determining the numerical value label as the base array.
The data integration module is also specifically:
the system comprises a temperature data interval, a humidity data acquisition unit and a control unit, wherein the temperature data interval is used for acquiring N temperature sample data;
the humidity sample data acquisition unit is used for carrying out average value calculation on the N humidity sample data to obtain average humidity sample data;
and a secondary index value for determining the humidity sample average data based array.
The determining module 606 is specifically:
the temperature data interval corresponding to the current temperature data in the humidity comparison table is determined according to the current temperature data;
the index value determining module is used for determining a current first-level index value corresponding to the temperature data interval according to the temperature data interval;
the device is used for determining a current secondary index value according to the humidity partial pressure value and the current primary index value;
and the current secondary index value is used as the current relative humidity data in the space to be measured.
The obtaining module 604 specifically includes:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving and acquiring a trigger signal in a preset time period;
and the humidity control module is used for acquiring the temperature partial pressure value of the primary temperature detection module and the humidity partial pressure value of the humidity detection module according to the acquired trigger signal.
In another embodiment of the present application, as shown in fig. 11, the present application further provides an electronic device 700, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 701 of one or more processing cores, memory 702 of one or more computer-readable storage media, a power supply 703, and an input unit 704. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 701 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 702 and calling data stored in the memory 702, thereby monitoring the whole electronic device. Optionally, processor 701 may include one or more processing cores; the Processor 701 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, preferably the processor 701 may integrate an application processor, which handles primarily the operating system, user interfaces, application programs, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 701.
The memory 702 may be used to store software programs and modules, and the processor 701 executes various functional applications and data processing by operating the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
The electronic device further includes a power source 703 for supplying power to each component, and preferably, the power source 703 may be logically connected to the processor 701 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 703 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may also include an input unit 704, and the input unit 704 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 701 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 702 according to the following instructions, and the processor 701 runs the application program stored in the memory 702, so as to implement various functions as follows:
acquiring a temperature partial pressure value of a temperature detection module and a humidity partial pressure value of a humidity detection module;
determining current temperature data in the space to be measured according to the temperature partial pressure value;
and based on a preset humidity comparison table, looking up the table by taking the current temperature data and the humidity partial pressure value as input to obtain the current relative humidity data in the space to be measured.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
In some embodiments of the present application, the present application further provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. The humidity detection device comprises a humidity detection device, a processor and a computer program stored thereon, wherein the computer program is loaded by the processor to execute the steps of the humidity detection method provided by the embodiment of the application. For example, the computer program may be loaded by a processor to perform the steps of:
acquiring a temperature partial pressure value of a temperature detection module and a humidity partial pressure value of a humidity detection module;
determining current temperature data in the space to be measured according to the temperature partial pressure value;
and based on a preset humidity comparison table, looking up the table by taking the current temperature data and the humidity partial pressure value as input to obtain the current relative humidity data in the space to be measured.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
The humidity detection method, the humidity detection device, the electronic device and the storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. The humidity detection method is characterized in that humidity detection is carried out through a humidity detection device arranged in a space to be detected, the humidity detection device comprises a humidity detection module and a temperature detection module, and the humidity detection method comprises the following steps:
acquiring a temperature partial pressure value of the temperature detection module and a humidity partial pressure value of the humidity detection module;
determining current temperature data in the space to be measured according to the temperature partial pressure value;
and based on a preset humidity comparison table, looking up the table by taking the current temperature data and the humidity partial pressure value as input to obtain the current relative humidity data in the space to be measured.
2. The humidity detection method according to claim 1, wherein before said obtaining of the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module, the method comprises:
acquiring a plurality of temperature sample data of the space to be tested, a plurality of temperature sample partial pressure data corresponding to the temperature sample data, a plurality of humidity sample data and a plurality of humidity sample partial pressure data corresponding to the humidity sample data;
and performing data integration on the plurality of temperature sample data, the plurality of temperature sample partial pressure data, the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain the humidity comparison table.
3. The method of claim 2, wherein before integrating the temperature sample data, the temperature sample partial pressure data, the humidity sample data and the humidity sample partial pressure data to obtain the humidity lookup table, the method comprises:
performing point tracing on a temperature two-dimensional coordinate according to the relation between the plurality of temperature sample data and the plurality of temperature sample partial pressure data to obtain a two-dimensional temperature curve;
performing point tracing on a humidity two-dimensional coordinate according to the relation between the plurality of humidity sample data and the plurality of humidity sample partial pressure data to obtain a two-dimensional humidity curve;
and integrating the two-dimensional temperature curve and the two-dimensional humidity curve to obtain a three-dimensional curved surface.
4. The method of claim 3, wherein said integrating the data of the temperature sample data, the temperature sample partial pressure data, the humidity sample data and the humidity sample partial pressure data to obtain the humidity lookup table comprises:
converting the interior of the three-dimensional curved surface into a two-dimensional array, wherein the two-dimensional array comprises a plurality of array elements formed by basic arrays;
and taking the two-dimensional array as the humidity comparison table.
5. The method of claim 4, wherein said converting said three-dimensional curved surface into a two-dimensional array, said two-dimensional array comprising a plurality of array elements comprising a base array, comprises:
determining a first-level index value of the basic array according to the temperature sample data;
determining a secondary index value of the basic array according to the humidity sample data;
and determining the array value of the basic array according to the humidity sample partial pressure data.
And taking a two-dimensional array formed by a plurality of the basic arrays as the humidity comparison table.
6. The humidity detection method as claimed in claim 5, wherein said determining a first-level index value of said base array according to said temperature sample data comprises:
dividing N temperature sample data with adjacent numerical values in the plurality of temperature sample data into a temperature data interval to obtain a plurality of temperature data intervals, wherein N is a natural number smaller than 4;
labeling the temperature data intervals in sequence to obtain a plurality of temperature data intervals with numerical labels;
and determining the numerical value label as a first-level index value of the basic array.
7. The humidity detection method as claimed in claim 6, wherein said determining a secondary index value of said base array according to said humidity sample data comprises
Determining N humidity sample data corresponding to N temperature sample data in the temperature data interval according to the temperature data interval;
calculating the average value of the N humidity sample data to obtain average humidity sample data;
and determining the humidity sample average data as a secondary index value of the base array.
8. The humidity detecting method according to claim 5, wherein the table lookup is performed by using the current temperature data and the humidity partial pressure value as input based on a preset humidity comparison table to obtain the current relative humidity data in the space to be detected, and the method comprises:
according to the current temperature data, determining a temperature data interval corresponding to the current temperature data in the humidity comparison table;
determining the current first-level index value corresponding to the temperature data interval according to the temperature data interval;
determining the current secondary index value according to the humidity partial pressure value and the current primary index value;
and taking the current secondary index value as the current relative humidity data in the space to be detected.
9. The method as claimed in claim 1, wherein said obtaining the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module comprises
Receiving and acquiring a trigger signal within a preset time period;
and acquiring the temperature partial pressure value of the temperature detection module and the humidity partial pressure value of the humidity detection module once according to the acquired trigger signal.
10. The humidity detection device is characterized by comprising a humidity detection module and a temperature detection module;
the acquisition module is used for acquiring a temperature partial pressure value of the temperature detection module and a humidity partial pressure value of the humidity detection module;
the conversion module is used for determining the current temperature data in the space to be measured according to the temperature partial pressure value;
and the determining module is used for looking up the table by taking the current temperature data and the humidity partial pressure value as input based on a preset humidity comparison table to obtain the current relative humidity data in the space to be measured.
11. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the wetness detection method of any one of claims 1-9.
12. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps of the method for humidity detection as claimed in any one of claims 1 to 9.
CN202111412646.7A 2021-11-25 2021-11-25 Humidity detection method and device, electronic equipment and storage medium Pending CN114091273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111412646.7A CN114091273A (en) 2021-11-25 2021-11-25 Humidity detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111412646.7A CN114091273A (en) 2021-11-25 2021-11-25 Humidity detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114091273A true CN114091273A (en) 2022-02-25

Family

ID=80304467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111412646.7A Pending CN114091273A (en) 2021-11-25 2021-11-25 Humidity detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114091273A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116381163A (en) * 2023-05-29 2023-07-04 宁德时代新能源科技股份有限公司 Humidity detection method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116381163A (en) * 2023-05-29 2023-07-04 宁德时代新能源科技股份有限公司 Humidity detection method and device, electronic equipment and storage medium
CN116381163B (en) * 2023-05-29 2024-02-23 宁德时代新能源科技股份有限公司 Humidity detection method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN207703359U (en) A kind of acquisition of multichannel thermistor temp and processing unit
Ahmad et al. On the evaluation of DHT22 temperature sensor for IoT application
CN107621279B (en) Data processing method, sensor data calibration method and device
CN211528541U (en) Resistance measuring circuit of programmable constant current source
CN106405460A (en) Electronic instrument voltage detection calibration system and calibration method
CN114091273A (en) Humidity detection method and device, electronic equipment and storage medium
CN106840442A (en) A kind of battery temperature measuring system and method
US8224599B2 (en) System and method for automatic voltage range measurement
CN104913860B (en) Seawater detection method based on wireless telecommunications and device
CN114199451A (en) Pressure detection method and system based on temperature compensation and storage medium
CN105277292A (en) Temperature measurement device
CN110763735B (en) Soluble total solid TDS detection method and related equipment
CN111551281A (en) Body temperature detection device and method
CN106918354B (en) Sensing system and applicable sensing information determination method
CN215728610U (en) Test system
CN213688470U (en) Novel temperature and humidity sensor
CN109061524B (en) Power supply test circuit and method
CN207649794U (en) A kind of PCR analyzer multichannel temperature calibrating installation
CN210181590U (en) MCU parameter testing system
Subair et al. Intelligent pressure measuring system
CN103616082B (en) A kind of intelligent miniature temperature recorder
CN207816880U (en) A kind of psychrometer based on LTC2991
CN105686850A (en) Height and weight measurement method
CN207570573U (en) A kind of with no paper gauging calibration instrument
CN110926519A (en) Sensor multi-party verification system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination