CN112497126A - Electric impact wrench controlled by current PID - Google Patents
Electric impact wrench controlled by current PID Download PDFInfo
- Publication number
- CN112497126A CN112497126A CN202011345938.9A CN202011345938A CN112497126A CN 112497126 A CN112497126 A CN 112497126A CN 202011345938 A CN202011345938 A CN 202011345938A CN 112497126 A CN112497126 A CN 112497126A
- Authority
- CN
- China
- Prior art keywords
- current
- motor
- wrench
- torque
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 12
- 239000003638 chemical reducing agent Substances 0.000 claims abstract description 11
- 238000012544 monitoring process Methods 0.000 claims abstract description 4
- 230000008569 process Effects 0.000 claims description 7
- 238000005381 potential energy Methods 0.000 claims description 6
- 230000009467 reduction Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 3
- 238000004422 calculation algorithm Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 claims description 2
- 230000004044 response Effects 0.000 claims description 2
- 230000006835 compression Effects 0.000 claims 1
- 238000007906 compression Methods 0.000 claims 1
- 230000007246 mechanism Effects 0.000 abstract description 6
- 238000005259 measurement Methods 0.000 abstract 1
- 238000004364 calculation method Methods 0.000 description 4
- 238000013178 mathematical model Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005489 elastic deformation Effects 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25B—TOOLS OR BENCH DEVICES NOT OTHERWISE PROVIDED FOR, FOR FASTENING, CONNECTING, DISENGAGING OR HOLDING
- B25B21/00—Portable power-driven screw or nut setting or loosening tools; Attachments for drilling apparatus serving the same purpose
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25B—TOOLS OR BENCH DEVICES NOT OTHERWISE PROVIDED FOR, FOR FASTENING, CONNECTING, DISENGAGING OR HOLDING
- B25B23/00—Details of, or accessories for, spanners, wrenches, screwdrivers
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25B—TOOLS OR BENCH DEVICES NOT OTHERWISE PROVIDED FOR, FOR FASTENING, CONNECTING, DISENGAGING OR HOLDING
- B25B23/00—Details of, or accessories for, spanners, wrenches, screwdrivers
- B25B23/14—Arrangement of torque limiters or torque indicators in wrenches or screwdrivers
- B25B23/147—Arrangement of torque limiters or torque indicators in wrenches or screwdrivers specially adapted for electrically operated wrenches or screwdrivers
- B25B23/1475—Arrangement of torque limiters or torque indicators in wrenches or screwdrivers specially adapted for electrically operated wrenches or screwdrivers for impact wrenches or screwdrivers
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Details Of Spanners, Wrenches, And Screw Drivers And Accessories (AREA)
Abstract
Description
技术领域technical field
本发明属于电动扭矩扳手技术领域,具体涉及一种电流PID控制的电动冲击扳手。The invention belongs to the technical field of electric torque wrenches, in particular to an electric impact wrench controlled by a current PID.
背景技术Background technique
冲击型电动扭矩扳手是指具有旋转带切向冲击机构的一类扳手,由于其工效高,反力矩小和能耗低等优点,在螺纹装配方面发挥着重要作用。然而,它的装配力矩通常是由操作者对持握扳手的手感和对套筒转动的观察来判断是否达到要求力矩,这种情况下装配力矩存在较大的精度误差。由于电动冲击扳手的工作原理复杂,工作中涉及的部件较多,这使对其进行原理分析和准确建模变得困难。如何实现电动冲击扳手定扭矩控制是目前待解决的关键问题。电动冲击扳手在对不同型号的螺栓进行紧固操作时,要避免由于扭矩过大出现“超拧紧”而造成螺栓发生形变而损坏,或者扭矩过小出现“欠拧紧”而导致螺栓松动脱落。为了防止上述情况的发生这就要求电动冲击扳手能够实现定扭矩控制。Impact type electric torque wrench refers to a type of wrench with a rotating belt tangential impact mechanism. Due to its advantages of high work efficiency, small reaction torque and low energy consumption, it plays an important role in thread assembly. However, its assembling torque is usually judged by the operator's feeling of holding the wrench and the observation of the rotation of the sleeve to determine whether the required torque is reached. In this case, there is a large precision error in the assembling torque. Due to the complex working principle of the electric impact wrench, there are many parts involved in the work, which makes it difficult to analyze the principle and accurately model it. How to realize constant torque control of electric impact wrench is a key problem to be solved at present. When the electric impact wrench is tightening different types of bolts, it is necessary to avoid the bolts being deformed and damaged due to "over-tightening" due to excessive torque, or loosening and falling off due to "under-tightening" due to too small torque. In order to prevent the occurrence of the above situation, it is required that the electric impact wrench can realize constant torque control.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服上述现有技术中的不足,提供了一种电流PID控制的电动冲击扳手,其通过单电机控制系统内置的扳手驱动电机电流与输出扭矩的关系模型,利用关系模型将不同扭矩值其对应的电流值预存到数据库中,当预设扭矩值给定后,通过控制电流传感器检测出来电机电流的实测值使之达到所预存的值,达到预设扭矩值之后,再结合转速和电流的双闭环PID控制,可以实现更高的装配需求,达到更好的控制精度。The purpose of the present invention is to overcome the above-mentioned deficiencies in the prior art, and to provide a current PID-controlled electric impact wrench, which uses the relationship model of the wrench drive motor current and output torque built in the single-motor control system, and uses the relationship model to convert different The torque value and its corresponding current value are pre-stored in the database. When the preset torque value is given, the measured value of the motor current is detected by controlling the current sensor to make it reach the pre-stored value. After reaching the preset torque value, combined with the speed And the double closed-loop PID control of the current can achieve higher assembly requirements and achieve better control accuracy.
为了实现上述目的,本发明采用如下技术方案是:一种电流PID控制的电动冲击扳手,包括无刷直流电机1、行星齿轮减速器2、主轴3、主压力弹簧4、主动块5、从动块6、机壳7、电源8、显示装置9和控制系统10;In order to achieve the above purpose, the present invention adopts the following technical solutions: an electric impact wrench controlled by current PID, comprising a
所述扳手内置的无刷直流电机1产生的动能经过行星齿轮减速器2一部分转化为带动主动块5旋转的动能,一部分转化为主压力弹簧4压缩储存的势能,还有一部分能量以热能和机械损耗的形式消失。主压力弹簧4压缩储存的势能作用到主动块5,一部分转化成主动块5的平动动能,一部分转化成主动块5旋转的动能,此过程也有一部分消失的能量。主动块5的凸肩带动从动块6,从而生成冲击扭矩;The kinetic energy generated by the
所述扳手的输出扭矩是通过套筒传递到螺栓或螺母,使螺栓或螺母旋转一定角度,冲击的循环将持续到螺栓装卸工作完成为止;The output torque of the wrench is transmitted to the bolt or nut through the sleeve, so that the bolt or nut rotates at a certain angle, and the cycle of impact will continue until the bolt loading and unloading work is completed;
所述扳手的电源8为可充电蓄电池,为驱动电机和显示装置提供电能,并且可拆卸安装;The
所述控制系统10电路板包括以下几个模块:The circuit board of the
单片机微处理器模块,单片机内置了控制驱动电机电流-输出扭矩的关系模型,根据关系模型将不同扭矩值其对应的电流值预存到单片机数据库中,输入设定扭矩值后,通过控制电流传感器检测出来电机电流的实测值使之达到所预存的值,达到预设扭矩值之后停止紧固螺栓作业;Microprocessor module of single-chip microcomputer, the single-chip microcomputer has a built-in relationship model for controlling the current of the driving motor and the output torque. According to the relationship model, the corresponding current values of different torque values are stored in the single-chip microcomputer database. After inputting the set torque value, it is detected by the control current sensor. The measured value of the outgoing motor current makes it reach the pre-stored value, and stops the bolt tightening operation after reaching the preset torque value;
通讯模块,将扳手工作数据储存在EEPROM中,当连接上位机时,上位机可读取存储的数据,对电动冲击扳手的使用情况进行实时记录和监控;The communication module stores the working data of the wrench in the EEPROM. When connected to the upper computer, the upper computer can read the stored data and record and monitor the use of the electric impact wrench in real time;
电机驱动模块,采用驱动芯片和逆变电路实现电机的驱动,单片机微处理器输出6路PWM信号传输到驱动芯片输入引脚,然后由驱动芯片输出引脚输出至MOSFET,从而控制MOSFET的导通和关断;The motor drive module uses a drive chip and an inverter circuit to drive the motor. The single-chip microprocessor outputs 6-channel PWM signals and transmits them to the input pins of the drive chip, and then the output pins of the drive chip are output to the MOSFET to control the conduction of the MOSFET. and turn off;
检测模块,所述检测模块分为电流检测模块和位置检测模块,其中电流检测模块通过电流传感器对驱动电机电流进行采集,采集到的信号输入到单片机微处理器模块中,进行数据处理得到实时的扭矩值,从而进行扭矩的精准控制。位置检测模块通过3个霍尔传感器检测转子位置,单片机微处理器根据霍尔传感器采集到的位置信号来发出相对应的触发信号控制MOSFET通断,最后再通过3个霍尔传感器的高低电平信号计算出电机的转速。Detection module, the detection module is divided into a current detection module and a position detection module, wherein the current detection module collects the current of the driving motor through a current sensor, and the collected signal is input into the single-chip microprocessor module, and the data is processed to obtain real-time data. Torque value, so as to carry out precise control of torque. The position detection module detects the rotor position through 3 Hall sensors. The microprocessor of the single-chip microcomputer sends a corresponding trigger signal according to the position signal collected by the Hall sensor to control the on-off of the MOSFET, and finally passes the high and low levels of the 3 Hall sensors. The signal calculates the speed of the motor.
进一步的,所述关系模型是根据多项式拟合实验数据样本所得,通过搭建信号采集系统实时采集电动冲击扳手输出扭矩信号与驱动电机电流信号,信号经SG滤波器进行降噪处理,处理后得到的数据作为多项式拟合的数据样本,从而得出电动冲击扳手输出扭矩与驱动电机电流的关系模型和关系曲线。Further, the relational model is obtained by fitting the experimental data samples according to polynomials, and the output torque signal of the electric impact wrench and the current signal of the drive motor are collected in real time by building a signal acquisition system. The data is used as a data sample for polynomial fitting, so as to obtain the relationship model and relationship curve between the output torque of the electric impact wrench and the current of the drive motor.
进一步的,所述电动冲击扳手输出扭矩与驱动电机电流的关系曲线,能够实现对电动冲击扳手输出扭矩进行预测和控制,达到扳手的定扭矩控制目的。Further, the relationship curve between the output torque of the electric impact wrench and the current of the driving motor can realize the prediction and control of the output torque of the electric impact wrench, so as to achieve the purpose of constant torque control of the wrench.
进一步的,检测模块的传感器包括电流传感器和霍尔传感器,电流传感器用于采集扳手电机工作时的电流信号,霍尔传感器用于检测转子位置,通过获得的位置信号计算电机转速。Further, the sensors of the detection module include a current sensor and a Hall sensor. The current sensor is used to collect the current signal when the wrench motor is working, and the Hall sensor is used to detect the rotor position, and the motor speed is calculated by the obtained position signal.
进一步的,所述控制系统通过监测电机电流控制输出扭矩,系统上电后,单片机微控制器的端口寄存器进行初始化,传感器开始采集数据,显示设备开始显示,设定输出扭矩期望值,单片机内部进行计算得到电机电流预存值,控制系统中PWM信号输出,驱动电机转动,电流检测模块开始检测电机电流实际值,电流实际值达到电流预存值,驱动电机停转,系统进入待机状态。Further, the control system controls the output torque by monitoring the motor current. After the system is powered on, the port register of the microcontroller of the single-chip microcomputer is initialized, the sensor starts to collect data, the display device starts to display, and the expected value of the output torque is set. The motor current pre-stored value is obtained, the PWM signal output in the control system is output, the motor is driven to rotate, the current detection module starts to detect the actual value of the motor current, and the actual current value reaches the current pre-stored value, the drive motor stops, and the system enters the standby state.
进一步的,所述控制系统的双闭环PID控制用于提高控制系统的响应速度和稳定性,驱动电机电流反馈作为内环,转子位置提供速度反馈最为外环,内环用于改善系统稳定性,外环用于降低外界的干扰,结合PID算法提高系统的控制精度。Further, the double closed-loop PID control of the control system is used to improve the response speed and stability of the control system, the drive motor current feedback is used as the inner loop, the rotor position provides speed feedback as the outer loop, and the inner loop is used to improve the system stability, The outer loop is used to reduce external interference, and combined with PID algorithm to improve the control accuracy of the system.
本申请的技术效果在于:电动冲击扳手在进行紧固螺栓时,通过单片机内置扳手驱动电机电流与输出扭矩的关系模型,利用关系模型和关系曲线将不同扭矩值其对应的电流值预存到数据库中,当预设扭矩值给定后,通过控制电流传感器检测出来电机电流的实测值使之达到所预存的值,达到预设扭矩值之后,再结合转速和电流的双闭环PID控制,达到电动冲击扳手的定扭矩输出,从而获得更高的装配精度。The technical effect of the present application is: when the electric impact wrench is tightening the bolts, the relationship model between the motor current and the output torque is driven by the built-in single chip wrench, and the current values corresponding to different torque values are pre-stored in the database by using the relationship model and the relationship curve. , when the preset torque value is given, the measured value of the motor current is detected by the control current sensor to make it reach the pre-stored value, and after reaching the preset torque value, combined with the double closed-loop PID control of speed and current, to achieve electric shock The constant torque output of the wrench can achieve higher assembly accuracy.
附图说明Description of drawings
图1为电动冲击扳手的剖视图,其中,1-无刷直流电机,2-行星齿轮减速器,3-主轴,4-主压力弹簧,5-主动块,6-从动块,7-机壳,8-电源,9-显示装置,10-控制系统;Figure 1 is a sectional view of an electric impact wrench, wherein 1- brushless DC motor, 2- planetary gear reducer, 3- main shaft, 4- main pressure spring, 5- driving block, 6- driven block, 7- casing , 8-power, 9-display device, 10-control system;
图2为电动冲击扳手冲击块的正视图与侧视图,其中,图2(a)为冲击块的正视图与侧视图,图2(b)为冲击块简化后的正视图与侧视图;Figure 2 is a front view and a side view of an electric impact wrench impact block, wherein Figure 2(a) is a front view and a side view of the impact block, and Figure 2(b) is a simplified front view and side view of the impact block;
图3为电动冲击扳手紧固螺栓过程输出扭矩-电机电流关系曲线图;Figure 3 is a graph showing the relationship between output torque and motor current in the process of tightening bolts by an electric impact wrench;
图4为本发明实施例的电动冲击扳手的结构框图;4 is a structural block diagram of an electric impact wrench according to an embodiment of the present invention;
图5为本发明控制流程图。Fig. 5 is a control flow chart of the present invention.
具体实施方式Detailed ways
为了更好地阐述本发明的技术方案、创新特征,下面根据附图并结合实施例,对本发明做进一步说明。In order to better illustrate the technical solutions and innovative features of the present invention, the present invention will be further described below according to the accompanying drawings and in conjunction with the embodiments.
如图1所示,一种电流PID控制的电动冲击扳手,包括无刷直流电机1、行星齿轮减速器2、主轴3、主压力弹簧4、主动块5、从动块6、机壳7、电源8、显示装置9和控制系统10。扳手内置的无刷直流电机1产生的动能经过行星齿轮减速器2一部分转化为带动主动块5旋转的动能,一部分转化为主压力弹簧4压缩储存的势能,还有一部分能量以热能和机械损耗的形式消失。主压力弹簧4压缩储存的势能作用到主动块5,一部分转化成主动块5的平动动能,一部分转化成主动块5旋转的动能,此过程也有一部分消失的能量。主动块5的凸肩带动从动块6,从而生成冲击扭矩;扳手的输出扭矩是通过套筒传递到螺栓或螺母,使螺栓或螺母旋转一定角度,冲击的循环将持续到螺栓装卸工作完成为止;As shown in Figure 1, an electric impact wrench controlled by current PID includes a
电动冲击扳手的行星齿轮减速器2由一个太阳齿轮、一个圆环和三个行星齿轮组成。太阳齿轮为主动齿轮,三个行星齿轮为从动齿轮,圆环是从动齿轮固定在外壳上的。要求的行星齿轮传动比确定后,可根据传动比的表达式为电动冲击扳手选择合适的太阳齿轮、圆环和行星齿轮齿数。The
行星齿轮减速比计算: Planetary gear reduction ratio calculation:
其中,i为行星齿轮减速比,n1为太阳齿轮转速,nH为圆环转速,z1为太阳齿轮齿数,z3为圆环齿轮齿数。Among them, i is the reduction ratio of the planetary gear, n 1 is the rotational speed of the sun gear, n H is the rotational speed of the ring, z 1 is the number of teeth of the sun gear, and z 3 is the number of teeth of the ring gear.
主压力弹簧平均载荷计算: Calculation of the average load of the main pressure spring:
其中,Fa为主压力弹簧的平均载荷,F1为弹簧的最小载荷,F2为弹簧的最大载荷,k为弹簧常数,s1为最小弹性形变量,s2为最小弹性形变量。Among them, F a is the average load of the main pressure spring, F 1 is the minimum load of the spring, F 2 is the maximum load of the spring, k is the spring constant, s 1 is the minimum elastic deformation amount, and s 2 is the minimum elastic deformation amount.
如图2所示,扳手的冲击块呈现不规则形状,为了便于计算冲击块的质量m,采取简化后的冲击块进行动态计算。As shown in Figure 2, the impact block of the wrench presents an irregular shape. In order to facilitate the calculation of the mass m of the impact block, a simplified impact block is used for dynamic calculation.
冲击块质量: Impact block quality:
其中,ρ为冲击块材料密度,α、D0、d1、d2、l1、l2、l3、ls分别为图2(b)中冲击块对应Among them, ρ is the material density of the impact block, α, D 0 , d 1 , d 2 , l 1 , l 2 , l 3 , and ls are the corresponding impact blocks in Fig. 2(b), respectively
部department
分的尺寸参数,l3=ls-l1-l2。The size parameter of the points, l 3 = ls -l 1 -l 2 .
冲击前冲击块的绝对角速度:ω0=ωa+ωt Absolute angular velocity of the impact block before impact: ω 0 =ω a +ω t
其中,w0为冲击块冲击前的绝对角速度,wa为冲击块附加角速度,wt为主轴平均角速度。Among them, w 0 is the absolute angular velocity of the impact block before the impact, w a is the additional angular velocity of the impact block, and w t is the average angular velocity of the main shaft.
电动冲击扳手的原理是周期性地储存并释放电机产生的旋转动能,从而连续产生大扭矩的冲击。由于冲击的一瞬间输出扭矩较大,但很快会衰减,最终紧固件得到的残余扭矩是一个累积的扭矩。The principle of the electric impact wrench is to periodically store and release the rotational kinetic energy generated by the motor, thereby continuously generating high-torque impact. Since the output torque is large at the moment of impact, but will decay quickly, the residual torque obtained by the final fastener is a cumulative torque.
在对不同型号的螺栓进行紧固操作时,扳手要避免由于扭矩过大出现“超拧紧”而造成螺栓发生形变而损坏,或者扭矩过小出现“欠拧紧”而导致螺栓松动脱落。为了防止上述情况的发生这就要求电动冲击扳手能够实现定扭矩控制。When tightening different types of bolts, the wrench should avoid deformation and damage to the bolts caused by "over-tightening" due to excessive torque, or loosening of the bolts due to "under-tightening" due to too small torque. In order to prevent the occurrence of the above situation, it is required that the electric impact wrench can realize constant torque control.
由于电动冲击扳手的工作原理复杂,工作中涉及的部件较多,这使对其进行原理分析和准确建模变得困难。如何实现电动冲击扳手定扭矩控制是目前待解决的关键问题。Due to the complex working principle of the electric impact wrench, there are many parts involved in the work, which makes it difficult to analyze the principle and accurately model it. How to realize constant torque control of electric impact wrench is a key problem to be solved at present.
对目前的电动冲击扳手来说,在扳手内部添加传感器会增加扳手的成本与制造难度,并且在扳手使用的过程中会产生较大的冲击振动和噪声,因此很难直接建立扳手输出扭矩与电机电流的关系模型。For the current electric impact wrench, adding a sensor inside the wrench will increase the cost and manufacturing difficulty of the wrench, and will generate large impact vibration and noise during the use of the wrench, so it is difficult to directly establish the output torque of the wrench and the motor. Current relationship model.
但是仅通过分析电动冲击扳手的驱动电机得出其驱动电机电流与电磁转矩的关系模型是不够准确的,因为电动冲击扳手的传动机构较为复杂,且工作过程中包含振动和噪声等不确定因素,这将直接影响最终扳手输出扭矩的精度,因此在本发明实施过程中,通过信号采集系统直接对驱动电机的电流信号和扳手输出扭矩信号进行实时采集。However, it is not accurate enough to obtain the relationship model between the driving motor current and the electromagnetic torque only by analyzing the driving motor of the electric impact wrench, because the transmission mechanism of the electric impact wrench is complex, and the working process contains uncertain factors such as vibration and noise. , which will directly affect the precision of the final wrench output torque. Therefore, in the implementation process of the present invention, the current signal of the driving motor and the wrench output torque signal are directly collected in real time through the signal collection system.
由于扳手在采集信号的过程中存在振动与噪声等干扰因素,导致采集到的扭矩信号出现突刺状,若将信号数据化后直接作为扳手输出扭矩与电机电流关系的建模数据样本会直接影响到模型的准确性。为了能够得到准确的建模数据样本,需要对输出扭矩信号中的噪声信号通过SG滤波器进行降噪处理。Due to the interference factors such as vibration and noise during the signal acquisition process of the wrench, the collected torque signal appears spur-like. accuracy of the model. In order to obtain accurate modeling data samples, it is necessary to perform noise reduction processing on the noise signal in the output torque signal through the SG filter.
得到有效的数据样本后,通过多项式拟合对电动冲击扳手输出扭矩T与电机电流I的关系进行建模。将降噪处理后的输出扭矩数据和电机电流的原始数据在时域范围内进行一一对应,选择某一时刻的输出扭矩值与其对应时刻的电机电流值作为一个有效的数据点,在MATLAB中对选取的数据点进行曲线拟合。After obtaining valid data samples, the relationship between the output torque T of the electric impact wrench and the motor current I was modeled by polynomial fitting. Make a one-to-one correspondence between the output torque data after noise reduction and the original data of the motor current in the time domain, and select the output torque value at a certain moment and the motor current value at the corresponding moment as a valid data point, in MATLAB Curve-fit the selected data points.
拟合曲线表达式: Fitted curve expression:
其中,为拟合处理后的输出扭矩预测值,n为多项式拟合的阶数,ak为多项式待定系数,其中k=0,1,…,n。in, is the predicted value of the output torque after fitting, n is the order of polynomial fitting, a k is the polynomial undetermined coefficient, where k=0, 1, . . . , n.
依据不同阶数多项式拟合的效果与精度,选择三阶多项式拟合表达式作为反映扳手输出扭矩与电机电流之间关系的多项式数学模型。According to the effect and accuracy of different order polynomial fitting, the third order polynomial fitting expression is selected as the polynomial mathematical model reflecting the relationship between the wrench output torque and the motor current.
扳手输出扭矩与电机电流关系的数学模型: Mathematical model of the relationship between wrench output torque and motor current:
如图3所示,本申请还提供了电动冲击扳手在紧固螺栓时输出扭矩与电机电流的关系曲线,可分为三个阶段,电机电流在126mA~263mA阶段,扳手带动套筒至恒转速运转,产生约0.5N·m的输出扭矩值,此阶段扳手还未紧固螺栓;在263mA~794mA阶段,电机电流不断增大,而扳手输出扭矩缓慢增大,扳手对螺栓进行预紧固动作。电机电流在794mA之后曲线不断倾斜,扳手进行紧固螺栓动作,输出扭矩不断增大,直至完成螺栓紧固。As shown in Figure 3, the application also provides a relationship curve between the output torque of the electric impact wrench and the motor current when tightening the bolt, which can be divided into three stages. During operation, the output torque value of about 0.5N m is generated. At this stage, the wrench has not yet tightened the bolts; in the stage of 263mA to 794mA, the motor current continues to increase, while the output torque of the wrench increases slowly, and the wrench pre-tightens the bolts. . After the motor current is 794mA, the curve continues to incline, the wrench performs the action of tightening the bolt, and the output torque continues to increase until the bolt tightening is completed.
通过建立的扳手输出扭矩与电机电流的关系数学模型与关系曲线,对不同规格的螺栓紧固下的数据进行整理存储到单片机控制系统中,利用控制系统中电流检测模块实现对电动冲击扳手输出扭矩进行预测和控制,达到扳手的定扭矩控制目的。Through the established mathematical model and relationship curve of the relationship between the output torque of the wrench and the motor current, the data under different specifications of bolt tightening are organized and stored in the single-chip control system, and the current detection module in the control system is used to realize the output torque of the electric impact wrench. Predict and control to achieve the purpose of constant torque control of the wrench.
如图4所示,本实施例公开了一种电流PID控制的电动冲击扳手。其控制系统单片机微处理器产生6路PWM信号,信号传输给驱动电路,驱动芯片根据PWM控制6个MOSFET的通断,实现对驱动电机三相绕组转换通电。电流传感器采样电路检测电机电流信号反馈给单片机微处理器,实时调节电流。霍尔位置传感器检测转子位置,单片机微处理器获取反馈的脉冲信号,判断出转子正确位置,输出对应PWM信号换相控制,同时计算出转速作为速度反馈调节转速。键盘电路通过按键控制设定转速和扭矩。显示电路可通过LCD显示屏显示给定的转速、扭矩和实际的转速、扭矩。As shown in FIG. 4 , this embodiment discloses an electric impact wrench controlled by a current PID. The single-chip microprocessor of the control system generates 6 PWM signals, and the signals are transmitted to the driving circuit. The driving chip controls the on-off of the 6 MOSFETs according to the PWM, and realizes the conversion and energization of the three-phase windings of the driving motor. The current sensor sampling circuit detects the motor current signal and feeds it back to the microcontroller to adjust the current in real time. The Hall position sensor detects the rotor position, and the single-chip microprocessor obtains the feedback pulse signal, determines the correct position of the rotor, outputs the corresponding PWM signal for commutation control, and calculates the speed as a speed feedback to adjust the speed. The keyboard circuit controls the set speed and torque through the keys. The display circuit can display the given speed, torque and actual speed and torque through the LCD display.
电动冲击扳手的电源模块对扳手驱动电机和单片机进行供电,扳手电机经行星齿轮减速器带动扳手冲击机构旋转紧固螺栓。扳手的机械开关与扳手驱动电机连接,用于控制扳手电机的电源通断,同时也可以通过控制系统对其进行控制。The power supply module of the electric impact wrench supplies power to the wrench drive motor and the single-chip microcomputer, and the wrench motor drives the wrench impact mechanism to rotate the tightening bolt through the planetary gear reducer. The mechanical switch of the wrench is connected with the wrench driving motor, which is used to control the power on and off of the wrench motor, and can also be controlled by the control system.
在使用过程中,During use,
步骤S1,通过键盘电路的按键控制设定转速和扭矩值,通过单片机内置的扳手输出扭矩-电机电流的关系模型,可转换出一个对应的电机电流计算值。In step S1, the speed and torque values are set through the key control of the keyboard circuit, and a corresponding calculated value of the motor current can be converted through the relationship model between the wrench output torque and the motor current built in the single-chip microcomputer.
步骤S2,通过手动开启开关,或利用单片机通过内置的控制程序控制开关接通,使供电电源为扳手的驱动电机供电,从而带动扳手的冲击机构旋转输出扭矩紧固螺栓。Step S2, manually turn on the switch, or use the single chip microcomputer to control the switch on through the built-in control program, so that the power supply powers the drive motor of the wrench, thereby driving the impact mechanism of the wrench to rotate and output torque to tighten the bolt.
步骤S3,电流传感器检测扳手驱动电机的电流信号传递给单片机微处理器,通过单片机内置的控制程序推算实时电流值进行实时调节电流。霍尔位置传感器检测转子位置,用于计算转速作为速度反馈调节转速。In step S3, the current sensor detects the current signal of the wrench-driven motor and transmits it to the microprocessor of the single-chip microcomputer, and calculates the real-time current value through the built-in control program of the single-chip microcomputer to adjust the current in real time. The Hall position sensor detects the rotor position and is used to calculate the speed as a speed feedback to adjust the speed.
步骤S4,驱动电机电流达到电流计算值时,此时达到预设扭矩值,停止紧固动作;并通过单片机内置的控制程序控制开关断开,或手动关闭开关使电源停止供电。In step S4, when the current of the driving motor reaches the calculated current value, the preset torque value is reached at this time, and the tightening action is stopped; and the control program built in the single-chip microcomputer controls the switch to disconnect, or manually turns off the switch to stop the power supply.
如图5所示,本实施例的电动冲击扳手在使用时,控制系统上电后,单片机微控制器的端口寄存器进行初始化操作,传感器数据采集电路工作,液晶显示屏通电,实时采集的扳手输出扭矩信号与驱动电机电流信号在液晶显示屏中显示。设定好扭矩值后,通过所得的扳手输出扭矩与驱动电机电流间的多项式数学模型,微控制器内部开始计算其对应的驱动电机电流预存值。得到驱动电机电流预存值后,微控制器内部的PWM输出模块开始输出PWM信号,驱动电机带动主轴旋转。驱动电机转动的过程中电流传感器检测电机电流实际值,并将驱动电机电流实际值与扳手输出扭矩设定值所对应的驱动电机电流预存值进行比较。若电流实际值小于电流预存值,将继续执行PWM输出循环;若电流实际值达到电流预存值,驱动电机停转,扳手停止紧固作业且动作锁定,同时,液晶显示屏锁定,显示跳出循环时的扳手输出扭矩实时值,系统进入待机状态。As shown in FIG. 5 , when the electric impact wrench of this embodiment is in use, after the control system is powered on, the port register of the single-chip microcontroller performs initialization operation, the sensor data acquisition circuit works, the liquid crystal display is powered on, and the real-time collected wrench outputs The torque signal and drive motor current signal are displayed on the LCD screen. After setting the torque value, through the obtained polynomial mathematical model between the output torque of the wrench and the current of the driving motor, the microcontroller starts to calculate the corresponding pre-stored value of the current of the driving motor. After getting the pre-stored value of the drive motor current, the PWM output module inside the microcontroller starts to output the PWM signal, and the drive motor drives the spindle to rotate. During the rotation of the drive motor, the current sensor detects the actual value of the motor current, and compares the actual value of the drive motor current with the drive motor current pre-stored value corresponding to the wrench output torque setting value. If the current actual value is less than the current pre-stored value, the PWM output cycle will continue to be executed; if the current actual value reaches the current pre-stored value, the drive motor will stop, the wrench will stop tightening and the action will be locked. The wrench outputs the real-time torque value, and the system enters the standby state.
通过本实施例的技术方案,电流监控方法比起单一的速度控制方法稳定性好,抗干扰性高,且扭矩输出精度能够控制在≤±10%,同时,扳手采用了转速和电流双闭环PID控制方式,提高了控制系统的控制精度和鲁棒性。Through the technical solution of this embodiment, the current monitoring method has better stability and higher anti-interference than the single speed control method, and the torque output accuracy can be controlled within ≤±10%. The control method improves the control precision and robustness of the control system.
以上所述,仅是本发明的较佳实施例,而不是全部的实施例。凡是根据本发明技术实质对以上实施例所作的任何简单修改或者变更,均属于本发明技术方案的保护范围内。The above descriptions are only preferred embodiments of the present invention, but not all embodiments. Any simple modifications or changes made to the above embodiments according to the technical essence of the present invention fall within the protection scope of the technical solutions of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011345938.9A CN112497126B (en) | 2020-11-26 | 2020-11-26 | Electric impact wrench controlled by current PID |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011345938.9A CN112497126B (en) | 2020-11-26 | 2020-11-26 | Electric impact wrench controlled by current PID |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112497126A true CN112497126A (en) | 2021-03-16 |
CN112497126B CN112497126B (en) | 2022-03-15 |
Family
ID=74967928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011345938.9A Active CN112497126B (en) | 2020-11-26 | 2020-11-26 | Electric impact wrench controlled by current PID |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112497126B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116175459A (en) * | 2022-12-26 | 2023-05-30 | 安徽大学 | A method for controlling constant torque of an electric impact wrench |
CN116404772A (en) * | 2023-06-09 | 2023-07-07 | 西南交通大学 | A kind of rotary permanent magnet electric levitation device and permanent magnet electric levitation method |
US12214671B2 (en) | 2023-06-09 | 2025-02-04 | Southwest Jiaotong University | Rotary permanent magnet electrodynamic suspension device and permanent magnet electrodynamic suspension method using the same |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130228353A1 (en) * | 2012-03-02 | 2013-09-05 | Chervon (Hk) Limited | Torsion-adjustable impact wrench |
US20170246732A1 (en) * | 2016-02-25 | 2017-08-31 | Milwaukee Electric Tool Corporation | Power tool including an output position sensor |
TWM550202U (en) * | 2017-06-09 | 2017-10-11 | China Pneumatic Corp | Torque control system of electric impulse type torque tool |
CN108527235A (en) * | 2018-06-22 | 2018-09-14 | 安徽大学 | Intelligent torque wrench |
CN109108882A (en) * | 2017-06-26 | 2019-01-01 | 中国气动工业股份有限公司 | Torsion control system of electric impact type torsion tool and torsion control method thereof |
US20190022836A1 (en) * | 2017-07-19 | 2019-01-24 | China Pneumatic Corporation | Torque control system and torque control method for power impact torque tool |
US20200112283A1 (en) * | 2018-10-05 | 2020-04-09 | Etablissements Georges Renault | Electrical impact wrench with rebound impact mechanism |
CN111922967A (en) * | 2020-08-05 | 2020-11-13 | 孟易鸿 | Digital display electric fixed torque wrench control device, wrench and method |
-
2020
- 2020-11-26 CN CN202011345938.9A patent/CN112497126B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130228353A1 (en) * | 2012-03-02 | 2013-09-05 | Chervon (Hk) Limited | Torsion-adjustable impact wrench |
CN103286727A (en) * | 2012-03-02 | 2013-09-11 | 南京德朔实业有限公司 | Impact wrench capable of adjusting twisting force |
US20170246732A1 (en) * | 2016-02-25 | 2017-08-31 | Milwaukee Electric Tool Corporation | Power tool including an output position sensor |
TWM550202U (en) * | 2017-06-09 | 2017-10-11 | China Pneumatic Corp | Torque control system of electric impulse type torque tool |
CN109108882A (en) * | 2017-06-26 | 2019-01-01 | 中国气动工业股份有限公司 | Torsion control system of electric impact type torsion tool and torsion control method thereof |
US20190022836A1 (en) * | 2017-07-19 | 2019-01-24 | China Pneumatic Corporation | Torque control system and torque control method for power impact torque tool |
CN108527235A (en) * | 2018-06-22 | 2018-09-14 | 安徽大学 | Intelligent torque wrench |
US20200112283A1 (en) * | 2018-10-05 | 2020-04-09 | Etablissements Georges Renault | Electrical impact wrench with rebound impact mechanism |
CN111002262A (en) * | 2018-10-05 | 2020-04-14 | 乔治雷诺公司 | Electric impact wrench with rebound impact mechanism |
CN111922967A (en) * | 2020-08-05 | 2020-11-13 | 孟易鸿 | Digital display electric fixed torque wrench control device, wrench and method |
Non-Patent Citations (3)
Title |
---|
焦仁雷等: "无刷直流电机模糊自适应PID的研究及仿真", 《机械制造与自动化》 * |
王刘银等: "电动螺丝刀双闭环控制系统设计", 《工业控制计算机》 * |
缪凯祥等: "模糊PID控制在参考式扭矩装置伺服加载系统中的应用", 《船舶工程》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116175459A (en) * | 2022-12-26 | 2023-05-30 | 安徽大学 | A method for controlling constant torque of an electric impact wrench |
CN116404772A (en) * | 2023-06-09 | 2023-07-07 | 西南交通大学 | A kind of rotary permanent magnet electric levitation device and permanent magnet electric levitation method |
CN116404772B (en) * | 2023-06-09 | 2023-11-24 | 西南交通大学 | Rotary permanent magnet electric suspension device and permanent magnet electric suspension method |
US12214671B2 (en) | 2023-06-09 | 2025-02-04 | Southwest Jiaotong University | Rotary permanent magnet electrodynamic suspension device and permanent magnet electrodynamic suspension method using the same |
Also Published As
Publication number | Publication date |
---|---|
CN112497126B (en) | 2022-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112497126B (en) | Electric impact wrench controlled by current PID | |
CN102837283B (en) | Numerical-control constant-torque electric spanner | |
CA2446758C (en) | Processes of determining torque output and controlling power impact tools using a torque transducer | |
JP4339275B2 (en) | Method and apparatus for controlling impact type screw fastening device | |
CN108188968B (en) | Electric impact wrench and control method for assembly torque thereof | |
CN108527235A (en) | Intelligent torque wrench | |
JP4837498B2 (en) | Planetary gear device and impact type screw fastening device | |
JPH06179177A (en) | Monitoring and controlling device and method for fluid drive tool | |
CN103056818B (en) | For torque control method and the electric wrench thereof of numerical control electric constant torque wrench | |
CN108466218A (en) | Numerical control electric formula torque detects the detection method of spanner and bolt tightening torque value | |
JP2004322262A (en) | Method and apparatus for controlling impact type screw tightening device | |
CN101895247A (en) | Rotational speed governor of driving motor of submersible propeller | |
CN113390558B (en) | Impact wrench accumulated torque on-line measurement and calibration device | |
CN205148183U (en) | Impulsive torque electric tool | |
CN110228033A (en) | A kind of electric fixed-torque spanner control device, spanner and control method | |
CN110977853A (en) | Automatic electric control wrench for tightening bolt in narrow space | |
CN207942347U (en) | Numerical control electric formula torque detects spanner | |
CN104552115A (en) | DC (Direct Current) electric fixed-torque wrench | |
CN113510651B (en) | Method for controlling output torque of electric impact wrench | |
CN109986494B (en) | Electric torque wrench for tower bolt and control method thereof | |
CN103495861B (en) | The implementation method of bolt fastening system | |
CN111679702A (en) | A comprehensive multi-stage temperature control method for a mechanical refrigerator | |
CN202825674U (en) | Numerical control fixed torque electric wrench | |
CN106926179B (en) | Electric tool | |
CN201016824Y (en) | Main tooth bearing pre-tightening torque measuring apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |