Temperature detection and early warning circuit and temperature detection and early warning device

By designing a temperature detection and early warning circuit including the main control unit, the temperature detection unit and the temperature early warning unit, the problem of automatic temperature measurement and timely early warning in the prior art is solved, and automatic monitoring and abnormal handling of the objects to be measured are realized.

CN222719061UActive Publication Date: 2025-04-04EVOC HI-TECH HLDG GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421387914.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2025-04-04
Estimated Expiration
2034-06-18

AI Technical Summary

Technical Problem

In the prior art, automatic temperature measurement of the object to be measured cannot be achieved, and early warning cannot be made in time when the temperature value is abnormal, resulting in high labor costs and potential losses.

Method used

A temperature detection and early warning circuit is designed, including a main control unit, a temperature detection unit and a temperature early warning unit. The main control unit automatically controls the temperature detection unit to measure the temperature, and determines whether the temperature value exceeds the threshold value. If it exceeds the alarm signal, it will be output.

Benefits of technology

It realizes automatic temperature measurement and timely warning of temperature abnormalities of the objects to be tested, reducing labor costs and reducing potential losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222719061U_ABST
    Figure CN222719061U_ABST
Patent Text Reader

Abstract

The present application relates to the field of temperature detection technology, and discloses a temperature detection and early warning circuit and a temperature detection and early warning device, including a main control unit, a temperature detection unit, a temperature early warning unit, a USB communication unit, a reset unit and a Bluetooth unit. The temperature detection unit is used to detect the temperature of the object to be measured and obtain the temperature value; the main control unit is used to receive the temperature value sent by the temperature detection unit; the main control unit is also used to control the temperature early warning unit to output an alarm signal if the temperature value is abnormal; the USB communication unit and the Bluetooth unit are used to receive data sent by the electronic device and transmit it to the main control unit; the main control unit is also used to transmit the temperature value to the electronic device through the USB communication unit and the Bluetooth unit; the USB communication unit is also used to output a level signal to reset the main control unit. The present application also discloses a temperature detection and early warning device, including a housing and a temperature detection and early warning circuit arranged in the housing. The present application realizes the detection of the temperature of the object to be measured and early warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of temperature detection technology, and specifically to a temperature detection and early warning circuit and a temperature detection and early warning device. Background Art

[0002] At present, most temperature recorders require manual operation by the operator, including manually starting the temperature recorder to measure and record temperature and manually stopping the temperature recorder to stop measuring and recording temperature, etc. However, this manual temperature measurement method requires manual operation every time the temperature recorder is used for temperature measurement, which is not only cumbersome to operate, but also requires manual operation by the operator to achieve, resulting in high labor costs.

[0003] After using a temperature recorder to test the temperature of an object and obtain the temperature value, the staff usually needs to analyze the temperature value to determine whether the object being measured is abnormal. However, if the staff cannot analyze the temperature value in time, when the object being measured is abnormal, it will not be possible to handle the abnormality in time, which will cause certain losses. Therefore, there is currently a lack of a circuit that can both realize automatic temperature measurement and issue a warning in time when the temperature value is abnormal. Utility Model Content

[0004] In view of the above problems, the embodiments of the present application provide a temperature detection and warning circuit and a temperature detection and warning device, which are used to solve the problems in the prior art that the temperature of the object to be measured cannot be automatically measured, and that a warning cannot be issued in time when the temperature of the object to be measured becomes abnormal.

[0005] According to one aspect of an embodiment of the present application, a temperature detection and warning circuit is provided, the circuit comprising: a main control unit, a temperature detection unit, a temperature warning unit, a USB communication unit, a first reset unit and a Bluetooth unit; wherein the main control unit comprises a first clock signal generating pin, a first temperature value transmitting pin, a first control pin, a first data sending pin, a first data receiving pin, a first reset pin, a second data sending pin and a second data receiving pin; the temperature detection unit comprises a first clock signal pin and a second temperature value transmitting pin, the first clock signal pin is electrically connected to the first clock signal generating pin, and the second temperature value transmitting pin is electrically connected to the first control pin. The temperature detection unit is electrically connected to a temperature value transmission pin, and is used to detect the surface temperature of the object to be measured and obtain a temperature value; the main control unit is used to send a first clock signal to the temperature detection unit through the first clock signal generation pin, so that the temperature detection unit transmits the temperature value to the main control unit through the second temperature value transmission pin according to the first clock signal; the temperature early warning unit includes an early warning subunit and a switch unit, the positive pole of the early warning subunit is used to access the power supply, the negative pole is electrically connected to the first pole of the switch unit, the control pole of the switch unit is electrically connected to the first control pin, and the second pole of the switch unit is grounded; the main control unit is also used Determine whether the temperature value is greater than a temperature threshold value. If the temperature value is greater than the temperature threshold value, output a level signal through the first control pin, and the switch unit is turned on, so that the early warning subunit outputs an alarm signal; the USB communication unit includes a USB data transmission pin, a first serial port data transmission pin, a first serial port data receiving pin and a first reset control pin. The USB data transmission pin is used to communicate with the USB interface to receive USB data sent by the electronic device through the USB interface. The first serial port data receiving pin is electrically connected to the first data transmission pin, and the first serial port data transmission pin is electrically connected to the first data receiving pin; the USB communication unit is used to convert the USB data into first serial port data, and transmit the first serial port data to the main control unit through the first serial port data transmission pin; the main control unit is also used to send the temperature value to the USB communication unit through the first data transmission pin; the USB communication unit is also used to receive the temperature value, convert the temperature value into USB data, and transmit it to the electronic device through the USB data transmission pin; the first reset control pin is electrically connected to the control electrode of the first reset unit, the first electrode of the first reset unit is electrically connected to the first reset pin, and the second electrode of the first reset unit is grounded;The USB communication unit is also used to receive the first reset signal sent by the electronic device through the USB data transmission pin, and output a level signal through the first reset control pin according to the first reset signal, so that the first pole and the second pole of the first reset unit are turned on, the first reset pin is grounded, and the main control unit is reset; the Bluetooth unit includes a second serial port data receiving pin and a second serial port data sending pin, the second serial port data receiving pin is electrically connected to the second data sending pin, and the second serial port data sending pin is electrically connected to the second data receiving pin; the Bluetooth unit is used to connect to the electronic device through Bluetooth communication, receive the Bluetooth data sent by the electronic device, and convert the Bluetooth data into second serial port data, and also send the second serial port data to the main control unit through the second serial port data sending pin; the main control unit is also used to send the temperature value to the Bluetooth unit through the Bluetooth data sending pin; the Bluetooth unit is also used to receive the temperature value, convert the temperature value into Bluetooth data and transmit it to the electronic device. ;

[0006] In an optional manner, the early warning subunit includes a buzzer, the positive pole of the buzzer is used to connect to a power supply, the negative pole is electrically connected to the first pole of the switch unit, and the buzzer is used to output an alarm sound when the switch unit is turned on.

[0007] In an optional embodiment, the early warning subunit also includes a first resistor and a first light-emitting diode, one end of the first resistor is used to connect to a power supply, and the other end is electrically connected to the positive pole of the first light-emitting diode, the negative pole of the first light-emitting diode is electrically connected to the first pole of the switch unit, and the first light-emitting diode is used to emit light when the switch unit is turned on.

[0008] In an optional manner, the circuit also includes a storage unit, and the main control unit also includes a second clock signal generating pin, a third data sending pin and a third data receiving pin; the storage unit includes a second clock signal pin, a fourth data receiving pin and a fourth data sending pin, wherein the second clock signal generating pin is electrically connected to the second clock signal pin, the third data receiving pin is electrically connected to the fourth data sending pin, and the fourth data receiving pin is electrically connected to the third data sending pin; the main control unit is also used to send a second clock signal to the storage unit through the second clock signal generating pin, and transmit the temperature value to the storage unit through the third data sending pin; the storage unit is used to receive the temperature value according to the second clock signal and store the temperature value, and also to transmit the data stored in the storage unit to the main control unit through the fourth data sending pin according to the second clock signal.

[0009] In an optional manner, the circuit also includes a second light-emitting diode, and the Bluetooth unit also includes a signal output pin, the positive electrode of the second light-emitting diode is electrically connected to the signal output pin through a second resistor, and the negative electrode of the second light-emitting diode is grounded; the Bluetooth unit is used to output a high-level signal through the signal output pin when the Bluetooth unit is in a working state, so as to make the second light-emitting diode emit light.

