Temperature and humidity detection device and detection method thereof

By using a flipped housing and a built-in position detection sensor in the temperature and humidity detection device, the function of switching the display humidity or temperature without pressing a button is realized, which solves the problem of inconvenient operation of traditional devices and improves the speed and accuracy of monitoring.

CN119642893APending Publication Date: 2025-03-18SONG RES ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411862893.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The traditional temperature and humidity detection device is inconvenient to operate, and users need to switch display parameters through buttons or menus, especially when they need to quickly understand the ambient humidity or temperature, which increases the user's usage burden and inefficiency.

Method used

Design a temperature and humidity detection device to switch the display content through the placement state of the housing, and use the built-in position detection sensor and microcontroller to realize the function of intelligently switching the display humidity or temperature without additional key operation.

Benefits of technology

It realizes fast and accurate temperature and humidity monitoring and display, saves user operation complexity and time, and improves user experience and convenience of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119642893A_ABST
    Figure CN119642893A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of temperature and humidity detection, in particular to a temperature and humidity detection device and method, and the device comprises a power interface, a temperature and humidity detection module, a placement detection module and a digital display screen which are electrically connected with a microcontroller. The power interface is used for providing working power; the temperature and humidity detection module is used for detecting the humidity and temperature of the environment where the shell is located and sending the humidity and temperature to the microcontroller for processing. The placement detection module is used for detecting the placement state of the shell and sending the placement state to the microcontroller for identification; the microcontroller is used for identifying the placement state of the shell and controlling the digital display screen to display; the shell has two placement states: when the shell is in a forward placement state, the digital display screen displays a humidity value and a humidity unit character; and when the shell is in a reverse placement state, the digital display screen displays a temperature value and a temperature unit character. According to the invention, the required environment temperature and humidity information can be quickly obtained only through simple overturning action without a complicated operation mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of temperature and humidity detection devices, and in particular to a temperature and humidity detection device and a detection method thereof. Background Art

[0002] In daily life and industrial production, temperature and humidity monitoring is a key factor in ensuring environmental comfort and product quality. Traditional temperature and humidity detection devices are usually equipped with a display screen and a fixed display mode. Users need to switch the displayed parameters through buttons or menus, which may not be convenient in some cases. Especially in scenarios where you need to quickly understand the current ambient humidity or temperature, traditional operation methods may increase the user's usage burden and reduce efficiency. Summary of the invention

[0003] One purpose of the present invention is to provide a temperature and humidity detection device that can switch between ambient temperature display and ambient humidity display according to different placement methods without the need for complicated operation methods.

[0004] Another object of the present invention is to provide a temperature and humidity detection device detection method, using a temperature and humidity detection device as described above to achieve fast and accurate temperature and humidity monitoring and display.

[0005] To achieve this object, the present invention adopts the following technical solutions:

[0006] A temperature and humidity detection device comprises a housing;

[0007] The housing is internally installed with a power interface, a temperature and humidity detection module, a placement detection module and a microcontroller;

[0008] The outer surface of the shell is provided with a digital display screen;

[0009] The power interface, temperature and humidity detection module, placement detection module and digital display screen are all electrically connected to the microcontroller;

[0010] The power interface is used to provide working power for the digital display screen, the temperature and humidity detection module, the placement detection module and the microcontroller;

[0011] The temperature and humidity detection module is used to detect the humidity and temperature of the environment where the housing is located, and send them to the microcontroller for processing;

[0012] The placement detection module is used to detect the placement status of the housing and send it to the microcontroller for identification;

[0013] The microcontroller is used to identify the placement state of the housing and control the display of the digital display screen;

[0014] The housing has two placement states, which are a forward placement state and a reverse placement state.

[0015] When the housing is in the forward placement state, the digital display screen displays the humidity value and humidity unit characters;

[0016] When the shell is in the reverse placement state, the digital display screen displays the temperature value and temperature unit characters.

[0017] Preferably, the digital display screen includes three fields and three decimal points arranged in an interlaced manner;

[0018] When the shell is in the forward placement state, the three decimal points are respectively located at the lower right of the three fields, the two fields and the two decimal points located on the left are used to display the humidity value, and the field and the decimal point located on the rightmost are used to display the humidity unit character P.;

[0019] When the housing is in the reverse placement state, the three decimal points are respectively located at the upper left of the three fields, the two fields and the two decimal points located on the left are used to display the temperature value, and the field and the decimal point located on the rightmost are used to display the temperature unit character. . C.

