A triggering device for free-feeding pigs based on magnetic induction and proximity switch

CN224698489UActive Publication Date: 2026-09-01YUZHOU HUADIAN RUITIAN ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522053025.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-09-24
Publication Date
2026-09-01
Estimated Expiration
2035-09-24

AI Technical Summary

Technical Problem

[0002]在现代规模化养猪场中,传统人工饲喂模式存在饲料浪费严重、猪只采食行为无法精准监测、养殖效率低下等问题

Benefits of technology

[0012]与现有技术相比,本实用新型具有以下有益效果:本装置通过多模块协同设计实现猪只采食行为的精准检测与智能控制,双霍尔传感器结合差分放大电路及磁屏蔽罩,提升检测灵敏度与抗干扰能力,避免误触发;电源模块集成多源供电与智能切换,确保系统持续运行并降低成本;STM32微处理器联动PWM驱动、过流检测及NB-loT通信模块,实现喂料量调整、负载监测与数据云端同步,支持远程监控与异常报警;光耦隔离器、续流二极管等保护元件增强系统可靠性,报警模块实时反馈异常,整体显著优化传统饲喂系统的稳定性与智能化水平,适用于规模化养殖场景,助力降本增效与养殖数字化升级。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224698489U_ABST
    Figure CN224698489U_ABST
Patent Text Reader

Abstract

This utility model discloses a pig free-feeding triggering device based on magnetic induction and proximity switch, comprising: an environmental monitoring module, a data processing module, a communication module, a control execution module, an alarm module, a display module, and a power supply module. The data processing module is connected to the environmental monitoring module, communication module, control execution module, alarm module, and display module, and the power supply module is also connected to these modules. This device adopts a multi-module collaborative design, using dual Hall effect sensors combined with differential amplifier circuits to improve detection sensitivity and anti-interference capability; the power supply module features intelligent switching between multiple power sources; and an STM32 microprocessor links multiple modules to achieve functions such as feeding adjustment. Protective components enhance reliability, making it suitable for large-scale farming to reduce costs and increase efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model belongs to the field of triggering device circuit technology, and relates to a triggering device for pigs to freely feed based on magnetic induction and proximity switch. Background Technology

[0002] In modern large-scale pig farms, traditional manual feeding methods suffer from serious feed waste, inaccurate monitoring of pig feeding behavior, and low breeding efficiency. Existing automatic feeding systems mostly use mechanical contacts or single sensor triggers, which are susceptible to wear and tear from pig collisions or environmental interference, leading to false triggers or equipment malfunctions. Furthermore, traditional systems lack real-time data interaction capabilities, making it difficult for farm staff to remotely monitor feeding status and equipment operation, hindering refined feeding management. In addition, the complex environment of farms and unstable power supplies mean that relying on a single power supply mode can easily cause system downtime, affecting normal pig feeding. Therefore, there is an urgent need for a highly reliable, interference-resistant, and intelligent management-enabled pig free-feeding trigger device to solve the problems of low detection accuracy, poor equipment stability, and delayed data interaction in existing technologies. Summary of the Invention

[0003] To address the problems existing in the background technology, this utility model proposes a pig free feeding triggering device based on magnetic induction and proximity switch.

[0004] To achieve the above objectives, the technical solution adopted by this utility model is as follows: a pig free feeding triggering device based on magnetic induction and proximity switch, comprising: an environmental monitoring module, a data processing module, a communication module, a control execution module, an alarm module, a display module, and a power supply module; The data processing module is connected to the environmental monitoring module, communication module, control execution module, alarm module, and display module. The power supply module is also connected to the environmental monitoring module, data processing module, communication module, control execution module, alarm module, and display module.

[0005] The data processing module includes: an STM32F103 microprocessor, capacitor C3, and resistor R4; The STM32F103 microprocessor pins are connected to the control pins of the control execution module and the control pins of the alarm module. The serial peripheral interface of the STM32F103 microprocessor is connected to the serial peripheral interface of the display module. The transmit pin of the STM32F103 microprocessor is connected to the receiver of the communication module. The receive pin of the STM32F103 microprocessor is connected to the transmitter of the communication module. The power pin of the STM32F103 microprocessor is connected to the output of the power module. The ground pin of the STM32F103 microprocessor is connected to ground. The RESET pin of the STM32F103 microprocessor is connected to one end of resistor R4 and one end of capacitor C3. The other end of resistor R4 is connected to the VDD pin of the STM32F103 microprocessor, and the other end of capacitor C3 is connected to ground.

