Automatic feeding system and control method for pig farm

By designing a pig farm automatic feeding system including power supply module, parameter setting module, feed discharge detection module, motor control module and controller, the problem that the existing technology cannot meet the pig feeding needs of different growth stages is solved, and the problem of the existing technology being unable to meet the pig feeding needs at different growth stages is realized. The feed volume is dynamically adjusted during the growth stage, which improves the growth and health of pigs.

CN117784644BActive Publication Date: 2025-02-18SHENZHEN HUAYIFENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311816832.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-02-18
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

The existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages, resulting in insufficient intake of required nutrients or excessive intake of pigs at certain stages, which in turn affects growth and health and leads to waste of feed resources.

Method used

An automatic feeding system for pig farms is designed, including power supply module, parameter setting module, discharge detection module, motor control module and controller. The low-level maintenance time of the Hall switch enters the sensitivity setting state or the discharge time setting state. The discharge detection module detects the discharge state of the material barrel and transmits the signal to the controller. The discharge time setting state can be set by the user. Enter the feeding time to meet the feeding needs of pigs at different growth stages.

Benefits of technology

The feed volume of feed is dynamically adjusted according to the needs of pigs at different growth stages, avoiding the problem of insufficient or excessive feed intake, improving the pig's growth and health status, and saving feed resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117784644B_ABST
    Figure CN117784644B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of animal husbandry, and in particular to an automatic feeding system and control method for a pig farm, wherein the parameter setting module comprises: a Hall switch, a delay detection unit and a feeding time input unit; wherein the Hall switch is used as a switch of the parameter setting module and is connected to a controller, and the Hall switch is used to select the controller to enter a sensitivity setting state and a feeding time setting state; the delay detection unit is used to detect the low level maintenance time of the Hall switch, and the controller enters a sensitivity setting state or a feeding time setting state according to the level state output by the Hall switch and the low level maintenance time; the feeding time input unit is used to input a feeding time parameter in the feeding time setting state, and the controller controls the feeding time of the motor control module according to the feeding time parameter. The problem that the existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of animal husbandry, and in particular to an automatic feeding system and control method for a pig farm. Background Art

[0002] At present, the automated pig farm system is composed of a feed tower, a feed conveyor line, a power system, a control system, etc. When the start button is pressed, the motor drives the feed conveyor line to run in the pipeline. The feed conveyor line goes around the top of each trough inside the pen, and finally returns to the feed tower. A feed discharge port is opened in the pipeline above each trough. The feed conveyor line drives the feed in the feed tower to run in the pipeline to the position of the feed discharge port, and the feed will flow down to the trough along the feed bucket. The application of automated pig farming equipment not only saves a lot of labor, but also allows the pigs in the entire pen to eat at the same time.

[0003] The existing automated pig farm system achieves uniform distribution of feed throughout the pig farm. However, each pig grows at different stages. If pigs at different growth stages are fed the same amount of feed, some pigs may not get enough nutrients, or other pigs may get too much, which may lead to poor growth or obesity. Excessive or insufficient feed intake will not only affect the growth and health of pigs, but also lead to waste of feed resources, increase feed costs and may affect the environment. This situation needs to be improved. Summary of the invention

[0004] In order to solve the problem that the existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages, the present application provides an automatic feeding system and control method for a pig farm, which adopts the following technical solutions:

[0005] In a first aspect, the present application provides an automatic feeding system for a pig farm, comprising:

[0006] A power supply module, a parameter setting module, a material discharge detection module, a motor control module and a controller; the parameter setting module, the material discharge detection module and the motor control module are all connected to the controller;

[0007] The power supply module is used to supply power to the parameter setting module, the material discharge detection module, the motor control module and the controller;

[0008] The material discharge detection module is used to detect the material discharge state of the material barrel and send the signal of the material discharge state to the controller, and the material discharge state includes: a material discharge state and a material discharge stop state;

[0009] The motor control module is used to control the direction of the motor according to the control signal of the controller, so as to realize the control of discharging materials in the barrel and stopping the discharging of materials;

[0010] The parameter setting module is used to set the detection sensitivity of the discharge detection module and the discharge time of the motor control module, and the parameter setting module includes: a Hall switch, a delay detection unit and a discharge time input unit; wherein the Hall switch serves as a switch of the parameter setting module and is connected to the controller, and the Hall switch is used to select the controller to enter the sensitivity setting state and the discharge time setting state; the delay detection unit is used to detect the low level maintenance time of the Hall switch, and the controller enters the sensitivity setting state or the discharge time setting state according to the level state and the low level maintenance time of the Hall switch output; the discharge time input unit is used to input the discharge time parameter in the discharge time setting state, and the controller controls the discharge time of the motor control module according to the discharge time parameter.