[0010] In an optional manner, the circuit also includes a second reset unit, a first end of the second reset unit is used to connect to a power supply, a second end of the second reset unit is electrically connected to a second reset pin of the Bluetooth unit, and the second reset pin is also grounded through a third resistor; when the second reset unit is configured to connect the first end to the second end, the second reset pin is connected to the power supply through the second reset unit to reset the Bluetooth unit.

[0011] In an optional manner, the circuit also includes a step-down unit, which includes a voltage input pin and a voltage output pin, and the main control unit also includes a power pin, which is electrically connected to the voltage output pin; the voltage input pin is used to be electrically connected to the USB interface to access a 5V power supply, and the step-down unit is used to convert the 5V power supply into a 3.3V power supply, and output the 3.3V power supply through the voltage output pin to provide working power for the main control unit.

[0012] In an optional manner, the circuit also includes a display unit, and the main control unit also includes a control pin and multiple fifth data sending pins; the display unit includes a controlled pin and multiple fifth data receiving pins, and the multiple fifth data receiving pins are electrically connected to the multiple fifth data sending pins in a one-to-one correspondence; the main control unit is also used to send a first level signal to the display unit through the control pin, so that after the display unit is set to the first mode, the main control unit is also used to send an initialization instruction to the display unit through the multiple fifth data sending pins, so that the display unit is initialized according to the initialization instruction; the main control unit is also used to send a second level signal to the display unit through the control pin, so that after the display unit is set to the second mode, the main control unit is also used to transmit the temperature value to the display unit through the multiple fifth data sending pins, so that the display unit displays the temperature value.

[0013] In an optional manner, the circuit also includes a third reset unit, and the main control unit also includes a third reset pin; the third reset pin is used to access the power supply, and the third reset pin is also electrically connected to one end of the third reset unit, and the other end of the third reset unit is grounded; when the third reset unit is set to be conductive at both ends, the third reset pin is grounded through the third reset unit to reset the main control unit.

[0014] According to another aspect of an embodiment of the present application, a temperature detection and warning device is provided, the device comprising a housing and a temperature detection and warning circuit as described above, wherein the temperature detection and warning circuit is disposed in the housing.

[0015] In the embodiment of the present application, since the temperature detection and early warning circuit is provided with a main control unit, a temperature detection unit and a temperature early warning unit, the temperature detection unit can be controlled by the main control unit to measure the temperature of the object to be measured to obtain a temperature value, and the temperature detection unit transmits the temperature value to the main control unit. After the main control unit receives the temperature value, if it is determined that the temperature value is greater than the temperature threshold, the temperature early warning unit is controlled to output an alarm signal. Through the above settings, the present application not only realizes automatic temperature measurement of the object to be measured, but also can timely judge whether the object to be measured is abnormal according to the temperature value. If it is determined that the object to be measured is abnormal, the temperature early warning unit outputs an alarm signal in time, so that the staff can handle the abnormality in time.

[0016] Furthermore, in the embodiment of the present application, since the temperature detection and early warning circuit is also provided with a USB communication unit, the user can directly read the temperature value obtained by the temperature detection unit for measuring the temperature of the object to be measured through the electronic device, so as to further utilize the temperature value, which provides convenience for the user. And the temperature detection and early warning circuit is also provided with a Bluetooth unit, so that the user can send relevant instructions to the main control unit or read the temperature value of the object to be measured after establishing a Bluetooth communication connection with the Bluetooth unit through the electronic device. Since the temperature detection and early warning circuit is not only provided with a USB communication unit but also provided with a Bluetooth unit, the user can establish a communication connection with the USB communication unit through the electronic device, or establish a Bluetooth communication connection with the Bluetooth unit, so as to meet the different needs of different users, and increase the use scenarios of the temperature detection and early warning circuit.

[0017] Furthermore, the main control unit will inevitably have abnormalities during operation. By resetting it, the historical configuration and historical status are cleared, thereby restoring it to the initial state, so that the main control unit can work normally after restarting. In the embodiment of the present application, since a first reset unit is also provided in the temperature detection and early warning circuit, after the user finds that the main control unit is in an abnormal state, the first reset signal is sent to the USB communication unit through the electronic device. After the USB communication unit outputs a level signal, the first reset unit is turned on to reset the main control unit. Since the user can control the main control unit to reset through the electronic device, compared with reconfiguring the program in the main control unit to reset the main control unit, the operation is simple, and the user can control the main control unit to reset at any time, thereby further providing convenience for the user.

[0018] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0020] Figure 1 A schematic diagram of a temperature detection and warning circuit provided in an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of a main control unit provided in an embodiment of the present application is shown;

[0022] Figure 3 A schematic diagram of a temperature detection unit provided in an embodiment of the present application is shown;

[0023] Figure 4 A schematic diagram of a temperature warning unit provided in an embodiment of the present application is shown;

[0024] Figure 5 A schematic diagram of a USB communication unit and a first reset unit provided in an embodiment of the present application is shown;

[0025] Figure 6 A schematic diagram of a storage unit provided in an embodiment of the present application is shown;

[0026] Figure 7 A schematic diagram showing a Bluetooth unit and a second reset unit provided in an embodiment of the present application is shown;

[0027] Figure 8 A schematic diagram of a voltage reduction unit provided in an embodiment of the present application is shown;

[0028] Fig. 9 A schematic diagram of a display unit provided in an embodiment of the present application is shown;

[0029] Fig.10 A schematic diagram of a third resetting unit provided in an embodiment of the present application is shown;

[0030] Fig.11 A schematic diagram of a temperature detection and warning device provided in an embodiment of the present application is shown.

[0031] The reference numerals in the specific implementation manner are as follows:

[0032] 10. Temperature detection and early warning circuit;

[0033] 110, main control unit; 120, temperature detection unit; 130, temperature warning unit; 131, warning subunit; 132, switch unit; 140, USB communication unit; 150, first reset unit; 160, Bluetooth unit;

[0034] BZ1, buzzer; LED1, first light-emitting diode; R12, first resistor; R13, switch resistor; Q1, first transistor; R16, reset resistor; C16, first capacitor; Q2, second transistor; SW1, first switch; LED2, second light-emitting diode;

[0035] 111, first clock signal generating pin; 112, first temperature value transmitting pin; 113, first control pin; 114, first data transmitting pin; 115, first data receiving pin; 116, first reset pin; 117, second data transmitting pin; 118, second data receiving pin; 121, first clock signal pin; 122, second temperature value transmitting pin; 1311, positive pole of early warning subunit; 1312, negative pole of early warning subunit; 1321, first pole of switch unit; 1322, control pole of switch unit; 1323, second pole of switch unit; 141, USB data transmission pin; 142, first serial port data transmitting pin; 143, first serial port data receiving pin; 144, first reset control pin; 151, control pole of first reset unit; 152, first pole of first reset unit; 153, second pole of first reset unit; 161, second serial port data receiving pin; 162, second serial port data transmitting pin;

[0036] 20. Temperature detection and early warning equipment; 21. Casing. DETAILED DESCRIPTION

[0037] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0039] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0040] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0041] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0042] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0043] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.

[0044] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like 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 mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0045] The inventor of the present application has found that a thermistor temperature recorder can be used to measure and record temperature. When selecting a thermistor temperature recorder, the user can select an appropriate thermistor temperature recorder according to the application requirements, such as a temperature recorder in which the thermistor is a platinum resistor or a temperature recorder in which the thermistor is a nickel-chromium alloy resistor. These resistors have stable temperature characteristics and high accuracy. The thermistor temperature recorder usually includes a corresponding circuit to drive and read the resistance value of the thermistor to obtain the temperature of the object to be measured. For example, a current source or a constant current source is usually used to provide a stable current to the thermistor, and then the resistance value is measured by voltage measurement or a bridge circuit, and a microcontroller or a dedicated data acquisition chip is used to obtain the resistance value of the thermistor and convert it into a temperature value to obtain the temperature value of the object to be measured. An analog-to-digital converter (ADC) can usually be used to convert the resistance value into a digital signal, and then it is converted into a temperature value through an algorithm.

[0046] However, when using a thermistor temperature recorder to measure the temperature of an object to be measured, an operator is usually required to operate the thermistor temperature recorder. If the temperature of the object to be measured needs to be measured multiple times at a certain interval, the operator is required to operate the thermistor temperature recorder each time to measure the temperature. This is not only cumbersome, but also requires manual operation by the operator, resulting in high labor costs.

[0047] The inventor of the present application has also found that after using a temperature recorder to test the temperature of an object and obtain the temperature value, a worker is usually required to analyze the temperature value to determine whether the object being tested is abnormal. However, if the worker fails to analyze the temperature value in time, when the object being tested is abnormal, it will not be possible to handle the abnormality in time, which will cause certain losses.

[0048] Based on the above considerations, the present application proposes a temperature detection and early warning circuit, which includes a main control unit, a temperature detection unit and a temperature early warning unit. The main control unit is used to control the temperature detection unit to detect the temperature value of the object to be measured, and the temperature detection unit transmits the temperature value to the main control unit in time. The main control unit is also used to determine whether the temperature value is abnormal. If it is abnormal, the temperature early warning unit is controlled to output an alarm signal. The present application sets the main control unit to control the temperature detection unit to automatically measure the temperature of the object to be measured at a certain frequency, so that the temperature detection unit can automatically measure the temperature of the object to be measured. When measuring the temperature, there is no need for the operator to manually operate the temperature measuring device, thereby reducing labor costs. Since the temperature detection unit detects the temperature value and transmits it to the main control unit in time, the present application sets the main control unit to determine whether the temperature value is abnormal, so that when the temperature value is abnormal, the temperature early warning unit can output an alarm signal in time to remind the staff to handle the abnormality, thereby reducing losses.

[0049] Figure 1 FIG. 1 is a schematic diagram of a temperature detection and warning circuit provided in an embodiment of the present application. Figure 1 As shown, the temperature detection and warning circuit 10 includes a main control unit 110, a temperature detection unit 120, a temperature warning unit 130, a USB communication unit 140, a first reset unit 150 and a Bluetooth unit 160. The main control unit 110 includes a first clock signal generating pin 111, a first temperature value transmitting pin 112, a first control pin 113, a first data sending pin 114, a first data receiving pin 115, a first reset pin 116, a second data sending pin 117 and a second data receiving pin 118.

[0050] The temperature detection unit 120 includes a first clock signal pin 121 and a second temperature value transmission pin 122. The first clock signal pin 121 is electrically connected to the first clock signal generation pin 111, and the second temperature value transmission pin 122 is electrically connected to the first temperature value transmission pin 112. The temperature detection unit 120 is used to detect the surface temperature of the object to be measured and obtain a temperature value. The main control unit 110 is used to send a first clock signal to the temperature detection unit 120 through the first clock signal generation pin 111, so that the temperature detection unit 120 transmits the temperature value to the main control unit 110 through the second temperature value transmission pin 122 according to the first clock signal.

[0051] The main control unit 110 may include one or more processors, which may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or a microcontroller unit (MCU), or one or more integrated circuits configured to implement the present embodiment, which are not limited here. The temperature detection unit 120 can be controlled by the main control unit 110 to measure the temperature of the object to be measured as needed. For example, the temperature detection unit 120 is controlled by the main control unit 110 to measure the temperature of the object to be measured at regular intervals, thereby realizing temperature monitoring of the object to be measured. Specifically, the main control unit 110 can send a temperature measurement instruction to the temperature detection unit 120 through the first temperature value transmission pin 112, so that the temperature detection unit 120 executes the temperature measurement instruction, thereby completing the operation of measuring the temperature of the object to be measured.

[0052] In order to control the rate at which the temperature detection unit 120 sends the temperature value to the main control unit 110 and ensure that the main control unit 110 can normally receive the temperature value sent by the temperature detection unit 120, the main control unit 110 sends a first clock signal to the temperature detection unit 120 through the first clock signal generating pin 111, so that the temperature detection unit 120 transmits the temperature value to the main control unit 110 according to the first clock signal. For example, after the main control unit 110 sends an instruction requesting to read the temperature value to the temperature detection unit 120, the temperature detection unit 120 sends the requested temperature value to the main control unit 110 in the next clock cycle.

[0053] The temperature warning unit 130 includes a warning subunit 131 and a switch unit 132, the positive pole 1311 of the warning subunit is used to connect to the power supply, the negative pole 1312 of the warning subunit is electrically connected to the first pole 1321 of the switch unit, the control pole 1322 of the switch unit is electrically connected to the first control pin 113, and the second pole 1323 of the switch unit is grounded.

[0054] The switch unit 132 may be a transistor, such as a PNP transistor or an NPN transistor, etc. If the switch unit 132 is a PNP transistor, the first electrode 1321 of the switch unit is an emitter, the control electrode 1322 of the switch unit is a base, and the second electrode 1323 of the switch unit is a collector.

[0055] The main control unit 110 is also used to determine whether the temperature value is greater than the temperature threshold. If the temperature value is greater than the temperature threshold, a level signal is output through the first control pin 113 to connect the first pole 1321 of the switch unit and the second pole 1323 of the switch unit, and the negative pole 1312 of the early warning subunit is grounded. The early warning subunit 131 is in working state and outputs an alarm signal.

[0056] The temperature threshold can be pre-stored in the main control unit 110, and the temperature threshold can be set as needed. Specifically, if the switch unit 132 is a PNP transistor, after the main control unit 110 determines that the temperature value is greater than the temperature threshold, it controls the first control pin 113 to output a high-level signal to turn on the emitter and collector of the PNP transistor, so that the early warning subunit 131 works and outputs an alarm signal.

[0057] The USB communication unit 140 includes a USB data transmission pin 141, a first serial port data transmission pin 142, a first serial port data reception pin 143, and a first reset control pin 144. The USB data transmission pin 141 is used to communicate with the USB interface to receive USB data sent by the electronic device through the USB interface, the first serial port data reception pin 143 is electrically connected to the first data transmission pin 114, and the first serial port data transmission pin 142 is electrically connected to the first data reception pin 115. The USB communication unit 140 is used to convert USB data into first serial port data, and transmit the first serial port data to the main control unit 110 through the first serial port data transmission pin 142.

[0058] Among them, the electronic device can be a mobile phone, a tablet computer, a laptop computer, etc. The electronic device is usually provided with a USB interface, and the USB data transmission pin 141 is connected to the USB interface through a data line, so that the USB communication unit 140 in the temperature detection and early warning circuit 10 can be connected to the electronic device. Since the data sent by the electronic device to the USB communication unit 140 is USB data, and other units except the USB communication unit 140 in the temperature detection and early warning circuit 10 can usually only recognize data in the form of a serial port, therefore, in the embodiment of the present application, the USB data is converted into first serial port data by using the USB communication unit 140, and the first serial port data is transmitted to the main control unit 110, so that the main control unit 110 can recognize and read the first serial port data. For example, a user can send a temperature measurement instruction to the USB communication unit 140 through a mobile phone, and the USB communication unit 140 converts the temperature measurement instruction into serial port data and then sends it to the main control unit 110, so that the main control unit 110 controls the temperature detection unit 120 to measure the temperature of the object to be measured according to the temperature measurement instruction.

[0059] The main control unit 110 is also used to send the temperature value to the USB communication unit 140 through the first data sending pin 114. The USB communication unit 140 is also used to receive the temperature value, convert the temperature value into USB data and transmit it to the electronic device through the USB data transmission pin 141.

[0060] The first reset control pin 144 is electrically connected to the control electrode 151 of the first reset unit, the first electrode 152 of the first reset unit is electrically connected to the first reset pin 116, and the second electrode 153 of the first reset unit is grounded. The USB communication unit 140 is also used to receive a first reset signal sent by the electronic device through the USB data transmission pin 141, and output a level signal through the first reset control pin 144 according to the first reset signal, so that the first electrode 152 of the first reset unit and the second electrode 153 of the first reset unit are turned on, the first reset pin 116 is grounded, and the main control unit 110 is reset.

[0061] Among them, the main control unit 110 may be abnormal during the working process. By resetting the main control unit 110, the main control unit 110 can reload the program and execute the program, ensuring that the main control unit 110 can run the program from the beginning, thereby recovering to a normal working state. When the main control unit 110 is in an abnormal state, after the user sends a first reset signal to the USB communication unit 140 through an electronic device, the USB communication unit 140 controls the first reset control pin 144 to output a level signal according to the first reset signal to reset the main control unit 110. Among them, the first reset unit 150 can be a transistor, for example, an NPN transistor. If the first reset unit 150 is an NPN transistor, the control electrode 151 of the first reset unit is the base, the first electrode 152 of the first reset unit is the collector, and the second electrode 153 of the first reset unit is the emitter.

[0062] Specifically, when the first reset pin 116 of the main control unit 110 is a low-level signal, the main control unit 110 is reset. When the first reset unit 150 is an NPN-type transistor, the USB communication unit 140 controls the first reset control pin 144 to output a high-level signal according to the first reset signal to make the emitter and collector of the transistor conductive. Then, the first reset pin 116 of the main control unit 110 is connected to a low-level signal, so that the main control unit 110 is reset.

[0063] The Bluetooth unit 160 includes a second serial port data receiving pin 161 and a second serial port data sending pin 162 . The second serial port data receiving pin 161 is electrically connected to the second data sending pin 117 , and the second serial port data sending pin 162 is electrically connected to the second data receiving pin 118 .

[0064] The Bluetooth unit 160 is used to connect to the electronic device via Bluetooth communication, receive Bluetooth data sent by the electronic device, convert the Bluetooth data into second serial port data, and send the second serial port data to the main control unit 110 via the second serial port data sending pin 162. The main control unit 110 is also used to send the temperature value to the Bluetooth unit 160 via the second data sending pin 117. The Bluetooth unit 160 is also used to receive the temperature value, convert the temperature value into Bluetooth data, and transmit it to the electronic device.

[0065] In the embodiment of the present application, since the temperature detection and early warning circuit 10 is provided with a main control unit 110, a temperature detection unit 120 and a temperature early warning unit 130, the temperature detection unit 120 can be controlled by the main control unit 110 to measure the temperature of the object to be measured to obtain a temperature value, and the temperature detection unit 120 transmits the temperature value to the main control unit 110. After the main control unit 110 receives the temperature value, if it is determined that the temperature value is greater than the temperature threshold, the temperature early warning unit 130 is controlled to output an alarm signal. Through the above settings, the present application not only realizes automatic temperature measurement of the object to be measured, but also can timely judge whether the object to be measured is abnormal according to the temperature value. If it is determined that the object to be measured is abnormal, the temperature early warning unit 130 outputs an alarm signal in time, so that the staff can handle the abnormality in time.

[0066] Further, in the embodiment of the present application, since the temperature detection and early warning circuit 10 is also provided with a USB communication unit 140, the user can directly read the temperature value obtained by the temperature detection unit 120 measuring the temperature of the object to be measured through the electronic device, so as to further utilize the temperature value, which provides convenience for the user. And the temperature detection and early warning circuit 10 is also provided with a Bluetooth unit 160, so that the user can send relevant instructions to the main control unit 110 or read the temperature value of the object to be measured after establishing a Bluetooth communication connection with the Bluetooth unit through the electronic device. Since the temperature detection and early warning circuit 10 is not only provided with a USB communication unit 140 but also provided with a Bluetooth unit 160, the user can establish a communication connection with the USB communication unit 140 through the electronic device as needed, or establish a Bluetooth communication connection with the Bluetooth unit 160, so as to meet the different needs of different users, and increase the use scenario of the temperature detection and early warning circuit 10.

[0067] Furthermore, the main control unit 110 will inevitably have an abnormality during operation. By resetting it, the historical configuration and historical state are cleared, thereby restoring to the initial state, so that the main control unit 110 can work normally after restarting. In the embodiment of the present application, since the temperature detection and early warning circuit 10 is also provided with a first reset unit 150, after the user finds that the main control unit 110 is in an abnormal state, the first reset signal is sent to the USB communication unit 140 through the electronic device. After the USB communication unit 140 outputs a level signal, the first reset unit 150 is turned on to reset the main control unit 110. Since the user can control the main control unit 110 to reset through the electronic device, compared with reconfiguring the program in the main control unit 110 to reset the main control unit 110, the operation is simple, and the user can control the main control unit 110 to reset at any time, thereby further providing convenience for the user.

[0068] In order to better introduce the main control unit 110, in the present application example, the main control unit 110 is taken as an STM32F103RCT6 chip for example. Figure 2 FIG. 1 shows a schematic diagram of a main control unit provided in an embodiment of the present application. Figure 2 As shown, the 58th pin of the STM32F103RCT6 chip is the first clock signal generating pin 111, the 59th pin is the first temperature value transmitting pin 112, the 39th pin is the first control pin 113, the 42nd pin is the first data sending pin 114, the 43rd pin is the first data receiving pin, the 7th pin is the first reset pin 116, the 16th pin is the second data sending pin 117, and the 17th pin is the second data receiving pin 118. It should be noted that, Figure 2 In the figure, VCC3V3 represents a power source VCC with a voltage of 3.3V, and is applicable to other drawings below, and will not be explained again later.

[0069] The STM32F103RCT6 chip uses the ARM Cortex-M0+ core and has the characteristics of high performance and low power consumption. The clock frequency of the chip can be set as needed, usually up to the range of tens of megahertz. The chip has the ability to process data quickly and efficiently. The STM32F103RCT6 chip supports a variety of peripheral interfaces, including but not limited to UART (Universal Asynchronous Receiver and Transmitter), SPI (Serial Peripheral Interface), I2C (Serial Communication Interface) and GPIO (General Purpose Input Output), which enable communication and control with other external electronic devices, such as sensors, displays, wireless modules, etc. The chip has built-in multiple clock sources and timer modules to provide accurate clock and timing functions, which can be used in application scenarios such as time measurement, timing, and scheduling tasks. The STM32F103RCT6 chip has a variety of power management technologies to achieve low-power operation and extend battery life. It supports different low-power modes, such as sleep mode and standby mode, which can be flexibly selected in different usage scenarios to meet energy efficiency requirements.

[0070] In the embodiment of the present application, the main control unit 110 is set up by adopting the STM32F103RCT6 chip, so that the main control unit 110 can have high performance, low power consumption, rich peripheral interfaces and security functions, provide stable and reliable control and data processing capabilities for the temperature detection and early warning circuit 10, and meet the needs of energy saving and safety.

[0071] In order to better introduce the temperature detection unit 120, in the embodiment of the present application, the temperature detection unit 120 is taken as an example of the MLX90614 chip. Figure 3 FIG. 1 is a schematic diagram of a temperature detection unit provided in an embodiment of the present application. Figure 3 As shown, the SCL pin in the MLX90614 chip is the first clock signal pin 121, and the SDA pin is the second temperature value transmission pin 122. Please refer to Figure 2 and Figure 3 , Figure 2 Pin 58 and Figure 3 The SCL pins in the Figure 2 Pin 58 and Figure 3 The SCL pins in are electrically connected, and this explanation applies to the drawings in the entire text and will not be repeated later.

[0072] The MLX90614 chip has two sensing channels: one for measuring the infrared radiation of the object and the other for measuring the ambient temperature for its own temperature compensation. When the object to be measured emits infrared radiation, the infrared detector of the MLX90614 chip receives these radiations and converts them into corresponding electrical signals, which are then converted into digital signals and the temperature of the surface of the object to be measured is calculated by the internal algorithm. The MLX90614 chip converts the signal received by the infrared radiation channel into the temperature value of the object to be measured according to the pre-calibrated parameters and calibration coefficients. The ambient temperature channel is mainly used to measure the temperature of the sensor itself or the temperature of the surrounding environment. Because the sensor may be affected by the external ambient temperature during operation, the MLX90614 chip can automatically compensate by measuring the ambient temperature to eliminate the influence of ambient temperature changes on the temperature measurement results, which can ensure more accurate measurement results. In summary, the infrared radiation channel is responsible for measuring the infrared radiation of the object to be measured and calculating the temperature, while the ambient temperature channel is used to compensate for the influence of ambient temperature changes on the measurement results. Through the collaborative work of these two channels, the MLX90614 chip can achieve accurate and stable non-contact temperature measurement.

[0073] In the code burned into the STM32F103RCT6 chip, relevant I2C interface parameters are configured, including rate, timing, etc. Through the I2C bus, the STM32F103RCT6 chip can communicate with the MLX90614 chip, for example, to read temperature value data. In order to enable the STM32F103RCT6 chip to communicate with the MLX90614 chip, corresponding drivers are set to send commands and receive data returned by the sensor. These drivers can help the STM32F103RCT6 chip interact with the MLX90614 chip correctly. Once the configuration is completed, the STM32F103RCT6 chip can send a command to read the temperature value data to the MLX90614 chip through the I2C bus, and receive the temperature value data returned by the MLX90614 chip. Furthermore, the temperature value obtained by the temperature measurement of the MLX90614 chip can also be read regularly to realize the function of regularly monitoring the temperature of the object to be measured. When using the MLX90614 chip, temperature calibration can be performed as needed to ensure measurement accuracy, and temperature values ​​can also be smoothed as needed to reduce noise interference.

[0074] When the STM32F103RCT6 chip communicates with the MLX90614 chip, the I2C bus is usually used for connection and data exchange. In the code corresponding to the STM32F103RCT6 chip, the I2C bus is initialized, including setting the I2C clock rate, GPIO pins, I2C controller, etc. This ensures that the STM32F103RCT6 chip can communicate with the MLX90614 chip correctly. The STM32F103RCT6 chip sends a start signal (Start condition) and sends a 7-bit slave device (MLX90614 chip) address (for example, 0x5A), as well as a read / write bit (read or write), so that the MLX90614 chip is in a state of receiving data. Once the addressing is successful, the STM32F103RCT6 chip can send a command to read or write data to the MLX90614 chip, and specify the register address to be read or written. For the MLX90614 chip, different register addresses correspond to different functions, such as the register address of temperature data. If the STM32F103RCT6 chip sends a command to read data to the MLX90614 chip, the MLX90614 chip will return the requested data in the next clock cycle. For the MLX90614 chip, both the infrared temperature and ambient temperature data are returned in the form of two 16-bit complement codes. After receiving the data returned by the MLX90614 chip, the STM32F103RCT6 chip can perform appropriate data processing, such as converting the 16-bit complement code into the corresponding temperature value, which can be parsed and processed according to the data sheet of the MLX90614 chip. Finally, the STM32F103RCT6 chip sends a stop condition to the MLX90614 chip to end the communication with the MLX90614 chip.

[0075] In the embodiment of the present application, the temperature detection unit 120 is set by using the MLX90614 chip, and the chip uses infrared technology to measure the surface temperature of the object to be measured without contacting the object to be measured. Therefore, the temperature of the object to be measured can be quickly measured using the chip.

[0076] Furthermore, in the embodiment of the present application, by using the MLX90614 chip, the temperature detection and warning circuit 10 is suitable for occasions where it is necessary to measure high-temperature objects to be measured. The MLX90614 chip adopts digital temperature measurement technology to achieve high-precision temperature measurement and monitoring, usually with an error of less than ±0.5°C. The MLX90614 chip can measure a wide temperature range, usually from -40°C to +125°C, which can meet the needs of various application scenarios. The MLX90614 chip has the characteristics of fast response and can quickly measure the temperature of the object to be measured within a few milliseconds, thereby improving production efficiency and quality. The MLX90614 chip adopts a miniaturized design, occupies a small space and is light in weight, which makes it suitable for some devices or application scenarios with size and weight restrictions, and is easy to carry.

[0077] Figure 4 FIG. 1 is a schematic diagram of a temperature warning unit provided in an embodiment of the present application. Figure 2 and Figure 4 As shown, the warning subunit 131 includes a buzzer BZ1, a first light emitting diode LED1 and a first resistor R12, wherein the buzzer BZ1 can use the HNB09A05 chip, and the resistance of the first resistor R12 can be 2kΩ. The switch unit 132 includes a switch resistor R13 and a first transistor Q1, wherein the resistance of the switch resistor R13 can be 1kΩ, and the first transistor Q1 is a PNP transistor.

[0078] Specifically, the positive electrode of the first light-emitting diode LED1 is connected to the 3.3V power supply VCC through the first resistor R12, the positive electrode of the buzzer BZ1 is connected to the 3.3V power supply VCC, the cathode of the first light-emitting diode LED1 and the cathode of the buzzer BZ1 are both electrically connected to the emitter of the first transistor Q1, the collector of the first transistor Q1 is grounded, and the base of the first transistor Q1 is connected to the ground through the switch resistor R13. Figure 2 The 39th pin in the STM32F103RCT6 chip is electrically connected.

[0079] In the present application example, after the main control unit 110 confirms that the temperature value is greater than the temperature threshold, a high-level signal is output through the first control pin 113, that is, the 39th pin in the STM32F103RCT6 chip, so that the buzzer BZ1 outputs an alarm sound, and the first light-emitting diode LED1 emits light. The temperature of the object to be measured is detected by the temperature detection unit 120, and the buzzer BZ1 alarm is triggered when the temperature value exceeds the set temperature threshold, which can realize high-precision monitoring and measurement of the temperature of the object to be measured, and ensure the accuracy and reliability of the alarm. The temperature early warning unit 130 is controlled by the GPIO pin (39th pin) of the main control unit 110, and the temperature threshold can be adjusted conveniently and quickly. Users can set different thresholds according to actual needs to achieve effective control and early warning of temperature. Equipped with a buzzer BZ1 and a first light-emitting diode LED1, when the temperature exceeds the set temperature threshold, a sound and light alarm can be issued at the same time to remind the user to take timely measures.

[0080] In order to better introduce the USB communication unit 140 and the first reset unit 150 , in the embodiment of the present application, the USB communication unit 140 is taken as an example of a CH340G chip. Figure 5 FIG. 1 is a schematic diagram showing a USB communication unit and a first reset unit provided in an embodiment of the present application. Figure 5 As shown, the 5th and 6th pins in the CH340G chip are both USB data transmission pins 14, the 2nd pin is the first serial port data transmission pin 142, the 3rd pin is the first serial port data receiving pin 143, and the 12th pin is the first reset control pin 144. In the figure, USB1 is a USB interface. The CH340G chip receives USB data sent by the electronic device through the USB interface through the 5th and 6th pins.

[0081] The first reset unit 150 includes a reset resistor R16, a first capacitor C16, and a second triode Q2, wherein the resistance of the reset resistor R16 can be 1 kΩ, the capacitance of the first capacitor C16 can be 10 μF, the 12th pin of the CH340G chip is electrically connected to the base of the second triode Q2 through the reset resistor R16, and the collector of the second triode Q2 is electrically connected to the Figure 2 Pin 7 of the STM32F103RCT6 chip is electrically connected, and the emitter of the second transistor Q2 is grounded.

[0082] In the embodiment of the present application, a CH340G chip is used as the USB communication unit 140, and the USB interface data sent by the electronic device through the USB interface can be converted into UART serial port data, thereby realizing the communication between the electronic device and the temperature detection and early warning circuit 10. The TXD pin (pin 2) in the CH340G chip is connected to the RX pin (pin 43) of the STM32F103RCT6 chip, and the RXD pin (pin 3) in the CH340G chip is connected to the TX pin (pin 42) of the STM32F103RCT6 chip, and the UART (Universal Asynchronous Receiver / Transmitter) communication protocol is used to realize the communication connection between the STM32F103RCT6 chip and the CH340G chip.

[0083] A reset control pin (pin 12) is set at the CH340G chip. When the pin 12 is high, the second transistor Q2 is turned on, and the NRST reset signal of the STM32F103RCT6 chip is pulled low, that is, the 7th pin signal of the STM32F103RCT6 chip is pulled low, and the STM32F103RCT6 chip is reset. The electronic device can directly communicate with the CH340G chip through the USB interface USB1, using the D+ pin and the D- pin to reset the STM32F103RCT6 chip and perform online programming. When the STM32F103RCT6 chip is reset, the CH340G chip is also reset at the same time, so that the CH340G chip is restored to the initial state, the previous configuration and state of the CH340G chip are cleared, and the CH340G chip can work normally after restarting. Since abnormal communication or other abnormal situations may occur when the CH340G chip is working, resetting the CH340G chip can solve these problems and restore the CH340G chip communication to normal. In addition, resetting the CH340G chip can help maintain its stability and reliability and avoid performance degradation or abnormal situations caused by long-term operation.