[0006] The environmental monitoring module includes: a first Hall sensor, a second Hall sensor, resistors R1, R2, and R3, a magnetic shield, a differential amplifier, capacitors C1 and C2; The VCC pins of the first Hall sensor and the second Hall sensor are connected to the output of the power module. The GND pins of the first Hall sensor and the second Hall sensor are connected to ground. The OUT pin of the first Hall sensor is connected to one end of resistor R1 and the PA0 pin of the STM32F103 microprocessor. The other end of resistor R1 is connected to the output of the power module. The OUT pin of the second Hall sensor is connected to one end of resistor R2 and the PA1 pin of the STM32F103 microprocessor. The other end of resistor R2 is connected to the output of the power module. A magnetic shielding cover is wrapped around the back of the first Hall sensor and the second Hall sensor. The OUT pin of the first Hall sensor is connected to the IN+ pin of the differential amplifier, the OUT pin of the second Hall sensor is connected to the IN- pin of the differential amplifier, the VOUT pin of the differential amplifier is connected to one end of capacitor C1, the other end of capacitor C1 is connected to one end of resistor R3, and the other end of resistor R3 is connected to the PA2 pin of the STM32F103 microprocessor.

[0007] The control execution module includes: optocoupler isolator, PWM driver chip, overcurrent detection chip, relay, freewheeling diode D1, freewheeling diode D2, solenoid valve, motor M1, resistor R5, and resistor R6; The input of the optocoupler is connected to the PB2 pin of the STM32F103 microprocessor. The output of the optocoupler is connected to the EN pin of the PWM driver chip and one end of resistor R6. The other end of resistor R6 is connected to the output of the power supply module. The IN1 pin of the PWM driver chip is connected to the PB3 pin of the STM32F103 microprocessor, and the IN2 pin is connected to the PB4 pin. The OUT1 and OUT2 pins of the PWM driver chip are connected to... The controller of motor M1 is connected, the freewheeling diode D1 is connected in parallel across the power supply circuit of motor M1, the VCC pin of the overcurrent detection chip is connected to the output of the power module, the SCL pin of the overcurrent detection chip is connected to the PB6 pin of the STM32F103 microprocessor, the SDA pin of the overcurrent detection chip is connected to the PB7 pin of the STM32F103 microprocessor, the ground pin of the overcurrent detection chip is connected to ground, the IN+ pin of the overcurrent detection chip is connected to one end of resistor R6, and the IN- pin of the overcurrent detection chip is connected to the other end of resistor R6. The PB5 pin of the STM32F103 microprocessor is connected to one end of resistor R5, and the other end of resistor R5 is connected to the coil of the relay. The freewheeling diode D2 is connected in parallel across the coil of the relay. One end of the normally open contact of the relay is connected to the power supply pin of the solenoid valve, and the other end of the normally open contact of the relay is connected to the input power supply and one end of the solenoid valve. The other end of the solenoid valve is grounded.

[0008] The display module includes: an LCD screen, a potentiometer, and a touch control chip; The VDD pin of the LCD screen is connected to the output terminal of the power module, the VSS pin of the LCD screen is connected to ground, the VO pin of the LCD screen is connected to the slider of the potentiometer, one end of the potentiometer is connected to the output terminal of the power module, and the other end of the potentiometer is connected to ground, the SCK pin of the LCD screen is connected to the PB13 pin of the STM32F103 microprocessor, the MISO pin of the LCD screen is connected to the PB14 pin of the STM32F103 microprocessor, the MOSI pin of the LCD screen is connected to the PB15 pin of the STM32F103 microprocessor, and the CS pin of the LCD screen is connected to the PB12 pin of the STM32F103 microprocessor. The CS pin of the touch control chip is connected to the PB1 pin of the STM32F103 microprocessor; the CLK pin of the touch control chip is connected to the PA5 pin of the STM32F103 microprocessor; the DIN pin of the touch control chip is connected to the PA7 pin of the STM32F103 microprocessor; the DOUT pin of the touch control chip is connected to the PA6 pin of the STM32F103 microprocessor; the VCC pin of the touch control chip is connected to the output terminal of the power module; and the GND pin of the touch control chip is connected to ground.

[0009] The power module includes: a step-down chip, a battery, a solar charging management chip, a power status indicator, a resistor R7, capacitors C4, C5, C6, and C7, a diode D3, a solar panel, and a power path controller. The V1 pin of the power path controller is connected to an external 12V DC power supply and one end of capacitor C6. The other end of capacitor C6 is connected to ground. The V2 pin of the power path controller is connected to the positive terminal of the battery and one end of capacitor C7. The other end of capacitor C7 and the anode of diode D3 are connected to ground. The VOUT pin of the power path controller is connected to the VIN pin of the step-down chip. The cathode of diode D3 is connected to the positive terminal of the battery. The EN1 pin of the power path controller is connected to the PD8 pin of the STM32F103 microprocessor. The EN2 pin of the power path controller is connected to the PD9 pin of the STM32F103 microprocessor. The PG1 pin of the power path controller is connected to the PC10 pin of the STM32F103 microprocessor. The PG2 pin of the power path controller is connected to the PA4 pin of the STM32F103 microprocessor. The GND pin of the power path controller is connected to ground. The GND pin of the step-down chip is connected to ground. The OUT pin of the step-down chip is connected to one end of capacitor C4. The other end of capacitor C4 is connected to ground. Capacitor C5 is connected in parallel across capacitor C4. The solar panel is connected to the VIN pin of the solar charging management chip. The VOUT pin of the solar charging management chip is connected to the positive terminal of the battery. The negative terminal of the battery is grounded. The ground pin of the solar charging management chip is connected to ground. The OUT pin of the step-down chip is connected to one end of resistor R7. The other end of resistor R7 is connected to the positive terminal of the power status indicator. The negative terminal of the power status indicator is connected to ground.