[0011] By adopting the above technical solution, the low level maintenance time of the Hall switch is detected by the delay detection unit, and the controller enters the sensitivity setting state or the discharge time setting state according to the low level maintenance time of the Hall switch and the level state of the Hall switch output. When the controller enters the sensitivity setting state, the control signal of the controller controls the direction of the motor to realize the discharge control in the barrel and stop the discharge control, and the discharge detection module detects the discharge state and transmits the signal of the state to the controller; when the controller enters the discharge time setting state, the discharge time input unit inputs the discharge time parameter, and the controller controls the discharge time according to the discharge time parameter. The discharging time of the brake motor control module, the solution in the present application enters the sensitivity setting state or the discharging time setting state by maintaining the low level of the Hall switch for a certain period of time. In the sensitivity setting state, the discharging detection module detects the discharging state of the bucket and transmits the signal of this state to the controller, so that the controller can subsequently identify the discharging state of the bucket according to the signal of this state. Then, in the discharging time setting state, the user can enter the discharging time so that the amount of material discharged from the bucket within the discharging time can meet the feeding needs of pigs at this growth stage, so as to solve the problem that the existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages.

[0012] Optionally, the discharge detection module includes a capacitive proximity sensor, a capacitive voltage detection circuit, an amplifier and a sampling and shaping circuit, the output end of the capacitive proximity sensor is connected to the input end of the capacitive voltage detection circuit, the output end of the capacitive voltage detection circuit is connected to the input end of the amplifier, the output end of the amplifier is connected to the input end of the sampling and shaping circuit, and the output end of the sampling and shaping circuit is connected to the controller.

[0013] By adopting the above technical solution, the capacitive proximity sensor is used to detect the discharging state of the barrel. When the barrel is in the discharging state or in the stopped discharging state, the capacitance value of the capacitive proximity sensor will change. The capacitive voltage detection circuit is used to measure the voltage signal corresponding to the capacitance value of the capacitive proximity sensor. The amplifier is used to amplify the voltage signal output by the capacitive voltage detection circuit. The output of the amplifier will be passed to the sampling and shaping circuit. The sampling and shaping circuit is responsible for sampling the output voltage of the amplifier and transmitting the sampled data to the controller.

[0014] Optionally, the material discharge detection module further includes a temperature sensor, which is used to detect the ambient temperature and send it to the controller, and the controller performs temperature compensation on the material discharge status information of the material discharge detection module according to the ambient temperature and a temperature drift compensation function.

[0015] By adopting the above technical solution, in order to ensure that the status information provided by the discharge detection module is still accurate and reliable under different ambient temperatures, by using the temperature drift compensation function, the controller can dynamically adjust and correct the output of the discharge detection module according to the ambient temperature, thereby maintaining the stability of the system performance.

[0016] Optionally, the capacitor voltage detection circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, a first transistor, a second transistor, a first capacitor and a second capacitor; the first resistor is connected in parallel with the capacitive proximity sensor, the first end of the first resistor is connected to the base of the first transistor, the emitter of the first transistor is grounded through the second resistor, the base of the second transistor is respectively connected to the collector of the first transistor and the first end of the third resistor, the second end of the third resistor is connected to the collector of the second transistor, and the The second end of the first resistor is respectively connected to the emitter of the second transistor and the fourth resistor, the fourth resistor is connected to the fifth resistor in parallel, the fourth resistor is connected to the first capacitor through the sixth resistor, the emitter of the first transistor is connected to the first capacitor through the second capacitor, the first end of the seventh resistor is respectively connected to the first capacitor and the second capacitor, the second end of the seventh resistor is respectively connected to the first end of the eighth resistor and the first end of the ninth resistor, the second end of the eighth resistor and the second end of the ninth resistor are grounded, and the second capacitor is connected to the input end of the amplifier through the tenth resistor.

[0017] By adopting the above technical solution, the capacitor voltage detection circuit is composed of a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, a first transistor, a second transistor, a first capacitor and a second capacitor. The input end of the capacitor voltage detection circuit detects a voltage signal corresponding to the capacitance value of the capacitor proximity sensor, and the output end of the capacitor voltage detection circuit transmits the voltage signal to the amplifier.