[0020] Preferably, the placement detection module comprises an infrared light emitting diode, a photosensitive receiver and a ball, the photosensitive receiver is electrically connected to a position detection circuit, and the position detection circuit is electrically connected to the microcontroller;

[0021] The infrared light emitting diode and the photosensitive receiver are located at the same horizontal position, and the ball can be vertically movably installed between the infrared light emitting diode and the photosensitive receiver;

[0022] The ball has two position states, which are a blocking state and an unblocking state;

[0023] When the housing is in the forward placement state, the ball is located between the infrared light emitting diode and the photosensitive receiver, and the ball, the infrared light emitting diode and the photosensitive receiver are located at the same horizontal position, the ball is in a blocking state, the photosensitive receiver cannot receive the light signal of the infrared light emitting diode, and the position detection circuit sends a high level signal to the microcontroller;

[0024] When the shell is in the reverse placement state, the ball is not located between the infrared light emitting diode and the photosensitive receiver, the ball is in an unblocked state, the photosensitive receiver can receive the light signal of the infrared light emitting diode, and the position detection circuit sends a low level signal to the microcontroller.

[0025] Preferably, the temperature and humidity detection module includes a temperature sensor, a humidity sensor, and a temperature and humidity sampling circuit;

[0026] The temperature and humidity sampling circuit includes a first input terminal, a second input terminal, a first output terminal, and a second output terminal;

[0027] Both ends of the temperature sensor are electrically connected to the first input terminal and the second input terminal respectively;

[0028] Both ends of the humidity sensor are electrically connected to the first input terminal and the second input terminal respectively;

[0029] Both the first output terminal and the second output terminal are electrically connected to the microcontroller;

[0030] The first output terminal is used to output a temperature AD value converted according to the real-time resistance value of the temperature sensor to the microcontroller, and the microcontroller is used to obtain the temperature value corresponding to the temperature AD value according to the temperature AD value;

[0031] The second output terminal is used to output a humidity AD value converted according to the real-time resistance value of the humidity sensor to the microcontroller, and the microcontroller is used to obtain the humidity value corresponding to the humidity AD value according to the humidity AD value.

[0032] Preferably, the temperature sensor includes a thermistor and a temperature sampling resistor;

[0033] The model of the thermistor is B3470, and the resistance value of the temperature sampling resistor is 4.99 k;

[0034] The calculation formula of the temperature AD value is AD_Tr = 4095 * R7 / (R7 + R_thermal), where R7 represents the resistance value of the temperature sampling resistor, and R_thermal represents the real-time resistance value of the thermistor.

[0035] Preferably, the humidity sensor includes a humidity-sensitive resistor and a humidity sampling resistor;

[0036] The model of the humidity-sensitive resistor is HIS-06, and the resistance value of the humidity sampling resistor is 100 k;

[0037] The calculation formula of the humidity AD value is AD_Rh = 4095 * R31 / (R31 + R_humidity), where R31 represents the resistance value of the humidity sampling resistor, and R_humidity represents the real-time resistance value of the humidity-sensitive resistor.

[0038] A detection method for a temperature and humidity detection device, applied to a temperature and humidity detection device as described above, includes the following steps:

[0039] S1. According to the temperature and resistance characteristics of the temperature sensor, the temperature AD value is calculated by the temperature and humidity sampling circuit, and the temperature value and the corresponding temperature AD value are sorted into a temperature table;

[0040] S2. According to the temperature and resistance characteristics of the humidity sensor, the humidity AD value and humidity value are calculated by the temperature and humidity sampling circuit, and the humidity value and the corresponding humidity AD value are sorted into a humidity table;

[0041] S3, pre-storing the temperature table and humidity table into the microcontroller;

[0042] S4, real-time monitoring through the temperature sensor, after passing through the temperature and humidity sampling circuit, the microcontroller converts it into a real-time temperature AD value, and uses a table lookup method to obtain the temperature value corresponding to the real-time temperature AD value;

[0043] S5, real-time monitoring through the humidity sensor, after passing through the temperature and humidity sampling circuit, the microcontroller converts it into a real-time humidity AD value, and uses a table lookup method to obtain the humidity value corresponding to the real-time humidity AD value;

[0044] S6. The microcontroller reads the level signal of the placement detection module. If the level state corresponds to the forward placement state, the digital tube display screen is controlled to display the humidity value and the humidity unit character. Otherwise, if the level state corresponds to the reverse placement state, the digital tube display screen is controlled to display the temperature value and the temperature unit character.