[0010] The communication module includes: an NB-IoT communication module; The VCC pin of the NB-IoT communication module is connected to the output of the power supply module. The GND pin of the NB-IoT communication module is grounded. The RXD pin of the NB-IoT communication module is connected to the PA9 pin of the STM32F103 microprocessor. The TXD pin of the NB-IoT communication module is connected to the PA10 pin of the STM32F103 microprocessor. The RESET pin of the NB-IoT communication module is connected to the PD6 pin of the STM32F103 microprocessor. The EN pin of the NB-IoT communication module is connected to the PD7 pin of the STM32F103 microprocessor.

[0011] The alarm module includes: a buzzer, an LED indicator, a transistor Q1, and a resistor R8; The positive terminal of the buzzer is connected to the output terminal of the power module, the negative terminal of the buzzer is connected to the collector of transistor Q1, the base of transistor Q1 is connected to the PC5 pin of the STM32F103 microprocessor, the emitter of transistor Q1 is connected to ground, the positive terminal of the LED indicator is connected to the output terminal of the power module, the negative terminal of the LED indicator is connected to one end of resistor R8, and the other end of resistor R8 is connected to the PC6 pin of the STM32F103 microprocessor.

[0012] Compared with existing technologies, this utility model has the following advantages: This device achieves accurate detection and intelligent control of pig feeding behavior through multi-module collaborative design. The dual Hall sensor combined with differential amplifier circuit and magnetic shielding cover improves detection sensitivity and anti-interference ability, and avoids false triggering. The power module integrates multi-source power supply and intelligent switching to ensure continuous system operation and reduce costs. The STM32 microprocessor links PWM drive, overcurrent detection and NB-IoT communication module to realize feed amount adjustment, load monitoring and data cloud synchronization, and supports remote monitoring and abnormal alarm. Optical isolators, freewheeling diodes and other protection components enhance system reliability. The alarm module provides real-time feedback on abnormalities. Overall, it significantly optimizes the stability and intelligence level of traditional feeding systems, is suitable for large-scale breeding scenarios, and helps to reduce costs, increase efficiency and upgrade the digitalization of breeding. Attached Figure Description

[0013] Figure 1 This is the main block diagram of a pig free-feeding triggering device based on magnetic induction and proximity switch according to this utility model; Figure 2 This is the circuit connection diagram of the environmental monitoring module of this utility model; Figure 3 This is the circuit connection diagram of the data processing module of this utility model; Figure 4 This is the circuit connection diagram of the control execution module of this utility model; Figure 5 This is a circuit connection diagram of the display module of this utility model; Figure 6 This is the circuit connection diagram of the power module of this utility model; Figure 7 This is the circuit connection diagram of the communication module of this utility model; Figure 8 This is the circuit connection diagram of the alarm module of this utility model. Detailed Implementation

[0014] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.

[0015] like Figures 1-8 As shown, the technical solution adopted by this utility model is as follows: a pig free feeding triggering device based on magnetic induction and proximity switch, comprising: an environmental monitoring module, a data processing module, a communication module, a control execution module, an alarm module, a display module, and a power supply module.

[0016] The data processing module is connected to the environmental monitoring module, communication module, control execution module, alarm module, and display module. The power supply module is also connected to the environmental monitoring module, data processing module, communication module, control execution module, alarm module, and display module.

[0017] This device achieves accurate detection, data processing, equipment control, and remote interaction of pig feeding behavior through the collaborative work of multiple modules. The core logic is as follows: the environmental monitoring module collects magnetic field change signals when pigs approach, the data processing module analyzes the signals and generates control commands, the control execution module drives the feeding equipment to operate, the communication module uploads data to the cloud, the display module provides a local interactive interface, the alarm module triggers warnings when abnormalities occur, and the power supply module supplies power to the entire system.

[0018] The data processing module includes: an STM32F103 microprocessor, capacitor C3, and resistor R4.

[0019] The STM32F103 microprocessor pins are connected to the control pins of the control execution module and the control pins of the alarm module. The serial peripheral interface of the STM32F103 microprocessor is connected to the serial peripheral interface of the display module. The transmit pin of the STM32F103 microprocessor is connected to the receiver of the communication module. The receive pin of the STM32F103 microprocessor is connected to the transmitter of the communication module. The power pin of the STM32F103 microprocessor is connected to the output of the power module. The ground pin of the STM32F103 microprocessor is connected to ground. The RESET pin of the STM32F103 microprocessor is connected to one end of resistor R4 and one end of capacitor C3. The other end of resistor R4 is connected to the VDD pin of the STM32F103 microprocessor, and the other end of capacitor C3 is connected to ground.