[0018] Optionally, the sampling and shaping circuit includes a third capacitor, a fourth capacitor, an eleventh resistor, a twelfth resistor, a first diode and a second diode, the first end of the third capacitor is connected to the output end of the amplifier, the second end of the third capacitor is respectively connected to the input end of the first diode and the output end of the second diode, the first end of the eleventh resistor is connected to the output end of the first diode, the second end of the eleventh resistor is respectively connected to the input end of the second diode and the ground wire, the second end of the third capacitor is connected to the controller through the twelfth resistor, the first end of the fourth capacitor is respectively connected to the twelfth resistor and the controller, and the second end of the fourth capacitor is grounded.

[0019] By adopting the above technical solution, the third capacitor plays a role of AC-DC isolation, the first diode, the second diode and the eleventh resistor play a role of unidirectional rectification, and the twelfth resistor and the fourth capacitor play a role of sampling.

[0020] Optionally, the processing chip of the power module is a WD5208 chip.

[0021] By adopting the above technical solution, the power module processing chip adopts the WD5208 chip, which integrates complete protection functions with self-recovery functions, such as undervoltage protection, overvoltage protection, overheating protection and overload protection.

[0022] In a second aspect, the present application provides a method for controlling automatic feeding in a pig farm, which is applied to the automatic feeding system in a pig farm as described in the first aspect, and the method comprises:

[0023] When an external interrupt signal is detected, it is determined whether a first duration of the low-level signal sent by the Hall switch is greater than a first preset threshold;

[0024] If the first duration is greater than a first preset threshold, the controller enters a sensitivity setting state;

[0025] If the first duration is less than the first preset threshold, determining whether the first duration is greater than a second preset threshold;

[0026] If the first duration is greater than the second preset threshold, the controller enters the discharge duration setting state.

[0027] By adopting the above technical solution, after detecting the external interrupt signal, it is first determined whether the first duration of the low-level signal sent by the Hall switch is greater than the first preset threshold value. When the first duration is greater than the first preset threshold value, the controller enters the sensitivity setting state and sets the discharging state of the bucket. When the second duration is less than the first preset threshold value and greater than the second preset threshold value, the controller enters the discharging time setting state. The user can input the corresponding discharging time as required. The buckets at different positions are differentiated by the discharging time, and the feed amount of pigs at different growth stages is controlled to solve the problem that the existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages.

[0028] Optionally, if the first duration is greater than a first preset threshold, after the controller enters a sensitivity setting state, the method further includes:

[0029] Acquire M voltage data of the capacitive proximity sensor, wherein M is an integer greater than or equal to 10;

[0030] Determine average voltage data according to the M voltage data;

[0031] Determining whether the average voltage data is greater than a third preset threshold;

[0032] When the average voltage data is greater than the third preset threshold, the material barrel is in a discharging state;

[0033] When the average voltage data is smaller than the difference between the third preset threshold and the hysteresis, the material barrel is in a state of stopping discharging materials.

[0034] By adopting the above technical solution, after the controller enters the sensitivity setting state, it first obtains M voltage data of the capacitive proximity sensor, and averages the M voltage data to obtain average voltage data, and then identifies the discharging state of the barrel by judging whether the average voltage data is greater than the third preset threshold value. Specifically, when the average voltage data is greater than the third preset threshold value, the barrel is in the discharging state, and when the average voltage data is less than the difference between the third preset threshold value and the differential, the barrel is in the stopped discharging state.

[0035] Optionally, if the first duration is greater than the second preset threshold, after the controller enters the discharge duration setting state, the method further includes:

[0036] Determine whether the discharge time setting signal is received within the preset time;

[0037] If the discharge time setting signal is not received within the preset time, the controller exits the discharge time setting state.

[0038] By adopting the above technical solution, after the controller enters the discharge time setting state, it determines whether the discharge time setting information is received within a preset period, for example, it determines whether the discharge time setting signal is received within 10 seconds. When the discharge time setting signal is not received within 10 seconds, the controller exits the discharge time setting state.

[0039] In summary, the present application includes at least one of the following beneficial technical effects:

