Internet of Things data acquisition device based on fault diagnosis
By integrating the BP neural network algorithm and NPN transistor in the IoT data acquisition device, fault diagnosis and automatic restart are realized, which solves the problem of lack of fault diagnosis function in the existing technology and improves the reliability and maintenance efficiency of the equipment.
Patent Information
- Application Number
- CN202420345107.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2034-02-23
AI Technical Summary
Existing data acquisition devices lack fault diagnosis and self-restart functions, which requires manual maintenance when equipment fails, reducing maintenance efficiency and device reliability.
An Internet of Things data collection device based on fault diagnosis is designed, using a microcontroller, sensor module, wireless communication module, SDI-12 to serial port module, cloud platform and NPN transistor, combined with BP neural network algorithm to achieve real-time fault monitoring and automatic restart. Function.
It achieves real-time accurate monitoring of environmental parameters and rapid fault location, shortens fault handling time, improves equipment reliability and safety performance, and enhances maintenance efficiency and robustness.
Smart Images

Figure CN221926966U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of agriculture, and in particular to an Internet of Things data acquisition device based on fault diagnosis. Background Art
[0002] The IoT data acquisition device will automatically collect non-electrical or electrical signals from analog and digital units under test such as sensors and other equipment under test, and send them to the host computer for analysis and processing, analyze the overall trend of environmental data, and improve the ability to monitor the correlation of weather conditions, temperature conditions, disaster intensity, soil moisture, etc.;
[0003] Neural network is composed of a large number of interconnected processing units. It is based on the research results of modern neurobiology and cognitive science in the field of information processing. It has the characteristics of large-scale parallel simulation processing, continuous time dynamics and global network effect, and has strong adaptive learning and nonlinear fitting capabilities, so it can replace complex and time-consuming traditional algorithms, making the signal processing process closer to human thinking activities;
[0004] As technology continues to develop, the complexity of IoT devices continues to increase, and the possibility of equipment failure increases accordingly. At the same time, the environment in which the agricultural IoT is located is complex, and equipment is more prone to failure. Sensors are the core of agricultural IoT data collection devices. Once a failure occurs, the sensor will not be able to obtain the correct environmental detection value, reducing the quality of IoT services. For example, if the temperature and humidity sensor drifts, the greenhouse ventilation control system will not work properly;
[0005] Most of the existing data acquisition devices currently do not have fault diagnosis or self-restart functions. Once a fault occurs, the device can only be checked and the faulty part repaired through traditional manual maintenance methods, which consumes manpower and material resources, is not conducive to improving the efficiency of device maintenance, and is not conducive to enhancing the reliability and safety of the device. Utility Model Content
[0006] 1. Technical issues to be resolved
[0007] In view of the deficiencies in the prior art, the utility model provides an Internet of Things data acquisition device based on fault diagnosis, which solves the problem that most existing data acquisition devices do not have fault diagnosis or self-restart functions. Once a fault occurs, the technical problem of the device can only be checked through traditional manual maintenance methods.
[0008] (II) Technical solution
[0009] In order to achieve the above objectives, the present invention is implemented through the following technical solutions:
[0010] The Internet of Things data acquisition device based on fault diagnosis includes: a single-chip microcomputer, a sensor module, a wireless communication module, an SDI-12 serial port module, a cloud platform, a mobile power supply, and an NPN transistor; wherein the single-chip microcomputer is connected with the sensor module, the SDI-12 serial port module, the wireless communication module, and the NPN transistor; the sensor module includes a temperature and humidity sensor, a PH sensor, a wind direction sensor, a wind speed sensor, a photosynthetically active radiation sensor, and a TEROS12 soil moisture, temperature, and conductivity sensor; the SHT30 temperature and humidity sensor is designed based on the capacitance measurement principle, has the characteristics of high precision, low power consumption, and fast response, and is a digital temperature and humidity sensor.
[0011] Preferably, the single chip microcomputer selects Cortex-M3 as the processor core to process the environmental data acquired by the sensor module and transmit it to the wireless communication module. The pH sensor adopts a composite electrode composed of a glass indicator electrode and a reference electrode.
[0012] Preferably: the wind speed sensor module is a digital sensor, and the sensing part is composed of three conical hollow wind cups. When the wind cups rotate, they drive the coaxial multi-toothed cutter discs to rotate, and obtain a pulse signal proportional to the wind cup rotation speed through the circuit. According to the pulse signal counted by the counter, the actual wind speed value is obtained by conversion.
[0013] Preferably: the TEROS12 soil moisture, temperature and conductivity sensor transmits the sensed data to the single chip microcomputer via an SDI-12 to serial port module.
[0014] Preferably: the wireless communication module is a DTU communication module, which is connected to the terminal device through an interface, and the acquired data is wirelessly transmitted via 4G. The mobile power supply provides a 12V voltage, one end of which is connected to the collector of the NPN transistor, the microcontroller is connected to the base, and the sensor module is connected to the emitter.
[0015] (III) Beneficial effects
[0016] 1. In response to subtle changes in environmental parameters, this utility model combines sensor technology with single-chip microcomputer technology to achieve real-time and accurate monitoring of the environment. It uses a variety of sensors to achieve efficient collection of multiple environmental parameters such as pH value, temperature and humidity, photosynthetically active radiation value, soil conductivity, etc.; it uses a wireless communication module to efficiently and stably transmit data through the 4G network, so that managers can quickly understand environmental information without leaving home; it adopts a modular design concept, and can expand or cut the types and quantities of sensors, which has broad application prospects and practical value.
[0017] 2. In view of the phenomenon that IoT devices are prone to failure in complex environments, a fault diagnosis algorithm based on BP neural network is added to monitor the operating status of each sensor in real time and online, and NPN transistors are added to restart and isolate faulty components. The upper computer obtains abnormal data and quickly locates the faulty part through the BP neural network, shortens the fault handling time, and improves the reliability of the equipment; the lower computer uses the watchdog circuit to avoid device failure, so that the equipment re-enters the stable operation period and improves safety performance; the lower computer uses the NPN transistor to restart and isolate the faulty components, improve the maintenance efficiency of the device, and enhance the robustness and safety of this device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above description is only an overview of the technical solution of the utility model. In order to more clearly understand the technical means of the utility model and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the utility model in conjunction with the accompanying drawings.
[0019] Figure 1 It is a module block diagram of the utility model;
[0020] Figure 2 It is a system flow chart of the utility model;
[0021] Figure 3 This is a schematic diagram of fault diagnosis of the utility model.
[0022] Legend: 1. Single chip microcomputer; 2. Temperature and humidity sensor; 3. PH sensor; 4. Wind direction sensor; 5. Wind speed sensor; 6. Photosynthetically active radiation sensor; 7. SDI-12 to serial port module; 8. Conductivity sensor; 9. Wireless communication module; 10. Cloud platform; 11. Mobile power supply; 12. NPN transistor. DETAILED DESCRIPTION
[0023] The embodiments of the present application provide an IoT data acquisition device based on fault diagnosis, thereby effectively solving the problem that most existing data acquisition devices do not have fault diagnosis or self-restart functions. Once a fault occurs, the technical problem of the device can only be checked through traditional manual maintenance methods.
[0024] Example
[0025] The overall idea of the technical solution in the embodiment of the present application is as follows:
[0026] like Figure 1-3 As shown, in view of the problems existing in the prior art, the utility model provides an Internet of Things data acquisition device based on fault diagnosis, including: a single-chip microcomputer 1, a sensor module, a wireless communication module 9, an SDI-12 to serial port module 7, a cloud platform 10, a mobile power supply 11, and an NPN transistor 12;
[0027] Among them, the single chip computer 1 is connected with the sensor module, the SDI-12 to serial port module 7, the wireless communication module 9, and the NPN transistor 12;
[0028] The sensor module includes a temperature and humidity sensor 2, a pH sensor 3, a wind direction sensor 4, a wind speed sensor 5, a photosynthetically active radiation sensor 6 and a TEROS12 soil moisture, temperature and conductivity sensor 8;
[0029] The single chip computer 1 selects Cortex-M3 as the processor core, processes the environmental data obtained by the sensor module and transmits it to the wireless communication module 9. The pH sensor 3 uses a composite electrode composed of a glass indicator electrode and a reference electrode. The pH measurement is based on the potential difference measured in the solution by the working battery composed of the measuring electrode and the reference electrode. The linear relationship between the pH value of the solution to be tested and the potential of the working battery is used to achieve real-time monitoring of the pH. The temperature and humidity sensor 2 is designed based on the capacitance measurement principle and has the characteristics of high precision, low power consumption and fast response. It is a digital temperature and humidity sensor;
[0030] The wind speed sensor 5 module is a digital sensor, and the sensing part is composed of three conical hollow wind cups. When the wind cups rotate, they drive the coaxial multi-toothed disc to rotate, and obtain a pulse signal proportional to the rotation speed of the wind cups through the circuit. According to the pulse signal counted by the counter, the actual wind speed value is obtained by conversion. The wind direction sensor 4 module is a digital sensor, which detects and senses the external wind direction information by rotating the wind direction arrow, transmits it to the coaxial code disc, outputs the relevant data of the corresponding wind direction, and senses the change of environmental wind direction;
[0031] The photosynthetically active radiation sensor 6 module uses a high-precision photoelectric sensing element to obtain the photosynthetically active radiation value through the photoelectric sensing principle. When there is light, it generates a voltage signal proportional to the incident radiation intensity, and its sensitivity is proportional to the cosine of the direct angle of the incident light. The photosynthetically active radiation sensor 6 module uses a dust cover to reduce dust adsorption and prevent environmental factors from interfering with internal components. It uses the standard Modbus-RTU485 communication protocol and can directly read the current photosynthetically active radiation value;
[0032] The TEROS12 soil moisture, temperature, and conductivity sensor 8 transmits the sensed data to the single chip microcomputer 1 via the SD I-12 to serial port module 7;
[0033] The wireless communication module 9 is a DTU communication module, which is connected to the terminal device through an interface, and the acquired data is wirelessly transmitted via 4G. The mobile power supply 11 provides a 12V voltage, one end of which is connected to the collector of the NPN transistor 12, the microcontroller 1 is connected to the base, and the sensor module is connected to the emitter;
[0034] The lower computer sends the sensor perception data column to the cloud platform 10, and the cloud platform 10 saves the normal data column. At the same time, the main neural network and the slave network of the BP neural network use these data to learn and master the redundant relationship between each sensor. Through historical data, the main neural network obtains the estimated value at the current moment, and calculates the quadratic error between the measured value and the estimated value of the data column. Each slave network also obtains the estimated value of the corresponding sensor based on historical data, and calculates the quadratic error between the estimated value and the measured value. When the main neural network detects that the sensor has a fault, the cloud platform 10 issues a fault warning, the slave network quickly locates the fault location, and transmits the fault information to the lower computer. The lower computer controls the connection between the mobile power supply 11 and each sensor through the NPN transistor 12, restarts and isolates the fault location, and after the fault is repaired, the slave network restores the signal of the faulty sensor.
[0035] Working principle:
[0036] Step 1: The sensor and the MCU 1 are powered on and initialized, the watchdog timer is started, the sensor starts to monitor the environment, the wireless communication module 9 is powered on and registered to the network, and a connection is established with the cloud platform 10 via 4G;
[0037] Step 2: The sensor collects environmental parameters in real time and converts them into digital information that can be stored and transmitted. The single-chip microcomputer 1 sends a read register instruction to the sensor. The sensor receives the read instruction and sends the environmental information to the single-chip microcomputer 1.
[0038] Step 3: The single-chip microcomputer 1 parses and processes the acquired data, and transmits it to the wireless communication module 9 according to the Modbus-RTU485 communication protocol format. The wireless communication module 9 receives the environmental parameters processed by the single-chip microcomputer 1, and transmits the data to the cloud platform 10 through the 4G network. The data is stored in the website;
[0039] Step 4: In the cloud platform 10, based on the acquired data and the fault diagnosis algorithm based on the BP neural network, the quadratic error of the difference between the estimated value and the actual value at the current moment is obtained through the main neural network to detect whether the sensor is faulty;
[0040] Step 5: If the main neural network detects a sensor failure, the slave network quickly locates the faulty sensor and transmits the fault information to the lower computer. The lower computer quickly restarts or isolates the faulty component through the NPN transistor 12, and the slave network restores the faulty sensor signal after the fault is repaired.
[0041] Step 6: The cloud platform 10 displays the environmental data obtained by the sensor module, displays the device failure status, issues a warning when a device fails, monitors the operating status of each sensor in real time and online, and the management personnel monitor the subtle changes in the environment and the health status of the device in real time.
[0042] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present invention.
Claims
1. An Internet of Things data acquisition device based on fault diagnosis, characterized in that: The Internet of Things data acquisition device based on fault diagnosis comprises: a single chip microcomputer (1), a sensor module, a wireless communication module (9), an SDI-12 to serial port module (7), a cloud platform (10), a mobile power supply (11), and an NPN transistor (12); The single chip microcomputer (1) is connected to the sensor module, the SDI-12 to serial port module (7), the wireless communication module (9), and the NPN transistor (12); The sensor module comprises a temperature and humidity sensor (2), a pH sensor (3), a wind direction sensor (4), a wind speed sensor (5), a photosynthetically active radiation sensor (6), and a TEROS12 soil moisture, temperature, and conductivity sensor (8).
2. The Internet of Things data acquisition device based on fault diagnosis as claimed in claim 1, characterized in that: The single chip microcomputer (1) selects Cortex-M3 as a processor core to process the environmental data acquired by the sensor module and transmit the data to the wireless communication module (9).
3. The Internet of Things data acquisition device based on fault diagnosis as claimed in claim 2, characterized in that: The pH sensor (3) uses a composite electrode composed of a glass indicator electrode and a reference electrode.
4. The Internet of Things data acquisition device based on fault diagnosis as claimed in claim 1, characterized in that: The wind speed sensor (5) module is a digital sensor, and the sensing part is composed of three conical hollow wind cups.
5. The Internet of Things data acquisition device based on fault diagnosis as claimed in claim 1, characterized in that: The TEROS12 soil moisture, temperature and conductivity sensor (8) transmits the sensed data to the single chip microcomputer (1) via the SDI-12 to serial port module (7).
6. The Internet of Things data acquisition device based on fault diagnosis as claimed in claim 5, characterized in that: The wireless communication module (9) is a DTU communication module, which is connected to a terminal device via an interface, and the acquired data is wirelessly transmitted via 4G. The mobile power supply (11) provides a 12V voltage, one end of which is connected to the collector of an NPN transistor (12), the single-chip computer (1) is connected to the base, and the sensor module is connected to the emitter.
