[go: up one dir, main page]

CN1586829A - Plug-and-play mechanical arm system based on distributive control - Google Patents

Plug-and-play mechanical arm system based on distributive control Download PDF

Info

Publication number
CN1586829A
CN1586829A CN 200410053259 CN200410053259A CN1586829A CN 1586829 A CN1586829 A CN 1586829A CN 200410053259 CN200410053259 CN 200410053259 CN 200410053259 A CN200410053259 A CN 200410053259A CN 1586829 A CN1586829 A CN 1586829A
Authority
CN
China
Prior art keywords
control
mechanical arm
central controller
distributed control
usb interface
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
Application number
CN 200410053259
Other languages
Chinese (zh)
Other versions
CN1309536C (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.)
Shanghai Jiao Tong University
Original Assignee
Shanghai Jiao Tong University
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 Shanghai Jiao Tong University filed Critical Shanghai Jiao Tong University
Priority to CNB2004100532599A priority Critical patent/CN1309536C/en
Publication of CN1586829A publication Critical patent/CN1586829A/en
Application granted granted Critical
Publication of CN1309536C publication Critical patent/CN1309536C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Manipulator (AREA)
  • Feedback Control In General (AREA)
  • Numerical Control (AREA)

Abstract

一种基于分布式控制的即插即用机械臂系统,用于机器人技术领域。本发明包括:主机、USB接口模块、中央控制器、内部分布式控制系统和机械臂本体。主机通过一条USB连接线与USB接口模块连接,中央控制器位于USB接口模块与内部分布式控制系统中间,这两部分都是通过并行总线与中央控制器连接,内部分布式控制系统由多个具有相同功能的子系统并联构成,其中,每个子系统都包括一个PID控制器,一个直流电机驱动器和一个带反馈的直流电机,内部分布式控制系统直接通过控制线与机械臂本体连接。本发明为未来机器人大众化的发展中遇到的接口问题和控制问题提供了完整的解决方案。

A plug-and-play manipulator system based on distributed control, used in the field of robotics. The invention includes: a host, a USB interface module, a central controller, an internal distributed control system and a mechanical arm body. The host is connected to the USB interface module through a USB cable. The central controller is located between the USB interface module and the internal distributed control system. Both parts are connected to the central controller through a parallel bus. The internal distributed control system consists of multiple Subsystems with the same function are connected in parallel. Each subsystem includes a PID controller, a DC motor driver and a DC motor with feedback. The internal distributed control system is directly connected to the manipulator body through control lines. The invention provides a complete solution to the interface problems and control problems encountered in the development of popularization of robots in the future.

Description

基于分布式控制的即插即用机械臂系统Plug and Play Manipulator System Based on Distributed Control

技术领域technical field

本发明涉及一种通用机械臂系统,特别是一种基于分布式控制的即插即用机械臂系统。用于机器人技术领域。The invention relates to a universal manipulator system, in particular to a plug-and-play manipulator system based on distributed control. Used in the field of robotics.

背景技术Background technique

如今机器人技术已形成具有广阔发展前景的新兴产业,尤其小型化、智能化的机器人已成为最新的机器人研究方向之一。其中,机器人操作手(机械臂)发展迅速,它的应用范围已由原来的工业环境逐渐向社会各行各业渗透,可以设想将来在普通用户家里像拥有其他电器一样拥有一个小型智能化的机械臂,帮助人类完成一些特定任务。然而,虽然在过去的几十年中,机械臂技术取得了很多进步,但它离日常生活还很远,主要原因有机械臂机构复杂、价格昂贵、接口方式复杂和控制精度很难保证等。Nowadays, robot technology has formed an emerging industry with broad development prospects, especially miniaturized and intelligent robots have become one of the latest robot research directions. Among them, the robot manipulator (mechanical arm) has developed rapidly, and its application scope has gradually penetrated from the original industrial environment to all walks of life in society. It is conceivable that in the future, ordinary users will have a small intelligent robotic arm at home like other electrical appliances. , to help humans complete some specific tasks. However, although the robotic arm technology has made a lot of progress in the past few decades, it is still far from daily life, mainly due to the complex mechanism of the robotic arm, the high price, the complicated interface method, and the difficulty in ensuring the control accuracy.