[0040] 1. Enter the sensitivity setting state or the discharge time setting state through the low level maintenance time of the Hall switch. In the sensitivity setting state, the discharge detection module detects the discharge state of the barrel and transmits the signal of the state to the controller, so that the controller can subsequently identify the discharge state of the barrel according to the signal of the state. Then, in the discharge time setting state, the user can enter the discharge time so that the amount of material discharged from the barrel within the discharge time can meet the feeding needs of pigs at this growth stage, so as to solve the problem that the existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages;

[0041] 2. In order to ensure that the status information provided by the discharge detection module is still accurate and reliable under different ambient temperatures, by using the temperature drift compensation function, the controller can dynamically adjust and correct the output of the discharge detection module according to the ambient temperature, thereby maintaining the stability of the system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a system block diagram of an automatic feeding system for a pig farm provided in an embodiment of the present application;

[0043] Figure 2 is a circuit diagram of a power module provided in an embodiment of the present application;

[0044] Figure 3 is a system block diagram of a parameter setting module provided in an embodiment of the present application;

[0045] Figure 4 is a circuit diagram of a Hall switch and a motor control module provided in an embodiment of the present application;

[0046] Figure 5 is a system block diagram of a material discharge detection module provided in an embodiment of the present application;

[0047] Figure 6 is a circuit diagram of a material discharge detection module provided in an embodiment of the present application;

[0048] Figure 7 is a circuit diagram of a capacitor voltage detection circuit provided in an embodiment of the present application;

[0049] Figure 8 is a circuit diagram of a sampling and shaping circuit provided in an embodiment of the present application;

[0050] Fig. 9 It is a flow chart of the automatic feeding control method for a pig farm provided in an embodiment of the present application.

[0051] Description of reference numerals:

[0052] 1. Power module; 2. Parameter setting module; 3. Discharge detection module; 4. Motor control module; 5. Controller; 6. Hall switch; 7. Delay detection unit; 8. Discharge time input unit; 9. Capacitor proximity sensor; 10. Capacitor voltage detection circuit; 11. Amplifier; 12. Sampling and shaping circuit; 13. Temperature sensor. DETAILED DESCRIPTION

[0053] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

[0054] The "connection" in the present invention includes both direct connection and indirect connection, such as connection through some active devices, passive devices or electrically conductive media; it may also include connection through other active devices or passive devices on the basis of achieving the same or similar functional purposes as known to those skilled in the art, such as connection through circuits or components such as switches and follower circuits.

[0055] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the invention belongs.

[0056] The embodiment of the present application discloses an automatic feeding system for a pig farm.

[0057] Reference Figure 1 , Figure 1 The system block diagram of a pig farm automatic feeding system provided in an embodiment of the present application includes a power supply module 1, a parameter setting module 2, a feeding detection module 3, a motor control module 4 and a controller 5. The power supply module 1 is used to supply power to the parameter setting module 2, the feeding detection module 3, the motor control module 4 and the controller 5. The parameter setting module 2, the feeding detection module 3, the motor control module 4 and the power supply module 1 are all connected to the controller 5. It should be noted that the processing chip of the power supply module 1 is a WD5208 chip, such as Figure 2 As shown, Figure 2 A circuit diagram of a power module provided in an embodiment of the present application.

[0058] In order to ensure that the pigs can obtain the amount of feed suitable for the growth stage and realize effective feeding management, first, the detection sensitivity of the discharge detection module 3 and the discharge time of the motor control module 4 are set through the parameter setting module 2. Secondly, when setting the detection sensitivity of the discharge detection module 3, the discharge detection module 3 detects the discharge state of the bucket and sends the signal of the discharge state to the controller 5, so that the controller 5 can judge the discharge state of the bucket through the signal of the discharge state. It should be noted that the discharge state includes the discharge state and the stop discharge state. Next, the discharge time of the motor control module 4 is set. Since the motor control module 4 controls the motor direction according to the control signal of the controller 5, the discharge control in the bucket and the stop discharge control are realized. For example, the forward rotation of the motor indicates discharge, and the reverse rotation of the motor is in the stop discharge. The discharge process is started, stopped or changed by the forward and reverse rotation of the motor, so the duration of the forward rotation of the motor can be controlled, thereby controlling the discharge time of the bucket.