[0020] The data processing module, as the core of the system, is responsible for signal processing, logic control, communication coordination, and peripheral device driving.

[0021] The STM32F103 microprocessor outputs PWM signals or level signals from its PC0-PC4 pins to the control execution module, controlling devices such as the stirring motor M1 and solenoid valves.

[0022] The PC5 pin of the STM32F103 microprocessor is connected to the alarm module to control the start and stop of the buzzer and LED indicator.

[0023] The STM32F103 microprocessor's SPI interface pins PB13-PB15 and PB12 communicate with the LCD screen of the display module to transmit display data.

[0024] The USART interface of the STM32F103 microprocessor, namely pins PA9 and PA10, connects to the NB-IoT communication module to enable remote data transmission.

[0025] When the STM32F103 microprocessor is powered on, capacitor C3 charges to keep the RESET pin at a low level, completing the reset. After charging is complete, resistor R4 pulls up to keep RESET at a high level, ensuring stable operation of the STM32F103 microprocessor.

[0026] The environmental monitoring module includes: a first Hall sensor, a second Hall sensor, resistors R1, R2, and R3, a magnetic shield, a differential amplifier, capacitors C1 and C2.

[0027] The VCC pins of the first Hall sensor and the second Hall sensor are connected to the output of the power module. The GND pins of the first Hall sensor and the second Hall sensor are connected to ground. The OUT pin of the first Hall sensor is connected to one end of resistor R1 and the PA0 pin of the STM32F103 microprocessor. The other end of resistor R1 is connected to the output of the power module. The OUT pin of the second Hall sensor is connected to one end of resistor R2 and the PA1 pin of the STM32F103 microprocessor. The other end of resistor R2 is connected to the output of the power module. A magnetic shielding cover is wrapped around the back of the first and second Hall sensors.

[0028] The OUT pin of the first Hall sensor is connected to the IN+ pin of the differential amplifier, the OUT pin of the second Hall sensor is connected to the IN- pin of the differential amplifier, the VOUT pin of the differential amplifier is connected to one end of capacitor C1, the other end of capacitor C1 is connected to one end of resistor R3, and the other end of resistor R3 is connected to the PA2 pin of the STM32F103 microprocessor.

[0029] The environmental monitoring module detects the proximity signal of the magnet worn by the pig through dual Hall sensors, and combines it with a differential amplifier circuit to suppress environmental interference and output a stable electrical signal to the data processing module.

[0030] The VCC pins of the first Hall sensor and the second Hall sensor are connected to the output of the power module to obtain the operating voltage.

[0031] The GND pins of the first Hall sensor and the second Hall sensor are grounded to provide a reference potential.

[0032] When the OUT pins of the first Hall sensor and the second Hall sensor do not detect a magnetic field, the output level is high and maintained by pull-up resistors R1 and R2. When a magnet is detected, the output level is low. These are connected to the PA0 and PA1 pins of the STM32F103 microprocessor, respectively, for single-sensor signal acquisition.

[0033] A magnetic shielding cover is placed over the back of the sensor to block background magnetic field interference, ensuring that only changes in the front magnetic field are detected.

[0034] The IN+ and IN- pins of the differential amplifier are connected to the OUT signals of the first Hall sensor and the second Hall sensor, respectively. Common-mode interference, such as environmental electromagnetic noise, is eliminated through differential calculation.

[0035] The differential amplifier outputs an amplified differential signal from its VOUT pin. After being smoothed by a filter circuit consisting of capacitor C1 and resistor R3, the signal is input to the PA2 pin of the STM32F103 microprocessor for dual-sensor signal fusion, thereby improving detection reliability.

[0036] The control execution module includes: optocoupler isolator, PWM driver chip, overcurrent detection chip, relay, freewheeling diode D1, freewheeling diode D2, solenoid valve, motor M1, resistor R5, and resistor R6.

[0037] The input of the optocoupler is connected to the PB2 pin of the STM32F103 microprocessor. The output of the optocoupler is connected to the EN pin of the PWM driver chip and one end of resistor R6. The other end of resistor R6 is connected to the output of the power module. The IN1 pin of the PWM driver chip is connected to the PB3 pin of the STM32F103 microprocessor, and the IN2 pin is connected to the PB4 pin. The OUT1 and OUT2 pins of the PWM driver chip are connected to the power module. The controller of motor M1 is connected, the freewheeling diode D1 is connected in parallel across the power supply circuit of motor M1, the VCC pin of the overcurrent detection chip is connected to the output of the power module, the SCL pin of the overcurrent detection chip is connected to the PB6 pin of the STM32F103 microprocessor, the SDA pin of the overcurrent detection chip is connected to the PB7 pin of the STM32F103 microprocessor, the ground pin of the overcurrent detection chip is connected to ground, the IN+ pin of the overcurrent detection chip is connected to one end of resistor R6, and the IN- pin of the overcurrent detection chip is connected to the other end of resistor R6.

