[go: up one dir, main page]

CN113714789B - Screw tightening device based on visual positioning and control method - Google Patents

Screw tightening device based on visual positioning and control method Download PDF

Info

Publication number
CN113714789B
CN113714789B CN202110968755.0A CN202110968755A CN113714789B CN 113714789 B CN113714789 B CN 113714789B CN 202110968755 A CN202110968755 A CN 202110968755A CN 113714789 B CN113714789 B CN 113714789B
Authority
CN
China
Prior art keywords
tightening
robot
control system
computer
conveyor belt
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.)
Active
Application number
CN202110968755.0A
Other languages
Chinese (zh)
Other versions
CN113714789A (en
Inventor
吴志敏
黄文长
廖强华
付强
何跃军
钟森明
张家翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Vocational And Technical University
Original Assignee
Shenzhen Polytechnic
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Polytechnic filed Critical Shenzhen Polytechnic
Priority to CN202110968755.0A priority Critical patent/CN113714789B/en
Publication of CN113714789A publication Critical patent/CN113714789A/en
Application granted granted Critical
Publication of CN113714789B publication Critical patent/CN113714789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23PMETAL-WORKING NOT OTHERWISE PROVIDED FOR; COMBINED OPERATIONS; UNIVERSAL MACHINE TOOLS
    • B23P19/00Machines for simply fitting together or separating metal parts or objects, or metal and non-metal parts, whether or not involving some deformation; Tools or devices therefor so far as not provided for in other classes
    • B23P19/04Machines for simply fitting together or separating metal parts or objects, or metal and non-metal parts, whether or not involving some deformation; Tools or devices therefor so far as not provided for in other classes for assembling or disassembling parts
    • B23P19/06Screw or nut setting or loosening machines
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23PMETAL-WORKING NOT OTHERWISE PROVIDED FOR; COMBINED OPERATIONS; UNIVERSAL MACHINE TOOLS
    • B23P19/00Machines for simply fitting together or separating metal parts or objects, or metal and non-metal parts, whether or not involving some deformation; Tools or devices therefor so far as not provided for in other classes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23PMETAL-WORKING NOT OTHERWISE PROVIDED FOR; COMBINED OPERATIONS; UNIVERSAL MACHINE TOOLS
    • B23P19/00Machines for simply fitting together or separating metal parts or objects, or metal and non-metal parts, whether or not involving some deformation; Tools or devices therefor so far as not provided for in other classes
    • B23P19/001Article feeders for assembling machines
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Manipulator (AREA)

Abstract

The invention discloses a screw tightening device based on visual positioning and a control method, wherein the device comprises the following components: the device comprises a robot, a control system, a feeding mechanism, a vision measuring module and a tightening tool, wherein the control system is respectively in communication connection with the robot and the tightening tool, the feeding mechanism comprises a frame, a conveyor belt, a material tray, a material baffle, a blocking cylinder, a clamping cylinder and a photoelectric sensor, the conveyor belt is arranged on the frame, the material tray is arranged on the conveyor belt, the material baffle is arranged on two sides of the conveyor belt, the blocking cylinder and the clamping cylinder are arranged on the same side of the material baffle, and the photoelectric sensor is arranged on the opposite side of the blocking cylinder; the vision measurement module is installed in the frame, and the tightening tool is installed on the flange of the sixth axis of the robot, and the vision measurement module is located the top of tightening the operation area. The invention can rapidly position a plurality of bolt positions, and can program and control the tightening torque, thereby improving the screw tightening control precision and enabling the screw connection to achieve the expected tightening effect.

Description

基于视觉定位的螺纹拧紧装置及控制方法Screw tightening device and control method based on vision positioning

技术领域technical field

本发明涉及螺纹拧紧装配技术领域,特别涉及一种基于视觉定位的螺纹 拧紧装置及控制方法。The invention relates to the technical field of thread tightening assembly, in particular to a visual positioning-based thread tightening device and a control method.

背景技术Background technique

目前,大部分生产企业仍采用手持式电动或气动工具对螺纹紧固件进行 装配工作,或使用专用的锁螺丝机实现半自动化螺丝拧紧功能,少部分采用 工装夹具+机器人的方式对螺纹紧固件进行装配,即通过工装夹具对待装配工 件进行初步定位,然后再利用搭载拧紧工具的机器人通过示教学习的方式来控制运动轨迹及定位,完成螺丝装配拧紧过程,如肖海的《机器人螺栓拧紧 技术在发动机装配的应用》一文中先通过顶升机构中的导向销插入到发动机 托盘相应定位孔里,从而实现对发动机的定位;再通过压紧机构对发动机进 行处理,使各螺栓孔处于同一水平面,最后再设置规划机器人路径程序实现 对目标螺栓的定位以及拧紧处理。此外,还有少数采用机器视觉+机器人的方式对螺纹紧固件进行联接处理,即通过视觉实现对螺栓的定位,再引导机器 人搭载拧紧工具对紧固件进行螺纹联接处理,如童震的《基于机器视觉的螺 丝锁付SCARA机器人关键技术研究》一文中通过设计夹具使视觉系统和拧紧 工具能够同时安装在SCARA机器人末端,并设计规划机器人的运动轨迹实现 对不同位置的螺纹孔进行拍照处理,最后引导机器人对LED平板灯产品进行螺纹联接与装配。At present, most production enterprises still use hand-held electric or pneumatic tools to assemble threaded fasteners, or use special locking screw machines to realize semi-automatic screw tightening functions, and a small number of them use fixtures + robots to fasten threads Assembling the parts, that is, preliminarily positioning the workpiece to be assembled through the fixture, and then using the robot equipped with tightening tools to control the trajectory and positioning through teaching and learning, and complete the screw assembly and tightening process, such as Xiao Hai’s "Robot Bolt Tightening" In the article "Application of Technology in Engine Assembly", first insert the guide pin in the jacking mechanism into the corresponding positioning hole of the engine tray, so as to realize the positioning of the engine; Horizontal plane, and finally set the planning robot path program to realize the positioning and tightening of the target bolts. In addition, there are still a few who use machine vision + robots to connect threaded fasteners, that is, realize the positioning of bolts through vision, and then guide the robot to carry out tightening tools to thread the fasteners, such as Tong Zhen's " Research on the key technology of screw lock and SCARA robot based on machine vision" In the article, the vision system and the tightening tool can be installed at the end of the SCARA robot at the same time by designing the fixture, and the trajectory of the robot is designed and planned to take pictures of the threaded holes in different positions. Finally, guide the robot to thread and assemble the LED panel light products.

随着人工成本的不断提高,采用手持式工具对紧固件进行螺纹装配生产 成本高,拧紧精度受人为因素的影响较大;采用专用的锁螺丝机设备一般不 能灵活调整拧紧位置,也不能根据需要灵活设定或改变拧紧力矩,以获得更 高的拧紧控制精度;使用机器人示教方式对紧固件进行螺纹装配存在工装夹 具设计复杂以及对机器人重复定位精度要求较高的缺点,调整灵活性较差;使用SCARA机器人视觉定位引导的方式进行螺纹拧紧只允许搭载重量较轻的 小型拧紧工具,而且拧紧作业一般应分布在一个平面上,不能适应多方位或姿态的螺纹装配需求。With the continuous increase of labor costs, the production cost of thread assembly of fasteners using hand-held tools is high, and the tightening accuracy is greatly affected by human factors; the use of special locking screw machine equipment generally cannot flexibly adjust the tightening position, nor can it be adjusted according to It is necessary to flexibly set or change the tightening torque to obtain higher tightening control precision; the use of robot teaching method to thread assembly of fasteners has the disadvantages of complex design of fixtures and high requirements for repeatable positioning accuracy of robots, and adjustment flexibility Poor; the use of SCARA robot vision positioning guidance for thread tightening is only allowed to carry small light-weight tightening tools, and the tightening operations should generally be distributed on a plane, which cannot meet the requirements of multi-directional or attitude thread assembly.

同时,机器人拧紧过程中,一般搭载市面上普遍使用的拧紧工具——电 批,它一般只能设定某一个确定的扭矩上限阈值,达到扭矩阈值就停止旋转, 这样一方面扭矩控制精度很低,另一方面也不能针对不同螺纹紧固件来设置 不同的拧紧扭矩值,并规划更合适的拧紧工艺流程以获得最佳的装配效果。 同时,这种拧紧工具普遍没有拧紧过程数据反馈功能,无法直接判断和警示拧紧工艺过程的异常情况,也不能对拧紧数据进行进一步的溯源追踪和处理 保存。At the same time, during the tightening process of the robot, it is generally equipped with a tightening tool commonly used on the market - an electric screwdriver. Generally, it can only set a certain upper limit torque threshold, and stop rotating when the torque threshold is reached. On the one hand, the torque control accuracy is very low. On the other hand, it is not possible to set different tightening torque values for different threaded fasteners, and plan a more appropriate tightening process to obtain the best assembly effect. At the same time, such tightening tools generally do not have a tightening process data feedback function, and cannot directly judge and warn of abnormalities in the tightening process, nor can further traceability, processing and storage of tightening data.

发明内容Contents of the invention

本发明的主要目的在于提出一种基于视觉定位的螺纹拧紧装置及控制方 法,旨在适应多种螺纹装配位置和灵活设置拧紧力矩,提高螺纹拧紧控制精 度,获得更好的装配拧紧效果。The main purpose of the present invention is to propose a thread tightening device and control method based on visual positioning, aiming at adapting to various thread assembly positions and flexibly setting tightening torque, improving the control precision of thread tightening, and obtaining better assembly and tightening effects.

为实现上述目的,本发明提供了一种基于视觉定位的螺纹拧紧装置,包 括:机器人、控制系统、用于输送待拧紧模块的上料机构、用于对所述待拧 紧模块进行拍照定位的视觉测量模块、用于根据视觉测量模块的拍摄结果对 所述待拧紧模块进行拧紧操作的拧紧工具,其中,所述控制系统分别与所述 机器人、拧紧工具通信连接,所述上料机构包括机架、传送带、料盘、物料挡板、阻拦气缸、夹紧气缸和光电传感器,所述传送带安装于所述机架上, 所述料盘放置于所述传送带上,所述物料挡板安装于所述传送带的两侧,所 述阻拦气缸和夹紧气缸安装于所述物料挡板的同侧,且沿所述传送带的运行 方向前后依次设置,所述光电传感器安装于所述阻拦气缸的对侧,位于所述 传送带的运行方向稍靠后的位置;所述视觉测量模块安装于所述机架上,所 述拧紧工具安装于所述机器人上,且所述视觉测量模块位于所述拧紧作业区的上方。In order to achieve the above object, the present invention provides a visual positioning-based screw tightening device, including: a robot, a control system, a feeding mechanism for delivering the modules to be tightened, and a visual system for taking pictures of the modules to be tightened. A measurement module and a tightening tool for tightening the module to be tightened according to the shooting results of the visual measurement module, wherein the control system is connected to the robot and the tightening tool in communication, and the feeding mechanism includes a rack , conveyor belt, material tray, material baffle, blocking cylinder, clamping cylinder and photoelectric sensor, the conveyor belt is installed on the frame, the material tray is placed on the conveyor belt, and the material baffle is installed on the The two sides of the conveyor belt, the blocking cylinder and the clamping cylinder are installed on the same side of the material baffle, and are arranged in sequence along the running direction of the conveyor belt, and the photoelectric sensor is installed on the opposite side of the blocking cylinder , located slightly behind the running direction of the conveyor belt; the visual measurement module is installed on the frame, the tightening tool is installed on the robot, and the visual measurement module is located in the tightening work area above.

本发明进一步地技术方案是,所述拧紧工具包括与所述机器人连接的拧 紧轴、与所述拧紧轴连接的拧紧轴控制器,所述拧紧轴控制器位于所述拧紧 轴的末端位置,与所述拧紧轴相连。A further technical solution of the present invention is that the tightening tool includes a tightening shaft connected to the robot, a tightening shaft controller connected to the tightening shaft, the tightening shaft controller is located at the end position of the tightening shaft, and The tightening shafts are connected.

本发明进一步地技术方案是,所述拧紧轴包括拧紧批头、端盖、联轴器、 扭矩传感器、减速器、伺服电机和编码器,其中,所述端盖安装于所述拧紧 轴的前端,所述联轴器分别安装在所述端盖与所述扭矩传感器、所述扭矩传 感器与所述减速器之间,所述减速器与所述伺服电机连接,所述编码器安装 于所述伺服电机的末端。The further technical solution of the present invention is that the screwing shaft includes a screwing bit, an end cover, a coupling, a torque sensor, a reducer, a servo motor and an encoder, wherein the end cover is installed on the front end of the screwing shaft , the couplings are respectively installed between the end cover and the torque sensor, the torque sensor and the reducer, the reducer is connected to the servo motor, and the encoder is installed on the end of the servo motor.

本发明进一步地技术方案是,所述视觉测量模块包括视觉测量组件和安 装支架,所述安装支架的顶部为L形,所述安装支架的底部安装于所述机架上, 所述视觉测量组件通过L形安装板安装于所述安装支架的顶部。A further technical solution of the present invention is that the visual measurement module includes a visual measurement component and a mounting bracket, the top of the mounting bracket is L-shaped, the bottom of the mounting bracket is installed on the frame, and the visual measurement component It is installed on the top of the mounting bracket through an L-shaped mounting plate.

本发明进一步地技术方案是,所述视觉组件包括从上至下依次同轴设置 的相机、光学镜头和环形光源,其中,所述相机通过相机安装板安装于所述L 形安装板上,所述光学镜头与所述相机的C接口螺纹连接,所述环形光源通过 环形光源安装板安装于所述L形安装板上。A further technical solution of the present invention is that the vision component includes a camera, an optical lens and a ring light source arranged coaxially in sequence from top to bottom, wherein the camera is mounted on the L-shaped mounting plate through a camera mounting plate, so The optical lens is screwed to the C interface of the camera, and the ring light source is installed on the L-shaped mounting plate through the ring light source mounting plate.

本发明进一步地技术方案是,所述料盘包括支撑板和对称安装于所述支 撑板底部两端的立柱。A further technical solution of the present invention is that the tray includes a support plate and uprights symmetrically installed at both ends of the bottom of the support plate.

本发明进一步地技术方案是,所述待拧紧模块包括被拧电机、被拧电机 安装板和安装螺栓,所述被拧电机上有多个连接螺栓需要被拧紧。A further technical solution of the present invention is that the module to be tightened includes a motor to be screwed, a mounting plate of the motor to be screwed, and mounting bolts, and there are multiple connecting bolts on the motor to be screwed that need to be tightened.

本发明进一步地技术方案是,所述控制系统包括计算机、交换机、机器 人控制柜、示教器,其中,所述交换机分别与所述视觉测量模块、机器人控 制柜、计算机连接,所述机器人控制柜与所述机器人连接。A further technical solution of the present invention is that the control system includes a computer, a switch, a robot control cabinet, and a teaching pendant, wherein the switch is connected to the vision measurement module, the robot control cabinet, and the computer respectively, and the robot control cabinet Connect with the robot.

为实现上述目的,本发明还提出一种基于视觉定位的螺纹拧紧装置控制 方法,所述方法应用于如上所述的基于视觉定位的螺纹拧紧装置,所述方法 包括以下步骤:In order to achieve the above object, the present invention also proposes a visual positioning-based screw tightening device control method, the method is applied to the above-mentioned visual positioning-based screw tightening device, the method includes the following steps:

在所述光电传感器检测到所述料盘时,所述阻拦气缸对所述料盘进行阻 拦处理,所述夹紧气缸对所述料盘进行夹紧处理,并将夹紧信号发送至所述 控制系统中的计算机;When the photoelectric sensor detects the tray, the blocking cylinder performs blocking processing on the tray, the clamping cylinder performs clamping processing on the tray, and sends a clamping signal to the Computers in the control system;

所述控制系统中的计算机根据所述夹紧信号控制所述视觉测量模块对所 述待拧紧模块进行拍照定位,并将所述待拧紧模块上螺栓的位置信息发送至 所述机器人;The computer in the control system controls the visual measurement module to take pictures and locate the module to be tightened according to the clamping signal, and sends the position information of the bolt on the module to be tightened to the robot;

所述机器人带动所述拧紧工具对螺栓进行拧紧处理,并将拧紧信息发送 给所述控制系统中的计算机;The robot drives the tightening tool to tighten the bolts, and sends the tightening information to the computer in the control system;

所述控制系统中的计算机根据所述拧紧信息绘制拧紧过程曲线,并显示 和存储拧紧结果。The computer in the control system draws the tightening process curve according to the tightening information, and displays and stores the tightening results.

本发明进一步地技术方案是,所述控制系统中的计算机根据所述拧紧信 息绘制拧紧过程曲线,并显示和存储拧紧结果的步骤之后还包括:A further technical solution of the present invention is that the computer in the control system draws the tightening process curve according to the tightening information, and after the step of displaying and storing the tightening result, it also includes:

所述控制系统中的计算机根据所述拧紧信息判断是否达到预期的拧紧要 求;The computer in the control system judges whether the expected tightening requirements are met according to the tightening information;

若达到预期的拧紧要求,所述控制系统中的计算机则对已进行拧紧处理 的螺栓数量统计来判断是否完成本次所有待拧紧的螺栓拧紧任务,若已完成 所有螺栓的拧紧任务,所述机器人则进行回零点运动,所述相机测量模块停 止拍照,流程结束;If the expected tightening requirements are met, the computer in the control system will count the number of bolts that have been tightened to determine whether to complete the tightening tasks of all the bolts to be tightened this time. If the tightening tasks of all the bolts have been completed, the robot Then carry out the movement of returning to the zero point, the camera measurement module stops taking pictures, and the process ends;

若没达到预期的拧紧要求,则判断是否存在螺纹拧紧缺陷;If the expected tightening requirements are not met, judge whether there is a thread tightening defect;

若不存在拧紧缺陷,所述控制系统中的计算机则控制所述拧紧工具对螺 栓实现二次拧紧处理;If there is no tightening defect, the computer in the control system controls the tightening tool to realize secondary tightening process to the bolt;

若存在螺纹拧紧缺陷,所述控制系统中的计算机则显示并记录拧紧异常 信息。If there is a thread tightening defect, the computer in the control system will display and record the abnormal tightening information.

本发明基于视觉定位的螺纹拧紧装置及方法的有益效果是:The beneficial effects of the screw tightening device and method based on visual positioning of the present invention are:

1、针对手持式拧紧工具存在生产成本高、拧紧精度受人为因素影响较大 的问题,本发明采用机器人搭载拧紧工具的方式对螺栓进行快速地拧紧处理, 有利于提高生产效率、降低生产成本,提高螺纹装配自动化程度;1. Aiming at the problems of high production cost and high influence of human factors on the tightening accuracy of hand-held tightening tools, this invention adopts the method of fastening the bolts with the robot equipped with tightening tools, which is conducive to improving production efficiency and reducing production costs. Improve the automation of thread assembly;

2、针对专用锁螺丝机设备和机器人示教方式装配时不能灵活调整拧紧位 置,也不能根据需要灵活设定或改变拧紧力矩问题,本发明采用视觉对各种 形状布局的螺纹孔进行拍照定位,并可准确设置不同的扭矩目标值,可获得 更高的拧紧控制精度,通用性较强;;2. In view of the problem that the tightening position cannot be adjusted flexibly during the assembly of the special locking screw machine equipment and the robot teaching method, and the tightening torque cannot be flexibly set or changed according to the needs. And it can accurately set different torque target values, which can obtain higher tightening control accuracy and strong versatility;;

3、针对SCARA机器人拧紧装配方位和载荷局限性问题,本发明采用与负 载相匹配的六轴工业机器人+视觉的方案,解决了因机器人自由度对机器人活 动空间的限制以及机器人的装配超载问题;3. Aiming at the problem of SCARA robot tightening assembly orientation and load limitations, the present invention adopts a six-axis industrial robot + vision scheme that matches the load, which solves the limitation of the robot’s activity space due to the robot’s degree of freedom and the robot’s assembly overload problem;

4、针对机器人搭载的普通电批无法根据拧紧过程中不同螺纹紧固件设置 不同的拧紧工艺、扭矩控制精度较低、以及没有拧紧过程数据反馈功能的问 题,本发明采用具有扭矩闭环控制功能的拧紧工具并根据扭矩控制-转角监控 的方法针对不同螺栓及紧固件的材料特性来设置相对应的拧紧工艺,从而达 到较好的控制效果,同时利用计算机中的上位软件与拧紧工具进行通讯,实时采集拧紧数据并绘制拧紧曲线,有利于对拧紧过程的分析及拧紧结果的判 断,并对拧紧过程数据做进一步的存储,便于实现对装配数据的溯源与跟踪。4. Aiming at the problems that the ordinary electric screwdriver carried by the robot cannot set different tightening processes according to different threaded fasteners in the tightening process, the torque control accuracy is low, and there is no data feedback function in the tightening process, the present invention adopts a torque closed-loop control function. Tighten the tool and set the corresponding tightening process according to the material characteristics of different bolts and fasteners according to the torque control-rotation angle monitoring method, so as to achieve a better control effect. At the same time, use the upper software in the computer to communicate with the tightening tool. Real-time collection of tightening data and drawing of tightening curves are beneficial to the analysis of the tightening process and the judgment of the tightening results, and further storage of the tightening process data facilitates the traceability and tracking of assembly data.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面 描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的 附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings according to the structures shown in these drawings without creative effort.

图1是本发明基于视觉定位的螺纹拧紧装置较佳实施例的系统组成示意 图;Fig. 1 is the system composition diagram of the preferred embodiment of the screw tightening device based on vision positioning of the present invention;

图2是本发明基于视觉定位的螺纹拧紧装置较佳实施例中传送带以及待 拧紧模块的结构示意图;Fig. 2 is a schematic structural view of a conveyor belt and a module to be tightened in a preferred embodiment of the visual positioning-based screw tightening device of the present invention;

图3是拧紧工具的整体结构示意图;Fig. 3 is a schematic diagram of the overall structure of the tightening tool;

图4是拧紧工具的另一角度的整体结构示意图;Fig. 4 is a schematic diagram of the overall structure of another angle of the tightening tool;

图5是拧紧工具的又一角度的整体结构示意图;Fig. 5 is a schematic diagram of the overall structure of another angle of the tightening tool;

图6是拧紧工具的结构示意图;Fig. 6 is a structural schematic diagram of a tightening tool;

图7是视觉测量模块的结构示意图;Fig. 7 is a schematic structural diagram of a visual measurement module;

图8是本发明基于视觉定位的螺纹拧紧装置控制方法的具体流程示意图;Fig. 8 is a schematic flow chart of the control method of the screw tightening device based on visual positioning in the present invention;

图9是图像处理流程示意图;Fig. 9 is a schematic diagram of an image processing flow;

图10是拧紧扭矩-时间模型示意图;Fig. 10 is a schematic diagram of tightening torque-time model;

图11是拧紧过程力矩-角度-时间图;Figure 11 is a torque-angle-time diagram of the tightening process;

图12是拧紧过程力矩-角度-时间局部放大图;Figure 12 is a partial enlarged view of torque-angle-time in the tightening process;

图13是计算机的拧紧曲线界面图。Fig. 13 is a computer tightening curve interface diagram.

附图标号说明:Explanation of reference numbers:

机器人1;待拧紧模块2;视觉测量模块3;拧紧工具4;机架5;传送带6; 料盘7;物料挡板8;阻拦气缸9;夹紧气缸10;光电传感器11;被拧电机12; 被拧电机安装板13;计算机14;交换机15;机器人控制柜16;示教器17;气 泵18;支撑板19;立柱20;拧紧轴21;拧紧轴控制器22;拧紧批头23;端盖24;联轴器25;扭矩传感器26;减速器27;伺服电机28;编码器29;安装支 架30;L形安装板31;相机32;光学镜头33;环形光源34;相机安装板35;环 形光源安装板36。Robot 1; module to be tightened 2; visual measurement module 3; tightening tool 4; frame 5; conveyor belt 6; material tray 7; material baffle 8; blocking cylinder 9; clamping cylinder 10; Screwed motor mounting plate 13; computer 14; switch 15; robot control cabinet 16; teach pendant 17; air pump 18; support plate 19; Cover 24; coupling 25; torque sensor 26; reducer 27; servo motor 28; encoder 29; mounting bracket 30; L-shaped mounting plate 31; camera 32; optical lens 33; ring light source 34; camera mounting plate 35; The ring light source mounting plate 36.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步 说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例, 而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有 做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts all belong to the protection scope of the present invention.

需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、 前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下 各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则 该方向性指示也相应地随之改变。It should be noted that if there are directional indications (such as up, down, left, right, front, back...) in the embodiment of the present invention, the directional indications are only used to explain the position in a certain posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

另外,若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、 “第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者 隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以 明示或者隐含地包括至少一个该特征。另外,全文中出现的“和/或”的含义, 包括三个并列的方案,以“A和/或B”为例,包括A方案、或B方案、或A和B同 时满足的方案。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保 护范围之内。In addition, if there are descriptions involving "first", "second" and so on in the embodiments of the present invention, the descriptions of "first", "second" and so on are only for descriptive purposes and should not be interpreted as indicating or implying Its relative importance or implicitly indicates the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the meaning of "and/or" appearing throughout the text includes three parallel schemes, taking "A and/or B" as an example, including scheme A, scheme B, or schemes that both A and B satisfy. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.

为解决现有技术中存在的技术问题,本发明提出一种基于视觉定位的螺 纹拧紧装置,该装置利用视觉测量模块为机器人提供被拧对象上待装配螺纹 的准确位置,从而引导机器人移动到恰当位置和姿态,利用拧紧工具采用扭 矩闭环控制和角度监测方法实现对螺钉的拧紧过程,以达到将螺纹连接的轴 向预紧力控制在适当的范围的目的。根据拧紧过程产生的数据绘制扭矩-转角- 时间曲线,以便对螺栓拧紧结果做进一步分析判断,确保螺栓装配质量达到预期要求。同时利用上位软件及通信功能,计算机对拧紧过程数据做进一步 的储存和记录,便于后续查看拧紧过程数据和问题的溯源。In order to solve the technical problems existing in the prior art, the present invention proposes a thread tightening device based on vision positioning, which uses a vision measurement module to provide the robot with the exact position of the thread to be assembled on the screwed object, thereby guiding the robot to move to the appropriate position. Position and attitude, use the tightening tool to realize the tightening process of the screw by using the torque closed-loop control and angle monitoring method, so as to achieve the purpose of controlling the axial pretightening force of the threaded connection within an appropriate range. Draw the torque-rotation angle-time curve according to the data generated during the tightening process, so as to further analyze and judge the bolt tightening results and ensure that the bolt assembly quality meets the expected requirements. At the same time, using the host software and communication functions, the computer further stores and records the tightening process data, which is convenient for subsequent viewing of the tightening process data and the traceability of problems.

如图1至图7所示,本发明基于视觉定位的螺纹拧紧装置较佳实施例包括: 机器人1、控制系统、用于输送待拧紧模块2的上料机构、用于对待拧紧模块2 进行拍照定位的视觉测量模块3、用于根据视觉测量模块3的拍摄结果对待拧 紧模块2进行拧紧操作的拧紧工具4,其中,控制系统分别与机器人1、拧紧工 具4通信连接,上料机构包括机架5、传送带6、料盘7、物料挡板8、阻拦气缸 9、夹紧气缸10和光电传感器11,传送带6安装于机架5上,料盘7放置于传送 带6上,物料挡板8安装于传送带6的两侧,阻拦气缸9和夹紧气缸10安装于物料挡板8的同侧,且沿传送带6的运行方向前后依次设置,光电传感器11安装 于阻拦气缸9的对侧,位于传送带6的运行方向稍靠后的位置;视觉测量模块3 安装于机架5上,拧紧工具4安装于机器人1上,且视觉测量模块3位于拧紧作 业区域的上方。As shown in Figures 1 to 7, the preferred embodiment of the screw tightening device based on visual positioning of the present invention includes: a robot 1, a control system, a feeding mechanism for delivering the module 2 to be tightened, and a camera for the module 2 to be tightened The positioned visual measurement module 3, the tightening tool 4 for tightening the tightening module 2 according to the shooting results of the visual measurement module 3, wherein the control system is connected to the robot 1 and the tightening tool 4 respectively, and the feeding mechanism includes a frame 5. Conveyor belt 6, material tray 7, material baffle 8, blocking cylinder 9, clamping cylinder 10 and photoelectric sensor 11, conveyor belt 6 is installed on frame 5, material tray 7 is placed on conveyor belt 6, material baffle 8 is installed On both sides of the conveyor belt 6, the blocking cylinder 9 and the clamping cylinder 10 are installed on the same side of the material baffle 8, and arranged in sequence along the running direction of the conveyor belt 6. The photoelectric sensor 11 is installed on the opposite side of the blocking cylinder 9, located on the conveyor belt 6 slightly behind the running direction; the visual measurement module 3 is installed on the frame 5, the tightening tool 4 is installed on the robot 1, and the visual measurement module 3 is located above the tightening work area.

其中,待拧紧模块2可以包括被拧电机12、被拧电机安装板13和多个拧紧 螺栓。控制系统包括计算机14、交换机15、机器人控制柜16、示教器17,其 中,交换机15分别与视觉测量模块3、机器人控制柜16、计算机14连接,机器 人控制柜16与机器人1连接。Wherein, the module 2 to be tightened may include a screwed motor 12, a screwed motor mounting plate 13 and a plurality of tightening bolts. Control system comprises computer 14, switchboard 15, robot control cabinet 16, teaching pendant 17, wherein, switchboard 15 is connected with visual measurement module 3, robot control cabinet 16, computer 14 respectively, and robot control cabinet 16 is connected with robot 1.

作为一种实施方式,本实施例还包括气泵18,该气泵18分别与阻拦气缸9、 夹紧气缸10连接。As an implementation, this embodiment also includes an air pump 18, which is connected to the blocking cylinder 9 and the clamping cylinder 10 respectively.

具体地,计算机14与视觉测量模块3之间采用以太网中的Vision Gige协议 来进行通讯,机器人1和计算机14之间采用以太网中的TCP/IP协议来进行通 讯,所述的拧紧工具4和计算机14之间采用特定的协议来进行串口通讯。Specifically, the Vision Gige protocol in Ethernet is used for communication between the computer 14 and the visual measurement module 3, and the TCP/IP protocol in Ethernet is used for communication between the robot 1 and the computer 14. The tightening tool 4 Use specific protocol to carry out serial communication with computer 14.

所述料盘7包括料盘支撑板19和对称安装于所述支撑板19底部两端的立 柱20。所述料盘7主要用于托运所述待拧紧模块2,即所述被拧电机12、被拧 电机安装板13和安装螺栓。Described charging tray 7 comprises charging tray support plate 19 and the upright column 20 that is symmetrically installed in described support plate 19 bottom two ends. The material tray 7 is mainly used for consignment of the module 2 to be tightened, that is, the screwed motor 12, the screwed motor mounting plate 13 and the mounting bolts.

本实施例中,物料挡板8安装在传送带6的两侧,对料盘7起到导向和阻拦 的作用;阻拦气缸9安装在传送带6运行方向的前方,主要对料盘7起到阻拦的 作用;夹紧气缸10安装在阻拦气缸9后面合适的位置,主要起到对料盘7进行 夹紧作用;光电传感器11安装在阻拦气缸9的对侧,且相对于传送带6的运行 方向稍微靠后合适的位置,主要起到对料盘7的检测作用,判断是否有物料经 过。In this embodiment, the material baffles 8 are installed on both sides of the conveyor belt 6, and play the role of guiding and blocking the material tray 7; Function; the clamping cylinder 10 is installed at a suitable position behind the blocking cylinder 9, mainly to clamp the material tray 7; the photoelectric sensor 11 is installed on the opposite side of the blocking cylinder 9, and is slightly closer to the running direction of the conveyor belt 6. After the appropriate position, it mainly plays a role in detecting the material tray 7, and judging whether there is material passing through.

本实施例可以在复杂的环境下利用视觉测量模块3对不同规格大小的目 标螺栓进行拍照处理,并结合视觉原点和机器人1拧紧位置参考点是产品上的 同一点可知螺栓相对于视觉原点的偏移量等于螺栓相对于机器人1拧紧位置 参考点的偏移量,从而实现对目标螺栓的精准定位,进而引导机器人1带着拧 紧工具4快速的对相应的螺栓进行拧紧处理,同时,控制系统中的计算机根据拧紧工具4发送的拧紧数据绘制拧紧过程曲线并显示拧紧结果,必要时触发拧 紧工具4进行重复拧紧工作以便达到预期设置的拧紧目标,同时对拧紧过程数 据做进一步的储存和记录,便于后续查看拧紧过程数据和问题的溯源。In this embodiment, the visual measurement module 3 can be used to take pictures of target bolts of different specifications and sizes in a complex environment, and the deviation of the bolt relative to the visual origin can be known by combining the visual origin and the reference point of the tightening position of the robot 1 being the same point on the product. The displacement is equal to the offset of the bolt relative to the reference point of the tightening position of the robot 1, so as to realize the precise positioning of the target bolt, and then guide the robot 1 to quickly tighten the corresponding bolt with the tightening tool 4. At the same time, the control system The computer draws the tightening process curve and displays the tightening results according to the tightening data sent by the tightening tool 4. If necessary, the tightening tool 4 is triggered to repeat the tightening work so as to achieve the expected tightening target. At the same time, the tightening process data is further stored and recorded for convenience. Check the tightening process data and trace the source of the problem later.

进一步地,本实施例中,拧紧工具4包括与机器人1连接的拧紧轴21、与 拧紧轴21连接的拧紧轴控制器22,拧紧轴控制器22位于拧紧轴21的末端位置, 与拧紧轴21相连。Further, in this embodiment, the tightening tool 4 includes a tightening shaft 21 connected to the robot 1, a tightening shaft controller 22 connected to the tightening shaft 21, the tightening shaft controller 22 is located at the end position of the tightening shaft 21, and connected to the tightening shaft 21 connected.

拧紧轴21包括拧紧批头23、端盖24、联轴器25、扭矩传感器26、减速器 27、伺服电机28和编码器29,其中,端盖24安装于拧紧轴21的前端,联轴器 25分别安装在端盖24与扭矩传感器26、扭矩传感器26与减速器27之间,减速 器27与伺服电机28连接,编码器29安装于伺服电机的末端。The tightening shaft 21 includes a tightening bit 23, an end cap 24, a shaft coupling 25, a torque sensor 26, a reducer 27, a servo motor 28 and an encoder 29, wherein the end cap 24 is installed on the front end of the tightening shaft 21, and the shaft coupling 25 are respectively installed between the end cover 24 and the torque sensor 26, the torque sensor 26 and the reducer 27, the reducer 27 is connected with the servo motor 28, and the encoder 29 is installed at the end of the servo motor.

本实施例中,拧紧工具4的拧紧轴21控制驱动器安装在拧紧轴21末端位置, 与所述拧紧轴21相连,主要起到对拧紧轴21的驱动控制以及信号传输的作用。In this embodiment, the tightening shaft 21 control driver of the tightening tool 4 is installed at the end of the tightening shaft 21 and is connected with the tightening shaft 21, mainly playing the role of driving control and signal transmission for the tightening shaft 21.

本实施例中,视觉测量模块3主要通过对被拧电机12及配套紧固装置进行 拍照处理,从而得出目标螺栓的准确位置。In this embodiment, the visual measurement module 3 mainly obtains the accurate position of the target bolt by taking pictures of the screwed motor 12 and the supporting fastening device.

该视觉测量模块3包括视觉测量组件和安装支架30,安装支架30的顶部为 L形,安装支架30的底部安装于机架5上,视觉测量组件通过L形安装板31安装 于安装支架30的顶部。This visual measuring module 3 comprises visual measuring assembly and mounting bracket 30, and the top of mounting bracket 30 is L-shaped, and the bottom of mounting bracket 30 is installed on the frame 5, and visual measuring assembly is installed on the mounting bracket 30 by L-shaped mounting plate 31 top.

其中,视觉组件包括从上至下依次同轴设置的相机32、光学镜头33和环 形光源34,其中,相机32通过相机安装板35安装于L形安装板31上,光学镜头 33与相机32的C接口螺纹连接,环形光源34通过环形光源安装板36安装于L形 安装板31上。Wherein, the visual assembly includes a camera 32, an optical lens 33 and a ring light source 34 coaxially arranged in sequence from top to bottom, wherein the camera 32 is installed on the L-shaped mounting plate 31 by a camera mounting plate 35, and the optical lens 33 and the camera 32 The C interface is threaded, and the ring light source 34 is installed on the L-shaped mounting plate 31 through the ring light source mounting plate 36 .

本发明基于视觉定位的螺纹拧紧装置的整体的工作过程是:The overall working process of the screw tightening device based on visual positioning of the present invention is:

系统启动运行后,利用安装在传送带6上并处于相机32视野下方的光电传 感器11对载有被拧电机12和配套紧固装置的料盘7进行检测,当料盘7触发光 电传感器11时,阻拦气缸9动作并伸出对料盘7进行阻拦处理,同时停止运行 传送带6并触发夹紧气缸10动作,对料盘7进行夹紧处理,此时安装在传送带6 旁支架上方的相机32对处在相机32下方的被拧电机12及被拧电机安装板和安 装螺栓进行拍照处理,并将拍照后的处理结果即被拧电机和被拧电机安装板 之间紧固螺栓相对于视觉原点的偏移量传递给控制系统中的计算机,控制系 统中的计算机在接收到被拧电机紧固螺栓相对于视觉原点的偏移量后通过TCP/IP协议的方式将被拧电机紧固螺栓相对于视觉原点的偏移量发送给机器人1,然后机器人1带着拧紧工具4运动至相应螺栓的位置进行拧紧处理,并将 拧紧数据通过串口通讯的方式发送至控制系统,最后控制系统根据拧紧数据 绘制拧紧曲线和显示结果,同时根据拧紧结果进行二次拧紧或运动到下一个 螺栓位置进行拧紧处理,直到所有待拧紧的螺栓拧紧结束后该装置退出控制 流程进入等待执行状态。After the system starts running, use the photoelectric sensor 11 installed on the conveyor belt 6 and under the field of view of the camera 32 to detect the tray 7 carrying the screwed motor 12 and the supporting fastening device. When the tray 7 triggers the photoelectric sensor 11, Block the action of the cylinder 9 and stretch out to block the material tray 7, stop the conveyor belt 6 and trigger the action of the clamping cylinder 10, and clamp the material tray 7. At this time, there are 32 pairs of cameras installed on the side bracket of the conveyor belt 6. The screwed motor 12 below the camera 32, the screwed motor mounting plate and the mounting bolts are photographed, and the result after taking pictures is the distance between the screwed motor and the screwed motor mounting plate with respect to the visual origin of the fastening bolts. The offset is transmitted to the computer in the control system. After receiving the offset of the tightening bolt of the tightened motor relative to the origin of vision, the computer in the control system will use the TCP/IP protocol to transfer the tightening bolt of the tightened motor relative to the The offset of the visual origin is sent to robot 1, and then robot 1 moves to the position of the corresponding bolt with tightening tool 4 for tightening processing, and sends the tightening data to the control system through serial communication, and finally the control system draws Tighten the curve and display the results, and at the same time perform secondary tightening or move to the next bolt position for tightening processing according to the tightening results, until all the bolts to be tightened are tightened, the device exits the control process and enters the waiting execution state.

本发明基于视觉定位的螺纹拧紧装置的有益效果是:The beneficial effects of the screw tightening device based on visual positioning of the present invention are:

1、针对手持式拧紧工具存在生产成本高、拧紧精度受人为因素影响较大 的问题,本发明采用机器人搭载拧紧工具的方式对螺栓进行快速地拧紧处理, 有利于提高生产效率、降低生产成本,提高螺纹装配自动化程度;1. Aiming at the problems of high production cost and high influence of human factors on the tightening accuracy of hand-held tightening tools, this invention adopts the method of fastening the bolts with the robot equipped with tightening tools, which is conducive to improving production efficiency and reducing production costs. Improve the automation of thread assembly;

2、针对专用锁螺丝机设备和机器人示教方式装配时不能灵活调整拧紧位 置,也不能根据需要灵活设定或改变拧紧力矩问题,本发明采用视觉对各种 形状布局的螺纹孔进行拍照定位,并可准确设置不同的扭矩目标值,可获得 更高的拧紧控制精度,通用性较强;;2. In view of the problem that the tightening position cannot be adjusted flexibly during the assembly of the special locking screw machine equipment and the robot teaching method, and the tightening torque cannot be flexibly set or changed according to the needs. And it can accurately set different torque target values, which can obtain higher tightening control accuracy and strong versatility;;

3、针对SCARA机器人拧紧装配方位和载荷局限性问题,本发明采用与负 载相匹配的六轴工业机器人+视觉的方案,解决了因机器人自由度对机器人活 动空间的限制以及机器人的装配超载问题;3. Aiming at the problem of SCARA robot tightening assembly orientation and load limitations, the present invention adopts a six-axis industrial robot + vision scheme that matches the load, which solves the limitation of the robot’s activity space due to the robot’s degree of freedom and the robot’s assembly overload problem;

4、针对机器人搭载的普通电批无法根据拧紧过程中不同螺纹紧固件设置 不同的拧紧工艺、扭矩控制精度较低、以及没有拧紧过程数据反馈功能的问 题,本发明采用具有扭矩闭环控制功能的拧紧工具并根据扭矩控制-转角监控 的方法针对不同螺栓及紧固件的材料特性来设置相对应的拧紧工艺,从而达 到较好的控制效果,同时利用计算机中的上位软件与拧紧工具进行通讯,实时采集拧紧数据并绘制拧紧曲线,有利于对拧紧过程的分析及拧紧结果的判 断,并对拧紧过程数据做进一步的存储,便于实现对装配数据的溯源与跟踪。4. Aiming at the problems that the ordinary electric screwdriver carried by the robot cannot set different tightening processes according to different threaded fasteners in the tightening process, the torque control accuracy is low, and there is no data feedback function in the tightening process, the present invention adopts a torque closed-loop control function. Tighten the tool and set the corresponding tightening process according to the material characteristics of different bolts and fasteners according to the torque control-rotation angle monitoring method, so as to achieve a better control effect. At the same time, use the upper software in the computer to communicate with the tightening tool. Real-time collection of tightening data and drawing of tightening curves are beneficial to the analysis of the tightening process and the judgment of the tightening results, and further storage of the tightening process data facilitates the traceability and tracking of assembly data.

为实现上述目的,本发明还提出一种基于视觉定位的螺纹拧紧装置控制 方法,所述方法应用于如上所述的基于视觉定位的螺纹拧紧装置,所述方法 包括以下步骤:In order to achieve the above object, the present invention also proposes a visual positioning-based screw tightening device control method, the method is applied to the above-mentioned visual positioning-based screw tightening device, the method includes the following steps:

在所述光电传感器检测到所述料盘时,所述阻拦气缸对所述料盘进行阻 拦处理,所述夹紧气缸对所述料盘进行夹紧处理,并将夹紧信号发送至所述控制系统中的计算机;When the photoelectric sensor detects the tray, the blocking cylinder performs blocking processing on the tray, the clamping cylinder performs clamping processing on the tray, and sends a clamping signal to the Computers in the control system;

所述控制系统中的计算机根据所述夹紧信号控制所述视觉测量模块对所 述待拧紧模块进行拍照定位,并将所述待拧紧模块的位置信息发送至所述机 器人;The computer in the control system controls the visual measurement module to take pictures and locate the module to be tightened according to the clamping signal, and sends the position information of the module to be tightened to the robot;

所述机器人带动所述拧紧工具对螺栓进行拧紧处理,并将拧紧信息发送 给所述控制系统中的计算机;The robot drives the tightening tool to tighten the bolts, and sends the tightening information to the computer in the control system;

所述控制系统中的计算机根据所述拧紧信息绘制拧紧过程曲线,并显示 和存储拧紧结果。The computer in the control system draws the tightening process curve according to the tightening information, and displays and stores the tightening results.

进一步地,所述控制系统中的计算机根据所述拧紧信息绘制拧紧过程曲 线,并显示和存储拧紧结果的步骤之后还包括:Further, the computer in the control system draws the tightening process curve according to the tightening information, and after the step of displaying and storing the tightening results, it also includes:

所述控制系统中的计算机根据所述拧紧信息判断是否达到预期的拧紧要 求;The computer in the control system judges whether the expected tightening requirements are met according to the tightening information;

若达到预期的拧紧要求,所述控制系统中的计算机则对已进行拧紧处理 的螺栓数量统计来判断是否完成本次所有螺栓拧紧任务,若已完成所有螺栓 的拧紧任务,所述机器人则进行回零点运动,所述相机测量模块停止拍照, 流程结束;If the expected tightening requirements are met, the computer in the control system will count the number of bolts that have been tightened to determine whether all the bolt tightening tasks have been completed. If all the bolt tightening tasks have been completed, the robot will return Zero point movement, the camera measurement module stops taking pictures, and the process ends;

若没达到预期的拧紧要求,则判断是否存在螺纹拧紧缺陷;If the expected tightening requirements are not met, judge whether there is a thread tightening defect;

若不存在拧紧缺陷,所述控制系统中的计算机则控制所述拧紧工具对螺 栓实现二次拧紧处理;If there is no tightening defect, the computer in the control system controls the tightening tool to realize secondary tightening process to the bolt;

若存在螺纹拧紧缺陷,所述控制系统则显示并记录拧紧异常信息。If there is a thread tightening defect, the control system will display and record tightening abnormality information.

以下结合图8至图13所示对本发明基于视觉定位的螺纹拧紧装置控制方 法进行进一步的阐述。The visual positioning-based screw tightening device control method of the present invention will be further described below in conjunction with Fig. 8 to Fig. 13 .

如图8所示,本发明基于视觉定位的螺纹拧紧装置控制方法的具体流程如 下:As shown in Figure 8, the specific process of the control method of the screw tightening device based on visual positioning in the present invention is as follows:

步骤1:在系统进入初始化前进行以下准备工作:Step 1: Carry out the following preparations before the system enters initialization:

1)根据系统方案的需求完成对相机、机器人、实验对象等的选型工作, 最终确定以海康威视600万像素的黑白工业相机、普通光学镜头、环形光源及 控制器、拧紧工具以及型号为ABB-1410的六轴机器人作为实验对象;1) Complete the selection of cameras, robots, experimental objects, etc. according to the requirements of the system plan, and finally determine the Hikvision 6-megapixel black and white industrial camera, ordinary optical lens, ring light source and controller, tightening tools and models The six-axis robot of ABB-1410 is used as the experimental object;