[0059] Reference Figure 3 and Figure 4 , Figure 3 A system block diagram of a parameter setting module provided in an embodiment of the present application, Figure 4 A circuit diagram of a Hall switch and a motor control module provided in an embodiment of the present application, wherein the parameter setting module 2 includes: a Hall switch 6, a delay detection unit 7, and a discharge time input unit 8. The Hall switch 6, the delay detection unit 7, and the discharge time input unit 8 are all connected to the controller 5. The Hall switch 6 serves as a switch of the parameter setting module 2, and the Hall switch 6 is used to select the controller 5 to enter the sensitivity setting state and the discharge time setting state. The delay detection unit 7 is used to detect the low level maintenance time of the Hall switch 6, and the controller 5 enters the sensitivity setting state or the discharge time setting state according to the level state output by the Hall switch 6 and the low level maintenance time. The discharge time input unit 8 is used to input the discharge time parameter in the discharge time setting state, and the controller 5 controls the discharge time of the motor control module 4 according to the discharge time parameter.

[0060] Specifically, the sensitivity setting state or the discharge time setting state is entered by the low level maintenance time of the Hall switch 6. The delay detection unit 7 detects the low level maintenance time of the Hall switch 6. When the low level maintenance time of the Hall switch 6 meets the sensitivity setting state, the discharge detection module 3 detects the discharge state of the bucket and transmits the signal of the state to the controller 5, so that the controller 5 can subsequently identify the discharge state of the bucket according to the signal of the state. When the low level maintenance time of the Hall switch 6 meets the discharge time setting state, the user can input the discharge time to the controller 5 so that the amount of material discharged from the bucket during the discharge time can meet the feeding of pigs at this growth stage.

[0061] It is worth noting that because the environment of pig farms is usually humid, dusty and may contain corrosive gases, traditional exposed circuit devices may be easily damaged or affect their normal functions. The packaging design of the Hall switch 6 allows it to be directly filled with glue and sealed, so that the internal components of the sensor are not exposed to the external environment, effectively preventing the impact of conditions such as humidity on it. This special packaging design can improve the durability and stability of the sensor and ensure its reliable operation in harsh environments. Therefore, by adopting the Hall switch 6 and utilizing its direct glue filling and sealing design, the impact that environmental problems such as humidity in pig farms may have on sensor equipment can be effectively solved.

[0062] Reference Figure 5 and Figure 6 , Figure 5 This is a system block diagram of the material discharge detection module provided in the embodiment of the present application. Figure 6 The circuit diagram of the discharge detection module provided in the embodiment of the present application, wherein the discharge detection module 3 includes a capacitive proximity sensor 9, a capacitive voltage detection circuit 10, an amplifier 11, a sampling and shaping circuit 12 and a temperature sensor 13. The temperature sensor 13 is connected to the controller 5, and the temperature sensor 13 detects the ambient temperature and sends it to the controller 5. The output end of the capacitive proximity sensor 9 is connected to the input end of the capacitive voltage detection circuit 10, and the output end of the capacitive voltage detection circuit 10 is connected to the input end of the amplifier 11; the capacitive proximity sensor 9 is used to detect the discharge state of the barrel, when the barrel is in the discharge state or in the stop discharge state, the capacitance value of the capacitive proximity sensor 9 will change, and the capacitive voltage detection circuit 10 is used to measure the voltage signal corresponding to the capacitance value of the capacitive proximity sensor 9.

[0063] The output end of the amplifier 11 is connected to the input end of the sampling and shaping circuit 12. The amplifier 11 is used to amplify the voltage signal output by the capacitor voltage detection circuit 10. The output of the amplifier 11 will be transmitted to the sampling and shaping circuit 12. The output end of the sampling and shaping circuit 12 is connected to the controller 5. The sampling and shaping circuit 12 is responsible for sampling the output voltage of the amplifier 11 and transmitting the sampled data to the controller 5.

[0064] In order to ensure that the status information provided by the material discharge detection module 3 is still accurate and reliable under different ambient temperatures, the ambient temperature is detected by the temperature sensor 13 and sent to the controller 5. The controller 5 performs temperature compensation on the material discharge status information of the material discharge detection module 3 according to the ambient temperature and the temperature drift compensation function. By using the temperature drift compensation function, the controller 5 can dynamically adjust and correct the output of the material discharge detection module 3 according to the ambient temperature, thereby maintaining the stability of the system performance.

[0065] Reference Figure 7 , Figure 7The circuit diagram of the capacitor voltage detection circuit provided in the embodiment of the present application, the capacitor voltage detection circuit 10 includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, a first transistor Q1, a second transistor Q2, a first capacitor C1 and a second capacitor C2.