[0038] The PB5 pin of the STM32F103 microprocessor is connected to one end of resistor R5, and the other end of resistor R5 is connected to the coil of the relay. The freewheeling diode D2 is connected in parallel across the coil of the relay. One end of the normally open contact of the relay is connected to the power supply pin of the solenoid valve, and the other end of the normally open contact of the relay is connected to the input power supply and one end of the solenoid valve. The other end of the solenoid valve is grounded.

[0039] The control and execution module drives the mechanical components to complete the feeding action according to the instructions of the STM32F103 microprocessor, and has overcurrent protection function.

[0040] The input terminal of the optocoupler is connected to the PB2 pin of the STM32F103 microprocessor. It isolates high-voltage and low-voltage circuits through optocoupler to prevent motor interference from affecting the main control chip.

[0041] The output of the optocoupler controls the enable pin (EN) of the PWM driver chip, starting the motor only when permitted.

[0042] The IN1 and IN2 pins of the PWM driver chip receive signals from the PB3 and PB4 pins of the STM32F103 microprocessor to control the direction and speed of motor M1.

[0043] Motor M1 is model RS-555SH-3246, which is equipped with a controller. Motor M1 has good speed regulation performance, and its speed and direction can be easily controlled by a PWM drive chip.

[0044] The OUT1 and OUT2 pins of the PWM driver chip are connected to the motor to drive the feeding mechanism.

[0045] The freewheeling diode D1 is connected in parallel across the motor to suppress the back electromotive force when the power is off, thus protecting the circuit.

[0046] The SCL and SDA pins of the overcurrent detection chip are connected to the PB6 and PB7 pins of the STM32F103 microprocessor to monitor the motor current in real time and trigger protection when the current exceeds the threshold.

[0047] Relays and solenoid valves: The PB5 pin of the STM32F103 microprocessor drives the relay coil through resistor R5. The normally open contact of the relay controls the power supply of the solenoid valve, realizing the opening and closing of the feed port.

[0048] The freewheeling diode D2 protects the relay coil from transient high voltage surges during power outages.

[0049] The display module includes: an LCD screen, a potentiometer, and a touch control chip.

[0050] The VDD pin of the LCD screen is connected to the output of the power module, the VSS pin of the LCD screen is connected to ground, the VO pin of the LCD screen is connected to the slider of the potentiometer, one end of the potentiometer is connected to the output of the power module, and the other end of the potentiometer is connected to ground, the SCK pin of the LCD screen is connected to the PB13 pin of the STM32F103 microprocessor, the MISO pin of the LCD screen is connected to the PB14 pin of the STM32F103 microprocessor, the MOSI pin of the LCD screen is connected to the PB15 pin of the STM32F103 microprocessor, the CS pin of the LCD screen is connected to the PB12 pin of the STM32F103 microprocessor, and the LCD screen is connected to the STM32F103 microprocessor via the SPI interface.

[0051] The CS pin of the touch control chip is connected to the PB1 pin of the STM32F103 microprocessor; the CLK pin of the touch control chip is connected to the PA5 pin of the STM32F103 microprocessor; the DIN pin of the touch control chip is connected to the PA7 pin of the STM32F103 microprocessor; the DOUT pin of the touch control chip is connected to the PA6 pin of the STM32F103 microprocessor; the VCC pin of the touch control chip is connected to the output terminal of the power module; and the GND pin of the touch control chip is connected to ground.

[0052] The display module provides a human-computer interaction interface, displays real-time data, and receives touch input.

[0053] The SCK, MISO, MOSI, and CS pins of the LCD screen are connected to the PB13, PB14, PB15, and PB12 pins of the STM32F103 microprocessor, respectively, to transmit display data and control signals.

[0054] The VO pin of the LCD screen adjusts the screen contrast via a potentiometer to optimize the display effect.

[0055] The CS, CLK, DIN, and DOUT pins of the touch control chip are connected to the PB1, PA5, PA7, and PA6 pins of the STM32F103 microprocessor to convert the touch position into a digital signal, enabling functions such as parameter setting.

[0056] The power module includes: a step-down chip, a battery, a solar charging management chip, a power status indicator, a resistor R7, capacitors C4, C5, C6, and C7, a diode D3, a solar panel, and a power path controller.

[0057] The V1 pin of the power path controller is connected to an external 12V DC power supply and one end of capacitor C6. The other end of capacitor C6 is connected to ground. The V2 pin of the power path controller is connected to the positive terminal of the battery and one end of capacitor C7. The other end of capacitor C7 and the anode of diode D3 are connected to ground. The VOUT pin of the power path controller is connected to the VIN pin of the step-down chip. The cathode of diode D3 is connected to the positive terminal of the battery. The EN1 pin of the power path controller is connected to the PD8 pin of the STM32F103 microprocessor. The EN2 pin of the power path controller is connected to the PD9 pin of the STM32F103 microprocessor. The PG1 pin of the power path controller is connected to the PC10 pin of the STM32F103 microprocessor. The PG2 pin of the power path controller is connected to the PA4 pin of the STM32F103 microprocessor. The GND pin of the power path controller is connected to ground.

