Bus type temperature and humidity detection device and method
By designing a bus-type temperature and humidity detection device, using a single-chip microcomputer and a high-precision temperature and humidity detection chip, combined with I2C and CAN bus, the problems of high temperature and humidity detection costs and large equipment in the existing technology have been solved, and high precision, easy installation and remote control have been achieved. The transmission detection effect is suitable for industrial field environments.
Patent Information
- Application Number
- CN202011153974.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-10-26
AI Technical Summary
Existing industrial on-site environmental temperature and humidity detection methods are costly, the equipment is large, and there are application limitations when deployed at multiple points, especially due to factors such as size, installation method, and long-distance transmission.
Design a bus-type temperature and humidity detection device, which uses a single-chip microcomputer and a high-precision temperature and humidity detection chip to realize data transmission through the I2C protocol and CAN bus. The device includes a casing, a circuit board assembly, a main control unit, a data remote transmission unit, and a storage unit. And temperature and humidity acquisition unit, supports external wide voltage range power supply, has the characteristics of small size, easy installation and remote transmission.
It achieves cost-effective temperature and humidity detection, ensures detection accuracy, has networking and remote transmission capabilities, and is suitable for industrial applications.
Smart Images

Figure CN112146708B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of industrial detection, and in particular relates to a bus type temperature and humidity detection device and method. Background Art
[0002] At present, the methods used for industrial field environment temperature and humidity detection are generally to use a high-precision dew point meter, or a sensor probe with an acquisition system. Both methods are costly and the detection equipment is large in size. Especially when deployed at multiple points, there are application limitations due to factors such as size, installation method, cost, and long-distance transmission. Summary of the invention
[0003] The present invention is proposed to overcome the shortcomings of the existing industrial field environment temperature and humidity detection methods, and its purpose is to provide a bus type temperature and humidity detection device and method.
[0004] The present invention is achieved through the following technical solutions:
[0005] A bus-type temperature and humidity detection device comprises a shell and a circuit board assembly arranged in the shell, wherein the circuit board assembly comprises a core unit and a power supply unit for supplying power to the core unit; the core unit comprises a main control unit, and a data transmission unit, a storage unit and a temperature and humidity acquisition unit respectively connected to the main control unit.
[0006] In the above technical solution, at least one fixing member is arranged on the shell; and a mounting fixing hole is arranged on the fixing member.
[0007] In the above technical solution, the storage unit and the temperature and humidity acquisition unit are connected to the main control unit through I 2 C protocol communication.
[0008] In the above technical solution, the main control unit includes a single-chip microcomputer chip, a resistor R1 and an indicator light LED1 which are connected to each other.
[0009] In the above technical solution, the data remote transmission unit includes a CAN transceiver and a communication interface which are connected to each other, and the CAN transceiver is connected to the single-chip microcomputer chip; the communication interface is arranged on the housing.
[0010] In the above technical solution, the storage unit includes a storage chip, which is connected to the single-chip microcomputer chip through a pull-up circuit.
[0011] In the above technical solution, the temperature and humidity acquisition unit includes a sensor chip, which is connected to the single-chip microcomputer chip through a pull-up circuit.
[0012] In the above technical solution, the pull-up circuit is composed of pins 1 and 44 of the single-chip microcomputer chip 10 connected to each other through resistors R2, resistor R3 and 3.3V respectively.
[0013] In the above technical solution, the power supply unit includes a step-down chip and a power supply interface arranged on the shell, the power supply interface is grounded through capacitors C1 and C2, the power supply interface is connected to pin 5 of the step-down chip, and the power supply interface is connected to pin 4 of the step-down chip through resistor R5; resistor R4 and capacitor C3 are connected in series between pins 1 and 6 of the step-down chip; inductor L1 and resistor R6 are connected in series between pins 6 and 3 of the step-down chip; the output voltage between the inductor L1 and the resistor R6 is 3.3V.
[0014] A detection method for a bus-type temperature and humidity detection device comprises the following steps:
[0015] (i) Start
[0016] The device enters the startup state through the external power supply, and the power supply unit completes the power supply of the core unit of the device;
[0017] (ii) Read address and calibration information
[0018] Set GPIO direction and value; configure I 2 C function, CAN communication function; define various variables, functions, read storage addresses, read calibration information;
[0019] (iii) Read temperature and humidity values
[0020] Read the temperature and humidity data within a fixed time and load them into an array;
[0021] (iv) Filtering and numerical conversion
[0022] By removing outliers and filtering the mean of the data collected in the array, the data is converted into numerical values in combination with the stored calibration curve, and the converted values are loaded into the upload array and wait for transmission;
[0023] (v) Query and answer instructions
[0024] After receiving the command sent by the upper level, the status bit is judged. If it is a command to read the current data, it goes to step (vi); if the command is a calibration and address change instruction, it goes to step (vii);
[0025] (vi) Send temperature and humidity data
[0026] Send the data in the array to be uploaded, and then go back to step (iii) after completion;
[0027] (vii) Writing to a storage unit
[0028] Write the received calibration information and address data into the corresponding registers, and then return to step (iii) after completion.
[0029] The beneficial effects of the present invention are:
[0030] The present invention is based on the design concept of embedded single-chip microcomputer and high-precision temperature and humidity detection chip, and provides a temperature and humidity detection device and method for industrial field environment. The detection device of the present invention has high cost performance, small size, and is easy to install. The high-precision temperature and humidity sensor chip ensures the detection accuracy. At the same time, the transmission characteristics of the CAN bus enable it to have the advantages of networking and remote transmission. The device is powered by an external wide voltage range and is feasible for industrial application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of the appearance structure of the bus type temperature and humidity detection device of the present invention;
[0032] Figure 2 It is a structural schematic diagram of a circuit board assembly in a bus-type temperature and humidity detection device of the present invention;
[0033] Figure 3 It is a circuit diagram of the core unit in the bus-type temperature and humidity detection device of the present invention;
[0034] Figure 4 It is a circuit diagram of a power supply unit in a bus-type temperature and humidity detection device of the present invention;
[0035] Figure 5 It is a flow chart of the bus type temperature and humidity detection method of the present invention.
[0036] in:
[0037] 1 Housing 2 Fixing parts
[0038] 3 Communication interface 4 Power supply interface
[0039] 5 Data transmission unit 6 Storage unit
[0040] 7 Main control unit 8 Temperature and humidity collection unit
[0041] 9 Power supply unit 10 MCU chip
[0042] 11 sensor chip 12 storage chip
[0043] 13 CAN transceiver 14 buck chip.
[0044] For ordinary technicians in this field, other relevant drawings can be obtained based on the above drawings without any creative work. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the bus-type temperature and humidity detection device and method of the present invention will be further explained below in conjunction with the accompanying drawings and through specific implementation methods.
[0046] like Figure 1~2 As shown, a bus-type temperature and humidity detection device includes a housing 1 and a circuit board assembly arranged in the housing 1, wherein the circuit board assembly includes a core unit and a power supply unit 9 for powering the core unit; the core unit includes a main control unit 7, and a data transmission unit 5, a storage unit 6 and a temperature and humidity acquisition unit 8 respectively connected to the main control unit 7; and the storage unit 6 and the temperature and humidity acquisition unit 8 are connected to the main control unit 7 through I 2 C protocol communication.
[0047] The bus-type temperature and humidity detection device is powered externally through the power supply interface 4, and the power supply unit 9 converts the power supply type required by the remaining units; the storage unit 6 is responsible for storing the relevant key parameters required by the device; the temperature and humidity acquisition unit 8 is responsible for transmitting the ambient temperature and humidity data through I 2 C protocol is transmitted to the main control unit; the main control unit 7 calculates the actual temperature and humidity values through the temperature and humidity calibration parameters in the storage unit and the data transmitted by the temperature and humidity acquisition unit; the data remote transmission unit 5 is responsible for receiving the calibration instructions and temperature and humidity data transmission. The bus type temperature and humidity detection device adopts DC24V external power supply.
[0048] The size of the housing 1 is not greater than 60 mm*40 mm*20 mm.
[0049] like Figure 3 As shown, the main control unit 7 is used to indicate the overall working status of the detection device and is responsible for functions such as calculation of temperature and humidity data, communication protocol analysis, and calibration.
[0050] The main control unit 7 includes a single-chip microcomputer chip 10 of model dsPIC30F4011, a resistor R1 and an indicator light LED1 which are connected to each other; the specific connection relationship is that the pin 19 of the single-chip microcomputer chip 10 is connected to the LED1 through the resistor R1.
[0051] like Figure 3 As shown, the data remote transmission unit 5 is responsible for receiving address modification, temperature and humidity calibration, and uploading current temperature and humidity information in a CAN bus manner.
[0052] The data remote transmission unit 5 includes a CAN transceiver 13 of model PCA82C250 and a communication interface 3 connected thereto, wherein the communication interface 3 is arranged on the housing 1; the specific connection relationship is that the 1st and 4th pins of the CAN transceiver 13 are respectively connected to the 4th and 5th pins of the single-chip microcomputer chip 10; the 6th and 7th pins of the CAN transceiver 13 are respectively connected to the CANL and CANH of the communication interface.
[0053] like Figure 3 As shown, the storage unit 6 is responsible for storing the calibration curve value of the temperature and humidity sensor and the communication address of the detection device.
[0054] The storage unit 6 includes a storage chip 12 of model AT24C01. The storage chip 12 and the single-chip microcomputer chip 10 adopt I 2 C protocol communication, the specific connection relationship is that the 1st and 44th pins of the single-chip microcomputer chip 10 are connected to 3.3V through resistors R2, R3, respectively, to form a pull-up circuit, and the 1st and 44th pins of the single-chip microcomputer chip 10 are connected to the 5th and 6th pins of the storage chip 12, respectively.
[0055] like Figure 3 As shown, the temperature and humidity acquisition unit 8 is responsible for collecting environmental temperature and humidity information.
[0056] The temperature and humidity acquisition unit 8 includes a sensor chip 11 of model SHT25. The sensor chip 11 and the single-chip microcomputer chip 10 adopt I 2 C protocol communication, the connection relationship is that the 1 and 44 pins of the single-chip microcomputer chip 10 are connected to 3.3V through resistors R2, R3, respectively, to form a pull-up circuit, and the 1 and 44 pins of the single-chip microcomputer chip 10 are connected to the 1 and 6 pins of the sensor chip 11, respectively.
[0057] like Figure 4 As shown, the power supply unit 9 is responsible for converting the external power supply obtained by the power supply interface 4 into the power supply type required by each unit inside the detection device. The device adopts DC24V external power supply.
[0058] The power supply unit 9 includes a step-down chip 16 of model SC4810B and a power supply interface 4 provided on the housing 1, which are connected to each other; and also includes an adjustment element composed of multiple capacitors, resistors and inductors. The adjustment element specifically includes capacitor C1, capacitor C2, capacitor C3, capacitor C4, resistor R4, resistor R5, resistor R6, resistor R7 and inductor L1. The specific connection relationship is: the 24V of the power supply interface is grounded through capacitors C1 and C2, the 24V of the power supply interface is connected to the 5 pin of the step-down chip 16, and the 24V of the power supply interface is connected to the 4 pin of the step-down chip 16 through resistor R5. The 2 pin of the step-down chip 16 is grounded. Resistor R4 and capacitor C3 are connected in series between pins 1 and 6 of the step-down chip 16. Inductor L1 and resistor R6 are connected in series between pins 6 and 3 of the step-down chip 16. Pin 3 of the step-down chip 16 is grounded through resistor R7. Inductor L1, resistor R6, and resistor R7 are connected in series between pin 6 of the step-down chip 16 and the ground. The output voltage between the inductor L1 and the resistor R6 is 3.3V, and 3.3V is grounded through the capacitor C4.
[0059] The working mode of the device of the present invention is:
[0060] The external ambient temperature and humidity are converted into numerical values by the high-precision sensor chip 11 and then transmitted to the 2 C's communication mode is sent to the single-chip microcomputer chip 10, and filtering and numerical conversion are performed in combination with the set filtering mode and temperature and humidity calibration curve, wherein the filtering mode and temperature and humidity calibration curve are preset in the storage chip 12 and can be modified by the upper command. After the single-chip microcomputer chip 10 completes the calculation, the temperature and humidity data are sent to the upper control system through the CAN communication bus. By setting the address of the detection device, multiple devices can be networked.
[0061] Example 2
[0062] Based on Example 1, in order to facilitate the fixed installation of the device, at least one fixing member 2 is provided on the housing 1. In this embodiment, a pair of fixing members 2 are symmetrically provided, and mounting holes for assembling the connecting members are provided on the fixing members 2.
[0063] Example 3
[0064] Based on Example 1, the bus type temperature and humidity detection method is as follows Figure 5 As shown, the specific steps include:
[0065] (i) Start S1
[0066] The device enters the startup state through the external power supply, and the power supply unit 9 completes the power supply of the core unit of the device;
[0067] (ii) Read address and calibration information (MCU parameter setting stage) S2
[0068] Set GPIO direction and value; configure I 2 C function, CAN communication function; define various variables, functions, read storage addresses, read calibration information;
[0069] (iii) Read the temperature and humidity values S3
[0070] Read the temperature and humidity data within 1s (the time can be modified by the upper software) and load it into the array;
[0071] (iv) Filtering and numerical conversion S4
[0072] By removing outliers and filtering the mean of the data collected in the array, the data is converted into numerical values in combination with the stored calibration curve, and the converted values are loaded into the upload array and wait for transmission;
[0073] (v) Query and answer instructions (data transmission) S5
[0074] After receiving the command sent by the upper level, the status bit is judged. If it is a command to read the current data, it goes to step (vi); if the command is a calibration and address change instruction, it goes to step (vii);
[0075] (vi) Send temperature and humidity data S6
[0076] Send the data in the array to be uploaded, and then go back to step (iii) after completion;
[0077] (vii) Writing to storage unit S7
[0078] Write the received calibration information and address data into the corresponding registers, and then return to step (iii) after completion.
[0079] The detection device of the present invention has high cost performance, small size, and is easy to install. The high-precision temperature and humidity sensor chip ensures the detection accuracy. At the same time, the transmission characteristics of the CAN bus enable it to have the advantages of networking and remote transmission. The device is powered by an external wide voltage range and is feasible for industrial application.
[0080] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0081] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and the like are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", and the like may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0082] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0083] The applicant declares that the above is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention are within the protection scope and disclosure scope of the present invention.
Claims
1. A bus-type temperature and humidity detection device, comprising a housing (1) and a circuit board assembly arranged in the housing (1), characterized in that: The circuit board assembly comprises a core unit and a power supply unit (9) for supplying power to the core unit; the core unit comprises a main control unit (7), and a data transmission unit (5), a storage unit (6) and a temperature and humidity collection unit (8) respectively connected to the main control unit (7); The main control unit (7) comprises a single-chip microcomputer chip (10), a resistor R1 and an indicator light LED1 which are connected to each other; The data remote transmission unit (5) comprises a CAN transceiver (13) and a communication interface (3) which are connected to each other, and the CAN transceiver (13) is connected to the single-chip microcomputer chip (10); the communication interface (3) is arranged on the housing (1); The storage unit (6) comprises a storage chip (12), which is connected to the single-chip microcomputer chip (10) via a pull-up circuit; The temperature and humidity acquisition unit (8) comprises a sensor chip (11), which is connected to the single-chip computer chip (10) via a pull-up circuit; The power supply unit (9) comprises a step-down chip (16) and a power supply interface (4) arranged on the housing (1); the power supply interface (4) is grounded via capacitors C1 and C2; the power supply interface (4) is connected to pin 5 of the step-down chip (16); the power supply interface (4) is connected to pin 4 of the step-down chip (16) via resistor R5; a resistor R4 and a capacitor C3 are connected in series between pins 1 and 6 of the step-down chip (16); an inductor L1 and a resistor R6 are connected in series between pins 6 and 3 of the step-down chip (16); and an output voltage of 3.3V is connected between the inductor L1 and the resistor R6; The detection method of the bus type temperature and humidity detection device comprises the following steps: (i) Start: The device enters the startup state through the external power supply, and the power supply unit completes the power supply of the core unit of the device; (ii) Read address and calibration information: Set GPIO direction and value; configure I 2 C function, CAN communication function; define various variables, functions, read storage addresses, read calibration information; (iii) Read the temperature and humidity values: Read the temperature and humidity data within a fixed time and load them into an array; (iv) Filtering and numerical conversion: By removing outliers and filtering the mean of the data collected in the array, the data is converted into numerical values in combination with the stored calibration curve, and the converted values are loaded into the upload array and wait for transmission; (v) Query and answer instructions: After receiving the command sent by the upper level, the status bit is judged. If it is a command to read the current data, it goes to step (vi); if the command is a calibration and address change instruction, it goes to step (vii); (vi) Send temperature and humidity data: Send the data in the array to be uploaded, and then go back to step (iii) after completion; (vii) Writing to a storage unit: Write the received calibration information and address data into the corresponding registers, and then return to step (iii) after completion.
2. The bus type temperature and humidity detection device according to claim 1, characterized in that: At least one fixing member (2) is provided on the housing (1); and a mounting fixing hole is provided on the fixing member (2).
3. The bus type temperature and humidity detection device according to claim 1, characterized in that: The storage unit (6) and the temperature and humidity collection unit (8) are connected to the main control unit (7) via I 2 C protocol communication.
4. The bus type temperature and humidity detection device according to claim 1, characterized in that: The pull-up circuit is composed of pin 1 of the single-chip microcomputer chip (10) connected to 3.3V via a resistor R2, and pin 44 of the single-chip microcomputer chip (10) connected to 3.3V via a resistor R3.
Citation Information
Patent Citations
High accuracy temperature and humidity monitoring system based on controller area network (CAN) bus
CN202433756U
Bus type temperature and humidity detection device
CN213239032U
