SUMMERY OF THE UTILITY MODEL
The utility model solves the problem of how to eliminate static electricity and protect equipment in an internet of things system.
In order to solve the problem, the utility model provides a thing networking system.
The utility model provides an Internet of things system, which comprises a cloud server, a gateway and a plurality of sub-devices for collecting information, wherein the cloud server is respectively connected with each sub-device through the gateway;
the sub-device comprises a power supply circuit, the power supply circuit comprises a USB interface, a first diode, a second diode, a third diode, a fourth diode and a fifth diode, a power supply pin of the USB interface is used as a first power supply, a grounding pin is grounded, a first data pin of the USB interface is respectively connected to an anode of the first diode and a cathode of the second diode, a cathode of the first diode is connected to a cathode of the third diode, an anode of the second diode is grounded, a second data pin of the USB interface is respectively electrically connected with an anode of the third diode and a cathode of the fourth diode, an anode of the fourth diode is grounded, an anode of the fourth diode is also connected to an anode of the fifth diode, and a cathode of the fifth diode is connected to a cathode of the third diode, and the cathode of the third diode is connected to a power pin of the USB interface.
Optionally, the sub-device further includes a voltage stabilizing circuit, where the voltage stabilizing circuit includes a voltage stabilizing device, a first capacitor, a second capacitor, a third capacitor, and a fourth capacitor, an input control pin of the voltage stabilizing device is connected to a power input pin of the voltage stabilizing device, the power input pin of the voltage stabilizing device is connected to the first power supply, the power input pin of the voltage stabilizing device is grounded through the first capacitor and the second capacitor, respectively, a power output end of the voltage stabilizing device is used as the second power supply, and the power output end of the voltage stabilizing device is grounded through the third capacitor and the fourth capacitor, respectively.
Optionally, the sub-device further includes a first controller, a first sensor, and a first interface circuit, where the first interface circuit includes a first resistor, a second resistor, a third resistor, a fifth capacitor, and a sixth capacitor, a first pin of the first sensor is grounded, a second pin of the first sensor is connected to the second power supply and is grounded through the fifth capacitor and the sixth capacitor, respectively, a third pin of the first sensor is connected to an input end of the controller through the third resistor, an output end of the controller is connected to the gateway, a third pin of the first sensor is also grounded through the first resistor and is connected to the second power supply through the second resistor, and the first sensor includes a human body detection sensor and/or a vibration detection sensor.
Optionally, the sub-device further includes a second controller, a second sensor, and a second interface circuit, where the second interface circuit includes a fourth resistor and a seventh capacitor, a first pin of the second sensor is grounded, a second pin of the second sensor is connected to an input end of the second controller, an output end of the second controller is connected to the gateway, the second pin of the second sensor is further connected to the second power supply through the fourth resistor, a third pin of the second sensor is connected to the second power supply, and is also grounded through the seventh capacitor, and the second sensor includes a temperature and humidity sensor.
Optionally, the sub-device further comprises a third controller, a third sensor, and a third interface circuit, the third interface circuit comprises a fifth resistor, a sixth resistor, a seventh resistor, an eighth capacitor and a ninth capacitor, the first pin of the third sensor is grounded through the fifth resistor, and is connected to the first end of the third controller through the sixth resistor, the second pin of the third sensor is connected to the second end of the third controller through the seventh resistor, a third terminal of the third controller is connected to the gateway, a third pin of the third sensor is grounded, a fourth pin of the third sensor is connected to the first power supply, and the third sensor comprises at least one of a smoke detection sensor, a combustible gas detection sensor and a water sensor.
Optionally, the sub-device further includes a fourth controller, a fourth sensor, and a fourth interface circuit, where the fourth interface circuit includes an eighth resistor and a ninth resistor, a power supply terminal of the fourth sensor is connected to the first power supply, a ground terminal of the fourth sensor is grounded, a first output terminal of the fourth sensor is connected to a first terminal of the fourth controller through the eighth resistor, a second output terminal of the fourth sensor is connected to a second terminal of the fourth controller through the ninth resistor, a third terminal of the fourth controller is connected to the gateway, and the fourth sensor includes a PM2.5 detection sensor.
Optionally, the sub-device further includes a fifth controller, a fifth sensor and a fifth interface circuit, the fifth interface circuit includes a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a tenth capacitor and an eleventh capacitor, a first pin of the fifth sensor is connected to the first power supply and is grounded through the tenth capacitor and the eleventh capacitor, respectively, a second pin of the fifth sensor is connected to the first terminal of the fifth controller through the tenth resistor, a third pin of the fifth sensor is connected to the second terminal of the fifth controller through the eleventh resistor, a third terminal of the fifth controller is connected to the gateway, a fourth pin of the fifth sensor is grounded, a fifth pin of the fifth sensor is connected to the first power supply through the twelfth resistor, and is grounded through the thirteenth resistor, and the fifth sensor comprises an illumination intensity sensor and/or an atmospheric pressure sensor.
Optionally, the sub-device further includes a sixth controller, a sixth sensor and a sixth interface circuit, the sixth interface circuit includes a communication device, a power supply end of the sixth sensor is connected to the first power supply, a ground end of the sixth sensor is grounded, a data output end of the sixth sensor is connected to a signal input end of the communication device, a signal output end of the communication device is connected to an input end of the sixth controller, an output end of the sixth controller is connected to the gateway, and the sixth sensor includes a wind speed sensor.
Optionally, the terminal further includes a Zigbee communication device, and each of the sub-devices is in communication connection with the gateway through the Zigbee communication device.
Optionally, the mobile terminal further comprises a display device, and the display device is electrically connected with each of the sub-devices respectively.
The utility model discloses a thing networking systems's beneficial effect is: the sub-equipment is used for collecting data in the environment, and after the sub-equipment collects the data, the data are transmitted to the cloud server through the gateway to be subsequently processed and stored, so that the data processing capacity can be improved, and the problem of insufficient local storage capacity is solved. The sub-equipment adopts the USB interface to supply power by an external power supply, and has wide application range, simplicity and convenience. When static electricity is generated on a data pin of the USB interface, a diode between the data pin and the ground wire is conducted, current can be led to the ground wire, high voltage is released, and meanwhile, the diode between the data pin and the power supply clamps the voltage in a normal range, so that equipment in the circuit is protected.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or otherwise described herein.
As shown in fig. 1 and fig. 2, an internet of things system provided by an embodiment of the present invention includes acloud server 10, agateway 20, and a plurality ofsub-devices 30 for collecting information, where thecloud server 10 is connected to each of thesub-devices 30 through thegateway 20;
thesub-device 30 includes a power supply circuit including a USB interface CN1, a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, and a fifth diode D5, a power supply pin of the USB interface CN1 serving as a first power supply, a ground pin being grounded, and a first data pin of the USB interface CN1 being connected to an anode of the first diode D1 and a cathode of the second diode D2, respectively, a cathode of the first diode D1 being connected to a cathode of the third diode D3, an anode of the second diode D2 being grounded, a second data pin of the USB interface CN1 being electrically connected to an anode of the third diode D3 and a cathode of the fourth diode D4, an anode of the fourth diode D4 being grounded, and an anode of the fourth diode D4 being further connected to an anode of the fifth diode D5, a cathode of the fifth diode D5 being connected to a cathode of the third diode D3, the cathode of the third diode D3 is connected to the power pin of theUSB interface CN 1.
Specifically, the power pin of the USB interface CN1 may be connected to one end of a fuse, and the other end of the fuse is used as the first power supply, and the fuse can be fused when the current is too large, so as to break the circuit and further protect the devices in the circuit. As shown in fig. 2, the USB interface CN1 may adopt a micro USB interface, the fourth pin is an ID pin, and is grounded through a fourteenth resistor R14, the first data pin of the USB interface CN1 may also be connected to one end of the controller through a fifteenth resistor, and the second data pin may be connected to one end of the controller through a sixteenth resistor, so that the USB interface CN1 not only can supply power to the circuit, but also can perform data transmission with the controller.
In this embodiment, thechild device 30 is configured to collect data in an environment, and after thechild device 30 collects the data, the data is transmitted to thecloud server 10 through thegateway 20 for subsequent processing and storage, so that the data processing capability can be improved, and the problem of insufficient local storage capability is solved. Thesub-device 30 is powered by an external power supply with a USB interface CN1, and is wide in application range, simple and convenient. When static electricity is generated on the data pin of the USB interface CN1, the diode between the data pin and the ground is turned on, so that current can be led to the ground to discharge high voltage, and meanwhile, the diode between the data pin and the power supply clamps the voltage in a normal range, thereby protecting the devices in the circuit.
For example: if static electricity is generated on the first data pin of the USB interface CN1, the second diode D2 is broken through by the high voltage instantaneously, the second diode D2 is turned on to introduce the high voltage to the ground, and the first diode D1 is turned on to clamp the voltage of the first data pin in a normal range, so as to protect the components in the circuit.
Optionally, as shown in fig. 3, thesub-device 30 further includes a voltage stabilizing circuit, where the voltage stabilizing circuit includes a voltage stabilizing device U1, a first capacitor C1, a second capacitor C2, a third capacitor C3, and a fourth capacitor C4, an input control pin of the voltage stabilizing device U1 is connected to a power input pin of the voltage stabilizing device U1, a power input pin of the voltage stabilizing device U1 is connected to the first power supply, the power input pin of the voltage stabilizing device U1 is further grounded through the first capacitor C1 and the second capacitor C2, respectively, a power output end of the voltage stabilizing device U1 is used as a second power supply, and a power output end of the voltage stabilizing device U1 is further grounded through the third capacitor C3 and the fourth capacitor C4, respectively.
Specifically, the voltage stabilizer U1 may adopt a voltage stabilizer of LD3985MR, and may convert a 5V voltage output by the USB interface CN1 into a 3.3V voltage, so as to meet the power supply of devices with different voltage requirements, so that the internet of things system may connect various devices, and the application range is expanded.
Optionally, as shown in fig. 5, thesub-device 30 further includes a first controller, a first sensor P1 and a first interface circuit, the first interface circuit comprises a first resistor R1, a second resistor R2, a third resistor R3, a fifth capacitor C5 and a sixth capacitor C6, a first pin of the first sensor P1 is grounded, a second pin of the first sensor P1 is connected to the second power supply, and is grounded through the fifth capacitor C5 and the sixth capacitor C6, respectively, the third pin of the first sensor P1 is connected to the input terminal of the controller through the third resistor R3, the output terminal of the controller is connected to thegateway 20, the third pin of the first sensor P1 is also connected to ground through the first resistor R1 and to the second power supply through the second resistor R2, wherein the first sensor P1 includes a human body detection sensor and/or a vibration detection sensor.
Specifically, the first sensor P1 may be a human detection sensor of type SR602, which can detect whether a person is present in front of a node, and may be used in multiple fields such as security protection. The first sensor P1 may also be a vibration detection sensor of type SW-18015P, which is used to detect whether vibration occurs, and may be used in a number of fields such as device detection. The first sensor P1 is powered by 3.3V, and after detecting a signal, the signal is transmitted to the first controller through the first interface circuit, and the first controller transmits the signal to thecloud server 10 through thegateway 20 for processing and storage. The second pin of the first sensor P1 is grounded via a fifth capacitor C5 and a sixth capacitor C6, respectively, which can be decoupled or filtered. The first interface circuit is suitable for various sensors such as a human body detection sensor, a vibration detection sensor and the like, and is simple in structure, wide in application range and convenient to design.
The first controller, and hereinafter the second to fifth controllers, may be a single chip microcomputer of the model STM32F103CBT6, as shown in fig. 4, which is a peripheral circuit of the controller, wherein Y1 and Y2 are crystal oscillators.
Optionally, as shown in fig. 6, thesub-device 30 further includes a second controller, a second sensor P2, and a second interface circuit, where the second interface circuit includes a fourth resistor R4 and a seventh capacitor C7, a first pin of the second sensor P2 is grounded, a second pin of the second sensor P2 is connected to an input end of the second controller, an output end of the second controller is connected to thegateway 20, a second pin of the second sensor P2 is further connected to the second power supply through the fourth resistor R4, a third pin of the second sensor P2 is connected to the second power supply, and is also grounded through the seventh capacitor C7, and the second sensor P2 includes a temperature and humidity sensor.
Specifically, the second sensor P2 can adopt the humiture sensor of model AM2105 for temperature and humidity in the detection environment, and it adopts the 3.3V power supply, after detecting temperature or humidity signal, with signal transmission to the second controller that corresponds, the second controller transmits data to thecloud server 10 throughgateway 20 and handles and save.
Optionally, as shown in fig. 7, thesub-device 30 further includes a third controller, a third sensor P3 and a third interface circuit, the third interface circuit includes a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth capacitor C8 and a ninth capacitor C9, a first pin of the third sensor P3 is connected to the ground through the fifth resistor R5 and is connected to a first end of the third controller through the sixth resistor R6, a second pin of the third sensor P3 is connected to a second end of the third controller through the seventh resistor R7, a third end of the third controller is connected to thegateway 20, a third pin of the third sensor P3 is connected to the ground, a fourth pin of the third sensor P3 is connected to the first power supply and is connected to the ground through the eighth capacitor C8 and the ninth capacitor C9, respectively, and the third sensor P3 includes a smoke detection sensor P8 and a ninth capacitor C9, At least one of a combustible gas detection sensor and a water immersion sensor.
Specifically, the third sensor P3 may employ a smoke detection sensor of type MQ-2 for detecting whether smoke exists in the environment, a combustible gas detection sensor of type MQ-9 for detecting whether combustible gas exists in the environment, and a water immersion sensor of type SJ-1 for detecting whether water immersion occurs. After acquiring the signal, the third sensor P3 transmits the signal to the corresponding third controller, and the third controller transmits the data to thecloud server 10 through thegateway 20 for processing and storage. The third interface circuit is suitable for various sensors such as a smoke detection sensor, a combustible gas detection sensor and a water immersion sensor, and has strong adaptability and a simple structure. The eighth capacitor C8 and the ninth capacitor C9 can filter noise, and stability of the third interface circuit is improved.
Optionally, as shown in fig. 8, thesub-device 30 further includes a fourth controller, a fourth sensor P4, and a fourth interface circuit, the fourth interface circuit includes an eighth resistor R8 and a ninth resistor R9, a power supply terminal of the fourth sensor P4 is connected to the first power supply, a ground terminal of the fourth sensor P4 is grounded, a first output terminal of the fourth sensor P4 is connected to a first terminal of the fourth controller through the eighth resistor R8, a second output terminal of the fourth sensor P4 is connected to a second terminal of the fourth controller through the ninth resistor R9, a third terminal of the fourth controller is connected to thegateway 20, and the fourth sensor P4 includes a PM2.5 detection sensor.
Specifically, the fourth sensor P4 may adopt a PM2.5 detection sensor of PMSA003 for detecting the content of PM2.5 in the environment, and may continuously collect and calculate the number of suspended particulate matters with different particle sizes in the air per unit volume, i.e., the particulate matter concentration distribution, by using the laser scattering principle. The fourth sensor P4 may be embedded in various instruments or environmental improvement devices to provide timely and accurate concentration data. After the fourth sensor P4 detects the PM2.5 concentration, the data is transmitted to the corresponding fourth controller, and the fourth controller transmits the data to thecloud server 10 through thegateway 20 for processing and storage.
Optionally, as shown in fig. 9, the sub-device 30 further includes a fifth controller, a fifth sensor P5 and a fifth interface circuit, the fifth interface circuit includes a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a tenth capacitor C10 and an eleventh capacitor C11, a first pin of the fifth sensor P5 is connected to the first power supply and is grounded via the tenth capacitor C10 and an eleventh capacitor C11, respectively, a second pin of the fifth sensor P5 is connected to a first terminal of the fifth controller via the tenth resistor R10, a third pin of the fifth sensor P5 is connected to a second terminal of the fifth controller via the eleventh resistor R11, a third terminal of the fifth controller is connected to thegateway 20, a fourth pin of the fifth sensor P5 is grounded, a fifth pin of the fifth sensor P5 is connected to the first power supply via the twelfth resistor R12, and to ground through the thirteenth resistor R13, the fifth sensor P5 includes an illumination intensity sensor and/or an atmospheric pressure sensor.
Specifically, the fifth sensor P5 may adopt an illumination intensity sensor of a type BH1750FVI for detecting an illumination intensity in an environment, or may adopt an atmospheric pressure sensor of a type BMP180 for detecting an atmospheric pressure, and when the fifth sensor P5 detects the illumination intensity or the atmospheric pressure, the illumination intensity or the atmospheric pressure is transmitted to the corresponding fifth controller, and the fifth controller transmits data to thecloud server 10 through thegateway 20 for storage and processing. The fifth interface circuit is suitable for various sensors such as an illumination intensity sensor and an atmospheric pressure sensor, and has strong adaptability and a simple structure. And the tenth capacitor C10 and the eleventh capacitor C11 can filter noise, so that the stability of the fifth interface circuit is improved.
Optionally, the sub-device 30 further comprises a sixth controller, a sixth sensor P6 and a sixth interface circuit, the sixth interface circuit comprises a communication device, a power supply terminal of the sixth sensor P6 is connected to the first power supply, a ground terminal of the sixth sensor P6 is connected to ground, a data output terminal of the sixth sensor P6 is connected to a signal input terminal of the communication device, a signal output terminal of the communication device is connected to an input terminal of the sixth controller, an output terminal of the sixth controller is connected to thegateway 20, and the sixth sensor P6 comprises a wind speed sensor.
Specifically, the sixth sensor P6 may employ a three-cup wind speed sensor of model PR-3000-FSJT-N1, the communication device may employ a 485 communication device of model SP3485EN-L/TR, the sixth sensor P6 may transmit the wind speed to the communication device through a 485 communication bus after detecting the wind speed, the communication device outputs the wind speed to a corresponding sixth controller, and the sixth controller transmits the data to thecloud server 10 through thegateway 20 for processing and storage.
Optionally, the system further includes Zigbee communication means, and each of the sub-devices 30 is in communication connection with thegateway 20 through the Zigbee communication means.
Specifically, the Zigbee communication device may adopt a communication module with a model of AW5161, and may be connected to a controller in each sub-device 30 through a serial port, and the controller transmits data to thegateway 20 through the Zigbee communication device, and the Zigbee communication mode is adopted, which is low in energy consumption, safe and reliable.
Optionally, a display device is further included, and the display device is electrically connected to each of the sub-devices 30.
Specifically, the display device is connected to the controller in each of the sub-devices 30, so that human-computer interaction can be performed through the display device, and data collected by each of the sub-devices 30 can be displayed on the display device in real time, thereby facilitating observation and tracking of the data.
It should be noted that the present invention relates to only the improvement of the circuit structure, and does not relate to the improvement of the software program in each device, and the software program in each device mainly performs data processing and transmission, which are the prior art.
Although the present disclosure has been described above, the scope of the present disclosure is not limited thereto. Without departing from the spirit and scope of the present disclosure, those skilled in the art can make various changes and modifications, which will fall into the scope of the present disclosure.