[0058] The GND pin of the step-down chip is connected to ground. The OUT pin of the step-down chip is connected to one end of capacitor C4. The other end of capacitor C4 is connected to ground. Capacitor C5 is connected in parallel across capacitor C4. The solar panel is connected to the VIN pin of the solar charging management chip. The VOUT pin of the solar charging management chip is connected to the positive terminal of the battery. The negative terminal of the battery is grounded. The ground pin of the solar charging management chip is connected to ground. The OUT pin of the step-down chip is connected to one end of resistor R7. The other end of resistor R7 is connected to the positive terminal of the power status indicator. The negative terminal of the power status indicator is connected to ground.

[0059] The power module provides a stable power supply to the system, supports multiple power sources including external power, battery, and solar panel, and intelligently switches between power supply paths.

[0060] The V1 pin of the power path controller is connected to an external 12V power supply and filtered by capacitor C6; the V2 pin of the power path controller is connected to a battery and filtered by capacitor C7.

[0061] The EN1 and EN2 pins of the power path controller are controlled by the PD8 and PD9 pins of the STM32F103 microprocessor, respectively. They prioritize the use of external power and switch to battery when no external power is available.

[0062] The PG1 and PG2 pins of the power path controller are connected to the PC10 and PA4 pins of the STM32F103 microprocessor to monitor the external power supply and battery status.

[0063] The step-down chip reduces the input voltage to the required system voltage, and filters and stabilizes the output through capacitors C4 and C5, providing voltage for other modules in the pig free-feeding triggering device based on magnetic induction and proximity switches.

[0064] The solar charging management chip manages the charging process of the solar panel to the battery, preventing overcharging.

[0065] The power status indicator light is powered by the step-down chip through resistor R7, which limits the current, and indicates whether the system is powered on normally.

[0066] The communication module includes: NB-IoT communication module.

[0067] The VCC pin of the NB-IoT communication module is connected to the output of the power supply module. The GND pin of the NB-IoT communication module is grounded. The RXD pin of the NB-IoT communication module is connected to the PA9 pin of the STM32F103 microprocessor. The TXD pin of the NB-IoT communication module is connected to the PA10 pin of the STM32F103 microprocessor. The RESET pin of the NB-IoT communication module is connected to the PD6 pin of the STM32F103 microprocessor. The EN pin of the NB-IoT communication module is connected to the PD7 pin of the STM32F103 microprocessor.

[0068] The communication module enables remote data transmission via narrowband IoT and supports communication with the farm management platform.

[0069] The RXD and TXD pins of the NB-IoT communication module are connected to the PA9 and PA10 pins of the STM32F103 microprocessor to transmit acquired data and remote control commands.

[0070] The RESET and EN pins of the NB-IoT communication module are controlled by the PD6 and PD7 pins of the STM32F103 microprocessor to achieve module reset and enable, and optimize power consumption.

[0071] The alarm module includes: a buzzer, an LED indicator, a transistor Q1, and a resistor R8.

[0072] The positive terminal of the buzzer is connected to the output terminal of the power module, the negative terminal of the buzzer is connected to the collector of transistor Q1, the base of transistor Q1 is connected to the PC5 pin of the STM32F103 microprocessor, the emitter of transistor Q1 is connected to ground, the positive terminal of the LED indicator is connected to the output terminal of the power module, the negative terminal of the LED indicator is connected to one end of resistor R8, and the other end of resistor R8 is connected to the PC6 pin of the STM32F103 microprocessor.

[0073] The alarm module triggers an audible and visual alarm in abnormal situations such as equipment failure or insufficient feed.

[0074] Buzzer: Driven by transistor Q1, when the PC5 pin of the STM32F103 microprocessor outputs a high level, transistor Q1 is turned on and the buzzer sounds.

[0075] The LED indicator light is current-limited by resistor R8 and controlled to turn on and off by the PC6 pin of the STM32F103 microprocessor, used to indicate the alarm status.

[0076] Signal Acquisition: When a pig wearing a magnet approaches the feeding position, the Hall sensor detects the change in the magnetic field, and the differential amplifier circuit outputs a signal to the STM32F103 microprocessor.

[0077] Logic processing: The STM32F103 microprocessor analyzes the signal. If the difference between the two sensors exceeds the threshold, it is determined to be a valid feeding behavior, triggering a control command.

[0078] Equipment drive: The motor is driven by PWM to rotate and stir the feed, and the feed inlet is opened by a solenoid valve, while the feeding data is recorded.

[0079] Data interaction: Local data is displayed through the display module, while remote data is uploaded to the cloud via NB-IoT, allowing administrators to monitor it in real time.

[0080] Abnormal response: When abnormalities such as overcurrent detection or power failure occur, the alarm module is activated and a warning message is sent through the communication module.

[0081] The first Hall sensor and the second Hall sensor are vertically fixed on both sides of the feeding position entrance, with the front of the sensors facing the feeding channel. The spacing is adjusted according to the size of the pig to ensure that the magnet worn by the pig triggers the two sensors in sequence when it passes through.