2)在安装在机器人末端的拧紧工具批头处安装标定针,完成工具坐标系 的建立工作;2) Install a calibration pin at the screwdriver head installed at the end of the robot to complete the establishment of the tool coordinate system;

3)完成机器人运动控制程序的编写以及拧紧工具的拧紧工艺设计工作;3) Complete the programming of the robot motion control program and the design of the tightening process of the tightening tool;

4)将网线分别将计算机、相机、机器人控制器柜通过千兆网卡的交换机 连接起来,并将上述的三者的网络地址设置在同一个网段;4) Connect the computer, camera, and robot controller cabinet through the Gigabit network card switch with network cables, and set the network addresses of the above three in the same network segment;

5)完成视觉图像处理程序的编写,其中包括对相机的标定、手眼标定、 模板匹配、建立模板坐标系等,以及利用找圆工具等对螺栓的螺帽进行拟合 圆以便确认圆心位置;5) Complete the writing of the visual image processing program, including calibration of the camera, hand-eye calibration, template matching, establishment of a template coordinate system, etc., and the use of circle finding tools to fit the circle of the nut of the bolt so as to confirm the position of the center of the circle;

6)完成上位软件的编写,该上位软件的功能包括:6) Complete the writing of the host software, the functions of the host software include:

a)计算机和机器人的通讯功能,该功能用于计算机接收来自机器人发来 的机器人准备就绪信号和计算机向机器人发送螺栓的螺帽中心点位置信息以 及拧紧工具拧紧完毕信号;a) The communication function between the computer and the robot, which is used for the computer to receive the robot ready signal from the robot and send the computer to the robot the position information of the nut center point of the bolt and the signal of the completion of tightening of the tightening tool;