[0045] One of the above technical solutions has the following beneficial effects:

[0046] 1. Save space: By flipping the shell to switch the display content, there is no need to add additional buttons or switches, saving space in the device.

[0047] 2. Intelligent switching display: Through the built-in position detection sensor and microcontroller, the function of intelligently switching the display of humidity or temperature according to the placement of the shell is realized, which greatly improves the user's convenience. The user does not need to perform additional button operations or menu navigation, but simply flips the shell to obtain the required environmental parameters.

[0048] 3. Intuitive and easy to read: The digital display screen can clearly display the current temperature and humidity values ​​and the corresponding unit characters, so that users can understand the environmental conditions at a glance and take appropriate measures in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a structural schematic diagram of a temperature and humidity detection device of the present invention;

[0050] Figure 2 It is a control schematic diagram of a digital tube display screen in a temperature and humidity detection device of the present invention;

[0051] Figure 3 It is a schematic diagram of humidity display on a digital tube display screen when a temperature and humidity detection device of the present invention is in a normal position;

[0052] Figure 4 It is a schematic diagram of temperature display on a digital tube display screen when a temperature and humidity detection device of the present invention is in an inverted position;

[0053] Figure 5 It is a structural schematic diagram of placing a detection module in a temperature and humidity detection device of the present invention;

[0054] Figure 6 It is a circuit schematic diagram of placing a detection circuit in a temperature and humidity detection device of the present invention;

[0055] Figure 7 It is a circuit diagram of a temperature and humidity sampling circuit in a temperature and humidity detection device of the present invention;

[0056] In the accompanying drawings: housing 1, power interface 2, temperature and humidity detection module 3, temperature and humidity sampling circuit 31, placement detection module 4, infrared light emitting diode 41, photosensitive receiver 42, ball 43, position detection circuit 44, microcontroller 5, digital display screen 6. DETAILED DESCRIPTION

[0057] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.

[0058] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0059] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0060] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0061] like Figure 1 As shown, a temperature and humidity detection device comprises a housing 1;

[0062] The housing 1 is internally installed with a power interface 2, a temperature and humidity detection module 3, a placement detection module 4 and a microcontroller 5;

[0063] The outer surface of the housing 1 is provided with a digital display screen 6;

[0064] The power interface 2, the temperature and humidity detection module 3, the placement detection module 4 and the digital display screen 6 are all electrically connected to the microcontroller 5;

[0065] The power interface 2 is used to provide working power for the digital display screen 6, the temperature and humidity detection module 3, the placement detection module 4 and the microcontroller 5;

[0066] The temperature and humidity detection module 3 is used to detect the humidity and temperature of the environment where the housing 1 is located, and send the detected information to the microcontroller 5 for processing;

[0067] The placement detection module 4 is used to detect the placement status of the housing 1 and send it to the microcontroller 5 for identification;

[0068] The microcontroller 5 is used to identify the placement state of the housing 1 and control the digital display screen 6 to display;

[0069] The housing 1 has two placement states, which are a forward placement state and a reverse placement state.

[0070] When the housing 1 is in the forward placement state, the digital display screen 6 displays the humidity value and humidity unit characters;

[0071] When the housing 1 is in the reverse placement state, the digital display screen 6 displays the temperature value and the temperature unit character.

[0072] As shown in Figure 1, this temperature and humidity detection device integrates multiple key components, and realizes intelligent temperature and humidity monitoring and display functions through the collaborative work between them. The working principle is as follows:

[0073] First, the power interface 2 provides stable power to the entire device, ensuring that all internal components can operate normally.

[0074] Secondly, as one of the core components, the temperature and humidity detection module 3 uses a high-precision sensor to capture the humidity and temperature data of the environment where the housing 1 is located in real time, and sends these data to the microcontroller 5 in the form of electrical signals.

[0075] At the same time, the placement detection module 4 continuously monitors the placement state of the housing 1, that is, whether it is placed in the forward or reverse direction. This information is also converted into an electrical signal and sent to the microcontroller 5 for identification and processing.

[0076] Finally, the microcontroller 5 serves as the control center of the entire device and is responsible for receiving data from the temperature and humidity detection module 3 and the placement detection module 4 and making decisions based on these data.