随着机械臂外围传感器的增加,机械臂与其控制器(典型的是个人计算机)的传输数据将大大增加(如视频传输,声纳,红外等),传统的计算机接口无法满足这类需求。目前,USB接口已逐渐成为标准配置而被广大计算机制造厂商所接受,而且它以最高传输速率480Mbits/sec.的特点逐步成为主机外设接口的首要选择。同时,分布式控制技术已是高精度机械臂运动控制的主流技术,他可以使具有相同功能的多个模块同时工作,互不影响,提高控制精度。然而到目前为止,几乎所有的机械臂应用系统均采用RS23或专用控制线与控制台相连,数据传输速度有所限制;而关节的控制部分是开环控制的无法满足精确控制,是闭环控制则大多需要配置专用控制箱,不适合系统的家用化与小型化。With the increase of peripheral sensors of the manipulator, the transmission data between the manipulator and its controller (typically a personal computer) will greatly increase (such as video transmission, sonar, infrared, etc.), and the traditional computer interface cannot meet such needs. At present, the USB interface has gradually become a standard configuration and is accepted by the majority of computer manufacturers, and it has gradually become the first choice for the host peripheral interface with the characteristic of the highest transmission rate of 480Mbits/sec. At the same time, distributed control technology has become the mainstream technology of high-precision robotic arm motion control. It can make multiple modules with the same function work at the same time without affecting each other and improve control accuracy. However, so far, almost all robotic arm application systems are connected to the console using RS23 or dedicated control lines, and the data transmission speed is limited; while the control part of the joint is open-loop control, which cannot meet precise control, and closed-loop control requires Most of them need to be equipped with a special control box, which is not suitable for home use and miniaturization of the system.

经文献检索发现,中国专利申请号03115472,名称:基于通用串行总线接口的个人机械臂系统,该专利系统能够实现主机通过USB接口对机械臂的控制,支持热插拔。但该系统的USB接口采用1.1规范,传输速度不能满足传输速度较高的场合(如实时视频传输等);而且,该机械臂几个关节的控制采用简单的开环控制(驱动为舵机),所有它只能应用于技术要求比较底的场合,无法实现机械臂的精确控制。After literature search, it was found that Chinese patent application number 03115472, title: personal manipulator system based on universal serial bus interface, this patent system can realize the control of the manipulator by the host through the USB interface, and supports hot swapping. However, the USB interface of this system adopts the 1.1 specification, and the transmission speed cannot meet the occasions with high transmission speed (such as real-time video transmission, etc.); moreover, the control of several joints of the mechanical arm adopts simple open-loop control (the drive is a steering gear) , so it can only be applied to occasions with relatively low technical requirements, and cannot achieve precise control of the robotic arm.

发明内容Contents of the invention

本发明的目的在于针对现有技术的不足,提供一种基于分布式控制的即插即用机械臂系统,使其具有较大灵活性和较高控制性能,机械臂接口满足机械臂控制过程中大量传感和控制数据传输的要求,并且可应用于绝大多数个人计算机,使机械臂成为一个通用的计算机外部设备,可应用于家庭,移动机器人等多重领域。此发明可以采用较简单的方式,使机械臂达到一定的控制精度,能够完成日常任务(夹持物体等),进而达到普及机械臂的目标。The purpose of the present invention is to provide a plug-and-play manipulator system based on distributed control, which has greater flexibility and higher control performance, and the manipulator interface meets the requirements of the manipulator control process. A large number of sensing and control data transmission requirements, and can be applied to most personal computers, making the manipulator a general-purpose computer peripheral device, which can be applied to multiple fields such as home and mobile robots. This invention can use a relatively simple method to make the robot arm reach a certain control accuracy, and can complete daily tasks (clamping objects, etc.), and then achieve the goal of popularizing the robot arm.

本发明是通过以下技术方案实现的。本发明包括:主机、USB接口模块、中央控制器、内部分布式控制系统和机械臂本体。主机通过一条USB连接线与USB接口模块连接,中央控制器位于USB接口模块与内部分布式控制系统中间,这两部分都是通过并行总线与中央控制器连接,内部分布式控制系统由多个具有相同功能的子系统并联构成,其中,每个子系统都包括一个PID控制器,一个直流电机驱动器和一个带反馈的直流电机,内部分布式控制系统直接通过控制线与机械臂本体连接。The present invention is achieved through the following technical solutions. The invention includes: a host, a USB interface module, a central controller, an internal distributed control system and a mechanical arm body. The host is connected to the USB interface module through a USB cable. The central controller is located between the USB interface module and the internal distributed control system. Both parts are connected to the central controller through a parallel bus. The internal distributed control system consists of multiple Subsystems with the same function are connected in parallel. Each subsystem includes a PID controller, a DC motor driver and a DC motor with feedback. The internal distributed control system is directly connected to the manipulator body through control lines.