b)计算机和相机的通讯功能,该功能用于计算机实时对相机发送操作指 令和计算机实时接收相机反馈的实时图像或单个图像,用于后续的图像处理;b) The communication function between the computer and the camera, which is used for the computer to send operation instructions to the camera in real time and the computer to receive real-time images or single images fed back by the camera in real time for subsequent image processing;

c)计算机和拧紧工具的通讯功能,该功能用于计算机实时对拧紧工具发 送操作指令及拧紧工艺参数和计算机实时接收拧紧工具反馈的实时拧紧数据, 用于后续的曲线绘制;c) The communication function between the computer and the tightening tool, which is used for the computer to send operating instructions and tightening process parameters to the tightening tool in real time, and the computer receives real-time tightening data fed back by the tightening tool in real time for subsequent curve drawing;

d)实时显示相机拍摄画面的功能,该功能用于实时显示相机拍摄画面的 图像,便于对相机的拍摄画面有更直观的了解;d) The function of displaying the camera shooting picture in real time, which is used to display the image of the camera shooting picture in real time, so as to have a more intuitive understanding of the camera shooting picture;

e)调用图像处理程序的功能,该功能用于调用相机拍摄的图像来进行处 理,并输出图像中螺栓的螺帽中心点经图像处理程序处理后的坐标值;E) call the function of image processing program, this function is used to call the image that camera takes to process, and output the coordinate value of the nut center point of bolt in the image after processing by image processing program;