[0077] Specifically, when the microcontroller 5 recognizes that the housing 1 is in the forward position, it sends a control instruction to the digital display screen 6 to display the current humidity value and the corresponding humidity unit character. When the housing 1 is turned over to the reverse position, the microcontroller 5 changes the control instruction to make the digital display screen 6 display the temperature value and the corresponding temperature unit character instead.

[0078] This design not only greatly improves the user's convenience, but also gives the device a higher level of intelligence. Users can quickly obtain the required environmental temperature and humidity information through a simple flip action, which is particularly handy whether it is used for daily life monitoring or industrial production control.

[0079] In summary, the present invention has the following beneficial effects:

[0080] 1. Save space: By flipping the housing 1 to switch the display content, there is no need to add additional buttons or switches, thus saving space in the device.

[0081] 2. Intelligent switching display: Through the built-in position detection sensor and microcontroller 5, the function of intelligently switching the display of humidity or temperature according to the placement state of the housing (1) is realized, which greatly improves the user's convenience. The user does not need to perform additional button operations or menu navigation, but only needs to simply flip the housing 1 to obtain the required environmental parameters.

[0082] 3. Intuitive and easy to read: The digital display screen 6 can clearly display the current temperature and humidity values ​​and the corresponding unit characters, so that the user can understand the environmental conditions at a glance and take corresponding measures in time.

[0083] To further illustrate, the digital display screen 6 includes three 8-segment segments and three decimal points arranged in an interlaced manner;

[0084] When the housing 1 is in the forward placement state, the three decimal points are respectively located at the lower right of the three 8-segment fields, the two 8-segment fields and the two decimal points located on the left are used to display the humidity value, and the 8-segment field and the decimal point located on the rightmost side are used to display the humidity unit character P.;

[0085] When the housing 1 is in the reverse placement state, the three decimal points are respectively located at the upper left of the three 8-segments, the two 8-segments and the two decimal points located on the left are used to display the temperature value, and the 8-segment and the decimal point located on the rightmost are used to display the temperature unit character. . C.

[0086] like Figure 2 As shown, the shell 1 is placed in the forward position, and an 8-segment field and a decimal point from left to right form a group of 8-segments, specifically composed of eight fields a~h, wherein the strokes a~f are distributed in a clockwise direction, the stroke g is the middle part of the character 8, and the stroke h is the decimal point of 8.

[0087] When the housing 1 is in the forward position, the digital display screen 6 mainly displays the current humidity value and its unit. Figure 3 For example, when the ambient humidity is 60%, the digital display screen 6 displays 60P. Specifically, the fields a, c, d, e, f and g in the first group of 8 fields on the left are displayed, and the fields b and h are off, and 6 is displayed; the fields a, b, c, d, e and f in the second group of 8 fields are displayed, and the fields g and h are off, and 0 is displayed; the fields a, b, e, f, g and h in the third group of 8 fields are displayed, and c and d are off, and P. is displayed.

[0088] When the housing 1 is turned over to the reverse position, the digital display screen 6 mainly displays the current temperature value and its unit. Figure 4 For example, when the ambient temperature is 26°C, the digital display 6 shows 26 . C. Specifically, the fields a, b, d, e, and g in the first group of 8 fields on the left are displayed, and the fields c, f, and h are off, showing 2; the fields a, b, c, d, f, and g in the second group of 8 fields on the left are displayed, and the fields e and h are off, showing 6; the fields a, b, c, d, and h in the third group of 8 fields on the left are displayed, and the fields e, f, and g are off, showing . C.

[0089] In summary, the digital display screen 6 adopts a design of three 8-segment and three decimal points, which can flexibly display humidity value, humidity unit character (P.), temperature value and temperature unit character (℃), making the display content clearer and more intuitive. Whether it is humidity value or temperature value, and the corresponding unit character, it can be presented to the user at a glance.

[0090] It should be noted that the digital display screen 6 uses only three 8-bit segments and three decimal points, and does not add P. and °C on the left and right sides of the display screen, which can reduce the impact or cost of the following aspects:

[0091] 1. Manufacturing cost: Printing characters (such as P. and °C) directly on the display requires additional printing processes and materials, which increases the complexity and cost of the production process. However, the universal design of three 8-segment and three decimal points does not require specific character printing, thus reducing manufacturing costs.

[0092] 2. Design flexibility: If P. and ℃ are printed directly on the display, the display content will be limited and cannot be adjusted flexibly. However, the design of three 8-segment and three decimal points can display different character and number combinations as needed, which improves the flexibility and scalability of the design.

