A high-speed microcontroller-based droplet detection circuit switch control device
Patent Information
- Application Number
- CN202610847479.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-12
- Publication Date
- 2026-10-09
AI Technical Summary
现有技术多采用低性能单片机或模拟电路作为控制核心,存在响应速度不足、抗干扰能力弱、信号匹配复杂等问题
[0014]本发明方法的有益效果如下:高速微控制器内置控制程序与故障处理程序,装置完成初始化后,控制模块控制继电器处于吸合状态,目标电路保持通电;当检测模块检测到液滴通过并输出有效信号时,微控制器通过边沿触发中断立即响应,改变输出状态使继电器释放,切断目标电路电源,实现高速液滴场景下的精准控制。同时,故障检测模块持续监测各模块工作状态,当检测到任何异常时,立即向控制模块发送故障信号,控制模块触发故障处理程序,迅速切断目标电路,此时问题电路的预警LED灯熄灭,实现告警,避免设备损坏与误动作。
Smart Images

Figure CN122883675A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit control technology, and in particular to a droplet detection circuit switch control device based on a high-speed microcontroller. Background Technology
[0002] In fields such as industrial automation, laboratory testing, and medical equipment control, it is often necessary to control the on / off state of target circuits based on whether a droplet passes through a specific area. Existing technologies mostly use low-performance microcontrollers or analog circuits as the control core, which suffers from insufficient response speed, weak anti-interference capabilities, and complex signal matching. When the droplet passes through at a high speed or the signal duration is short, response lag or missed detection can easily occur. Furthermore, some devices use capacitive or short-range sensing methods, resulting in a small detection distance, limiting their applicability and making them unsuitable for deployment in large spaces. For existing devices, system debugging or parameter adjustment often requires simultaneous modification of hardware connections and program logic, increasing the difficulty of use and maintenance.
[0003] Therefore, it is necessary to design a droplet detection circuit control device that is simple in structure, responds quickly, has stable signal matching, and is highly reliable. Summary of the Invention
[0004] To address the aforementioned issues, this invention proposes a droplet detection circuit switch control device based on a high-speed microcontroller, which combines high-speed response characteristics with fault detection capabilities, thereby achieving precise control of droplet detection and reliable operation of the device.
[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solution: a droplet detection circuit switch control device based on a high-speed microcontroller, comprising a control module, a detection module, an amplification and comparison module, a relay module, a power supply module, and a fault detection module; the control module uses a high-speed microcontroller, and by optimizing the input sampling frequency and interrupt response priority, it achieves microsecond-level droplet detection response, avoiding missed detection and lag in high-speed droplet scenarios; the detection module uses a through-beam fiber optic sensor; the amplification and comparison module uses an NPN normally closed fiber optic amplifier, with its input end connected to the through-beam fiber optic sensor and its output end connected to the high-speed microcontroller; the relay module uses a high-level pull-in relay, with its control end connected to the high-speed microcontroller and its load end connected in series with the target circuit; the power supply module supplies power to all modules and shares a common ground; the fault detection module detects the operating voltage, current, signal status, and operation status of each module respectively.
[0006] The device of the present invention includes a control module, a detection module, an amplification and comparison module, a relay module, a power supply module, and a fault detection module; the functions and connections of each module are as follows: Control module: A high-speed microcontroller is used as the core control unit of the device to collect detection signals from the detection module and realize microsecond-level relay control. At the same time, it receives monitoring signals from the fault detection module to complete fault identification, alarm and circuit protection.
[0007] Detection module: Employs a through-beam fiber optic sensor for non-contact detection of whether a droplet passes through the detection area, and outputs a raw detection signal upon detection of a droplet.
[0008] Amplification and Comparison Module: An NPN normally closed fiber optic amplifier is used to connect to the through-beam fiber optic sensor to amplify and level-condition the original detection signal, and output a signal that meets the recognition requirements of the high-speed microcontroller.
[0009] Relay module: Connected to the output pin of the high-speed microcontroller, it realizes the switching on and off of the target circuit under the signal control of the control module, and at the same time receives status monitoring from the fault detection module.
[0010] Power supply module: Three DC power supplies provide matching operating voltages for each functional module, and all modules are grounded to ensure the stability of circuit signals.
[0011] Fault detection module: It includes four sub-modules: integrated voltage detection, sensor detection, amplifier detection, and relay detection. It is connected to each functional module, monitors the operating voltage, current, signal status and operation status of each module in real time, and feeds back abnormal signals to the control module.
[0012] Furthermore, according to an embodiment of this application, the high-speed microcontroller responds to the droplet detection signal via an interrupt triggering method, and immediately triggers the control logic when a droplet signal change is detected; the relay control output pin of the high-speed microcontroller is configured as a push-pull output mode.
[0013] Furthermore, according to the embodiments of this application, the power supply module provides a stable operating voltage for each functional module, and all modules share a common ground to reduce signal interference and ensure the reliability of high-speed detection and control.
[0014] The beneficial effects of the method of this invention are as follows: The high-speed microcontroller has a built-in control program and a fault handling program. After the device completes initialization, the control module controls the relay to be in the energized state, and the target circuit remains powered. When the detection module detects the droplet passing through and outputs a valid signal, the microcontroller responds immediately through an edge-triggered interrupt, changes the output state to release the relay, and cuts off the power supply to the target circuit, achieving precise control in high-speed droplet scenarios. Simultaneously, the fault detection module continuously monitors the working status of each module. When any abnormality is detected, it immediately sends a fault signal to the control module. The control module triggers the fault handling program, quickly cutting off the target circuit. At this time, the warning LED of the problematic circuit goes out, realizing an alarm and preventing equipment damage and malfunction. Attached Figure Description
[0015] The present application will be further described below with reference to the accompanying drawings and embodiments.
[0016] Figure 1 This is a flowchart of a processing method for a droplet detection circuit switch control device based on a high-speed microcontroller, as described in this application.
[0017] Figure 2 This is a schematic diagram of the module connection of a droplet detection circuit switch control device based on a high-speed microcontroller according to this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the present invention clear and complete, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only some, not all, embodiments of the present invention, and are merely illustrative of the embodiments of the present invention. They are not intended to limit the embodiments of the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] In the description of this invention, it should be noted that the terms "center," "middle," "upper," "lower," "left," "right," "inner," "outer," "top," "bottom," "side," "vertical," and "horizontal," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "a," "first," "second," "third," "fourth," "fifth," and "sixth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0020] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0021] For purposes of simplicity and illustration, the principles of the embodiments are described primarily by way of example. In the following description, numerous specific details are set forth to provide a thorough understanding of the embodiments. However, it will be apparent to those skilled in the art that these embodiments may not be limited to these specific details in practice. In some instances, well-known methods and structures have not been described in detail to avoid unnecessarily obscuring these embodiments. Furthermore, all embodiments can be used in combination with each other.
[0022] Example
[0023] To address the aforementioned shortcomings, such as Figure 1-2 As shown, this embodiment provides a droplet detection circuit switch control device based on a high-speed microcontroller, which includes a control module, a detection module, an amplification and comparison module, a relay module, a power supply module, and a fault detection module. The control module uses a high-speed microcontroller, which optimizes the input sampling frequency and interrupt response priority to achieve microsecond-level droplet detection response, avoiding missed detections and lags in high-speed droplet scenarios. The detection module uses a through-beam fiber optic sensor. The amplification and comparison module uses an NPN normally closed fiber optic amplifier, with its input end connected to the through-beam fiber optic sensor and its output end connected to the high-speed microcontroller. The relay module uses a high-level pull-in relay, with its control end connected to the high-speed microcontroller and its load end connected in series with the target circuit. The power supply module supplies power to all modules and shares a common ground. The fault detection module detects the operating voltage, current, signal status, and operational status of each module.
[0024] The device of the present invention includes a control module, a detection module, an amplification and comparison module, a relay module, a power supply module, and a fault detection module; the functions and connections of each module are as follows: The control module uses a high-speed microcontroller to ensure real-time signal processing. The high-speed microcontroller is used as the core control unit of the device to acquire the detection signals of the detection module and realize microsecond-level relay control. At the same time, it receives the monitoring signals of the fault detection module to complete fault identification, alarm and circuit protection.
[0025] The detection module uses a through-beam fiber optic sensor, including a laser transmitter and a laser receiver, for non-contact detection of whether a droplet passes through the detection area. After detecting a droplet, it outputs a raw detection signal. The transmitter and receiver can be installed according to the required measurement range. When a droplet passes through, it will block the laser beam, thereby triggering the detection signal.
[0026] This amplification and comparison module uses an NPN normally closed fiber optic amplifier connected to a through-beam fiber optic sensor to amplify and level-condition the original detection signal, outputting a signal that meets the recognition requirements of a high-speed microcontroller. It can be equipped with a transmitter and receiver according to the required measurement range, and the droplet passing through will block the laser beam, thereby triggering the detection signal.
[0027] The relay module is connected to the output pin of the high-speed microcontroller. Under the signal control of the control module, it realizes the switching on and off of the target circuit. At the same time, it receives status monitoring from the fault detection module. The other end is connected to the system ground and requires a separate power supply.
[0028] The power supply module has three power supplies: a first power supply for the high-speed microcontroller; a second power supply for the through-beam fiber optic sensor and the NPN normally closed fiber optic amplifier; and a third power supply for the relay module. The negative terminals of all three power supplies are connected to system ground. These three DC power supplies provide matching operating voltages to each functional module, and all modules are grounded to ensure the stability of the circuit signals.
[0029] The fault detection module is distributed across the four modules mentioned above, receiving and outputting four digital signals corresponding to power supply, sensor, amplifier, and relay faults, respectively. A high level indicates an abnormality, and a low level indicates normal operation. After the system is powered on, the microcontroller first executes the self-test program of each module, reading the power supply voltage, sensor operating current, amplifier output status, and relay initial status through the fault detection module. If all parameters are normal, the droplet detection process begins; if any parameter is abnormal, an alarm is triggered directly, and droplet detection is not initiated. During the detection process, if any module signal is abnormal, the microcontroller cuts off the power supply to that module, and the warning LED turns off to trigger an alarm.
[0030] Furthermore, according to an embodiment of this application, the high-speed microcontroller responds to the droplet detection signal via an interrupt triggering method, and immediately triggers the control logic when a droplet signal change is detected; the relay control output pin of the high-speed microcontroller is configured as a push-pull output mode.
[0031] Specifically, the droplet detection signal input pin of the high-speed microcontroller is configured as a pull-up input mode, with one end of the internal pull-up resistor connected to the power supply and the other end connected to the pin. When no droplet is detected, the internal transistor of the NPN normally closed fiber amplifier is turned on, the output is grounded, and the pin is at a low level. When a droplet is detected, the internal transistor of the fiber amplifier is turned off, the output is in a high-impedance state, and the pin is at a high level.
[0032] The droplet detection signal output pin is configured in push-pull output mode. During initialization, it outputs a high level, which activates the relay and powers on the electromagnet. When a droplet is detected, the pin switches to a low level, which releases the relay and de-energizes the electromagnet.
[0033] Furthermore, according to the embodiments of this application, the power supply module provides a stable operating voltage for each functional module, and all modules share a common ground to reduce signal interference and ensure the reliability of high-speed detection and control.
[0034] This embodiment, based on the realization of high-speed droplet detection and control, adds full-module fault detection capability, and has four core advantages: high-speed response, precise control, fault detectability, and reliable operation. High-speed response and strong adaptability: Through edge-triggered interrupt, high-frequency processing and simplified control logic, microsecond-level response can be achieved, reducing hysteresis and missed detection problems in high-speed droplet scenarios; the through-beam fiber optic sensor can flexibly set the detection range, enabling accurate measurement of droplet signals in different ranges without contact, making it more widely applicable; The hardware structure is simple and reliable: the microcontroller is compatible with the output characteristics of the NPN normally closed amplifier, eliminating the need for additional level conversion circuits, reducing hardware components and lowering the probability of failure. The common ground design of each module effectively improves the signal anti-interference capability. Full-dimensional fault detection: Integrating four major detection sub-modules—voltage, sensor, amplifier, and relay—to achieve real-time monitoring of the entire device and avoid equipment damage and malfunctions caused by unannounced faults; Alarm-based maintenance: LED indicators quickly locate faulty modules, eliminating the need for complex troubleshooting and reducing equipment maintenance difficulty and cost; Active circuit protection: Upon detecting a fault, the target circuit is immediately disconnected to prevent the fault from escalating at the source, thereby improving the operational safety of the device and target equipment. It is especially suitable for scenarios with high reliability requirements, such as medical equipment and precision experimental instruments.
[0035] Although the illustrative specific embodiments of this application have been described above to enable those skilled in the art to understand this application, this application is not limited to the scope of the specific embodiments. For those skilled in the art, all applications utilizing the concept of this application are protected as long as various variations are within the spirit and scope of this application as defined and determined by the appended claims.
Claims
1. A droplet detection circuit switch control device based on a high-speed microcontroller, characterized in that, It includes a control module, a detection module, an amplification and comparison module, a relay module, a power supply module, and a fault detection module; The control module uses a high-speed microcontroller to achieve microsecond-level droplet detection response by optimizing the input sampling frequency and interrupt response priority, thus avoiding missed detection and lag in high-speed droplet scenarios. The detection module uses a through-beam fiber optic sensor; The amplification and comparison module adopts an NPN normally closed fiber amplifier, with its input end connected to the through-beam fiber sensor and its output end connected to a high-speed microcontroller. The relay module adopts a high-level pull-in type relay. The control terminal of the relay module is connected to the high-speed microcontroller, and the load terminal is connected in series with the target circuit. The power module supplies power to all modules and shares a common ground; The fault detection module detects the operating voltage, current, signal status, and operation status of each module.
2. The droplet detection circuit switch control device based on a high-speed microcontroller according to claim 1, characterized in that, The high-speed microcontroller responds to the droplet detection signal via an interrupt triggering method, and immediately triggers the control logic when a droplet signal change is detected; the relay control output pin of the high-speed microcontroller is configured in push-pull output mode.
3. The droplet detection circuit switch control device based on a high-speed microcontroller according to claim 1, characterized in that, The power supply module provides a stable operating voltage for each functional module, and all modules share a common ground to reduce signal interference and ensure the reliability of high-speed detection and control.