f)螺栓的螺帽中心点坐标的显示功能,该功能用于显示螺栓的螺帽中心 点在机器人工具坐标系下的坐标值;f) The display function of the coordinates of the nut center point of the bolt, which is used to display the coordinate value of the nut center point of the bolt in the robot tool coordinate system;

g)根据拧紧数据实时绘制扭矩-转角-时间曲线的功能,该功能能够直观 的了解拧紧过程中的力矩变化趋势;g) The function of drawing the torque-rotation angle-time curve in real time according to the tightening data, which can intuitively understand the torque change trend during the tightening process;

h)保存和查看拧紧数据的功能,该功能可以保存实时拧紧数据,并且根 据需要对历史拧紧数据进行查看。h) The function of saving and viewing tightening data, which can save real-time tightening data and view historical tightening data as needed.

步骤2:在完成上述初始化前的准备工作后,系统进入初始化状态,该状 态包括:机器人进行回原运动,检测各个部件的功能是否正常,确认电路、 通讯是否正常,根据螺栓的类型发送相应拧紧工艺参数;Step 2: After completing the above preparations before initialization, the system enters the initialization state, which includes: the robot performs a return to the original movement, checks whether the functions of each component are normal, confirms whether the circuit and communication are normal, and sends corresponding tightening according to the type of bolts. Process parameters;