[0093] To further illustrate, the placement detection module 4 includes an infrared light emitting diode 41, a photosensitive receiver 42 and a ball 43, the photosensitive receiver 42 is electrically connected to a position detection circuit 44, and the position detection circuit 44 is electrically connected to the microcontroller 5;

[0094] The infrared light emitting diode 41 and the photosensitive receiver 42 are located at the same horizontal position, and the ball 43 can be vertically movably installed between the infrared light emitting diode 41 and the photosensitive receiver 42;

[0095] The ball 43 has two position states, which are a blocking state and an unblocking state.

[0096] When the housing 1 is in the forward placement state, the ball 43 is located between the infrared light emitting diode 41 and the photosensitive receiver 42, and the ball 43, the infrared light emitting diode 41 and the photosensitive receiver 42 are located at the same horizontal position, the ball 43 is in a blocking state, the photosensitive receiver 42 cannot receive the light signal of the infrared light emitting diode 41, and the position detection circuit 44 sends a high level signal to the microcontroller 5;

[0097] When the shell 1 is in the reverse placement state, the ball 43 is not located between the infrared light-emitting diode 41 and the photosensitive receiver 42, the ball 43 is in an unblocked state, the photosensitive receiver 42 can receive the light signal of the infrared light-emitting diode 41, and the position detection circuit 44 sends a low-level signal to the microcontroller 5.

[0098] In a preferred embodiment, the position detection circuit 44 is as follows Figure 6As shown, the input end of the position detection circuit 44 is a CN6 socket, which is electrically connected to the photosensitive receiver 42 ; the output end of the position detection circuit 44 is WF_IO2, which is electrically connected to the microcontroller 5 .

[0099] Specifically, the infrared light emitting diode 41 and the photosensitive receiver 42 are installed at the same horizontal position, and a certain space is left between them for installing the ball 43. The ball 43 can be installed vertically and movably in this space, and can freely roll vertically between the two components, such as Figure 5 shown.

[0100] When the shell 1 is placed in the forward position, due to the effect of gravity, the ball 43 rolls down to between the infrared light emitting diode 41 and the photosensitive receiver 42, completely or partially blocking the light emitted by the infrared light emitting diode 41, and is in a blocking state, so that the photosensitive receiver 42 cannot receive the light signal.

[0101] When the shell 1 is placed in reverse, the ball 43 moves to a position no longer between the infrared light emitting diode 41 and the photosensitive receiver 42 due to gravity, and is in an unblocked state. At this time, the light emitted by the infrared light emitting diode 41 can reach the photosensitive receiver 42 unimpeded and be received by it.

[0102] At the same time, the status of the photosensitive receiver 42 , whether it can receive the light signal, is converted into a level signal through the position detection circuit 44 and sent to the microcontroller 5 .

[0103] When the ball 43 is in a blocking state and the photosensitive receiver 42 cannot receive the light signal, the position detection circuit 44 sends a high level signal to the microcontroller 5, indicating that the housing 1 is in a forward placement state.

[0104] When the ball 43 is in an unblocked state and the photosensitive receiver 42 is able to receive the light signal, the position detection circuit 44 sends a low level signal to the microcontroller 5, indicating that the housing 1 is in a reverse placement state.

[0105] In summary, the placement detection module 4 has a simple structure and can accurately detect the placement status of the shell 1 only through the gravity of the ball 43 and the shielding principle of infrared light. It does not require complex mechanical structures or electronic components, ensuring that the microcontroller 5 can accurately obtain the current status of the shell 1, thereby improving the stability and reliability of the overall device.

[0106] To further illustrate, the temperature and humidity detection module 3 includes a temperature sensor, a humidity sensor and a temperature and humidity sampling circuit 31;

[0107] The temperature and humidity sampling circuit 31 includes a first input terminal, a second input terminal, a first output terminal and a second output terminal;

[0108] Both ends of the temperature sensor are electrically connected to the first input terminal and the second input terminal respectively;

[0109] Both ends of the humidity sensor are electrically connected to the first input terminal and the second input terminal respectively;

[0110] Both the first output terminal and the second output terminal are electrically connected to the microcontroller 5;

[0111] The first output terminal is used to output a temperature AD value converted according to the real-time resistance value of the temperature sensor to the microcontroller 5, and the microcontroller 5 is used to obtain the temperature value corresponding to the temperature AD value according to the temperature AD value;

