Control method of micro-metering pump

文档序号:1670052 发布日期:2019-12-31 浏览:16次 中文

阅读说明:本技术 一种微计量泵控制方法 (Control method of micro-metering pump ) 是由 赵尚伟 徐明杰 王文浩 于 2018-06-24 设计创作,主要内容包括:一种微计量泵控制方法,属于电力电子技术领域,是主要由复位电路、晶振电路、单片机、液晶显示模块、通信模块、步进电机驱动、光电传感器、两相步进电机和光电编码器组成的,其特征在于:所述复位电路和晶振电路均与单片机相连接,液晶显示模块和通信模块均设置在单片机的输出端,步进电机驱动和光电传感器均与单片机相连接,两相步进电机设置在步进电机驱动和光电传感器的输出端,两相步进电机与光电编码器相连接,光电编码器与单片机相连接,本发明的微计量泵控制方法,可以通过控制步进电机方向和转速,来实现流量控制的微量计量泵闭环控制系统,以步进电机为控制对象,以增量式光电编码器为检测反馈元件,实现了包括按键控制步进电机转动状态,直观显示步进电机转速和光电编码器采集等功能。(A control method of a micro-metering pump belongs to the technical field of power electronics, and mainly comprises a reset circuit, a crystal oscillator circuit, a single chip microcomputer, a liquid crystal display module, a communication module, a stepping motor drive, a photoelectric sensor, a two-phase stepping motor and a photoelectric encoder, and is characterized in that: the micro-metering pump control method can realize a micro-metering pump closed-loop control system for flow control by controlling the direction and the rotating speed of the stepping motor, and realizes the functions of controlling the rotating state of the stepping motor by keys, visually displaying the rotating speed of the stepping motor, acquiring the photoelectric encoder and the like by using the stepping motor as a control object and using the incremental photoelectric encoder as a detection feedback element.)

1. A control method of a micro-metering pump mainly comprises a reset circuit, a crystal oscillator circuit, a single chip microcomputer, a liquid crystal display module, a communication module, a stepping motor drive, a photoelectric sensor, a two-phase stepping motor and a photoelectric encoder, and is characterized in that: the reset circuit and the crystal oscillator circuit are connected with the single chip microcomputer, the liquid crystal display module and the communication module are arranged at the output end of the single chip microcomputer, the stepping motor driver and the photoelectric sensor are connected with the single chip microcomputer, the two-phase stepping motor is arranged at the output ends of the stepping motor driver and the photoelectric sensor, the two-phase stepping motor is connected with the photoelectric encoder, and the photoelectric encoder is connected with the single chip microcomputer.

2. A method of controlling a micro metering pump according to claim 1, wherein: the stepping motor is driven by a THB7128 chip, and a P4.0 pin of the singlechip is connected with a pulse signal input end CLK of a motor of the driving chip THB 7128H; p4.1 is connected with a forward and reverse rotation control end CW/CCW to control the rotation direction of the stepping motor; the P4.2 pin is connected with the ENABLE end ENABLE, and the working state is always 1; one end A +, one end A and one end B +, one end B of the two-phase four-wire stepping motor are respectively connected with ports OUT _ 1A, OUT _ 2A, OUT _ 1B and OUT _ 2B of the driving chip THB 7128.

3. A method of controlling a micro metering pump according to claim 1, wherein: the photoelectric sensor and the circuit meet the requirement that the photoelectric sensor of the micro-metering pump outputs an electric signal, namely an interrupt signal, through the light-transmitting strip passing through the detection point to detect the position state of the pump. When the pumping is finished completely, the photoelectric sensor generates a trigger signal to enable the stepping motor to be filled quickly, the selected photoelectric sensor is fixed in the shell of the micro-metering pump, and when the pump is transparent, the photoelectric encoder outputs a high level.

Technical Field

The invention relates to a control method of a micro-metering pump, and belongs to the technical field of power electronics.

Background

The metering pump is a special pump specially used for accurately metering fluid, and is widely applied to various industries of national economic development. With the increasing requirements of production process and automation control, stricter standards are provided for metering pumps. Due to the fact that the control mode of a domestic metering pump is not ideal in precision, not visual in flow display and poor in reliability, the control requirement for the modern industrial production process cannot be met. In recent years, with the rapid rise and development of mechatronics, a new revolution is made in the field of measurement and control, and higher requirements are put forward on the control of metering pumps. The invention develops a control method of a micro-metering pump.

Disclosure of Invention

Aiming at the defects, the invention provides a control method of a micro-metering pump.

The invention is realized by the following technical scheme: a control method of a micro-metering pump mainly comprises a reset circuit, a crystal oscillator circuit, a single chip microcomputer, a liquid crystal display module, a communication module, a stepping motor drive, a photoelectric sensor, a two-phase stepping motor and a photoelectric encoder, and is characterized in that: the reset circuit and the crystal oscillator circuit are connected with the single chip microcomputer, the liquid crystal display module and the communication module are arranged at the output end of the single chip microcomputer, the stepping motor driver and the photoelectric sensor are connected with the single chip microcomputer, the two-phase stepping motor is arranged at the output ends of the stepping motor driver and the photoelectric sensor, the two-phase stepping motor is connected with the photoelectric encoder, and the photoelectric encoder is connected with the single chip microcomputer.