[0084] And this reset function does not require an additional power line, and it is very convenient to connect and use. It has high cross-platform compatibility and supports multiple operating systems, including Windows, Mac, and Linux, and can be developed and debugged on different platforms. At the same time, it also has high reliability. The serial port communication of the CH340G chip is widely used in embedded systems. It can stably transmit data and realize communication between devices. It supports online compilation function, which can save local resources and maintenance costs. It can also be updated and upgraded in real time. Users do not need to manually update the compilation tool chain and library files, and always use the latest version of the compiler and library. And it can also transmit temperature value data online, which is convenient for users to organize, classify and archive experimental data on the desktop platform of electronic equipment for subsequent reference and analysis. Users can conduct more complex and comprehensive data analysis on the desktop platform, including statistical analysis, chart generation and other functions, which is conducive to in-depth mining of data information and long-term tracking and analysis of experimental results.

[0085] In some embodiments, the temperature detection and early warning circuit 10 further includes a storage unit, and the main control unit 110 further includes a second clock signal generating pin, a third data transmitting pin, and a third data receiving pin. The storage unit includes a second clock signal pin, a fourth data receiving pin, and a fourth data transmitting pin, wherein the second clock signal generating pin is electrically connected to the second clock signal pin, the third data receiving pin is electrically connected to the fourth data transmitting pin, and the fourth data receiving pin is electrically connected to the third data transmitting pin.

[0086] The main control unit 110 is also used to send a second clock signal to the storage unit through the second clock signal generating pin, and transmit the temperature value to the storage unit through the third data sending pin. The storage unit is used to receive the temperature value according to the second clock signal and store the temperature value, and is also used to transmit the data stored in the storage unit to the main control unit through the fourth data sending pin according to the second clock signal.

[0087] In order to better introduce the storage unit, in the embodiments of the present application, the storage unit is taken as a W25Q32 chip as an example. Figure 6 FIG. 1 shows a schematic diagram of a storage unit provided in an embodiment of the present application. Figure 6 As shown, the second pin of the W25Q32 chip is the fourth data sending pin, the seventh pin is the second clock signal pin, and the eighth pin is the fourth data receiving pin. Figure 2 In the STM32F103RCT6 chip, the 50th pin is the second clock signal generating pin, the 49th pin is the third data sending pin, and the 55th pin is the third data receiving pin.

[0088] Since the W25Q32 chip samples and sends data according to the clock signal, in the embodiment of the present application, a second clock signal is sent to the W25Q32 chip through the main control unit 110, so that the W25Q32 chip can receive the temperature value sent by the main control unit 110 according to the second clock signal, and send the stored temperature value and other data to the main control unit 110.

[0089] In the embodiment of the present application, a storage unit is provided in the temperature detection and early warning circuit 10 so that the main control unit 110 stores the temperature value in the storage unit, which is convenient for subsequent users to view the temperature value. Furthermore, if the user wants to view the temperature value at a historical moment, the main control unit 110 can also obtain the temperature value at a historical moment stored in the storage unit, thereby providing convenience for the user.

[0090] In some embodiments, in order to reset the Bluetooth unit, the temperature detection and early warning circuit 10 further includes a second reset unit, wherein the first end of the second reset unit is used to access the power supply, the second end of the second reset unit is electrically connected to the second reset pin of the Bluetooth unit, and the second reset pin is also grounded through a resistor. The second reset unit is configured such that when the first end and the second end are conductive, the second reset pin is connected to the power supply through the second reset unit to reset the Bluetooth unit.

[0091] In order to better introduce the Bluetooth unit and the second reset unit, in the embodiment of the present application, the Bluetooth unit is an HC-05 Bluetooth module and the second reset unit is a switch. Figure 7 FIG. 1 is a schematic diagram showing a Bluetooth unit and a second reset unit provided in an embodiment of the present application. Figure 7 As shown, the first pin in the HC-05 Bluetooth module is the second serial port data sending pin 162 , and the second pin is the second serial port data receiving pin 161 . Figure 2 The 16th pin in the STM32F103RCT6 chip is the second data sending pin 117 , and the 17th pin is the second data receiving pin 118 .

[0092] The HC-05 Bluetooth module requires a 3.3V power supply, so its VCC pin needs to be connected to the 3.3V power pin of the STM32F103RCT6 chip. And the GND pin of the HC-05 Bluetooth module is connected to the ground line of the STM32F103RCT6 chip. In the code of the STM32F103RCT6 chip, relevant USART serial port communication parameters are configured, including baud rate, data bit, stop bit, etc. Through this USART serial port, the STM32F103RCT6 chip can communicate data with the HC-05 Bluetooth module. The HC-05 Bluetooth module is usually configured and controlled using the AT instruction set. AT instructions can be sent to the HC-05 Bluetooth module through the USART serial port, such as setting the Bluetooth name, baud rate, etc. In addition, the code of the STM32F103RCT6 chip can be configured as needed to process the data received from the HC-05 Bluetooth module or the data sent to the HC-05 Bluetooth module. Once the STM32F103RCT6 chip and the HC-05 Bluetooth module establish a communication connection, the STM32F103RCT6 chip can exchange data with the HC-05 Bluetooth module through USART, such as sending temperature values, receiving remote commands, etc.

[0093] It is worth noting that in order to improve the signal quality when the STM32F103RCT6 chip communicates with the HC-05l Bluetooth module, in the embodiment of the present application, preferably, the pin for grounding in the STM32F103RCT6 chip and the pin for grounding in the HC-05l Bluetooth module are connected to the same ground wire to ensure that the reference voltages of the two are consistent, thereby avoiding signal fluctuations caused by inconsistent reference voltages of the two, thereby improving the signal quality when the two communicate.

[0094] In addition, by setting up the HC-05 Bluetooth module, the electronic device and the temperature detection and early warning circuit 10 can realize the functions of wireless connection, real-time monitoring, remote control, data transmission and storage to the cloud. The HC-05 Bluetooth module supports a data transmission rate of up to 3Mbps and can provide stable and reliable data transmission. The HC-05 Bluetooth module usually has a transmission distance of 10 meters to 100 meters, which can meet the communication needs in different application scenarios. The HC-05 Bluetooth module supports a variety of Bluetooth pairing methods, including PIN code pairing, automatic pairing, etc., which is convenient for connection and communication with other Bluetooth devices.

[0095] Figure 7In the figure, the 34th pin in the HC-05 Bluetooth module is the second reset pin, which is electrically connected to one end of the first switch SW1, and the other end of the first switch SW1 is connected to a 3.3V power supply. The second reset pin is also grounded through a resistor with a resistance value of 1kΩ. If the first switch SW1 is disconnected, the second reset pin is grounded through a resistor, and the HC-05 Bluetooth module works normally; if the first switch SW1 is turned on, the second reset pin is connected to the power supply through the first switch SW1, and the HC-05 Bluetooth module is reset. If the HC-05 Bluetooth module needs to be reset, it can be achieved by triggering the reset function, that is, by triggering the two ends of the first switch SW1 to be turned on. The circuit is simple and easy to operate.

[0096] The HC-05 Bluetooth module may have communication anomalies or other abnormal situations when working. In order to restore the HC-05 Bluetooth module to a normal working state, the HC-05 Bluetooth module can be reset. In addition, resetting the HC-05 Bluetooth module regularly can maintain the stability and reliability of the HC-05 Bluetooth module, avoid the performance degradation or abnormal situation of the HC-05 Bluetooth module due to long-term operation, thereby improving the stability of the HC-05 Bluetooth module. In the embodiment of the present application, by setting a second reset unit, if the HC-05 Bluetooth module needs to be reset, it can be achieved by triggering the reset function.

[0097] Furthermore, in some embodiments, in order to facilitate debugging and confirm whether the HC-05 Bluetooth module is in working state, the signal output pin (i.e., pin 31) in the HC-05 Bluetooth module is connected to the positive electrode of the second light-emitting diode LED2 through a resistor with a resistance value of 1kΩ, and the negative electrode of the second light-emitting diode LED2 is grounded. When the HC-05 Bluetooth module is in working state, a high-level signal is output through the signal output pin to make the second light-emitting diode LED2 emit light, so that the user can directly determine whether the HC-05 Bluetooth module is in working state according to whether the second light-emitting diode LED2 emits light, which further improves convenience.