[0112] The second output terminal is used to output a humidity AD value converted according to the real-time resistance value of the humidity sensor to the microcontroller 5, and the microcontroller 5 is used to obtain the humidity value corresponding to the humidity AD value according to the humidity AD value.

[0113] In a preferred embodiment, the temperature and humidity sampling circuit 31 is as Figure 7 shown. The first input terminal of the temperature and humidity sampling circuit 31 is V0-RH, the second input terminal is V1-RH, the first output terminal is AD-Tr, and the second output terminal is AD-Rh.

[0114] Furthermore, the temperature sensor includes a thermistor and a temperature sampling resistor;

[0115] The model of the thermistor is B3470, and the resistance value of the temperature sampling resistor is 4.99 k;

[0116] The calculation formula of the temperature AD value is AD_Tr = 4095 * R7 / (R7 + R_thermal), where R7 represents the resistance value of the temperature sampling resistor, and R_thermal represents the real-time resistance value of the thermistor.

[0117] Furthermore, the humidity sensor includes a humidity-sensitive resistor and a humidity sampling resistor;

[0118] The model of the humidity-sensitive resistor is HIS-06, and the resistance value of the humidity sampling resistor is 100 k;

[0119] The calculation formula of the humidity AD value is AD_Rh = 4095 * R31 / (R31 + R_humidity), where R31 represents the resistance value of the humidity sampling resistor, and R_humidity represents the real-time resistance value of the humidity-sensitive resistor.

[0120] A detection method for a temperature and humidity detection device, which is applied to a temperature and humidity detection device as described above, includes the following steps:

[0121] S1. According to the temperature and resistance characteristics of the temperature sensor, the temperature AD value is calculated by the temperature and humidity sampling circuit 31, and the temperature value and the corresponding temperature AD value are sorted into a temperature table;

[0122] It is known that the temperature sensor includes a thermistor and a temperature sampling resistor; the model of the thermistor is B3470, and the resistance of the temperature sampling resistor is 4.99k; wherein, some temperature and resistance characteristics of the thermistor B3470 are shown in the following table:

[0123] T[℃] Rheat[kΩ] 20 6.082 21 5.846 22 5.620 23 5.404 24 5.197 25 5.000 26 4.811 27 4.630 28 4.457

[0124] For example, when the ambient temperature is 25° C., the resistance of the thermistor B3470 is 5k, and the temperature AD value of 25° C. is obtained by the temperature AD value calculation formula: AD_Tr=4095*4.99 / (4.99+5)=2045.

[0125] Similarly, when the ambient temperature is 26° C., the resistance of thermistor B3470 is 4.811 k. The temperature AD value of 26° C. is obtained by the temperature AD value calculation formula: AD_Tr=4095*4.99 / (4.99+4.811)=2085.

[0126] Similarly, when the ambient temperature is 27° C., the resistance of thermistor B3470 is 4.630 k, and the temperature AD value of 26° C. is obtained by the temperature AD value calculation formula: AD_Tr=4095*4.99 / (4.99+4.630)=2124.

[0127] By analogy, the temperature AD values ​​under different ambient temperatures are obtained, and the temperature values ​​and the corresponding temperature AD values ​​are organized into a temperature table and simplified as: […, 25°C, 26°C, 27°C, …] = {…, 2045, 2085, 2124, …} to be recorded in the microcontroller 5.

[0128] S2, according to the temperature and resistance characteristics of the humidity sensor, the humidity AD value and the humidity value are calculated by the temperature and humidity sampling circuit (31), and the humidity value and the corresponding humidity AD value are sorted into a humidity table;

[0129] It is known that the humidity sensor includes a humidity-sensitive resistor and a humidity sampling resistor; the model of the humidity-sensitive resistor is HIS-06, and the resistance of the humidity sampling resistor is 100k; wherein, some humidity and resistance characteristics of the humidity-sensitive resistor HIS-06 are shown in the following table:

[0130]

[0131] For example, when the ambient humidity is 25° C. and the ambient humidity is 60%, the resistance of the humidity sensitive resistor HIS-06 is 16k, and the humidity AD value of 60% is obtained by the calculation formula of the humidity AD value: AD_Rh=4095*100 / (100+16)=3530.

[0132] Similarly, when the ambient humidity is 25°C and the ambient humidity is 65%, the resistance of the humidity sensitive resistor HIS-06 is 10.40k. The humidity AD value of 65% is obtained by the calculation formula of the humidity AD value: AD_Rh=4095*100 / (100+10.40)=3709.