步骤3:将装有被拧电机及其安装板和紧固螺栓的料盘放到传送带上并启 动运行传送带,处在料盘上方的电机及紧固装置跟随传送带一起运动;同时 启动光电传感器对料盘进行检测;Step 3: Put the tray with the screwed motor, its mounting plate and fastening bolts on the conveyor belt and start the conveyor belt. The motor and fastening device above the tray move together with the conveyor belt; at the same time, start the photoelectric sensor to The tray is inspected;

步骤4:当料盘触发光电传感器时,阻拦气缸动作并伸出对料盘进行阻拦 处理,同时停止运行传送带并触发夹紧气缸动作,对料盘进行夹紧处理;Step 4: When the material tray triggers the photoelectric sensor, the blocking cylinder moves and stretches out to block the material tray, and at the same time stops the conveyor belt and triggers the action of the clamping cylinder to clamp the material tray;

步骤5:计算机收到来自机器人的夹紧气缸动作到位信号后触发相机对传 送带上的被拧电机及其安装板和紧固螺栓进行拍照处理,并调用图像处理程 序对所拍摄的图像进行处理,最后计算机将处理结果即所需拧紧螺栓的中心 点位置发送给机器人;Step 5: After receiving the signal from the robot that the clamping cylinder is in place, the computer triggers the camera to take pictures of the screwed motor on the conveyor belt, its mounting plate and fastening bolts, and calls the image processing program to process the captured images. Finally, the computer sends the processing result, that is, the position of the center point of the bolt to be tightened, to the robot;

步骤6:机器人带着拧紧工具运动到相应的螺栓处进行拧紧处理并将拧紧 过程数据通过串口通讯的方式发送至计算机;Step 6: The robot moves to the corresponding bolt with the tightening tool for tightening processing and sends the tightening process data to the computer through serial communication;

步骤7:计算机根据拧紧数据进行拧紧过程曲线绘制以及显示拧紧拧紧结 果;Step 7: The computer draws the tightening process curve and displays the tightening results according to the tightening data;

步骤8:根据拧紧数据判断本次拧紧任务是否达到预期的拧紧要求,若达 到预期的拧紧要求,则流程跳转至步骤13,判断是否完成本次的拧紧任务; 若未达到预期的拧紧要求,则流程跳转至步骤9,判断是否存在螺纹拧紧缺陷;Step 8: Determine whether the tightening task meets the expected tightening requirements according to the tightening data. If the expected tightening requirements are met, the process jumps to step 13 to determine whether the tightening task is completed; if the expected tightening requirements are not met, Then the process jumps to step 9 to determine whether there is a thread tightening defect;

步骤9:根据拧紧数据中的扭矩变化趋势判断是否存在螺纹拧紧缺陷,若 存在螺纹拧紧缺陷,则流程跳转至步骤12,显示并记录拧紧异常信息;若不 存在螺纹拧紧缺陷,则流程跳转至步骤10,拧紧工具对螺栓进行二次拧紧处 理;Step 9: Determine whether there is a thread tightening defect according to the torque variation trend in the tightening data. If there is a thread tightening defect, the process jumps to step 12, and the tightening abnormal information is displayed and recorded; if there is no thread tightening defect, the process jumps Go to step 10, the tightening tool performs secondary tightening process on the bolt;

步骤10:计算机发送再次拧紧信号,拧紧工具对螺栓实现二次拧紧处理;Step 10: The computer sends a re-tightening signal, and the tightening tool performs a second tightening process on the bolt;

步骤11:判断拧紧次数是否超过3次,若拧紧次数超过3次则认为是拧紧 异常,跳转至步骤12显示并记录拧紧异常信息;若拧紧次数不超过3次,则流 程跳转至步骤8,重新判断是否达到预期的拧紧要求;Step 11: Determine whether the number of tightening times exceeds 3 times. If the number of tightening times exceeds 3 times, it is considered to be abnormal tightening, and jump to step 12 to display and record the abnormal tightening information; if the number of tightening times does not exceed 3 times, the process jumps to step 8 , re-judging whether the expected tightening requirements are met;