内部分布式控制系统中,所有子系统的PID控制器的输入接口并联在一起,通过同一条并行总线连接到中央控制器,而各PID控制器的输出为直流电机转向控制信号和控制电流转速的PWM(脉宽调制)波,这两个输出(两路控制线)直接发送到直流电机驱动器上,这样,直流电机驱动器就可以驱动直流电机做相应的运动。每个直流电机末端都有一个增量式编码盘,即时发送电机运动的反馈信号到PID控制器,这样就构成了一个完整的闭环系统,可实现电机的位置、速度的PID精确控制。分布式控制系统中各子系统除了PID控制器的输入都通过同一条并行总线连接到中央控制器外,它们各自都是独立运行,之间没有任何其他互相干扰或干涉的部分。本发明中的直流电机驱动器采用专用直流电机驱动芯片,实现直流电机的双极性控制,这种控制方式可以得到较短的控制响应时间和较高的安全性。In the internal distributed control system, the input interfaces of the PID controllers of all subsystems are connected in parallel and connected to the central controller through the same parallel bus, and the output of each PID controller is the steering control signal of the DC motor and the control current speed. PWM (Pulse Width Modulation) waves, these two outputs (two control lines) are directly sent to the DC motor driver, so that the DC motor driver can drive the DC motor to do corresponding movements. There is an incremental encoder disc at the end of each DC motor, which immediately sends the feedback signal of the motor movement to the PID controller, thus forming a complete closed-loop system, which can realize the precise PID control of the position and speed of the motor. In the distributed control system, each subsystem operates independently, except that the input of the PID controller is connected to the central controller through the same parallel bus, and there is no other part that interferes with each other or interferes with each other. The DC motor driver in the present invention adopts a dedicated DC motor drive chip to realize bipolar control of the DC motor. This control mode can obtain shorter control response time and higher safety.

机械臂本体采用轻质铝合金设计,由5个直流电机进行驱动。肩关节、肘关节、腕关节和手爪等主传动均采用高精度齿轮传动,以保证运动的精确性。另外,配备一个底座,方便机械臂在平面内做360度旋转。底座通过一个平面轴承与机械臂的上部连接,电机安装在机械臂上部,而直流电机输出轴与底座通过一个销子固定。The body of the robotic arm is designed with lightweight aluminum alloy and is driven by 5 DC motors. The main drives of shoulder joints, elbow joints, wrist joints and claws are all driven by high-precision gears to ensure the accuracy of movement. In addition, it is equipped with a base, which is convenient for the mechanical arm to rotate 360 degrees in the plane. The base is connected to the upper part of the mechanical arm through a plane bearing, the motor is installed on the upper part of the mechanical arm, and the output shaft of the DC motor is fixed to the base through a pin.

本发明通过一根USB线与主机相连,用户可在PC终端对机械臂相关参数进行设置。在主机端,安装一个外部网络摄像头,可以实时监控机械臂系统运行情况。工作时,用户首先在主机设置本发明各关节的运动参数(包括PID参数,期望运动位置、速度等)。这对于各个直流电机而言,相当于不同的任务。之后,用户将按照自己的协议通过USB接口把这些任务发送给机械臂的USB接口模块,USB接口模块在接收到数据的同时,会通知中央控制器自己收到用户数据。中央控制器将从USB模块中读取这些数据并进行分析处理。中央控制器会按照先前用户在PC端定义的协议把这些数据分离成对应于各个关节的具体任务。最后,中央控制器依次把各个任务分配到内部分布式控制系统中相应的PID控制器,这样,PID控制器会自行控制电机运动,而脱离中央控制器的控制。电机运行过程中,PID控制器会把自身状态信息按照上述逆过程最终反馈到主机,完成整个机械臂控制。USB最初是作为一个工业标准对主机现有的体系结构的进行扩充,主要应用于消费和商业领域。与其他计算机外围接口相比,USB接口有众多的优点。本发明使用USB接口模块与主机相连,主机在设备接入系统后可以很容易安装和配置新设备,还可以动态改变设备参数。这种特性能满足个人机械臂所需要的灵活性,可以方便地、动态地脱离或是连接上主机,主机会自动判断机械臂是否连接,并将此信息显示给机械臂的使用者。这样,主机和机械臂一起实现了机械臂的即插即用功能,采用最新的USB2.0标准,还可以获得更快的传输速度、具有向下兼容的特点。The invention is connected with the host through a USB cable, and the user can set the relevant parameters of the mechanical arm on the PC terminal. On the host side, an external network camera is installed to monitor the operation of the robotic arm system in real time. When working, the user first sets the motion parameters (including PID parameters, desired motion position, speed, etc.) of each joint of the present invention on the host computer. This corresponds to different tasks for each DC motor. After that, the user will send these tasks to the USB interface module of the robotic arm through the USB interface according to his own protocol. When the USB interface module receives the data, it will notify the central controller that it has received the user data. The central controller will read these data from the USB module and analyze and process them. The central controller will separate these data into specific tasks corresponding to each joint according to the protocol defined by the user on the PC side. Finally, the central controller sequentially assigns each task to the corresponding PID controller in the internal distributed control system, so that the PID controller will control the motor movement by itself without being controlled by the central controller. During the operation of the motor, the PID controller will finally feed back its own state information to the host according to the above inverse process to complete the control of the entire robotic arm. USB was initially used as an industry standard to expand the existing architecture of the host computer, mainly used in consumer and commercial fields. Compared with other computer peripheral interfaces, the USB interface has many advantages. The invention uses a USB interface module to connect with the host, and the host can easily install and configure new equipment after the equipment is connected to the system, and can also dynamically change equipment parameters. This feature can meet the flexibility required by the personal robotic arm. It can be easily and dynamically disconnected from or connected to the host. The host will automatically determine whether the robotic arm is connected and display this information to the user of the robotic arm. In this way, the host and the robotic arm together realize the plug-and-play function of the robotic arm, adopt the latest USB2.0 standard, and can also obtain faster transmission speed and have the characteristics of backward compatibility.