[0133] Similarly, when the ambient humidity is 25°C and the ambient humidity is 70%, the resistance of the humidity sensitive resistor HIS-06 is 7.00k, and the humidity AD value of 70% is obtained by the calculation formula of the humidity AD value: AD_Rh=4095*100 / (100+7.00)=3827.

[0134] By analogy, the humidity AD values ​​under different ambient humidity are obtained, and the humidity values ​​and the corresponding humidity AD values ​​are sorted into a humidity table and simplified as follows: 25C[] = {…, 3530, 3709, 3827…}, so as to be recorded in the microcontroller (5).

[0135] S3, pre-storing the temperature table and humidity table into the microcontroller 5;

[0136] S4, real-time monitoring by the temperature sensor, after passing through the temperature and humidity sampling circuit 31, the microcontroller 5 converts it into a real-time temperature AD value, and obtains the temperature value corresponding to the real-time temperature AD value by using a table lookup method for the temperature table;

[0137] S5, real-time monitoring by humidity sensor, after passing through temperature and humidity sampling circuit 31, microcontroller 5 converts into real-time humidity AD value, and obtains humidity value corresponding to real-time humidity AD value by table lookup method in humidity table;

[0138] Assuming that the temperature AD value obtained is 2085, the temperature table is searched. When 2045 is found, it does not meet 25°C. The next grid is searched. When 2085 is found, it is equal to the AD-Tr value obtained, which meets 26°C. At this time, the AD value is converted into a temperature value of 26°C.

[0139] S6, the microcontroller 5 reads the level signal of the placement detection module 4. If the level state corresponds to the forward placement state, the digital tube display screen is controlled to display the humidity value and the humidity unit character. Otherwise, if the level state corresponds to the reverse placement state, the digital tube display screen is controlled to display the temperature value and the temperature unit character.

[0140] In summary, by utilizing the data processing capability of the microcontroller 5, fast and accurate temperature and humidity monitoring and display are achieved, while the overall power consumption of the temperature and humidity detection device is reduced, thereby improving energy utilization efficiency.

[0141] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the scope of protection of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific embodiments of the present invention without creative work, and these equivalent variations or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A temperature and humidity detection device, characterized in that: It comprises a housing (1); The housing (1) is internally installed with a power supply interface (2), a temperature and humidity detection module (3), a placement detection module (4) and a microcontroller (5); The outer surface of the housing (1) is provided with a digital display screen (6); The power interface (2), the temperature and humidity detection module (3), the placement detection module (4) and the digital display screen (6) are all electrically connected to the microcontroller (5); The power interface (2) is used to provide working power for the digital display screen (6), the temperature and humidity detection module (3), the placement detection module (4) and the microcontroller (5); The temperature and humidity detection module (3) is used to detect the humidity and temperature of the environment in which the housing (1) is located, and send the detected information to the microcontroller (5) for processing; The placement detection module (4) is used to detect the placement state of the housing (1) and send it to the microcontroller (5) for identification; The microcontroller (5) is used to identify the placement state of the housing (1) and control the display of the digital display screen (6); The housing (1) has two placement states, the two placement states being a forward placement state and a reverse placement state respectively; When the housing (1) is in the forward placement state, the digital display screen (6) displays the humidity value and humidity unit characters; When the housing (1) is in the reverse placement state, the digital display screen (6) displays the temperature value and temperature unit characters.

2. A temperature and humidity detection device according to claim 1, characterized in that: The digital display screen (6) comprises three 8-segment segments and three decimal points arranged in an interlaced manner; When the housing (1) is in the forward placement state, the three decimal points are respectively located at the lower right of the three 8-segment fields, the two 8-segment fields and the two decimal points located on the left are used to display the humidity value, and the 8-segment field and the decimal point located on the rightmost side are used to display the humidity unit character P.; When the housing (1) is in the reverse placement state, the three decimal points are respectively located at the upper left of the three 8-segment fields, the two 8-segment fields and the two decimal points located on the left are used to display the temperature value, and the 8-segment field and the decimal point located on the rightmost side are used to display the temperature unit character. . C.