步骤12:显示拧紧结果异常并记录相应的拧紧异常信息;Step 12: Display abnormal tightening results and record corresponding abnormal tightening information;

步骤13:根据计算机对已进行拧紧处理的螺栓数量统计来判断是否完成 本次所有螺栓拧紧任务,若已完成所有螺栓的拧紧任务,则流程跳转至步骤 14;若未完成所有螺栓的拧紧任务,则流程跳转至步骤3,重新启动传送带;Step 13: According to the statistics of the number of bolts that have been tightened by the computer, it is judged whether all the bolt tightening tasks have been completed this time. If all the bolt tightening tasks have been completed, the process will jump to step 14; if the tightening tasks of all bolts have not been completed , the process jumps to step 3 and restarts the conveyor belt;

步骤14:本次拧紧任务已完成,机器人进行回零点运动,相机停止拍照, 流程结束。Step 14: This tightening task has been completed, the robot performs the movement of returning to the zero point, the camera stops taking pictures, and the process ends.

如图9所示,为图像的处理流程,在图像处理流程前需要进行相机标定、 手眼标定等工作,确保视觉测量系统能够直接应用到本发明的实验中,其中 图像处理流程包括图像采集、模板匹配、建立模板坐标系、图像滤波处理、 图像动态阈值分割处理、膨胀腐蚀处理以及利用找圆工具确定螺栓中心点位置的过程,其中图像采集是通过上位软件触发相机进行拍照,并将照片采集 到上位软件进行图像处理;模板匹配是根据被拧电机尾部的形状特征建立匹 配模板,用于确认相机的拍照处理对象;建立模板坐标系是根据模板匹配的 特征建立坐标系,主要用于确定并缩小图像处理区域;图像滤波处理主要是 对目标图像的噪声进行抑制,进行有选择性增强或者抑制,从而突出所需的 图像特征,增强视觉识别效果;动态阈值分割处理主要是取得能够反应图像整体和局部的二值化图像,进而提高所抓取特征的轮廓对比度,降低了后期 图像处理的复杂度;膨胀腐蚀处理主要是突出螺帽的特征,同时减小背景的 干扰因素,使螺帽的形状在图像中更加清晰;利用找圆工具主要的目的是寻 找的螺帽头部的圆并确定其中心点位置。As shown in Figure 9, it is the image processing flow. Camera calibration, hand-eye calibration and other work need to be carried out before the image processing flow to ensure that the visual measurement system can be directly applied to the experiment of the present invention, wherein the image processing flow includes image acquisition, template Matching, establishment of template coordinate system, image filtering processing, image dynamic threshold segmentation processing, expansion and corrosion processing, and the process of determining the position of the center point of the bolt by using the circle-finding tool. The upper software performs image processing; template matching is to establish a matching template based on the shape characteristics of the tail of the twisted motor, which is used to confirm the camera’s photographing processing object; establishing a template coordinate system is to establish a coordinate system based on the characteristics of template matching, mainly used to determine and reduce Image processing area; image filtering processing is mainly to suppress the noise of the target image, and selectively enhance or suppress it, so as to highlight the required image features and enhance the visual recognition effect; dynamic threshold segmentation processing is mainly to obtain images that can reflect the overall and Local binarization of images improves the contour contrast of captured features and reduces the complexity of post-image processing; dilation and corrosion processing mainly highlights the characteristics of nuts, while reducing background interference factors, making the shape of nuts It is clearer in the image; the main purpose of using the find circle tool is to find the circle of the nut head and determine its center point position.

如图10所示,为拧紧过程的扭矩控制模型图,其中拧紧工艺包括以下几 个阶段:寻帽阶段、螺纹缺陷检测阶段、拧紧阶段、拧紧保持阶段、反拧阶 段,具体工艺如下:As shown in Figure 10, it is a torque control model diagram of the tightening process, wherein the tightening process includes the following stages: cap search stage, thread defect detection stage, tightening stage, tightening maintenance stage, reverse screwing stage, the specific process is as follows:

1.寻帽阶段(0–t1):批头或套筒慢速转动一圈,使批头或套筒与螺栓 相结合;1. Cap-seeking stage (0–t 1 ): the bit or sleeve rotates one circle at a slow speed, so that the bit or sleeve is combined with the bolt;

2.螺纹缺陷检测阶段(t1–t2):电批转动使螺栓下旋,期间检测扭矩是 否有异常增大情况,若出现异常增大的情况则说明螺纹存在缺陷;2. Thread defect detection stage (t 1 - t 2 ): the electric screwdriver rotates to make the bolts spin down, and check whether the torque increases abnormally during this period. If there is an abnormal increase, it indicates that the thread is defective;

3.贴合点检测阶段(t2–t3):该阶段检测贴合扭矩,螺栓螺帽下端在t3与联接体贴合,称t3为贴合时刻,对应的点为贴合点;3. Fitting point detection stage (t 2 -t 3 ): In this stage, the fitting torque is detected, and the lower end of the bolt and nut fits with the joint body at t 3 , and t 3 is called the fitting moment, and the corresponding point is the fitting point;

4.拧紧阶段(t3–t4):该阶段从贴合点开始根据设置的目标扭矩利用扭 矩法进行拧紧,直到达到设定扭矩值时切换至下一阶段,该阶段可以针对不 同螺栓设置不同的目标扭矩;4. Tightening stage (t 3 -t 4 ): This stage starts from the fitting point and uses the torque method to tighten according to the set target torque, and switches to the next stage when the set torque value is reached. This stage can be set for different bolts different target torques;

5.拧紧保持阶段(t4–t5):该阶段从达到设定扭矩开始,将拧紧扭矩保 持一段时间,这个保持时间可以根据需要进行设置;5. Tightening and holding stage (t 4 -t 5 ): this stage starts from reaching the set torque, and keeps the tightening torque for a period of time. This holding time can be set according to needs;

6.反拧阶段(t5–t6):该阶段对拧紧批头进行适当的反转控制,并非实 际意义上对螺栓进行反松(卸钉)处理,主要是为了卸掉保持力矩以及减小批头与螺栓之间的摩擦力,便于批头的拔出同时不影响原来的拧紧效果,反 拧角度范围在1到10度之间,可根据现场实际情况进行设置。6. Anti-tightening stage (t 5 -t 6 ): In this stage, the proper reverse control of the tightening bit is not performed on the bolts in the actual sense. The friction between the small bit and the bolt facilitates the extraction of the bit without affecting the original tightening effect. The anti-tightening angle ranges from 1 to 10 degrees, which can be set according to the actual situation on site.

为了使该控制模型的目的、技术方案和优点更加清楚,下面将结合附图 对该模型作进一步的描述。In order to make the purpose, technical solution and advantages of the control model clearer, the model will be further described below in conjunction with the accompanying drawings.

如图11所示,该图是根据上述控制模型的实际应用效果图,其中带三角 形标识的为拧紧过程中的角度曲线,带圆形标识的为拧紧过程中的扭矩曲线, 这两条曲线分别对应左边的角度刻度线和右边的扭矩刻度线,其中横轴为时 间轴,每个数据点的采集间隔平均为50ms。As shown in Figure 11, this figure is based on the actual application effect diagram of the above control model, in which the triangle mark is the angle curve during the tightening process, and the circle mark is the torque curve during the tightening process. These two curves are respectively Corresponding to the angle scale line on the left and the torque scale line on the right, the horizontal axis is the time axis, and the average acquisition interval of each data point is 50ms.

由图11可知,拧紧工具从开始大致转动半圈的时候寻帽成功,该阶段扭 矩传感器测得的扭矩从零缓缓上升到一定值,并切换到螺纹缺陷检测阶段; 在螺纹缺陷检测阶段拧紧工具快速转动使螺栓下旋,并实时监测扭矩值,扭 矩达到设定的贴合点扭矩值时切换至拧紧阶段;在拧紧阶段拧紧工具根据扭矩法对电批进行控制,使拧紧扭矩逐渐上升至设定值,当达到扭矩设定值时 切换至拧紧保持阶段;在拧紧保持阶段拧紧工具根据所设定的保持时间将上 一阶段的目标扭矩保持一段时间,达到保持时间时切换至反拧阶段;在反拧阶段拧紧工具根据位置模式进行适当反转控制,卸掉保持扭矩以及减小批头 与螺栓之间的摩擦力,但同时不影响前面的拧紧效果,图11中该阶段的反拧角度为8度,图11中的反拧阶段的局部放大图如图12所示。It can be seen from Figure 11 that the tightening tool successfully finds the cap when it turns roughly half a circle from the beginning, and the torque measured by the torque sensor rises slowly from zero to a certain value at this stage, and switches to the thread defect detection stage; The tool rotates quickly to make the bolts spin down, and the torque value is monitored in real time. When the torque reaches the set point torque value, it switches to the tightening stage; in the tightening stage, the tightening tool controls the electric batch according to the torque method, so that the tightening torque gradually rises to Set value, when the torque setting value is reached, switch to the tightening and holding stage; in the tightening and holding stage, the tightening tool will maintain the target torque of the previous stage for a period of time according to the set holding time, and switch to the reverse screwing stage when the holding time is reached ;In the anti-tightening stage, the tightening tool performs appropriate reverse control according to the position mode, removes the holding torque and reduces the friction between the bit and the bolt, but at the same time does not affect the previous tightening effect. The anti-tightening at this stage in Figure 11 The angle is 8 degrees, and the partially enlarged view of the anti-twist stage in Fig. 11 is shown in Fig. 12 .

如图13所示,为本发明开发的上位软件中的拧紧曲线显示界面,该上位 软件基于.Net语言在Visual Studio进行开发,其包括通讯、图像显示、图像处理、拧紧曲线显示、拧紧工艺设置等功能。其中图像处理功能为调用美国 Cognex公司旗下的VisionPro软件生成的图像处理文件来对所拍摄的图像进行 处理。As shown in Figure 13, it is the tightening curve display interface in the upper software developed by the present invention. The upper software is developed in Visual Studio based on the .Net language, which includes communication, image display, image processing, tightening curve display, and tightening process settings. and other functions. Wherein the image processing function is to call the image processing file generated by the VisionPro software of the U.S. Cognex company to process the captured image.

本发明基于视觉定位的螺纹拧紧方法的有益效果是:The beneficial effects of the screw tightening method based on visual positioning of the present invention are:

1、针对手持式拧紧工具存在生产成本高、拧紧精度受人为因素影响较大 的问题,本发明采用机器人搭载拧紧工具的方式对螺栓进行快速地拧紧处理, 有利于提高生产效率、降低生产成本,提高螺纹装配自动化程度;1. Aiming at the problems of high production cost and high influence of human factors on the tightening accuracy of hand-held tightening tools, this invention adopts the method of fastening the bolts with the robot equipped with tightening tools, which is conducive to improving production efficiency and reducing production costs. Improve the automation of thread assembly;