[0066] Specifically, Figure 7 The first resistor R1 is connected in parallel with the capacitive proximity sensor 9, the first end of the first resistor R1 is connected to the base of the first transistor Q1, the emitter of the first transistor Q1 is grounded through the second resistor R2, the base of the second transistor Q2 is connected to the collector of the first transistor Q1 and the first end of the third resistor R3, the second end of the third resistor R3 is connected to the collector of the second transistor Q2, the second end of the first resistor R1 is connected to the emitter of the second transistor Q2 and the fourth resistor R4, and the fourth resistor R4 is connected in parallel with the fifth resistor R5 , the fourth resistor R4 is connected to the first capacitor C1 through the sixth resistor R6, the emitter of the first transistor Q1 is connected to the first capacitor C1 through the second capacitor C2, the first end of the seventh resistor R7 is respectively connected to the first capacitor C1 and the second capacitor C2, the second end of the seventh resistor R7 is respectively connected to the first end of the eighth resistor R8 and the first end of the ninth resistor R9, the second end of the eighth resistor R8 and the second end of the ninth resistor R9 are grounded, and the second capacitor C2 is connected to the input end of the amplifier 11 through the tenth resistor R10.

[0067] Reference Figure 8 , Figure 8The circuit diagram of the sampling and shaping circuit provided in the embodiment of the present application, the sampling and shaping circuit 12 includes a third capacitor C3, a fourth capacitor C4, an eleventh resistor R11, a twelfth resistor R12, a first diode D1 and a second diode D2, the first end of the third capacitor C3 is connected to the output end of the amplifier 11, the second end of the third capacitor C3 is respectively connected to the input end of the first diode D1 and the output end of the second diode D2, the first end of the eleventh resistor R11 is connected to the output end of the first diode D1, the second end of the eleventh resistor R11 is respectively connected to the input end of the second diode D2 and the ground line, the second end of the third capacitor C3 is connected to the controller 5 through the twelfth resistor R12, the first end of the fourth capacitor C4 is respectively connected to the twelfth resistor R12 and the controller 5, and the second end of the fourth capacitor C4 is grounded. The third capacitor C3, the first diode D1, the second diode D2 and the eleventh resistor R11 play a unidirectional rectification role; the twelfth resistor R12 and the fourth capacitor C4 play a sampling role. It should be noted that the sampling circuit generates an oscillation signal through the charging and discharging process of the fourth capacitor C4, and then connects it to the analog-to-digital converter (ADC) of the microcontroller for sampling through a low-pass filtering method.

[0068] The above is an explanation of the embodiment of the present application from the perspective of the automatic feeding system of the pig farm. The following is an explanation of the embodiment of the present application from the perspective of the automatic feeding control method of the pig farm. Fig. 9 , Fig. 9 The present invention provides a flow chart of a method for automatically feeding pigs in a pig farm, which comprises the following steps:

[0069] S10, when an external interrupt signal is detected, determining whether a first duration of a low-level signal sent by the Hall switch is greater than a first preset threshold;

[0070] Among them, when an external interrupt signal is detected, that is, when the user presses the Hall switch, Figure 4 As shown, the seventh pin of the controller is connected to the Hall switch, the Hall switch continuously outputs a low level, the seventh pin of the controller inputs a low level, and the low level maintenance time is calculated. Then, by judging whether the first duration of the low level signal sent by the Hall switch (i.e., the low level maintenance time) is greater than the first preset threshold, it is determined whether the controller enters the sensitivity setting state or the controller enters the discharge time setting state.

[0071] S20: If the first duration is greater than a first preset threshold, the controller enters a sensitivity setting state;

[0072] For example, when the first preset threshold is 3 seconds, when the low level maintenance time (ie, the first duration) is greater than or equal to 3 seconds, the controller enters the discharge time setting state.

[0073] S30, if the first duration is less than the first preset threshold, determining whether the first duration is greater than the second preset threshold;

[0074] Among them, for example, when the first preset threshold is 3 seconds, when the low level maintenance time (that is, the first duration) is less than or equal to 3 seconds, by judging whether the first duration is greater than the second preset threshold, it is judged whether the controller enters the discharge time setting state, thereby reducing the probability of triggering the Hall switch due to accidental touch.

[0075] S40: If the first duration is greater than the second preset threshold, the controller enters the discharge duration setting state.

[0076] Among them, for example, when the first preset threshold is 3 seconds, the second preset threshold is 1 second, the first duration is greater than 1 second and less than 3 seconds, that is, the first duration is greater than the second preset threshold and less than the first duration is greater than 1 second and less than 3 seconds, then it is determined that the controller enters the discharge time setting state.