本发明中嵌入了内部分布式控制系统,将整个控制系统按照功能分为若干独立的子系统。如上所述,每个子系统由一个PID控制器、一个直流电机驱动器和和一个带反馈的直流电机组成。每个子系统称其为节点。所有节点通过并行总线与本发明的中央控制器相连。因为每个节点内的电机控制任务由其PID控制器独立完成,所以,中央控制器的负载将较低,只负责数据的传输控制与任务的分配。这种工作机制将显著降低系统的控制复杂度,以较小代价提高整个系统的可靠性和控制性能。同时,它将上层规划与底层运动控制紧密结合,为实现实时控制提供了条件。本发明通过使用分布式控制技术对机械臂控制体系进行建模,建立了易用的、健壮的、通用的机械臂分布式控制体系,并且使原有控制体系中的主机的集中式任务处理转化为底层机械臂的分步式处理,减少了个对象间的耦合,为整个系统的有效实现提供了方便。In the present invention, an internal distributed control system is embedded, and the entire control system is divided into several independent subsystems according to functions. As mentioned above, each subsystem consists of a PID controller, a DC motor driver, and a DC motor with feedback. Each subsystem is called a node. All nodes are connected with the central controller of the present invention through a parallel bus. Because the motor control tasks in each node are independently completed by its PID controller, the load on the central controller will be relatively low, and it is only responsible for data transmission control and task assignment. This working mechanism will significantly reduce the control complexity of the system, and improve the reliability and control performance of the entire system at a small cost. At the same time, it closely combines upper-level planning with lower-level motion control, providing conditions for real-time control. The present invention models the control system of the manipulator by using the distributed control technology, establishes an easy-to-use, robust and general-purpose distributed control system of the manipulator, and transforms the centralized task processing of the host in the original control system For the step-by-step processing of the bottom robot arm, the coupling between objects is reduced, which provides convenience for the effective realization of the entire system.

本发明通过高速USB2.0接口与分布式控制实现了通用机械臂的即插即用功能与精确控制,最终实现了适用机械臂小型化和通用化。与背景技术相比,利用内部分布式控制体系的模块化、具有可靠性高等特点,最终实现了机械臂的精确控制。本发明给出了通用机械臂的即插即用和分布式控制解决方案,为未来家用机器人、分布式机器人研发提供了体系结构和技术实现上的规范和参考,使各机器人研发机构可以参照这一规范独立研制出类似于普通计算机外设的机械臂,从而提高研究效率,促进机器人技术发展。The invention realizes the plug-and-play function and precise control of the universal mechanical arm through the high-speed USB2.0 interface and distributed control, and finally realizes the miniaturization and generalization of the applicable mechanical arm. Compared with the background technology, the precise control of the mechanical arm is finally realized by utilizing the characteristics of modularization and high reliability of the internal distributed control system. The present invention provides a plug-and-play and distributed control solution for a general-purpose robotic arm, and provides specifications and references for architecture and technical realization for the research and development of future household robots and distributed robots, so that each robot research and development institution can refer to this Yigui independently developed a robotic arm similar to ordinary computer peripherals, thereby improving research efficiency and promoting the development of robotics.

附图说明Description of drawings

图1本发明结构示意图Fig. 1 structural representation of the present invention

图2本发明功能框图Fig. 2 functional block diagram of the present invention

图3本发明PID控制模块控制框图Fig. 3 PID control module control block diagram of the present invention

图4本发明单片机的硬件接口连接图The hardware interface connection diagram of Fig. 4 single-chip microcomputer of the present invention

图5本发明单片机端主程序流程图Fig. 5 flow chart of the main program of the single-chip microcomputer end of the present invention