3. A temperature and humidity detection device according to claim 1, characterized in that: The placement detection module (4) comprises an infrared light emitting diode (41), a photosensitive receiver (42) and a ball (43), wherein the photosensitive receiver (42) is electrically connected to a position detection circuit (44), and the position detection circuit (44) is electrically connected to the microcontroller (5); The infrared light emitting diode (41) and the photosensitive receiver (42) are located at the same horizontal position, and the ball (43) can be vertically movably installed between the infrared light emitting diode (41) and the photosensitive receiver (42); The rolling ball (43) has two position states, which are a blocking state and an unblocking state respectively; When the housing (1) is in the forward placement state, the ball (43) is located between the infrared light emitting diode (41) and the photosensitive receiver (42), and the ball (43), the infrared light emitting diode (41) and the photosensitive receiver (42) are located at the same horizontal position, the ball (43) is in a blocking state, the photosensitive receiver (42) cannot receive the light signal of the infrared light emitting diode (41), and the position detection circuit (44) sends a high level signal to the microcontroller (5); When the housing (1) is in the reverse placement state, the ball (43) is not located between the infrared light-emitting diode (41) and the photosensitive receiver (42). The ball (43) is in an unblocked state, and the photosensitive receiver (42) can receive the light signal of the infrared light-emitting diode (41). The position detection circuit (44) sends a low-level signal to the microcontroller (5).

4. A temperature and humidity detection device according to claim 1, characterized in that: The temperature and humidity detection module (3) includes a temperature sensor, a humidity sensor, and a temperature and humidity sampling circuit (31); The temperature and humidity sampling circuit (31) includes a first input terminal, a second input terminal, a first output terminal, and a second output terminal; Both ends of the temperature sensor are electrically connected to the first input terminal and the second input terminal respectively; Both ends of the humidity sensor are electrically connected to the first input terminal and the second input terminal respectively; Both the first output terminal and the second output terminal are electrically connected to the microcontroller (5); The first output terminal is used to output a temperature AD value converted according to the real-time resistance value of the temperature sensor to the microcontroller (5), and the microcontroller (5) is used to obtain the temperature value corresponding to the temperature AD value according to the temperature AD value; The second output terminal is used to output a humidity AD value converted according to the real-time resistance value of the humidity sensor to the microcontroller (5), and the microcontroller (5) is used to obtain the humidity value corresponding to the humidity AD value according to the humidity AD value.

5. A temperature and humidity detection device according to claim 4, characterized in that: The temperature sensor includes a thermistor and a temperature sampling resistor; The model of the thermistor is B3470, and the resistance value of the temperature sampling resistor is 4.99k; The calculation formula of the temperature AD value is AD_Tr = 4095*R7 / (R7 + R_thermal), where R7 represents the resistance value of the temperature sampling resistor, and R_thermal represents the real-time resistance value of the thermistor.

6. A temperature and humidity detection device according to claim 4, characterized in that: The humidity sensor includes a humidity-sensitive resistor and a humidity sampling resistor; The model of the humidity-sensitive resistor is HIS-06, and the resistance value of the humidity sampling resistor is 100k; The calculation formula of the humidity AD value is AD_Rh = 4095*R31 / (R31 + R_humidity), where R31 represents the resistance value of the humidity sampling resistor, and R_humidity represents the real-time resistance value of the humidity-sensitive resistor.

7. A detection method for a temperature and humidity detection device, characterized in that: Applied to a temperature and humidity detection device according to any one of claims 1-6, it includes the following steps: S1. According to the temperature and resistance characteristics of the temperature sensor, calculate the temperature AD value through the temperature and humidity sampling circuit (31), and organize the temperature value and the corresponding temperature AD value into a temperature table; S2. According to the temperature and resistance characteristics of the humidity sensor, calculate the humidity AD value and the humidity value through the temperature and humidity sampling circuit (31), and organize the humidity value and the corresponding humidity AD value into a humidity table; S3. Pre-store the temperature table and the humidity table into the microcontroller (5); S4. Through real-time monitoring by the temperature sensor, after passing through the temperature and humidity sampling circuit (31), the microcontroller (5) converts it into a real-time temperature AD value, and uses the look-up table method for the temperature table to obtain the temperature value corresponding to the real-time temperature AD value; S5, real-time monitoring by the humidity sensor, after passing through the temperature and humidity sampling circuit (31), the microcontroller (5) converts the real-time humidity AD value, and obtains the humidity value corresponding to the real-time humidity AD value by looking up the humidity table; S6, the microcontroller (5) reads the level signal of the placement detection module (4), and if the level state corresponds to the forward placement state, the digital tube display screen is controlled to display the humidity value and the humidity unit character; otherwise, if the level state corresponds to the reverse placement state, the digital tube display screen is controlled to display the temperature value and the temperature unit character.