[0077] Specifically, assuming that the first preset threshold is 3 seconds and the second preset threshold is 1 second, an external interrupt signal is detected, the interrupt program is entered, the interrupt is turned off, and it is determined whether the first duration is greater than 3 seconds. When the first duration is greater than 3 seconds, the controller enters the sensitivity setting state, sets the discharge state of the bucket, and records the state signal matching the discharge state. When the second duration is less than 3 seconds and greater than the 1 second, the controller enters the discharge duration setting state. The user can input the corresponding discharge duration as required. For example, for example, 10 seconds of discharge is selected. When discharging, the corresponding pig bucket can receive 10 seconds of feed. The discharge duration set for the bucket corresponding to the pig at different growth stages should be different. The feed amount of pigs at different growth stages is controlled to solve the problem that the existing automated pig farm system cannot meet the feeding needs of pigs at different growth stages.

[0078] In one embodiment, step S20 includes:

[0079] Acquire M voltage data of the capacitive proximity sensor, where M is an integer greater than or equal to 10;

[0080] Determine average voltage data according to the M voltage data;

[0081] Determining whether the average voltage data is greater than a third preset threshold;

[0082] When the average voltage data is greater than the third preset threshold, the barrel is in a discharging state;

[0083] When the average voltage data is smaller than the difference between the third preset threshold and the hysteresis, the material barrel is in a state of stopping discharging materials.

[0084] In this embodiment, after the controller enters the sensitivity setting state, the controller reads the voltage value of the capacitive proximity sensor M times through the A / D port to obtain M voltage data, and averages the M voltage data to obtain average voltage data. Then, the discharging state of the barrel is identified by judging whether the average voltage data is greater than the third preset threshold. Specifically, when the average voltage data is greater than the third preset threshold, the barrel is in the discharging state. When the average voltage data is less than the difference between the third preset threshold and the hysteresis, the barrel is in the stopped discharging state. The third preset threshold is a value set based on historical data. The discharging state of the barrel is judged by comparing the average voltage data with the third preset threshold. It is worth noting that the discharging state includes the discharging state and the stopped discharging state.

[0085] In one embodiment, step S40 includes:

[0086] Determine whether the discharge time setting signal is received within the preset time;

[0087] If the discharge time setting signal is not received within the preset time, the controller exits the discharge time setting state.

[0088] In this embodiment, after the controller enters the discharge time setting state, it determines whether the discharge time setting information is received within a preset period, for example, it determines whether the discharge time setting signal is received within 10 seconds. When the discharge time setting signal is not received within 10 seconds, the controller exits the discharge time setting state.

[0089] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. An automatic feeding system for a pig farm, characterized in that: include: A power supply module (1), a parameter setting module (2), a material discharge detection module (3), a motor control module (4) and a controller (5); the parameter setting module (2), the material discharge detection module (3) and the motor control module (4) are all connected to the controller (5); The power supply module (1) is used to supply power to the parameter setting module (2), the material discharge detection module (3), the motor control module (4) and the controller (5); The material discharge detection module (3) is used to detect the material discharge state of the material barrel and send a signal of the material discharge state to the controller (5), wherein the material discharge state includes: a material discharge state and a material discharge stop state; The motor control module (4) is used to control the direction of the motor according to the control signal of the controller (5) to realize the control of discharging materials in the barrel and stopping the discharging of materials; The parameter setting module (2) is used to set the detection sensitivity of the material discharge detection module (3) and the material discharge time of the motor control module (4), and the parameter setting module (2) comprises: a Hall switch (6), a delay detection unit (7) and a material discharge time input unit (8); wherein the Hall switch (6) serves as a switch of the parameter setting module (2) and is connected to the controller (5), and the Hall switch (6) is used to select the controller (5) to enter a sensitivity setting state and a material discharge time setting state; the delay detection unit (7) is used to detect the low level maintenance time of the Hall switch (6), and the controller (5) enters a sensitivity setting state or a material discharge time setting state according to the level state output by the Hall switch (6) and the low level maintenance time; the material discharge time input unit (8) is used to input a material discharge time parameter in the material discharge time setting state, and the controller (5) controls the material discharge time of the motor control module (4) according to the material discharge time parameter.

