Cowshed roller shutter intelligent electric control system and control method
By designing the intelligent electronic control system for roller shutters, using IoT technology to collect and process environmental data in real time, automatically adjust the roller shutter opening, and realize remote monitoring and control, the problem that existing systems cannot achieve intelligent management and automatic adjustment is solved, and the management efficiency and stability of the environment of roller shutters is improved.
Patent Information
- Application Number
- CN202510207502.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-05-30
AI Technical Summary
The existing cowshed roller shutter control system lacks IoT detection and control functions, cannot realize remote monitoring and intelligent management, and cannot automatically adjust the opening degree of the roller shutter based on real-time data of the on-site environment, resulting in the internal environment of the cowshed being unable to be optimized and controlled, and it is easy to affect the stability of the cowshed environment due to human operation errors.
A smart electronic control system for roller shutters is designed, including environmental data acquisition module, data processing center, control execution module, communication module and alarm module. The system collects data on the inside and outside environment of the cowhouse in real time, uses the intelligent algorithm of the data processing center to automatically calculate and adjust the opening of the roller shutter, and realizes remote monitoring and control through the 4G communication module, and has local and remote alarm functions.
The refined and intelligent control of the cow shed environment is achieved, the internal environment of the cow shed is optimized, and more suitable growth conditions are provided for the cow shed, management efficiency is improved, the risk of human operation errors is reduced, and the stability and safety of the cow shed environment is ensured.
Smart Images

Figure CN120065849A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent cattle raising in the Internet of Things, and specifically to an intelligent electric control system and control method for cattle shed rolling curtains. Background Art
[0002] In traditional livestock farming, especially in the field of dairy or beef cattle farming, the management of cattle sheds is crucial. Among them, the control of cattle shed rolling curtains plays a key role in regulating the internal environment of the cattle shed. However, most existing cattle shed rolling curtains adopt manual control methods, which are not only inefficient but also unable to automatically adjust according to the real-time environmental data inside and outside the cattle shed.
[0003] With the development of Internet of Things technology, technologies such as real-time sensor monitoring systems, wireless data transmission systems, and Modbus communication have gradually been applied to various fields, including animal husbandry. The technology of single-chip microcomputer self-control and automatic monitoring Internet of Things wireless transmission sensors makes it possible to intelligently manage the cattle shed environment. Nevertheless, these advanced technologies have not been fully applied in the control of cattle shed rolling curtains.
[0004] Specifically, the existing cattle shed rolling curtain control systems have the following defects: First, they lack Internet of Things detection and control functions and cannot achieve remote monitoring and intelligent management; second, they cannot automatically adjust the opening degree of the rolling curtain according to the real-time data of the on-site environment, resulting in the inability to optimize the control of the internal environment of the cattle shed; finally, the manual control method is not only time-consuming and laborious but also easily affects the stability of the cattle shed environment due to human operation errors. Summary of the Invention
[0005] Based on this, the purpose of the present invention is to provide an intelligent electric control system and control method for cattle shed rolling curtains to solve the technical problems that the existing cattle shed rolling curtain control systems lack Internet of Things detection and control functions, cannot achieve remote monitoring and intelligent management, cannot automatically adjust the opening degree of the rolling curtain according to the real-time data of the on-site environment, resulting in the inability to optimize the control of the internal environment of the cattle shed, and are also easily affected by human operation errors and affect the stability of the cattle shed environment.
[0006] In view of the above problems, the present application provides an intelligent electric control system and control method for cattle shed rolling curtains.
[0007] In the first aspect of the present application, an intelligent electric control system for cattle shed rolling curtains is provided, including: an environmental data acquisition module, configured inside and outside the cattle shed, for real-time acquisition of temperature and humidity, ammonia concentration, air temperature and humidity, wind speed, wind direction and rainfall data inside and outside the cattle shed; a data processing center, communicatively connected to the environmental data acquisition module, for receiving and processing the environmental data, and calculating the target opening degree of the rolling curtain according to a preset algorithm and parameters set by the user; a control execution module, electrically connected to the data processing center, for adjusting the opening degree of the rolling curtain according to the instruction issued by the data processing center; a communication module, using 4G communication mode, for uploading the environmental data and the state of the rolling curtain to a remote server in real time, and receiving control instructions from the remote server; an alarm module, including local sound and light alarm and remote alarm functions, for timely sending an alarm signal when an abnormal state is detected.
[0008] Further, the environmental data acquisition module uses an RS485 interface and communicates with the data processing center following the standard Modbus RTU protocol.
[0009] Further, the data processing center includes: a microcontroller unit, specifically an ARM chip with a Cortex-M3 core, model GD32F103CBT6, configured with 128KB flash and 20KB RAM resources, for completing data reading, network management and monitoring strategies; a communication interface circuit, including at least three USART serial port circuits, respectively used for data interaction with the environmental data acquisition module, the control execution module and the communication module; a calendar clock module, communicating with the microcontroller unit through the IIC bus, model PCF8563, for recording the current time and providing a time calibration function; a storage circuit, using an AT24C1024 storage chip with a storage capacity of 128KB, communicating with the microcontroller unit through the IIC bus, for storing basic parameters, sensor configuration information and control strategy configuration parameters.
[0010] Further, the control execution module includes: a relay output circuit, including 3-way relay outputs, using a triode 8050 to complete the weak-current drive of strong current, and the microcontroller unit drives the coil of the relay to be energized or not through the change of GPIO output, to realize the on-off control of the curtain rolling machine for rising, falling and the sound and light alarm;
[0011] a digital quantity input circuit, including 6-way digital quantity inputs, where 4 ways are used to judge the positions of two three-speed knobs, and the other 2 ways are used to detect the upper limit and lower limit of the movement of the curtain rolling motor; a current detection circuit, using an ACS712ELCTR-05B-T chip, converting the circuit signal into a voltage signal, and then through the signal processing of the operational amplifier, entering the microcontroller unit for ADC conversion, for detecting the current of the curtain rolling machine, providing a protection mechanism, and cutting off the power supply and sending an alarm when the current increases abnormally.
[0012] Furthermore, the communication module adopts a plug-and-play design, and different communication modules can be flexibly selected according to on-site communication requirements, and data interaction is carried out with the microcontroller unit through the serial port.
[0013] Furthermore, the system also includes a user interaction interface for users to input configuration parameters and view real-time data.
[0014] In the second aspect of the present invention, a control method for an intelligent electric control system of a cattle shed rolling curtain is provided, including the following steps: Step 1: Initialize the system, including serial port initialization, communication module initialization, memory initialization, calendar clock initialization, control execution module initialization, and digital quantity input circuit initialization; Step 2: Check networking, determine whether the 4G communication module is normally connected, whether an IP address is obtained, and establish a TCP connection with the remote server; Step 3: Enter the main loop and periodically perform the following operations: Detect the digital quantity input status to adjust the rolling curtain control state machine; Use the ADC to detect the current magnitude and judge abnormalities; Judge the state of the rolling curtain machine according to the relay state and calculate the current opening degree; Print real-time status information; Monitor the 4G communication status and handle network disconnection and reconnection; Read sensor data and manage the received data message queue; And manage the rolling curtain state machine, and flexibly switch the working state according to the control knob setting and the real-time sensor data.
[0015] Furthermore, in the main loop, there is also a step of dynamically adjusting the monitoring strategy according to the configuration parameters input by the user through the user interaction interface.
[0016] Furthermore, the method also includes a step of self-checking for faults in the system software and hardware to ensure the stable operation of the system.
[0017] In summary, the present invention mainly has the following beneficial effects:
[0018] Compared with the traditional cattle shed rolling curtain control system, the present invention integrates an advanced environmental data acquisition module, which can monitor key environmental parameters such as temperature and humidity, ammonia concentration, air temperature and humidity, wind speed, wind direction, and rainfall inside and outside the cattle shed in real time and accurately. Through the intelligent algorithm of the data processing center, the system can automatically calculate and adjust the opening degree of the rolling curtain according to the preset conditions and the parameters set by the user, so as to realize the refined and intelligent control of the cattle shed environment. This improvement not only optimizes the internal environment of the cattle shed, but also provides more suitable conditions for the growth of cattle.
[0019] Through the built-in 4G communication module, the present invention uploads the environmental data and rolling curtain status of the cowshed to a remote server in real time. Users and managers can view the real-time status of the cowshed environment, receive abnormal alarm information, and remotely control the rolling curtain through terminal devices such as mobile phones and computers. This function of remote monitoring and intelligent management not only improves management efficiency but also reduces the risk of human operation errors, ensuring the stability and safety of the cowshed environment.
[0020] In the hardware design of the present invention, a high-performance ARM chip with a Cortex-M3 kernel is used as the main controller, combined with a variety of communication interfaces and sensors, ensuring the accuracy and reliability of data collection and transmission. At the same time, the system also has a fault self-checking function, which can detect and handle software and hardware faults in a timely manner to ensure the stable operation of the system. In addition, the design of the current detection circuit provides an additional protection mechanism for the system. When the rolling curtain machine is blocked or other abnormal situations occur, the system can quickly cut off the power supply and send an alarm signal, effectively avoiding potential safety hazards. Description of the Drawings
[0021] Figure 1 is the circuit diagram of the power supply part of the present invention;
[0022] Figure 2 is the circuit diagram of RS485 of the present invention;
[0023] Figure 3 is the circuit diagram of the 3-way relay of the present invention;
[0024] Figure 4 is the circuit diagram of the 4G interface of the present invention;
[0025] Figure 5 is the circuit diagram of the PCF8563 interface of the present invention;
[0026] Figure 6 is the storage circuit diagram of AT24C1024 of the present invention;
[0027] Figure 7 is the digital quantity input circuit diagram of the present invention;
[0028] Figure 8 is the current detection circuit diagram of the present invention;
[0029] Figure 9 is the microcontroller unit circuit diagram of the present invention;
[0030] Figure 10 is the front view of the main control board of the present invention;
[0031] Figure 11 is the back view of the main control board of the present invention. Detailed Embodiments
[0032] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. The embodiments described below by referring to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as a limitation to the present invention.
[0033] The embodiments of the present invention will be described below according to its overall structure.
[0034] A smart electric control system for cattle shed rolling curtains includes:
[0035] I. An environmental data acquisition module, which is a key component of the smart electric control system for cattle shed rolling curtains of the present invention. It is respectively configured inside and outside the cattle shed. This layout design aims to comprehensively and real-time monitor the environmental conditions inside and outside the cattle shed, ensuring that the collected data can truly reflect the overall situation of the cattle shed environment.
[0036] Specifically, the environmental data acquisition module is responsible for real-time acquisition of the following key data:
[0037] Temperature and humidity inside and outside the cattle shed: Through high-precision temperature and humidity sensors, the module can measure and record the temperature and humidity inside and outside the cattle shed in real time. These data are crucial for evaluating the comfort of the cattle shed environment and preventing the spread of diseases.
[0038] Ammonia concentration: Ammonia is one of the common harmful gases in the cattle shed. Excessive concentration of ammonia will have a negative impact on the health of cattle. Therefore, an ammonia concentration sensor is integrated in the module to monitor the ammonia concentration in the cattle shed in real time, so as to take timely measures to reduce its concentration.
[0039] Air temperature and humidity (specifically referring to the external environment): Although the temperature and humidity data inside and outside the cattle shed are both collected, the temperature and humidity of the external environment are of great significance for formulating strategies such as ventilation and cooling of the cattle shed.
[0040] Wind speed and direction: Through wind speed and direction sensors, the module can obtain the wind speed and direction information outside the cattle shed in real time. These information are crucial for evaluating the ventilation effect of the cattle shed and formulating ventilation strategies.
[0041] Rainfall: A rainfall sensor is used to monitor the rainfall outside the cattle shed in real time, so as to close the rolling curtain in time when it rains to prevent rainwater from entering the cattle shed.
[0042] II. A data processing center, which is the core part of the system and is responsible for receiving, processing and sending instructions.
[0043] Specifically, the data processing center includes:
[0044] The microcontroller unit, specifically an ARM chip with a Cortex-M3 core, model GD32F103CBT6, is configured with 128KB of flash and 20KB of RAM resources. It is mainly used to complete data reading, network management, and the execution of monitoring strategies. It receives data from the environmental data acquisition module, calculates according to preset algorithms and parameters set by users, obtains the target opening degree of the rolling shutter, and sends instructions to the control execution module for adjustment.
[0045] The communication interface circuit includes at least three USART serial port circuits, as follows:
[0046] The first USART serial port circuit is used for data interaction with the environmental data acquisition module to receive the real-time collected environmental data inside and outside the cowshed.
[0047] The second USART serial port circuit is connected to the control execution module and is used to send control instructions to adjust the opening degree of the rolling shutter.
[0048] The third USART serial port circuit conducts data interaction with the communication module to realize the real-time upload of environmental data and the state of the rolling shutter to the remote server and receive control instructions from the remote server.
[0049] The calendar clock module communicates with the microcontroller unit through the IIC bus, with the model PCF8563. It is used to record the current time and provide a time calibration function. It ensures that the system can accurately record and process time-related data, such as the automatic opening and closing times of the rolling shutter, etc.
[0050] The storage circuit uses an AT24C1024 storage chip with a storage capacity of 128KB. It communicates with the microcontroller unit through the IIC bus and is used to store basic parameters, sensor configuration information, control strategy configuration parameters, etc. These parameters are the basis for the normal operation and flexible adjustment of the system, ensuring that the system can perform precise control according to actual needs.
[0051] The environmental data acquisition module uses an RS485 interface to communicate with the data processing center. The RS485 interface is an electrical standard for differential transmission, with advantages such as strong anti-interference ability and long transmission distance, which is very suitable for the communication requirements of industrial sites. In addition, the module communicates with the data processing center following the standard Modbus RTU protocol. Modbus RTU is a widely used communication protocol in industrial sites. It defines the data exchange format and communication rules between devices. By following this protocol, the environmental data acquisition module can ensure the accurate transmission of data and the interoperability of devices.
[0052] During the communication process, the environmental data acquisition module encapsulates the collected environmental data in the format of the Modbus RTU protocol and sends it to the data processing center through the RS485 interface. After receiving the data, the data processing center will parse and process it, and then calculate the target opening degree of the rolling curtain according to the preset algorithms and parameters, and adjust the rolling curtain through the control execution module.
[0053] Third, the control execution module. The control execution module is a key component for executing the adjustment of the rolling curtain opening degree. It is electrically connected to the data processing center, receives instructions from the data processing center, and precisely adjusts the opening degree of the rolling curtain according to these instructions to meet the environmental requirements inside and outside the cattle shed.
[0054] Specifically, the control execution module includes:
[0055] The relay output circuit, which includes 3-way relay outputs. It uses the triode 8050 to complete the weak-current drive of strong current. The microcontroller unit drives whether the relay coil is energized through the change of the GPIO output, realizing the on-off control of the rolling curtain machine's up and down movements and the sound and light alarm. Each way can independently control an external device, such as the up and down movements of the rolling curtain machine and the on-off of the sound and light alarm. The microcontroller unit outputs high and low level signals through its GPIO port. When the GPIO outputs a high level, the triode 8050 conducts, enabling the relay coil to be energized, and the relay contacts close or open, thereby controlling the on-off of the external device. Conversely, when the GPIO outputs a low level, the triode 8050 cuts off, the relay coil loses power, and the contacts return to the original state. In this way, the microcontroller unit can precisely control the up and down movements of the rolling curtain machine and the response of the sound and light alarm, realizing intelligent electric control management;
[0056] The digital input circuit is used to receive the status information of external devices and convert it into digital signals that can be recognized by the microcontroller unit. In the present invention, the digital input circuit includes 6 input channels. Among them, 4 channels are used to judge the positions of two three-position knobs, and the other 2 channels are used to detect the upper and lower limits of the movement of the rolling curtain motor. The three-position knobs are used to set parameters such as the operation mode and speed of the rolling curtain machine. When the knob is rotated to different positions, corresponding switch state changes will be triggered. These changes are captured by the digital input circuit and converted into digital signals, which are then sent to the microcontroller unit for processing. At the same time, the detection of the upper and lower limits of the rolling curtain motor is also realized through the digital input circuit. When the rolling curtain machine moves to the preset upper or lower limit, the corresponding limit switch will be triggered, generating a level change. This change is also captured by the digital input circuit and converted into a digital signal, which is sent to the microcontroller unit for processing.
[0057] The current detection circuit is used to monitor the working current of the rolling machine in real time to ensure its operation within a safe range. The present invention uses the ACS712ELCTR-05B-T chip as the core component for current detection. The ACS712ELCTR-05B-T chip can convert the current signal in the circuit into a voltage signal. When the rolling machine is working, its working current will pass through the ACS712ELCTR-05B-T chip. After the Hall element inside the chip senses the current, it will generate a corresponding magnetic field change, and then output a voltage signal proportional to the current. This voltage signal is processed by the signal processing of the operational amplifier and then sent to the ADC (analog-to-digital converter) of the microcontroller unit for conversion. The microcontroller unit can obtain the current working current value of the rolling machine by reading the conversion result of the ADC. When the working current increases abnormally, such as in the case of the rolling machine being jammed, the MCU can quickly detect this change, immediately cut off the power supply, and send an alarm signal at the same time. This protection mechanism ensures the safe operation of the rolling machine and avoids equipment damage or safety accidents caused by excessive current.
[0058] When the data processing center calculates the target opening degree of the rolling curtain based on the real-time collected environmental data and the parameters set by the user, it will send this instruction to the control execution module through an electrical signal. After receiving the instruction, the control execution module first parses it to determine the target opening degree that the rolling curtain needs to be adjusted to. According to the parsed instruction, the control execution module controls the forward and reverse rotation of the rolling curtain motor by adjusting the on-off state of the relay, thereby realizing the adjustment of the rolling curtain opening degree. If the instruction requires the rolling curtain to be opened, the control execution module will drive the motor to rotate forward to gradually open the rolling curtain; if the instruction requires the rolling curtain to be closed, the control execution module will drive the motor to rotate in reverse to gradually close the rolling curtain. During the process of adjusting the rolling curtain opening degree, the control execution module will also feedback the current state of the rolling curtain to the data processing center in real time for further monitoring and adjustment by the data processing center.
[0059] IV. Communication module, which adopts an advanced 4G communication method to realize the two-way communication between the environmental data inside and outside the cowshed and the rolling curtain state and the remote server in real time;
[0060] The communication module first establishes a TCP connection with the remote server through the 4G network. This step ensures the stable transmission of data and the continuity of communication. To ensure the stability and reliability of communication, the communication module adopts a variety of fault tolerance and redundancy mechanisms in its design. For example, the communication module will regularly detect the connection status of the 4G network. Once it detects an abnormal connection or network disconnection, it will immediately try to reconnect and re-establish a TCP connection. In addition, the communication module also has a perfect error handling and logging function, which can capture and record any abnormal or error information during the communication process, providing strong support for subsequent fault troubleshooting and repair.
[0061] The communication module adopts a plug-and-play design, which allows different communication modules to be flexibly selected according to on-site communication requirements. It conducts data interaction with the microcontroller unit through the serial port. The core of the plug-and-play design lies in the standardization of the interface between the communication module and the microcontroller unit. This design enables users to support different communication protocols by simply replacing the communication module without changing other parts of the system. Specifically, the communication module conducts data interaction with the microcontroller unit through specific interfaces (such as the serial port), which have been standardized during design to ensure the compatibility and stability between the communication module and the microcontroller unit. In practical applications, users can select appropriate communication modules according to specific on-site communication requirements. For example, if remote communication is needed, a communication module supporting 4G or Wi-Fi can be selected; if wired communication is required on-site, communication modules such as RS485 or CAN can be chosen. When the communication module is correctly inserted and connected to the microcontroller unit, the microcontroller unit will conduct data interaction with the communication module through the serial port. This interaction method enables the microcontroller unit to receive and send data in real time, thereby realizing remote monitoring and control of the cattle shed roller shutter. In addition, the plug-and-play design also brings convenience for maintenance and upgrading. When the communication module fails or needs to be upgraded, users can quickly pull it out and replace it with a new module without making large-scale changes to the entire system.
[0062] V. Alarm module, including local audible and visual alarm and remote alarm functions, which sends out alarm signals in a timely manner when detecting abnormal states.
[0063] The local audible and visual alarm part mainly consists of an audible and visual alarm, a relay, and related control circuits. When the system detects abnormal states (such as the roller shutter machine being jammed, excessive current, communication interruption, etc.), the microcontroller unit will immediately output a control signal through the GPIO (General-Purpose Input / Output) port. This signal passes through the relay output circuit and uses the triode 8050 to complete the weak-current driving of the strong current, making the relay coil energized, thereby triggering the audible and visual alarm to work. The audible and visual alarm will emit obvious audible and visual signals to alert on-site personnel to pay attention and take corresponding measures.
[0064] The remote alarm part relies on the 4G communication interface circuit of the system. When the system detects abnormal states, the microcontroller unit will generate corresponding alarm information and send this information to the remote server through the 4G communication module. After receiving the alarm information, the remote server can further notify relevant personnel through methods such as text messages, emails, or APP push. In this way, even if there is no one on-site, relevant personnel can timely learn about the abnormal situation of the cattle shed roller shutter system and take corresponding handling measures.
[0065] When the abnormal state is handled and restored to normal, the system will release the alarm through corresponding operations. For local sound and light alarms, they can be released by manual reset button or automatic system reset; for remote alarms, relevant personnel need to confirm and handle the abnormal state, and then send the command to release the alarm through the remote server.
[0066] The system also includes a user interaction interface for users to input configuration parameters and view real-time data. Users can set and modify the system's configuration parameters through input fields or drop-down menus and other controls on the interaction interface. These configuration parameters include but are not limited to the target opening range of the roller shutter, the threshold setting of environmental data (such as temperature and humidity, upper and lower limits of ammonia concentration), alarm conditions, etc. The configuration parameters entered by the user will be read and applied by the system in real time to achieve intelligent control of the roller shutter opening and optimized management of the cowshed environment. A data display area is provided on the interaction interface for real-time display of environmental data collected by the system and the current state of the roller shutter. Environmental data include but are not limited to temperature and humidity inside and outside the cowshed, ammonia concentration, air temperature and humidity, wind speed, wind direction and rainfall, etc. The current state of the roller shutter includes the opening of the roller shutter, the working state of the motor (up, down, stop), etc. Through the display of real-time data, users can intuitively understand the environmental conditions in the cowshed and make corresponding adjustments or decisions accordingly.
[0067] A control method for a cowshed rolling curtain intelligent electric control system comprises the following steps:
[0068] Step 1: Initialize the system, including serial port initialization, communication module initialization, memory initialization, calendar clock initialization, control execution module initialization and digital input circuit initialization;
[0069] Step 2: Check the network to determine whether the 4G communication module is connected normally, whether the IP address is obtained, and whether a TCP connection is established with the remote server;
[0070] Step 3: Enter the main loop and periodically perform the following operations:
[0071] 1. Detect the digital input status to adjust the roller shutter control state machine;
[0072] 2. Use ADC to detect current and judge abnormality;
[0073] 3. Determine the state of the roller shutter machine according to the relay state and calculate the current opening;
[0074] 4. Print real-time status information, including time, sensor data, alarm information, etc.;
[0075] 5. Monitor 4G communication status and handle network disconnection and reconnection;
[0076] 6. Read sensor data and manage the received data message queue;
[0077] 7. Manage the rolling curtain state machine and flexibly switch the working state according to the control knob setting and real-time sensor data.
[0078] In the main loop, it also includes the step of dynamically adjusting the monitoring strategy according to the configuration parameters input by the user through the user interface. For example, the user can set different environmental parameter thresholds, alarm conditions, etc. according to actual needs.
[0079] The method also includes the step of performing a fault self-check on the system software and hardware to ensure the stable operation of the system. During the self-check process, the system will detect the working state, communication state, etc. of each module. Once an abnormality is found, an alarm signal will be immediately issued and corresponding treatment measures will be taken.
[0080] Through the above specific implementation manners, an intelligent electric control system and control method for a cattle shed rolling curtain of the present invention can achieve the intelligent control of the cattle shed rolling curtain, improve the breeding efficiency and management level. At the same time, the system also has the advantages of high reliability, strong flexibility, easy maintenance, etc., and is applicable to dairy or beef cattle farms of various scales.
[0081] Although the embodiments of the present invention have been shown and described, the specific embodiments are only explanations of the present invention and do not limit the invention. The specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. After reading this specification, those skilled in the art can make modifications, substitutions and variations that do not contribute creatively to the embodiments according to needs, but as long as they are within the scope of the claims of the present invention, they are protected by the patent law.
Claims
1. An intelligent electric control system for rolling curtains in a cowshed, characterized by: include: Environmental data collection module, which is configured inside and outside the cowshed, is used to collect real-time temperature and humidity, ammonia concentration, air temperature and humidity, wind speed, wind direction and rainfall data inside and outside the cowshed; A data processing center is connected to the environmental data acquisition module for receiving and processing the environmental data and calculating the target opening of the roller blind according to a preset algorithm and parameters set by the user; A control execution module, electrically connected to the data processing center, and adjusting the opening of the roller blind according to the instruction issued by the data processing center; The communication module adopts 4G communication mode, and is used to upload the environmental data and the roller shutter status to the remote server in real time, and receive the control command of the remote server; The alarm module includes local sound and light alarm and remote alarm functions, and sends out alarm signals in time when an abnormal state is detected.
2. According to claim 1, the intelligent electric control system for rolling curtains in a cowshed is characterized by: The environmental data acquisition module uses an RS485 interface and follows the standard Modbus RTU protocol to communicate with the data processing center.
3. According to claim 1, the intelligent electric control system for rolling curtains in a cowshed is characterized by: The data processing center includes: The microcontroller unit is an ARM chip with a Cortex-M3 core, model GD32F103CBT6, equipped with 128KB flash and 20KB RAM resources, which is used to complete data reading, network management and monitoring strategies; A communication interface circuit, including at least three USART serial port circuits, which are respectively used to exchange data with the environmental data acquisition module, the control execution module and the communication module; Calendar clock module, which communicates with the microcontroller unit through the IIC bus, model PCF8563, is used to record the current time and provide time calibration function; The storage circuit uses an AT24C1024 storage chip with a storage capacity of 128KB, communicates with the microcontroller unit through the IIC bus, and is used to store basic parameters, sensor configuration information, and control strategy configuration parameters.
4. The intelligent electric control system for rolling curtains in a cowshed according to claim 1 is characterized in that: The control execution module includes: The relay output circuit includes 3 relay outputs, which use transistor 8050 to drive strong current from weak current. The microcontroller unit drives the relay coil to get power through the change of GPIO output, thus realizing the on / off control of the roller shutter machine rising and falling and the sound and light alarm. The digital input circuit includes 6 digital inputs, 4 of which are used to determine the positions of the two three-speed knobs, and the other 2 are used to detect the upper and lower limits of the rolling shutter motor movement; The current detection circuit uses the ACS712ELCTR-05B-T chip to convert the circuit signal into a voltage signal, which is then processed by the operational amplifier and enters the microcontroller unit for ADC conversion. It is used to detect the current of the roller shutter machine and provide a protection mechanism. When the current increases abnormally, the power supply is cut off and an alarm is sent.
5. According to claim 1, the intelligent electric control system for rolling curtains in a cowshed is characterized by: The communication module adopts a plug-in design, and different communication modules can be flexibly selected according to on-site communication requirements, and data interaction is performed with the microcontroller unit through the serial port.
6. The intelligent electric control system for rolling curtains in a cowshed according to claim 1, characterized in that: The system also includes a user interaction interface for users to input configuration parameters and view real-time data.
7. A control method for a cowshed rolling curtain intelligent electric control system, applied to the cowshed rolling curtain intelligent electric control system according to any one of claims 1 to 6, characterized in that: The following steps are involved: Step 1: Initialize the system, including serial port initialization, communication module initialization, memory initialization, calendar clock initialization, control execution module initialization and digital input circuit initialization; Step 2: Check the network to determine whether the 4G communication module is connected normally, whether the IP address is obtained, and whether a TCP connection is established with the remote server; Step 3: Enter the main loop and periodically perform the following operations: detect the digital input state to adjust the roller shutter control state machine; use ADC to detect the current size and determine abnormalities; Determine the state of the roller shutter machine according to the relay state and calculate the current opening; Print real-time status information; monitor 4G communication status and handle disconnection and reconnection; read sensor data and manage the received data message queue; And manage the roller shutter state machine, flexibly switch the working state according to the control knob settings and real-time sensor data.
8. The control method of the cowshed rolling curtain intelligent electric control system according to claim 7 is characterized in that: The main loop also includes a step of dynamically adjusting the monitoring strategy according to the configuration parameters input by the user through the user interaction interface.
9. The control method of the cowshed rolling curtain intelligent electric control system according to claim 7 is characterized in that: The method also includes the step of performing a fault self-check on the system software and hardware to ensure the stable operation of the system.