2、针对专用锁螺丝机设备和机器人示教方式装配时不能灵活调整拧紧位 置,也不能根据需要灵活设定或改变拧紧力矩问题,本发明采用视觉对各种 形状布局的螺纹孔进行拍照定位,并可准确设置不同的扭矩目标值,可获得 更高的拧紧控制精度,通用性较强;;2. In view of the problem that the tightening position cannot be adjusted flexibly during the assembly of the special locking screw machine equipment and the robot teaching method, and the tightening torque cannot be flexibly set or changed according to the needs. And it can accurately set different torque target values, which can obtain higher tightening control accuracy and strong versatility;;

3、针对SCARA机器人拧紧装配方位和载荷局限性问题,本发明采用与负 载相匹配的六轴工业机器人+视觉的方案,解决了因机器人自由度对机器人活 动空间的限制以及机器人的装配超载问题;3. Aiming at the problem of SCARA robot tightening assembly orientation and load limitations, the present invention adopts a six-axis industrial robot + vision scheme that matches the load, which solves the limitation of the robot’s activity space due to the robot’s degree of freedom and the robot’s assembly overload problem;

4、针对机器人搭载的普通电批无法根据拧紧过程中不同螺纹紧固件设置 不同的拧紧工艺、扭矩控制精度较低、以及没有拧紧过程数据反馈功能的问 题,本发明采用具有扭矩闭环控制功能的拧紧工具并根据扭矩控制-转角监控 的方法针对不同螺栓及紧固件的材料特性来设置相对应的拧紧工艺,从而达 到较好的控制效果,同时利用计算机中的上位软件与拧紧工具进行通讯,实时采集拧紧数据并绘制拧紧曲线,有利于对拧紧过程的分析及拧紧结果的判 断,并对拧紧过程数据做进一步的存储,便于实现对装配数据的溯源与跟踪。4. Aiming at the problems that the ordinary electric screwdriver carried by the robot cannot set different tightening processes according to different threaded fasteners in the tightening process, the torque control accuracy is low, and there is no data feedback function in the tightening process, the present invention adopts a torque closed-loop control function. Tighten the tool and set the corresponding tightening process according to the material characteristics of different bolts and fasteners according to the torque control-rotation angle monitoring method, so as to achieve a better control effect. At the same time, use the upper software in the computer to communicate with the tightening tool. Real-time collection of tightening data and drawing of tightening curves are beneficial to the analysis of the tightening process and the judgment of the tightening results, and further storage of the tightening process data facilitates the traceability and tracking of assembly data.

以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围, 凡是在本发明的构思下,利用本发明说明书及附图内容所作的等效结构变换, 或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Under the conception of the present invention, the equivalent structural transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly/indirectly used in Other relevant technical fields are all included in the patent protection scope of the present invention.

Claims (7)

1. A visual positioning-based screw tightening device, comprising: the device comprises a six-axis industrial robot, a control system, a feeding mechanism for conveying a module to be screwed down, a vision measurement module for photographing and positioning threaded holes of various shapes and layouts of the module to be screwed down and target bolts of different specifications and guiding the six-axis industrial robot to move to a proper position and posture, and a screwing tool for screwing down the module to be screwed down according to the photographing result of the vision measurement module, wherein the control system is respectively in communication connection with the robot and the screwing tool, the feeding mechanism comprises a frame, a conveyor belt, a material tray, a material baffle, a blocking cylinder, a clamping cylinder and a photoelectric sensor, the conveyor belt is mounted on the frame, the material tray is placed on the conveyor belt, the material baffle is mounted on two sides of the conveyor belt, the blocking cylinder and the clamping cylinder are mounted on the same side of the material baffle, and are sequentially arranged front and back along the running direction of the conveyor belt, and the photoelectric sensor is mounted on the opposite side of the blocking cylinder and is positioned at a position later than the running direction of the conveyor belt. The visual measurement module is arranged on the frame, the tightening tool is arranged on a flange of a sixth shaft of the robot, and the visual measurement module is positioned above a tightening operation area;
The visual measurement module comprises a visual measurement assembly and a mounting bracket, wherein the top of the mounting bracket is L-shaped, the bottom of the mounting bracket is mounted on the frame, and the visual measurement assembly is mounted on the top of the mounting bracket through an L-shaped mounting plate;
the vision measurement assembly comprises a camera, an optical lens and an annular light source which are sequentially and coaxially arranged from top to bottom, wherein the camera is arranged on the L-shaped mounting plate through a camera mounting plate, the optical lens is in threaded connection with a C interface of the camera, and the annular light source is arranged on the L-shaped mounting plate through an annular light source mounting plate;
the tightening tool comprises a tightening shaft connected with the robot and a tightening shaft controller connected with the tightening shaft, wherein the tightening shaft controller is positioned at the tail end of the tightening shaft and is connected with the tightening shaft; the tightening shaft comprises a tightening head, an end cover, a coupler, a torque sensor, a speed reducer, a servo motor and an encoder, wherein the end cover is arranged at the front end of the tightening shaft, the coupler is respectively arranged between the end cover and the torque sensor as well as between the torque sensor and the speed reducer, the speed reducer is connected with the servo motor, and the encoder is arranged at the tail end of the servo motor;
The module to be screwed comprises a screwed motor, a screwed motor mounting plate and mounting bolts, wherein a plurality of screwed bolts are arranged on the screwed motor to be screwed;
the vision measurement module photographs the module to be screwed up, and the processing flow of photographed pictures is as follows: the method comprises the steps of image acquisition, template matching, template coordinate system establishment, image filtering processing, image dynamic threshold segmentation processing, expansion corrosion processing and bolt center point position determination by using a circle finding tool, wherein the image acquisition is to trigger a camera to take a picture through upper software; the template matching is to establish a matching template according to the shape characteristics of the tail part of the twisted motor and is used for confirming a photographic processing object of a camera; establishing a template coordinate system is to establish the coordinate system according to the characteristics of template matching and is used for determining and shrinking the image processing area; the image filtering processing is to inhibit the noise of the target image, selectively enhance or inhibit the noise, thereby highlighting the required image characteristics and enhancing the visual recognition effect; the dynamic threshold segmentation processing is to obtain a binary image capable of reflecting the whole and part of the image, so that the contour contrast of the captured features is improved, and the complexity of the later image processing is reduced; the expansion corrosion treatment is characterized by highlighting the nut, and simultaneously reduces interference factors of the background, so that the shape of the nut is clearer in the image; the round finding tool is used for finding the circle of the head of the nut and determining the position of the center point of the circle;
The blocking cylinder is used for blocking the material tray when the photoelectric sensor detects the material tray, and the clamping cylinder is used for clamping the material tray and sending a clamping signal to the control system;
the robot is used for driving the tightening tool to tighten the bolt and sending tightening information to the control system;
the control system is used for controlling the vision measurement module to take a picture of the module to be screwed according to the clamping signal, and sending the position information of the connecting bolt of the screwed motor on the module to be screwed to the robot; and then guiding the robot to carry a tightening tool to quickly tighten the corresponding bolt;
the control system is also used for sending corresponding tightening process parameters according to the types of the bolts, drawing a tightening process curve according to the tightening information, setting corresponding tightening processes according to the material characteristics of different bolts and fasteners by adopting a torque control-rotation angle monitoring method, displaying and storing tightening results, and triggering a tightening tool to perform repeated tightening work when necessary so as to achieve the preset tightening target;
The control system is also used for judging whether the expected tightening requirement is met according to the tightening information;
if the expected tightening requirement is met, the computer in the control system counts the number of the bolts which are subjected to tightening processing to judge whether all the tightening tasks of the bolts to be tightened are completed, if the tightening tasks of all the bolts are completed, the robot performs zero-return movement, the camera measurement module stops photographing, and the process is finished;
if the expected tightening requirement is not met, judging whether a screw tightening defect exists or not;
if the tightening defect does not exist, a computer in the control system controls the tightening tool to realize secondary tightening treatment on the bolt;
if the screw tightening defect exists, the computer in the control system displays and records abnormal tightening information.
2. The visual positioning-based screw-on device of claim 1, wherein camera calibration, hand-eye calibration is required.
3. The visual positioning-based screw-on device of claim 2, wherein the photo is captured by a host software for image processing.
4. The visual positioning-based screw-on device of claim 1, wherein the tray comprises a support plate and posts symmetrically mounted at both ends of the bottom of the support plate.
5. The visual positioning-based screw tightening device according to any one of claims 1 to 4, wherein the control system comprises a computer, a switch, a robotic control cabinet, and a teach pendant, wherein the switch is connected to the visual measurement module, the robotic control cabinet, and the computer, respectively, and the robotic control cabinet is connected to the robot.
6. A method of controlling a visual positioning-based screw tightening device, characterized in that the method is applied to the visual positioning-based screw tightening device according to any one of claims 1 to 5, the method comprising the steps of:
step 1: the system enters an initialization state, which includes: the robot performs the original return movement, detects whether the functions of all the parts are normal, confirms whether the circuits and the communication are normal, and sends corresponding tightening technological parameters according to the types of the bolts;
step 2: placing a tray provided with a screwed motor, a mounting plate and a fastening bolt of the screwed motor on a conveyor belt, starting the conveyor belt to run, and enabling the motor and the fastening device above the tray to move along with the conveyor belt; simultaneously, a photoelectric sensor is started to detect the material tray;
step 3: when the charging tray triggers the photoelectric sensor, the blocking cylinder acts and extends out to block the charging tray, meanwhile, the operation of the conveyor belt is stopped, the action of the clamping cylinder is triggered, and the charging tray is clamped;
Step 4: after receiving a signal from a robot that a clamping cylinder acts in place, a computer triggers a camera to photograph a screwed motor, a mounting plate and a fastening bolt of the screwed motor on a conveyor belt, invokes an image processing program to process a photographed image, and finally, the computer sends a processing result, namely a central point position of the bolt to be screwed to the robot;
step 5: the robot moves to the corresponding bolt with the tightening tool to carry out tightening treatment and sends tightening process data to the computer in a serial port communication mode;
step 6: the computer draws a tightening process curve according to the tightening data and displays the tightening result;
step 7: judging whether the tightening task reaches the expected tightening requirement according to the tightening data, if so, jumping to a step 12, and judging whether the tightening task is completed; if the expected tightening requirement is not met, the flow jumps to step 8, and whether the screw tightening defect exists is judged;
step 8: judging whether a screw tightening defect exists according to the torque variation trend in the tightening data, if so, jumping to a step 11, and displaying and recording abnormal tightening information; if the screw tightening defect does not exist, the flow jumps to step 9, and the tightening tool performs secondary tightening treatment on the bolt;
Step 9: the computer sends a re-tightening signal, and the tightening tool performs secondary tightening treatment on the bolt;
step 10: judging whether the tightening times exceeds 3 times, if so, judging that the tightening is abnormal, jumping to the step 11 to display and record abnormal tightening information; if the tightening times are not more than 3 times, the flow jumps to step 6, and whether the expected tightening requirement is met is judged again;
step 11: displaying the abnormal tightening result and recording corresponding abnormal tightening information;
step 12: judging whether all the bolt tightening tasks are completed according to the statistics of the number of the bolts which are subjected to tightening processing by the computer, and if all the bolt tightening tasks are completed, jumping the flow to the step 13; if the tightening tasks of all the bolts are not completed, the flow jumps to step 2, and the conveyor belt is restarted;
step 13: the tightening task is completed, the robot performs zero-point motion, the camera stops photographing, and the process is finished.
7. The method for controlling a screw tightening device based on visual positioning according to claim 6, wherein the step of the control system drawing a tightening process curve based on the tightening information and displaying and storing the tightening result further comprises:
The computer in the control system judges whether the expected tightening requirement is met according to the tightening information;
if the expected tightening requirement is met, the computer in the control system counts the number of the bolts which are subjected to tightening processing to judge whether all the tightening tasks of the bolts to be tightened are completed, if the tightening tasks of all the bolts are completed, the robot performs zero-return movement, the camera measurement module stops photographing, and the process is finished;
if the expected tightening requirement is not met, judging whether a screw tightening defect exists or not;
if the tightening defect does not exist, a computer in the control system controls the tightening tool to realize secondary tightening treatment on the bolt;
if the screw tightening defect exists, the computer in the control system displays and records abnormal tightening information.
CN202110968755.0A 2021-08-23 2021-08-23 Screw tightening device based on visual positioning and control method Active CN113714789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110968755.0A CN113714789B (en) 2021-08-23 2021-08-23 Screw tightening device based on visual positioning and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110968755.0A CN113714789B (en) 2021-08-23 2021-08-23 Screw tightening device based on visual positioning and control method