2. The automatic feeding system for pig farms according to claim 1, characterized in that: The material discharge detection module (3) comprises a capacitive proximity sensor (9), a capacitive voltage detection circuit (10), an amplifier (11) and a sampling and shaping circuit (12); the output end of the capacitive proximity sensor (9) is connected to the input end of the capacitive voltage detection circuit (10); the output end of the capacitive voltage detection circuit (10) is connected to the input end of the amplifier (11); the output end of the amplifier (11) is connected to the input end of the sampling and shaping circuit (12); and the output end of the sampling and shaping circuit (12) is connected to the controller (5).

3. The automatic feeding system for pig farms according to claim 1, characterized in that: The material discharge detection module (3) further comprises a temperature sensor (13), wherein the temperature sensor (13) is used to detect the ambient temperature and send the temperature to the controller (5), and the controller (5) performs temperature compensation on the material discharge state information of the material discharge detection module (3) according to the ambient temperature and a temperature drift compensation function.

4. The automatic feeding system for pig farms according to claim 2, characterized in that: The capacitor voltage detection circuit (10) comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, a first triode, a second triode, a first capacitor and a second capacitor; the first resistor is connected in parallel with the capacitor proximity sensor (9); the first end of the first resistor is connected to the base of the first triode; the emitter of the first triode is grounded through the second resistor; the base of the second triode is respectively connected to the collector of the first triode and the first end of the third resistor; the second end of the third resistor is connected to the collector of the second triode; the The second end of a resistor is respectively connected to the emitter of the second transistor and the fourth resistor, the fourth resistor is connected in parallel with the fifth resistor, the fourth resistor is connected to the first capacitor through the sixth resistor, the emitter of the first transistor is connected to the first capacitor through the second capacitor, the first end of the seventh resistor is respectively connected to the first capacitor and the second capacitor, the second end of the seventh resistor is respectively connected to the first end of the eighth resistor and the first end of the ninth resistor, the second end of the eighth resistor and the second end of the ninth resistor are grounded, and the second capacitor is connected to the input end of the amplifier (11) through the tenth resistor.

5. The automatic feeding system for pig farms according to claim 2, characterized in that: The sampling and shaping circuit (12) comprises a third capacitor, a fourth capacitor, an eleventh resistor, a twelfth resistor, a first diode and a second diode, wherein the first end of the third capacitor is connected to the output end of the amplifier (11), the second end of the third capacitor is respectively connected to the input end of the first diode and the output end of the second diode, the first end of the eleventh resistor is connected to the output end of the first diode, the second end of the eleventh resistor is respectively connected to the input end of the second diode and a ground line, the second end of the third capacitor is connected to the controller (5) via the twelfth resistor, the first end of the fourth capacitor is respectively connected to the twelfth resistor and the controller (5), and the second end of the fourth capacitor is grounded.

6. The automatic feeding system for pig farms according to claim 1, characterized in that: The processing chip of the power module (1) is a WD5208 chip.

7. A method for controlling automatic feeding in a pig farm, characterized in that: Applied to the automatic feeding system for pig farms according to any one of claims 1 to 6, the method comprises: When an external interrupt signal is detected, it is determined whether a first duration of the low-level signal sent by the Hall switch is greater than a first preset threshold; If the first duration is greater than a first preset threshold, the controller enters a sensitivity setting state; If the first duration is less than the first preset threshold, determining whether the first duration is greater than a second preset threshold; If the first duration is greater than the second preset threshold, the controller enters the discharge duration setting state.

8. The automatic feeding control method for a pig farm according to claim 7, characterized in that: If the first duration is greater than a first preset threshold, the controller enters a sensitivity setting state, and the method further includes: Acquire M voltage data of the capacitive proximity sensor, wherein M is an integer greater than or equal to 10; Determine average voltage data according to the M voltage data; Determining whether the average voltage data is greater than a third preset threshold; When the average voltage data is greater than the third preset threshold, the material barrel is in a discharging state; When the average voltage data is smaller than the difference between the third preset threshold and the hysteresis, the material barrel is in a state of stopping discharging materials.

9. The automatic feeding control method for a pig farm according to claim 7, characterized in that: If the first duration is greater than the second preset threshold, the controller enters the discharge duration setting state, and the method further includes: Determine whether the discharge time setting signal is received within the preset time; If the discharge time setting signal is not received within the preset time, the controller exits the discharge time setting state.

Citation Information

Patent Citations

  • Intelligent feeding system for gestating sows

    CN204047523U

  • Intelligent water and feed discharging device of sow feeder

    CN214546456U