The stepping motor is driven by a THB7128 chip, and a P4.0 pin of the singlechip is connected with a pulse signal input end CLK of a motor of the driving chip THB 7128H; p4.1 is connected with a forward and reverse rotation control end CW/CCW to control the rotation direction of the stepping motor; the P4.2 pin is connected with the ENABLE end ENABLE, and the working state is always 1; one end A +, one end A and one end B +, one end B of the two-phase four-wire stepping motor are respectively connected with ports OUT _ 1A, OUT _ 2A, OUT _ 1B and OUT _ 2B of the driving chip THB 7128.

The photoelectric sensor and the circuit meet the requirement that the photoelectric sensor of the micro-metering pump outputs an electric signal, namely an interrupt signal, through the light-transmitting strip passing through the detection point to detect the position state of the pump. When the pumping is finished completely, the photoelectric sensor generates a trigger signal to enable the stepping motor to be filled quickly, the selected photoelectric sensor is fixed in the shell of the micro-metering pump, and when the pump is transparent, the photoelectric encoder outputs a high level.

The invention has the advantages that: the micro-metering pump control method can realize the flow control of the micro-metering pump closed-loop control system by controlling the direction and the rotating speed of the stepping motor, takes the stepping motor as a control object and takes the incremental photoelectric encoder as a detection feedback element, and realizes the functions of controlling the rotating state of the stepping motor by keys, visually displaying the rotating speed of the stepping motor, acquiring by the photoelectric encoder and the like.

FIG. 1 is a schematic diagram of the system of the present invention.

In the figure, the device comprises a reset circuit 1, a crystal oscillator circuit 2, a singlechip 4, a liquid crystal display module 5, a communication module 6, a stepping motor driver 7, a photoelectric sensor 8, a two-phase stepping motor 9 and a photoelectric encoder.

Detailed Description

A control method of a micro-metering pump mainly comprises a reset circuit 1, a crystal oscillator circuit 2, a single chip microcomputer 3, a liquid crystal display module 4, a communication module 5, a stepping motor drive 6, a photoelectric sensor 7, a two-phase stepping motor 8 and a photoelectric encoder 9, and is characterized in that: reset circuit 1 and crystal oscillator circuit 2 all are connected with singlechip 3, and liquid crystal display module 4 and communication module 5 all set up the output at singlechip 3, and step motor drive 6 and photoelectric sensor 7 all are connected with singlechip 3, and double-phase step motor 8 sets up the output at step motor drive 6 and photoelectric sensor 7, and double-phase step motor 8 is connected with photoelectric encoder 9, and photoelectric encoder 9 is connected with singlechip 3.

The step motor drive 6 adopts a THB7128 chip to drive the step motor, and a pin P4.0 of the singlechip is connected with a pulse signal input end CLK of a motor of the drive chip THB 7128H; p4.1 is connected with a forward and reverse rotation control end CW/CCW to control the rotation direction of the stepping motor; the P4.2 pin is connected with the ENABLE end ENABLE, and the working state is always 1; one end A +, one end A and one end B +, one end B of the two-phase four-wire stepping motor are respectively connected with ports OUT _ 1A, OUT _ 2A, OUT _ 1B and OUT _ 2B of the driving chip THB 7128.

The photoelectric sensor 7 and the circuit meet the requirement that the photoelectric sensor of the micro-metering pump outputs an electric signal, namely an interrupt signal, through the light-transmitting strip passing through the detection point to detect the position state of the pump. When the pumping is finished completely, the photoelectric sensor generates a trigger signal to enable the stepping motor to be filled quickly, the selected photoelectric sensor is fixed in the shell of the micro-metering pump, and when the pump is transparent, the photoelectric encoder outputs a high level.

When the device works, the upper computer controls the display interface to set the working condition mode of the micro-metering pump system, and the selected mode determines the working state of the stepping motor. The upper computer sends the operating condition to singlechip MSP430, and the singlechip is according to direction and the rotational speed that the requirement output step motor needs, has decided whether the system is pump liquid state or filling state and the velocity of flow under the pump operating condition. The photoelectric encoder serving as a closed-loop feedback device transmits the collected motor rotating speed to the single chip microcomputer and converts the motor rotating speed into a flow signal. And comparing the flow value with a flow value set by an upper computer to enable the system to intelligently adjust the rotating speed of the stepping motor. Photoelectric sensor constantly detects whether the cam reaches zero position state, when the system finishes the pump liquid phase and is about to begin to fill, step motor changes the traffic direction and makes the plunger kick-back fast, reduces and fills the time. And the RS232 interface of the communication module realizes communication with an upper computer.

It will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in the embodiments described above without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims.

5页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于充气调温服装的智能充气系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!