具体实施方式Detailed ways

如图1所示,本发明包括:主机1、USB接口模块2、中央控制器3、内部分布式控制系统4和机械臂本体5。主机1通过一条USB连接线与USB接口模块2连接,中央控制器3位于USB接口模块2与内部分布式控制系统4中间,这两部分都是通过并行总线与中央控制器3连接,内部分布式控制系统4由多个具有相同功能的子系统并联构成,其中,每个子系统都包括一个PID控制器6,一个直流电机驱动器7和一个带反馈的直流电机8,内部分布式控制系统4直接通过控制线与机械臂本体5连接。As shown in FIG. 1 , the present invention includes: a host 1 , a USB interface module 2 , a central controller 3 , an internal distributed control system 4 and a robot arm body 5 . The host 1 is connected to the USB interface module 2 through a USB cable, and the central controller 3 is located between the USB interface module 2 and the internal distributed control system 4. These two parts are connected to the central controller 3 through a parallel bus, and the internal distributed The control system 4 is composed of multiple subsystems with the same function connected in parallel, wherein each subsystem includes a PID controller 6, a DC motor driver 7 and a DC motor 8 with feedback, and the internal distributed control system 4 directly passes through The control line is connected with the mechanical arm body 5 .

内部分布式控制系统4中,所有子系统的PID控制器6的输入接口并联在一起,通过同一条并行总线连接到中央控制器3,而各PID控制器6的输出为直流电机8转向控制信号和控制电流转速的脉宽调制波,这两路控制线直接连接到直流电机驱动器上。In the internal distributed control system 4, the input interfaces of the PID controllers 6 of all subsystems are connected in parallel and connected to the central controller 3 through the same parallel bus, and the output of each PID controller 6 is the steering control signal of the DC motor 8 And the PWM wave that controls the current speed, these two control lines are directly connected to the DC motor driver.

每个直流电机8末端都有一个增量式编码盘。在主机1端,还可以设置一个外部网络摄像头9。There is an incremental code disc at each DC motor 8 end. On the host computer 1 side, an external network camera 9 can also be set.

以下结合附图提供实施例:Embodiment is provided below in conjunction with accompanying drawing:

本实施例为一个5DOF(自由度)的小型机械臂,该通用机械臂本体5采用硬质铝合金制作,高15cm,宽45cm,质量为1.8公斤,各关节由五个直流电机8直接驱动,两外配有一块镍氢电池和控制板。本系统中直流电机8的速度控制采用PWM(脉宽调制)方式。图1表示了通用机械臂的硬件结构图,其中USB接口模块2实现了通用机械臂与主机1的互连,它的相关配置由中央控制器3(一个8位单片机)通过一个8位并行总线完成。另外,中央控制器3并行连接5个PID控制子系统实现直流电机8的闭环控制。主机端连接的外部摄像头9可以实时将观察到的机械臂运动图像采集到控制软件中。The present embodiment is a 5DOF (degree of freedom) small-sized mechanical arm. The universal mechanical arm body 5 is made of hard aluminum alloy, with a height of 15 cm, a width of 45 cm, and a mass of 1.8 kg. Each joint is directly driven by five DC motors 8. Both are equipped with a Ni-MH battery and control board. The speed control of DC motor 8 in this system adopts PWM (pulse width modulation) mode. Fig. 1 shows the hardware structure diagram of the universal manipulator, wherein the USB interface module 2 realizes the interconnection between the universal manipulator and the host computer 1, and its related configuration is controlled by the central controller 3 (an 8-bit single-chip microcomputer) through an 8-bit parallel bus Finish. In addition, the central controller 3 is connected with five PID control subsystems in parallel to realize the closed-loop control of the DC motor 8 . The external camera 9 connected to the host end can collect the observed moving image of the mechanical arm into the control software in real time.

本实施例中,采用USB2.0高速接口芯片ISP1581实现通用机械臂与主机1的连接。这个芯片同时支持USB2.0规范和USB1.1规范,它通过一个内部8位总线与MCU进行通信。中央控制器3是增强型51单片机PC89C61,除具备普通51单片机所有的功能外,此单片机具有256Byte的RAM,16Kbyte的ROM,基本可以满足本实例程序变量较多,代码较长的需求。图4表示了它与外围设备的具体连接方式。In this embodiment, the USB2.0 high-speed interface chip ISP1581 is used to realize the connection between the universal robot arm and the host computer 1 . This chip supports both the USB2.0 specification and the USB1.1 specification, and it communicates with the MCU through an internal 8-bit bus. Central controller 3 is an enhanced 51 single-chip microcomputer PC89C61. In addition to all the functions of ordinary 51 single-chip microcomputers, this single-chip microcomputer has 256Byte RAM and 16Kbyte ROM, which can basically meet the needs of more variables and longer codes in this example program. Figure 4 shows how it is connected to peripheral devices.