[0082] The magnetic shielding cover covers the back and sides of the Hall sensor, leaving only the front sensing area untouched, thus avoiding interference from background magnetic fields such as those from the feed bin and metal bracket.

[0083] The differential amplifier and RC filter circuit are integrated on the sensor module circuit board and placed close to the Hall sensor to reduce signal transmission delay.

[0084] Motor M1 is fixed to the top of the feed premixing bin and connected to the mixing paddle via a coupling for mixing feed ingredients.

[0085] The solenoid valve is installed at the bottom outlet of the premixing bin to control the channel switch for feed to enter the feeding trough.

[0086] Optical isolators, PWM driver chips, and overcurrent detection chips are integrated into the control circuit board and arranged in the electrical control box of the mechanical device, isolated from high-voltage components.

[0087] The relay is installed inside the control box, close to the power input terminal of the solenoid valve, to facilitate a quick response to the switching commands of the STM32F103 microprocessor.

[0088] The STM32F103 microprocessor is housed in the control box and secured by a bracket to ensure good heat dissipation.

[0089] The NB-IoT communication module is installed on the top or outside of the control box, with the antenna exposed to ensure signal strength.

[0090] The display module is embedded in the feeding station's control panel, making it easy for operators to view parameters and touch settings.

[0091] Solar panels are installed on top of machinery or on the roof of farms, facing the sun.

[0092] The battery and step-down chip are placed inside the control box. The battery is equipped with an insulating shell, and the step-down chip is fixed by a heat sink.

[0093] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A pig free-feeding triggering device based on magnetic induction and proximity switch, characterized in that, It includes: environmental monitoring module, data processing module, communication module, control execution module, alarm module, display module, and power supply module; The data processing module is connected to the environmental monitoring module, communication module, control execution module, alarm module, and display module. The power supply module is also connected to the environmental monitoring module, data processing module, communication module, control execution module, alarm module, and display module.

2. The pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 1, characterized in that, The data processing module includes: an STM32F103 microprocessor, capacitor C3, and resistor R4; The STM32F103 microprocessor pins are connected to the control pins of the control execution module and the control pins of the alarm module. The serial peripheral interface of the STM32F103 microprocessor is connected to the serial peripheral interface of the display module. The transmit pin of the STM32F103 microprocessor is connected to the receiver of the communication module. The receive pin of the STM32F103 microprocessor is connected to the transmitter of the communication module. The power pin of the STM32F103 microprocessor is connected to the output of the power module. The ground pin of the STM32F103 microprocessor is connected to ground. The RESET pin of the STM32F103 microprocessor is connected to one end of resistor R4 and one end of capacitor C3. The other end of resistor R4 is connected to the VDD pin of the STM32F103 microprocessor, and the other end of capacitor C3 is connected to ground.

3. The pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 2, characterized in that, The environmental monitoring module includes: a first Hall sensor, a second Hall sensor, resistors R1, R2, and R3, a magnetic shield, a differential amplifier, capacitors C1 and C2; The VCC pins of the first Hall sensor and the second Hall sensor are connected to the output of the power module. The GND pins of the first Hall sensor and the second Hall sensor are connected to ground. The OUT pin of the first Hall sensor is connected to one end of resistor R1 and the PA0 pin of the STM32F103 microprocessor. The other end of resistor R1 is connected to the output of the power module. The OUT pin of the second Hall sensor is connected to one end of resistor R2 and the PA1 pin of the STM32F103 microprocessor. The other end of resistor R2 is connected to the output of the power module. A magnetic shielding cover is wrapped around the back of the first Hall sensor and the second Hall sensor. The OUT pin of the first Hall sensor is connected to the IN+ pin of the differential amplifier, the OUT pin of the second Hall sensor is connected to the IN- pin of the differential amplifier, the VOUT pin of the differential amplifier is connected to one end of capacitor C1, the other end of capacitor C1 is connected to one end of resistor R3, and the other end of resistor R3 is connected to the PA2 pin of the STM32F103 microprocessor.

4. The pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 2, characterized in that, The control execution module includes: optocoupler isolator, PWM driver chip, overcurrent detection chip, relay, freewheeling diode D1, freewheeling diode D2, solenoid valve, motor M1, resistor R5, and resistor R6; The input of the optocoupler is connected to the PB2 pin of the STM32F103 microprocessor. The output of the optocoupler is connected to the EN pin of the PWM driver chip and one end of resistor R6. The other end of resistor R6 is connected to the output of the power module. The IN1 pin of the PWM driver chip is connected to the PB3 pin of the STM32F103 microprocessor, and the IN2 pin is connected to the PB4 pin. The OUT1 and OUT2 pins of the PWM driver chip are connected to the power module. The controller of motor M1 is connected, the freewheeling diode D1 is connected in parallel across the power supply circuit of motor M1, the VCC pin of the overcurrent detection chip is connected to the output of the power module, the SCL pin of the overcurrent detection chip is connected to the PB6 pin of the STM32F103 microprocessor, the SDA pin of the overcurrent detection chip is connected to the PB7 pin of the STM32F103 microprocessor, the ground pin of the overcurrent detection chip is connected to ground, the IN+ pin of the overcurrent detection chip is connected to one end of resistor R6, and the IN- pin of the overcurrent detection chip is connected to the other end of resistor R6. The PB5 pin of the STM32F103 microprocessor is connected to one end of resistor R5, and the other end of resistor R5 is connected to the coil of the relay. The freewheeling diode D2 is connected in parallel across the coil of the relay. One end of the normally open contact of the relay is connected to the power supply pin of the solenoid valve, and the other end of the normally open contact of the relay is connected to the input power supply and one end of the solenoid valve. The other end of the solenoid valve is grounded.