Publications (2)

Publication Number Publication Date
CN113714789A CN113714789A (en) 2021-11-30
CN113714789B true CN113714789B (en) 2023-08-11

Family

ID=78677448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110968755.0A Active CN113714789B (en) 2021-08-23 2021-08-23 Screw tightening device based on visual positioning and control method

Country Status (1)

Country Link
CN (1) CN113714789B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114211496B (en) * 2021-12-29 2023-10-10 中国重汽集团济南动力有限公司 An intelligent gear-tooth automatic assembly system based on robotic arms
CN114299026A (en) * 2021-12-29 2022-04-08 广东利元亨智能装备股份有限公司 Detection method, detection device, electronic equipment and readable storage medium
CN117001293A (en) * 2022-04-27 2023-11-07 一汽-大众汽车有限公司 Bolt tightening method and device based on visual recognition
CN115319446A (en) * 2022-08-15 2022-11-11 中交第一航务工程局有限公司 Large-scale wind-powered electricity generation blade assembly fastening robot system
CN115169201A (en) * 2022-08-24 2022-10-11 国铁川藏科创中心(成都)有限公司 A method for testing cable force of long cable-stayed bridges based on spatial alignment
CN115453645B (en) * 2022-09-23 2025-04-08 陕西法士特齿轮有限责任公司 Visual detection system and method for preventing assembly of steel wire thread sleeve
CN115431031A (en) * 2022-09-30 2022-12-06 三一重能股份有限公司 Installation system and method for double-ended studs
CN115452228B (en) * 2022-10-11 2025-06-20 汉中万利航空装备制造有限公司 A method and device for testing engine torque with equal precision and in a large range
CN115523807B (en) * 2022-10-19 2026-01-06 佛山大学 A shell tightening device
CN115570369A (en) * 2022-10-20 2023-01-06 北京无线电测量研究所 A method and device for automatic screwing
CN115781262A (en) * 2022-10-24 2023-03-14 中国电子科技集团公司第十四研究所 A device for fastening torque control and real-time image recording
CN115635290A (en) * 2022-11-11 2023-01-24 中铁工程装备集团有限公司 Pipe piece bolt tightening device, system and method
CN115901067A (en) * 2022-11-28 2023-04-04 广州松兴电气股份有限公司 An automatic detection platform and detection method for brake disc bolts
CN117206885B (en) * 2023-09-12 2025-10-10 福建星云电子股份有限公司 A battery module screw automatic tightening method, system, device and medium
CN117324938A (en) * 2023-10-25 2024-01-02 中国电子科技集团公司第二十九研究所 Image and light guided screw assembly method and system
CN117399953B (en) * 2023-11-04 2026-01-02 中国第一汽车股份有限公司 A method and device for preventing incorrect tightening with physical positioning
CN117444602A (en) * 2023-11-16 2024-01-26 武汉海微科技有限公司 Automatic locking method, device, equipment and storage medium
CN117245352B (en) * 2023-11-20 2024-04-09 珠海富士智能股份有限公司 Television base member manufacturing method, manufacturing apparatus, and storage medium
CN117415603B (en) * 2023-12-18 2024-03-12 北京李尔现代坦迪斯汽车系统有限公司 Bolt screwing robot for automobile seat production
CN118404317B (en) * 2024-07-04 2024-09-24 中科云谷科技有限公司 Method and device for tightening workpieces, tightening system and storage medium
CN118951692B (en) * 2024-08-23 2025-01-24 上海韦地科技集团有限公司 A bolt tightening device for nuclear industry with balance detection function
CN118699768A (en) * 2024-08-30 2024-09-27 盛瑞传动股份有限公司 A control method for automatic feeding and tightening of gearbox bolts
CN118720715A (en) * 2024-08-30 2024-10-01 盛瑞传动股份有限公司 A control system for automatic feeding and tightening of gearbox bolts

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2035171A (en) * 1978-11-24 1980-06-18 Desoutter Ltd Tightening a threaded fastener
JP2006281364A (en) * 2005-03-31 2006-10-19 Nitto Seiko Co Ltd Automatic screwing machine
CN103722363A (en) * 2012-10-15 2014-04-16 北汽福田汽车股份有限公司 Bolt screw-down device, controller and control method of bolt screw-down device and bolt screw-down system
CN206010371U (en) * 2016-08-31 2017-03-15 青岛华创风能有限公司 A kind of automatic screwing down apparatus of wind generator unit wheel hub bearing bolt
CN107470896A (en) * 2017-09-05 2017-12-15 天合汽车零部件(上海)有限公司 Fastener external screw thread just matches somebody with somebody internal thread supervising device and monitoring method
CN108500602A (en) * 2018-04-08 2018-09-07 浙江时空能源技术有限公司 Automatic lock screws apptss for assembling electric automobile power battery and control method
CN109794763A (en) * 2019-03-28 2019-05-24 北京工业大学 A kind of bolt automatic screwing device of six-joint robot
CN109807613A (en) * 2019-03-13 2019-05-28 中国铁建重工集团有限公司 A mobile positioning and tightening device
CN110834194A (en) * 2019-12-06 2020-02-25 深圳市山龙智控有限公司 Intelligent servo electric batch and its use method
CN210476118U (en) * 2019-06-12 2020-05-08 五邑大学 A new type of automatic locking screw machine for flexible manufacturing
CN210908898U (en) * 2019-11-12 2020-07-03 大连计量检测中心有限公司 Automatic screw fastening device of engine
CN112536754A (en) * 2020-11-27 2021-03-23 固高派动(东莞)智能科技有限公司 Screw fastening system and method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2035171A (en) * 1978-11-24 1980-06-18 Desoutter Ltd Tightening a threaded fastener
JP2006281364A (en) * 2005-03-31 2006-10-19 Nitto Seiko Co Ltd Automatic screwing machine
CN103722363A (en) * 2012-10-15 2014-04-16 北汽福田汽车股份有限公司 Bolt screw-down device, controller and control method of bolt screw-down device and bolt screw-down system
CN206010371U (en) * 2016-08-31 2017-03-15 青岛华创风能有限公司 A kind of automatic screwing down apparatus of wind generator unit wheel hub bearing bolt
CN107470896A (en) * 2017-09-05 2017-12-15 天合汽车零部件(上海)有限公司 Fastener external screw thread just matches somebody with somebody internal thread supervising device and monitoring method
CN108500602A (en) * 2018-04-08 2018-09-07 浙江时空能源技术有限公司 Automatic lock screws apptss for assembling electric automobile power battery and control method
CN109807613A (en) * 2019-03-13 2019-05-28 中国铁建重工集团有限公司 A mobile positioning and tightening device
CN109794763A (en) * 2019-03-28 2019-05-24 北京工业大学 A kind of bolt automatic screwing device of six-joint robot
CN210476118U (en) * 2019-06-12 2020-05-08 五邑大学 A new type of automatic locking screw machine for flexible manufacturing
CN210908898U (en) * 2019-11-12 2020-07-03 大连计量检测中心有限公司 Automatic screw fastening device of engine
CN110834194A (en) * 2019-12-06 2020-02-25 深圳市山龙智控有限公司 Intelligent servo electric batch and its use method
CN112536754A (en) * 2020-11-27 2021-03-23 固高派动(东莞)智能科技有限公司 Screw fastening system and method

Also Published As

Publication number Publication date
CN113714789A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN113714789B (en) Screw tightening device based on visual positioning and control method
CN114248086B (en) A flexible three-dimensional vision-guided robot alignment system and method
CN110948491B (en) Industrial robot grabbing method based on visual following
US9914192B2 (en) Tooling system with visual identification of attached component
US20050273199A1 (en) Robot system
JP7529855B2 (en) CONTROL DEVICE, ROBOT DEVICE, CONTROL METHOD, AND PROGRAM
CN109434435A (en) A kind of fastener automatic dismantling system and method based on machine vision
US20220241982A1 (en) Work robot and work system
CN111905983A (en) Vision following-based dispensing track correction method, device, system and medium
WO2013099373A1 (en) Work management apparatus and work management system
WO2015120734A1 (en) Special testing device and method for correcting welding track based on machine vision
CN107414474B (en) Bolt positioning and installation robot in narrow space and control method
CN113500593B (en) Method for grabbing designated part of shaft workpiece for feeding
CN113601158A (en) Bolt feeding pre-tightening system and control method based on visual positioning
CN116766196A (en) Outer hexagon bolt assembly control method, system, equipment and storage medium
CN111645237B (en) Mold closing robot system
CN108858251B (en) An anti-collision system for a high-speed moving manipulator
CN105700037B (en) A kind of engine cylinder cover neglected loading of screw detection means and detection method
CN116408625A (en) A vision-guided assembly system and method for a robot
CN107121796B (en) A test fixture for cell-phone LCD screen defect detection
CN213764803U (en) Lock screw machine hand claw and lock screw machine
CN113625659A (en) Control method and device of hole making mechanism, electronic equipment and hole making mechanism
CN207326366U (en) A kind of narrow space bolt location and installation machine people
CN117086863A (en) Flexible tightening system of detonator assembly robot and control method thereof
CN110936147A (en) Novel intelligent automatic screw machine

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Xili Lake, Xili Lake, Nanshan District, Shenzhen, Guangdong

Applicant after: SHENZHEN POLYTECHNIC

Address before: 518000 xilihu Town, Nanshan District, Shantou City, Guangdong Province

Applicant before: SHENZHEN POLYTECHNIC

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Xili street xilihu town xilihu bank, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Vocational and Technical University

Country or region after: China

Address before: Shenzhen Vocational and Technical College Shahe West Road Nanshan District Shenzhen Guangdong Province

Patentee before: SHENZHEN POLYTECHNIC

Country or region before: China

OL01 Intention to license declared
OL01 Intention to license declared