PID控制器6是电机专用控制芯片,支持位置控制和速度控制,它支持的位置范围为-1,073,741,823线到+1,073,741,823线,速度范围为0到11,073,741,823/216线/采样。在电机运动前,只需中央控制器3对LM629的参数进行设置,包括Kp、Ki、Kd、期望位置及期望速度等,然后启动。之后,LM629内部运算后会发送相应的PWM(脉宽调制)波给直流电机驱动器7-LM298。LM298是一个后者会按照PWM指定速度驱动直流电机8,并在适当位置停止。单片机在配置完该PID控制器6后,就可以继续执行其他任务,整个PID运算过程无需它的干预。PID controller 6 is a motor-specific control chip that supports position control and speed control. It supports a position range of -1,073,741,823 lines to +1,073,741,823 lines, and a speed range of 0 to 11,073,741,823/216 lines/sample. Before the motor moves, only the central controller 3 needs to set the parameters of the LM629, including Kp, Ki, Kd, expected position and expected speed, etc., and then start. After that, LM629 will send corresponding PWM (pulse width modulation) wave to DC motor driver 7-LM298 after internal operation. LM298 is a latter that will drive the DC motor 8 at a speed specified by PWM and stop at an appropriate position. After the single-chip microcomputer configures the PID controller 6, it can continue to perform other tasks, and the entire PID operation process does not need its intervention.

图2表示了系统的总体功能图。主机用来作为用户控制通用机械臂的平台,系统运行过程中,主机上需运行一个用户界面来接收用户对机械臂的设置及任务的分配,同时可以实现实时显示通用机械臂的运行状态的功能。相关设置与任务通过USB接口发送到中央控制器后,央控制器将根据接收到的数据做相应处理,如PID控制器参数设置,直流电机运动参数设置,停止电机,启动电机等等。同时,它需要实时把各PID控制器的状态信息反馈给主机,以供后者向用户显示。反馈信号包括PID控制器的连接状态,电机运行的位置、速度、加速度等。单片机将任务分解后,会对相关的PID控制器发送配置指令,PID控制器会根据指令对电机驱动器采取控制,如果是运行指令,它会发送相应PWM波到电机驱动器,如果是停止指令,它会将电机驱动器截止。电机运行过程中需要将自身的状态通过编码器发送到PID控制器中,以实现电机的闭环控制,PID控制框图如图3所示。图4表示了单片机的硬件接口连接图,两个8位的并口分别被用来连接ISP1581和PID控制器。中央控制器的主程序流程图如图5表示。系统启动后,首先将初始化USB接口器件相关参数,包括设备描述符,数据传输标准及其他接口参数。然后,中央控制器会逐个初始化PID控制器件LM629:设置零点,设置Kp,Ki,Kd参数等。这样,整个初始化过程到此结束,程序将进入一个循环,等待PC端发送的指令,接收到指令后会中断循环,根据指令做下一步处理。当机械臂接入主机后,主机会按照USB规范USB通过接口器件ISP1581向中央控制器发送相关请求,接收到应答后,主机将该设备相关信息通知操作系统,建立与通用机械臂的通信通道。在USB通行通道的建立过程中,中央控制器负责对ISP1581的参数配置及对USB请求的应答,所有数据都经由ISP1581双向传输。中央控制器在循环过程中,除USB请求指令外,它可能会接收到主机发来的另外两种指令:运动指令和查询指令。运动指令包括了用户期望电机运动的所有数据(运动方式,位置,速度,加速度等),中央控制器需要按照指令配置相应的PID控制器并启动,之后,它还需要将目标电机的状态通知PC,以供用户做下一步的处理。查询指令允许用户在任何时刻得到机械臂各关节的状态信息,这个功能保证了通用机械臂对使用者的透明,为实现机械臂的精确运动控制提供了保证。通用机械臂运动过程中如果系统发生异常情况,将停止运动,并向主机实时报告此错误,等待用户的相应处理。Figure 2 shows the overall functional diagram of the system. The host is used as a platform for the user to control the general-purpose robotic arm. During the operation of the system, a user interface needs to be run on the host to receive the user's settings for the robotic arm and task assignments. At the same time, it can realize the function of displaying the running status of the universal robotic arm in real time. . After the relevant settings and tasks are sent to the central controller through the USB interface, the central controller will do corresponding processing according to the received data, such as PID controller parameter setting, DC motor motion parameter setting, stop motor, start motor and so on. At the same time, it needs to feed back the status information of each PID controller to the host in real time for the latter to display to the user. The feedback signal includes the connection status of the PID controller, the position, speed, acceleration, etc. of the motor. After the single-chip microcomputer decomposes the task, it will send configuration instructions to the relevant PID controller, and the PID controller will take control of the motor driver according to the instruction. If it is a running instruction, it will send the corresponding PWM wave to the motor driver. If it is a stop instruction, it will will turn off the motor driver. During the operation of the motor, it needs to send its own state to the PID controller through the encoder to realize the closed-loop control of the motor. The block diagram of the PID control is shown in Figure 3. Figure 4 shows the hardware interface connection diagram of the microcontroller. Two 8-bit parallel ports are used to connect the ISP1581 and the PID controller respectively. The main program flow chart of the central controller is shown in Figure 5. After the system starts, it will first initialize the relevant parameters of the USB interface device, including device descriptors, data transmission standards and other interface parameters. Then, the central controller will initialize the PID control device LM629 one by one: set the zero point, set Kp, Ki, Kd parameters, etc. In this way, the entire initialization process ends here, and the program will enter a loop, waiting for the command sent by the PC, and the loop will be interrupted after receiving the command, and the next step will be processed according to the command. When the robotic arm is connected to the host, the host will send relevant requests to the central controller through the interface device ISP1581 according to the USB specification. After receiving the response, the host will notify the operating system of the device-related information and establish a communication channel with the universal robotic arm. During the establishment of the USB communication channel, the central controller is responsible for the parameter configuration of the ISP1581 and the response to the USB request, and all data are transmitted bidirectionally through the ISP1581. During the cycle of the central controller, in addition to the USB request command, it may receive two other commands from the host: motion command and query command. The motion command includes all the data that the user expects the motor to move (movement mode, position, speed, acceleration, etc.), and the central controller needs to configure the corresponding PID controller according to the command and start it. After that, it also needs to notify the PC of the state of the target motor , for the user to do the next step. The query command allows the user to obtain the status information of each joint of the robotic arm at any time. This function ensures the transparency of the universal robotic arm to the user and provides a guarantee for the realization of precise motion control of the robotic arm. If an abnormal situation occurs in the system during the movement of the universal robotic arm, it will stop the movement and report the error to the host in real time, waiting for the user to deal with it accordingly.