[0098] In order to provide a 3.3V working power supply to the main control unit 110 in the temperature detection and early warning circuit 10, in the embodiment of the present application, the temperature detection and early warning circuit 10 also includes a step-down unit, the step-down unit includes a voltage input pin and a voltage output pin, and the main control unit 110 also includes a power pin, and the power pin is electrically connected to the voltage output pin. The voltage input pin is used to be electrically connected to the USB interface to access a 5V power supply, and the step-down unit is used to convert the 5V power supply into a 3.3V power supply, and output the 3.3V power supply through the voltage output pin to provide a working power supply for the main control unit 110.

[0099] In order to better introduce the step-down unit, Figure 8FIG. 1 shows a schematic diagram of a voltage reduction unit provided in an embodiment of the present application. Figure 8 As shown, the INPUT pin in the buck unit is a voltage input pin for connecting to a 5V power supply. The OUTPUT pin in the buck unit is a voltage output pin for outputting a stepped-down 3.3V power supply and providing working power to the main control unit 110.

[0100] In order to facilitate the user to directly read the temperature value of the object to be measured, in an embodiment of the present application, the temperature detection and early warning circuit 10 also includes a display unit, and the main control unit 110 also includes a control pin and a plurality of fifth data sending pins. The display unit includes a controlled pin and a plurality of fifth data receiving pins, and the plurality of fifth data receiving pins are electrically connected to the plurality of fifth data sending pins in a one-to-one correspondence. The main control unit 110 is also used to send a first level signal to the display unit through the control pin, so that after the display unit is set to the first mode, the main control unit 110 is also used to send an initialization instruction to the display unit through the plurality of fifth data sending pins, so that the display unit is initialized according to the initialization instruction. The main control unit 110 is also used to send a second level signal to the display unit through the control pin, so that after the display unit is set to the second mode, the main control unit 110 is also used to transmit the temperature value to the display unit through the plurality of fifth data sending pins, so that the display unit displays the temperature value.

[0101] In the embodiment of the present application, in order to enable the display unit to effectively distinguish between the initialization instructions sent to it by the main control unit 110 and the data to be displayed, different level signals are sent to the display unit by the main control unit 110, so that the display unit is set to different modes. The data types sent in different modes (including initialization instruction type and data type to be displayed) are different, and each mode corresponds to each data type one by one. Therefore, the display unit can determine whether the data it receives is an initialization instruction or a temperature value to be displayed through the set mode, thereby improving the integration of the circuit.

[0102] In order to better introduce the display unit, in the embodiment of the present application, the display unit is taken as an LCD1602 chip as an example. Fig. 9 FIG. 1 shows a schematic diagram of a display unit provided in an embodiment of the present application. Fig. 9 As shown, the 4th pin in the LCD1602 chip is a controlled pin, and the 7th to 14th pins are 8 fifth data receiving pins. Figure 2 In the STM32F103RCT6 chip, the 61st pin is a control pin, and the 14th, 15th, 16th, 17th, 20th, 21st, 22nd and 23rd pins are eight fifth data transmission pins.

[0103] In order to make the LCD1602 chip work properly, it is usually necessary to initialize it before using it. Initialization includes setting the display mode of the LCD1602 chip, activating the display, and setting communication parameters. Initializing the LCD1602 chip specifically includes: setting the number of display lines, character display mode (such as setting it to 8-bit data bus or 4-bit data bus as needed), displaying the cursor, the connection method of the data line, and the connection method of the control line. By initializing the LCD1602 chip, the LCD1602 chip can correctly display characters and information, ensure that it is in a normal working state, and clear the residual display content of the LCD1602 chip to ensure that the display screen is blank, thereby avoiding confusion in the subsequent display of temperature value data.

[0104] When initializing the LCD1602 chip, you can set a loop instruction as needed to make the LCD1602 chip continuously update its displayed content to achieve a dynamic display effect. You can also send different temperature value data or control commands in a loop as needed to update the display content of the LCD1602 chip.

[0105] Among them, the multiple fifth data sending pins in the main control unit 110 and the multiple fifth data receiving pins in the display unit are multiplexed pins, that is, the main control unit 110 can send initialization instructions to the display unit through multiple fifth data sending pins, and can also send temperature values ​​to the display unit through multiple fifth data sending pins so that the display unit displays the temperature value. The 4th pin in the LCD1602 chip is connected to different level signals, which corresponds to different modes. If the 4th pin is connected to a low level signal, it means that the data received in the current mode is instruction data, and the instruction needs to be executed without display. If the 4th pin is connected to a high level signal, it means that the data received in the current mode is data to be displayed, so the received data needs to be displayed.

[0106] In the embodiment of the present application, if the LCD1602 chip needs to be initialized, the main control unit 110 sends a low-level signal to the LCD1602 chip through the control pin, so that after the LCD1602 chip is set to the first mode, the main control unit 110 can send an initialization instruction to the LCD1602 chip through multiple fifth data sending pins, so that the LCD1602 chip receives the initialization instruction and initializes. If the LCD1602 chip needs to display a temperature value, the main control unit 110 sends a high-level signal to the LCD1602 chip through the control pin, so that after the LCD1602 chip is set to the second mode, the main control unit 110 can send a temperature value to the LCD1602 chip through multiple fifth data sending pins, so that the LCD1602 chip displays the received temperature value. By setting multiple fifth data sending pins and multiple fifth data receiving pins as multiplexed pins, compared with separately setting pins for sending initialization instructions and pins for sending data to be displayed, the circuit structure is simpler and the circuit integration is higher.

[0107] In order to control the main control unit 110 to reset, in the embodiment of the present application, the temperature detection and early warning circuit 10 also includes a third reset unit, and the main control unit also includes a third reset pin. The third reset pin is used to access the power supply, and the third reset pin is also electrically connected to one end of the third reset unit, and the other end of the third reset unit is grounded. When the third reset unit is set to be conductive at both ends, the third reset pin is grounded through the third reset unit to reset the main control unit 110.

[0108] In order to better introduce the third resetting unit, an example in which the third resetting unit is a switch is taken as an example for description. Fig.10 FIG. 2 shows a schematic diagram of a third reset unit provided in an embodiment of the present application. Fig.10 As shown, the third reset unit is a second switch SW2, one end of the second switch SW2 is connected to a 3.3V power supply through a resistor with a resistance of 1MΩ, and Figure 2 The second switch SW2 is electrically connected to the 7th pin of the STM32F103RCT6 chip in the main control unit 110, and the other end of the second switch SW2 is grounded. When the second switch SW2 is set to be turned on at both ends, the 7th pin of the STM32F103RCT6 chip is grounded through the second switch SW2, so that the main control unit 110 is reset.

[0109] Since the temperature detection and early warning circuit 10 includes multiple units, in order to better understand the relationship between the various units in the temperature detection and early warning circuit 10, the working process of the temperature detection and early warning circuit 10 will be generally introduced here. Figures 1 to 9, the main control unit 110 (i.e., the STM32F103RCT6 chip) communicates with the temperature detection unit 120 (i.e., the MLX90614 chip) through the I2C serial communication interface, and sends instructions to trigger the temperature measurement action. The temperature detection unit 120 transmits the detected temperature value data back to the main control unit 110, and the main control unit 110 receives and parses the data, and can specifically perform unit conversion and calibration processing. After the main control unit 110 obtains the temperature value data, it can transmit the data to an external electronic device through the UART (serial communication) interface of the Bluetooth unit 160 (i.e., the HC-05 Bluetooth module) or the USB communication unit 140 (i.e., the CH340G chip). In this process, the main control unit 110 needs to manage the data transmission process, including data packaging, protocol processing, and transmission control. After receiving the temperature value data sent by the temperature detection unit 120, the main control unit 110 determines whether it exceeds the temperature threshold. If it exceeds the temperature threshold, it outputs a high-level signal to the temperature warning unit 130 through the GPIO pin, so that the triode in the temperature warning unit 130 is turned on, so that the buzzer BZ1 emits an alarm sound and the first light-emitting diode LED1 emits light. The main control unit 110 is connected to the display unit (i.e., LCD1602 chip) through the GPIO pin, and controls the high and low levels of each pin through a specific display driver to control the content displayed on the display screen of the display unit. The main control unit 110 writes the collected temperature value data into the storage unit (i.e., W25Q32 chip) through the SPI interface to store historical data for a long time. At the same time, the main control unit 110 needs to manage the read and write operations of the storage unit to ensure the integrity and reliability of the data. The main control unit 110 acts as the main controller of the entire circuit and is responsible for coordinating the work between each unit. The main control unit 110 obtains data from the temperature detection unit 120, displays it on the display screen of the display unit, triggers the temperature warning unit 130 after processing the data as needed, and stores the data in the storage unit. At the same time, the main control unit 110 is also responsible for managing the Bluetooth unit 160 and the USB communication unit 140 to ensure that the temperature value data can be transmitted to the external electronic device in a timely manner.