5. A pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 2, characterized in that, The display module includes: an LCD screen, a potentiometer, and a touch control chip; The VDD pin of the LCD screen is connected to the output terminal of the power module, the VSS pin of the LCD screen is connected to ground, the VO pin of the LCD screen is connected to the slider of the potentiometer, one end of the potentiometer is connected to the output terminal of the power module, and the other end of the potentiometer is connected to ground, the SCK pin of the LCD screen is connected to the PB13 pin of the STM32F103 microprocessor, the MISO pin of the LCD screen is connected to the PB14 pin of the STM32F103 microprocessor, the MOSI pin of the LCD screen is connected to the PB15 pin of the STM32F103 microprocessor, and the CS pin of the LCD screen is connected to the PB12 pin of the STM32F103 microprocessor. The CS pin of the touch control chip is connected to the PB1 pin of the STM32F103 microprocessor; the CLK pin of the touch control chip is connected to the PA5 pin of the STM32F103 microprocessor; the DIN pin of the touch control chip is connected to the PA7 pin of the STM32F103 microprocessor; the DOUT pin of the touch control chip is connected to the PA6 pin of the STM32F103 microprocessor; the VCC pin of the touch control chip is connected to the output terminal of the power module; and the GND pin of the touch control chip is connected to ground.

6. A pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 2, characterized in that, The power module includes: a step-down chip, a battery, a solar charging management chip, a power status indicator, a resistor R7, capacitors C4, C5, C6, and C7, a diode D3, a solar panel, and a power path controller. The V1 pin of the power path controller is connected to an external 12V DC power supply and one end of capacitor C6. The other end of capacitor C6 is connected to ground. The V2 pin of the power path controller is connected to the positive terminal of the battery and one end of capacitor C7. The other end of capacitor C7 and the anode of diode D3 are connected to ground. The VOUT pin of the power path controller is connected to the VIN pin of the step-down chip. The cathode of diode D3 is connected to the positive terminal of the battery. The EN1 pin of the power path controller is connected to the PD8 pin of the STM32F103 microprocessor. The EN2 pin of the power path controller is connected to the PD9 pin of the STM32F103 microprocessor. The PG1 pin of the power path controller is connected to the PC10 pin of the STM32F103 microprocessor. The PG2 pin of the power path controller is connected to the PA4 pin of the STM32F103 microprocessor. The GND pin of the power path controller is connected to ground. The GND pin of the step-down chip is connected to ground. The OUT pin of the step-down chip is connected to one end of capacitor C4. The other end of capacitor C4 is connected to ground. Capacitor C5 is connected in parallel across capacitor C4. The solar panel is connected to the VIN pin of the solar charging management chip. The VOUT pin of the solar charging management chip is connected to the positive terminal of the battery. The negative terminal of the battery is grounded. The ground pin of the solar charging management chip is connected to ground. The OUT pin of the step-down chip is connected to one end of resistor R7. The other end of resistor R7 is connected to the positive terminal of the power status indicator. The negative terminal of the power status indicator is connected to ground.

7. A pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 2, characterized in that, The communication module includes: an NB-IoT communication module; The VCC pin of the NB-IoT communication module is connected to the output of the power supply module. The GND pin of the NB-IoT communication module is grounded. The RXD pin of the NB-IoT communication module is connected to the PA9 pin of the STM32F103 microprocessor. The TXD pin of the NB-IoT communication module is connected to the PA10 pin of the STM32F103 microprocessor. The RESET pin of the NB-IoT communication module is connected to the PD6 pin of the STM32F103 microprocessor. The EN pin of the NB-IoT communication module is connected to the PD7 pin of the STM32F103 microprocessor.

8. A pig free-feeding triggering device based on magnetic induction and proximity switch according to claim 2, characterized in that, The alarm module includes: a buzzer, an LED indicator, a transistor Q1, and a resistor R8; The positive terminal of the buzzer is connected to the output terminal of the power module, the negative terminal of the buzzer is connected to the collector of transistor Q1, the base of transistor Q1 is connected to the PC5 pin of the STM32F103 microprocessor, the emitter of transistor Q1 is connected to ground, the positive terminal of the LED indicator is connected to the output terminal of the power module, the negative terminal of the LED indicator is connected to one end of resistor R8, and the other end of resistor R8 is connected to the PC6 pin of the STM32F103 microprocessor.