本发明通用机械臂实例建立了易用的、健壮的、通用的机械臂控制体系,实现了机械臂的即插即用及精确控制。整个系统在硬件和软件结构上都充分体现了USB接口的灵活性和分布式控制体系在机械臂控制中的优势,也给出了未来通用机械臂按照本发明开发的具体实施方法。The universal manipulator example of the present invention establishes an easy-to-use, robust, and universal manipulator control system, and realizes plug-and-play and precise control of the manipulator. The entire system fully embodies the flexibility of the USB interface and the advantages of the distributed control system in the control of the manipulator in terms of hardware and software structures, and also provides a specific implementation method for the development of the future universal manipulator according to the invention.

Claims (4)

1, a kind of plug and play mechanical arm system based on distributed control, comprise: main frame (1), central controller (3), inner dcs (4) and mechanical arm body (5), it is characterized in that, also comprise: usb interface module (2), main frame (1) is connected with usb interface module (2) by a USB connecting line, it is middle with inner dcs (4) that central controller (3) is positioned at usb interface module (2), these two parts all are to be connected with central controller (3) by parallel bus, inner dcs (4) is made of a plurality of subsystem parallel connections with identical function, wherein, each subsystem all comprises a PID controller (6), the direct current generator (8) of a DC motor driver (7) and a band feedback, inner dcs (4) directly is connected with mechanical arm body (5) by control line.
2, according to right 1 described plug and play mechanical arm system based on distributed control, it is characterized in that, in the inner dcs (4), the input interface of the PID controller (6) of all subsystems is connected in parallel, be connected to central controller (3) by same parallel bus, and each PID controller (6) is output as the pulse width modulated wave of direct current generator (8) steering controling signal and control electric current rotating speed, and this two-way control line is directly connected on the DC motor driver (7).
3, according to right 2 described plug and play mechanical arm systems, it is characterized in that each direct current generator (8) end all has an increment type coding disk based on distributed control.
4, according to right 1 described plug and play mechanical arm system, it is characterized in that,, an external network camera (9) is set at main frame (1) end based on distributed control.
CNB2004100532599A 2004-07-29 2004-07-29 Plug-and-play mechanical arm system based on distributive control Expired - Fee Related CN1309536C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100532599A CN1309536C (en) 2004-07-29 2004-07-29 Plug-and-play mechanical arm system based on distributive control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100532599A CN1309536C (en) 2004-07-29 2004-07-29 Plug-and-play mechanical arm system based on distributive control

Publications (2)