[0110] Fig.11 FIG. 1 is a schematic diagram of a temperature detection and warning device provided in an embodiment of the present application. Fig.11 As shown, the temperature detection and warning device 20 includes a housing 21 and a temperature detection and warning circuit 10 , wherein the temperature detection and warning circuit 10 is disposed in the housing 21 .

[0111] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0112] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed application requires more features than those explicitly recited in each claim.

[0113] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0114] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

Claims

1. A temperature detection and early warning circuit, characterized in that: The circuit includes: a main control unit, a temperature detection unit, a temperature warning unit, a USB communication unit, a first reset unit and a Bluetooth unit; wherein, The main control unit includes a first clock signal generating pin, a first temperature value transmitting pin, a first control pin, a first data sending pin, a first data receiving pin, a first reset pin, a second data sending pin and a second data receiving pin; The temperature detection unit includes a first clock signal pin and a second temperature value transmission pin, the first clock signal pin is electrically connected to the first clock signal generation pin, the second temperature value transmission pin is electrically connected to the first temperature value transmission pin, and the temperature detection unit is used to detect the surface temperature of the object to be measured and obtain a temperature value; The main control unit is used to send a first clock signal to the temperature detection unit through the first clock signal generating pin, so that the temperature detection unit transmits the temperature value to the main control unit through the second temperature value transmitting pin according to the first clock signal; The temperature warning unit includes a warning subunit and a switch unit, wherein the positive electrode of the warning subunit is used to connect to the power supply, the negative electrode is electrically connected to the first electrode of the switch unit, the control electrode of the switch unit is electrically connected to the first control pin, and the second electrode of the switch unit is grounded; The main control unit is also used to determine whether the temperature value is greater than a temperature threshold. If the temperature value is greater than the temperature threshold, a level signal is output through the first control pin, and the switch unit is turned on, so that the early warning subunit outputs an alarm signal; The USB communication unit includes a USB data transmission pin, a first serial port data transmission pin, a first serial port data reception pin and a first reset control pin, wherein the USB data transmission pin is used to communicate with the USB interface to receive USB data sent by the electronic device through the USB interface, the first serial port data reception pin is electrically connected to the first data transmission pin, and the first serial port data transmission pin is electrically connected to the first data reception pin; The USB communication unit is used to convert the USB data into first serial port data, and transmit the first serial port data to the main control unit through the first serial port data sending pin; The main control unit is also used to send the temperature value to the USB communication unit through the first data sending pin; The USB communication unit is also used to receive the temperature value, convert the temperature value into USB data and transmit it to the electronic device via the USB data transmission pin; The first reset control pin is electrically connected to the control electrode of the first reset unit, the first electrode of the first reset unit is electrically connected to the first reset pin, and the second electrode of the first reset unit is grounded; The USB communication unit is further used to receive a first reset signal sent by the electronic device through the USB data transmission pin, and output a level signal through the first reset control pin according to the first reset signal, so that the first electrode and the second electrode of the first reset unit are turned on, the first reset pin is grounded, and the main control unit is reset; The Bluetooth unit comprises a second serial port data receiving pin and a second serial port data sending pin, the second serial port data receiving pin is electrically connected to the second data sending pin, and the second serial port data sending pin is electrically connected to the second data receiving pin; The Bluetooth unit is used to connect to the electronic device via Bluetooth communication, receive Bluetooth data sent by the electronic device, convert the Bluetooth data into second serial port data, and send the second serial port data to the main control unit via the second serial port data sending pin; The main control unit is also used to send the temperature value to the Bluetooth unit through the Bluetooth data sending pin; The Bluetooth unit is also used to receive the temperature value, convert the temperature value into Bluetooth data and transmit it to the electronic device.

2. The circuit according to claim 1, characterized in that The early warning subunit includes a buzzer, the positive pole of the buzzer is used to connect to the power supply, the negative pole is electrically connected to the first pole of the switch unit, and the buzzer is used to output an alarm sound when the switch unit is turned on.

3. The circuit according to claim 2, characterized in that The early warning subunit also includes a first resistor and a first light-emitting diode, one end of the first resistor is used to connect to a power supply, and the other end is electrically connected to the positive electrode of the first light-emitting diode, the negative electrode of the first light-emitting diode is electrically connected to the first electrode of the switch unit, and the first light-emitting diode is used to emit light when the switch unit is turned on.

4. The circuit according to claim 1, characterized in that The circuit further includes a storage unit, and the main control unit further includes a second clock signal generating pin, a third data sending pin and a third data receiving pin; The storage unit includes a second clock signal pin, a fourth data receiving pin and a fourth data sending pin, wherein the second clock signal generating pin is electrically connected to the second clock signal pin, the third data receiving pin is electrically connected to the fourth data sending pin, and the fourth data receiving pin is electrically connected to the third data sending pin; The main control unit is further used to send the second clock signal to the storage unit through the second clock signal generating pin, and transmit the temperature value to the storage unit through the third data sending pin; The storage unit is used to receive the temperature value according to the second clock signal and store the temperature value, and is also used to transmit the data stored in the storage unit to the main control unit through the fourth data sending pin according to the second clock signal.

5. The circuit according to claim 1, characterized in that The circuit further includes a second light emitting diode, the Bluetooth unit further includes a signal output pin, the anode of the second light emitting diode is electrically connected to the signal output pin via a second resistor, and the cathode of the second light emitting diode is grounded; The Bluetooth unit is used to output a high level signal through the signal output pin when the Bluetooth unit is in a working state, so as to make the second light emitting diode emit light.

6. The circuit according to claim 1, characterized in that The circuit further comprises a second reset unit, wherein a first end of the second reset unit is used to connect to a power source, a second end of the second reset unit is electrically connected to a second reset pin of the Bluetooth unit, and the second reset pin is also grounded via a third resistor; The second reset unit is configured such that when the first end is conductively connected to the second end, the second reset pin is connected to a power source through the second reset unit, so as to reset the Bluetooth unit.

7. The circuit according to claim 1, characterized in that The circuit further includes a step-down unit, the step-down unit includes a voltage input pin and a voltage output pin, the main control unit further includes a power pin, and the power pin is electrically connected to the voltage output pin; The voltage input pin is used to be electrically connected to the USB interface to access a 5V power supply, and the step-down unit is used to convert the 5V power supply into a 3.3V power supply and output the 3.3V power supply through the voltage output pin to provide working power for the main control unit.

8. The circuit according to claim 1, characterized in that The circuit further includes a display unit, and the main control unit further includes a control pin and a plurality of fifth data sending pins; The display unit comprises a controlled pin and a plurality of fifth data receiving pins, wherein the plurality of fifth data receiving pins are electrically connected to the plurality of fifth data sending pins in a one-to-one correspondence; The main control unit is further used to send a first level signal to the display unit through the control pin, so that after the display unit is set to the first mode, the main control unit is further used to send an initialization instruction to the display unit through the plurality of fifth data sending pins, so that the display unit is initialized according to the initialization instruction; The main control unit is also used to send a second level signal to the display unit through the control pin so that after the display unit is set to the second mode, the main control unit is also used to transmit the temperature value to the display unit through the multiple fifth data sending pins so that the display unit displays the temperature value.

9. The circuit according to claim 1, characterized in that The circuit further includes a third reset unit, and the main control unit further includes a third reset pin; The third reset pin is used to connect to the power supply, the third reset pin is also electrically connected to one end of the third reset unit, and the other end of the third reset unit is grounded; When the third reset unit is configured to have two ends conducting, the third reset pin is grounded through the third reset unit, so that the main control unit is reset.

10. A temperature detection and early warning device, characterized in that: The device comprises a housing, and a temperature detection and early warning circuit as claimed in any one of claims 1 to 9, wherein the temperature detection and early warning circuit is arranged in the housing.