Publication Number Publication Date
CN1586829A true CN1586829A (en) 2005-03-02
CN1309536C CN1309536C (en) 2007-04-11

Family

ID=34602793

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100532599A Expired - Fee Related CN1309536C (en) 2004-07-29 2004-07-29 Plug-and-play mechanical arm system based on distributive control

Country Status (1)

Country Link
CN (1) CN1309536C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102962844A (en) * 2012-11-09 2013-03-13 沈阳工业大学 Control system for mechanically-controlled shadow puppet show device
CN103025491A (en) * 2010-05-14 2013-04-03 史陶比尔法万举 Method for controlling an automated work cell
CN104827468A (en) * 2015-01-20 2015-08-12 上海优爱宝机器人技术有限公司 Robot distributed control system and method
CN105955101A (en) * 2016-04-27 2016-09-21 李灵超 Control method, scheduling processor and controller
CN107953337A (en) * 2017-12-29 2018-04-24 深圳市乐幻索尔科技有限公司 A kind of adjustment of robot motion deviation and store method and system
CN112025704A (en) * 2020-08-25 2020-12-04 杭州湖西云百生科技有限公司 Real-time distributed robot control method and system based on memory type database

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10288052A (en) * 1997-04-15 1998-10-27 Hitachi Ltd Throttle valve control device
JP2004181543A (en) * 2002-11-29 2004-07-02 Nachi Fujikoshi Corp Industrial robot and method for judging its abnormality
CN1434391A (en) * 2003-02-20 2003-08-06 上海交通大学 USB interface based personal manipulator system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103025491A (en) * 2010-05-14 2013-04-03 史陶比尔法万举 Method for controlling an automated work cell
US8965574B2 (en) 2010-05-14 2015-02-24 Staubli Faverges Method for controlling an automated work cell
CN103025491B (en) * 2010-05-14 2016-02-24 史陶比尔法万举 Method for controlling an automated work cell
CN102962844A (en) * 2012-11-09 2013-03-13 沈阳工业大学 Control system for mechanically-controlled shadow puppet show device
CN102962844B (en) * 2012-11-09 2017-08-25 沈阳工业大学 A kind of shadow puppet performance apparatus control system by being mechanically operated by
CN104827468A (en) * 2015-01-20 2015-08-12 上海优爱宝机器人技术有限公司 Robot distributed control system and method
CN105955101A (en) * 2016-04-27 2016-09-21 李灵超 Control method, scheduling processor and controller
CN107953337A (en) * 2017-12-29 2018-04-24 深圳市乐幻索尔科技有限公司 A kind of adjustment of robot motion deviation and store method and system
CN112025704A (en) * 2020-08-25 2020-12-04 杭州湖西云百生科技有限公司 Real-time distributed robot control method and system based on memory type database

Also Published As

Publication number Publication date
CN1309536C (en) 2007-04-11

Similar Documents

Publication Publication Date Title
CN107363812B (en) Wireless control six-degree-of-freedom mechanical arm demonstration system
CN107932504B (en) Robotic arm operation control system based on PyQt
CN101045298A (en) Apparatus for controlling movement programming of multi-freedom robot
CN102248536B (en) Mobile mechanical arm control system used for extendable modularization
CN101592951A (en) Common distributed control system for humanoid robot
CN112936276B (en) Multi-level control device and method for humanoid robot joints based on ROS system
CN1603068A (en) Multi-robot Handling Control System Based on Wireless Network
CN1554518A (en) Control system of self-climbing cleaning robot
CN105215988A (en) A kind of mechanical arm driver module, robot configuration drive and control system
CN101045299A (en) Independent joint control device for modularized robot based on DSP
CN1309536C (en) Plug-and-play mechanical arm system based on distributive control
CN101502960A (en) Modularization robot based on CORBA connector
CN111682803A (en) A multi-channel DC motor control system for a flexible manipulator
CN115026820A (en) Human-machine collaborative assembly robot control system and control method
CN103744353A (en) Motion control system and motion control method
CN105171746A (en) Robot dexterous hand driving module and control method
CN106774178B (en) Automatic control system and method and mechanical equipment
CN103817695B (en) A kind of control method of robot flexibility joint and drive unit
CN118493407A (en) Man-machine cooperation safety control method and device based on mixed reality and digital twin
CN102126222A (en) Control system for remote-controlled robot
CN112157645A (en) Seven-degree-of-freedom cooperative robot intelligent controller
CN110053048A (en) Long-range control method
CN213471194U (en) Novel multifunctional humanoid robot platform and control system thereof
CN111384876A (en) Dual-axis motor driving system and method based on dual-core processing
CN115284319A (en) Control method of manual control equipment and manual controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070411