CN106502162A - A kind of automatic Control Theory Experiment teaching system based on portable mechanical arm - Google Patents

A kind of automatic Control Theory Experiment teaching system based on portable mechanical arm Download PDF

Info

Publication number
CN106502162A
CN106502162A CN201611079546.6A CN201611079546A CN106502162A CN 106502162 A CN106502162 A CN 106502162A CN 201611079546 A CN201611079546 A CN 201611079546A CN 106502162 A CN106502162 A CN 106502162A
Authority
CN
China
Prior art keywords
motor
experiment
control
mechanical arm
automatic control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611079546.6A
Other languages
Chinese (zh)
Other versions
CN106502162B (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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201611079546.6A priority Critical patent/CN106502162B/en
Publication of CN106502162A publication Critical patent/CN106502162A/en
Application granted granted Critical
Publication of CN106502162B publication Critical patent/CN106502162B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B25/00Models for purposes not provided for in G09B23/00, e.g. full-sized devices for demonstration purposes
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,涉及一种自动控制理论实验教学装置,属于教学领域。包括被控对象、控制器、执行机构和反馈装置,构成完整的闭环控制系统回路。被控对象为机械臂与直流电机相嵌套组合,用于产生角度位置信号。控制器用于使被控对象的输出快速稳定地收敛到预定值。控制器根据控制系统的控制算法调节系统的静动态特性,是自动控制理论实验教学系统的研究内容。执行机构为直流电机,控制机械臂转动,实现机械臂的位置控制。反馈装置采用单位负反馈,用于检测到机械臂的实际角度位置信号,并将信号返回给控制器。本发明具有如下优点:便携;成本和能耗低;功能比较全;抗干扰能力强。本发明适用于自动控制理论课程实验教学。

The invention discloses an automatic control theory experiment teaching system based on a portable mechanical arm, relates to an automatic control theory experiment teaching device, and belongs to the teaching field. Including the controlled object, controller, actuator and feedback device, it constitutes a complete closed-loop control system loop. The controlled object is a nested combination of a mechanical arm and a DC motor, which is used to generate an angular position signal. The controller is used to make the output of the controlled object converge to a predetermined value quickly and stably. The controller adjusts the static and dynamic characteristics of the system according to the control algorithm of the control system, which is the research content of the automatic control theory experiment teaching system. The actuator is a DC motor, which controls the rotation of the mechanical arm and realizes the position control of the mechanical arm. The feedback device adopts unit negative feedback, which is used to detect the actual angular position signal of the mechanical arm and return the signal to the controller. The invention has the following advantages: portability; low cost and energy consumption; relatively complete functions; strong anti-interference ability. The invention is suitable for the experimental teaching of the automatic control theory course.

Description

一种基于便捷式机械臂的自动控制理论实验教学系统A teaching system for automatic control theory experiment based on portable manipulator

技术领域technical field

本发明涉及一种自动控制理论实验教学装置,尤其涉及一种基于便捷式机械臂的自动控制理论实验教学装置,适用于大学本科生的自动控制理论课程实验教学,属于教学领域。The invention relates to an automatic control theory experiment teaching device, in particular to an automatic control theory experiment teaching device based on a portable mechanical arm, which is suitable for undergraduate students' automatic control theory experiment teaching and belongs to the teaching field.

背景技术Background technique

在高校的本科生培养的专业课程的设置中,除了理论教学,还有实验教学。实验教学可激发研究人员进行继续探索科学奥秘的兴趣。在当今的高校教育中存在一个很大的弊病,就是大量学生从事理论研究,只是通过软件进行仿真,而很少进行实物实验对其理论方法进行验证。In the setting of professional courses for undergraduate training in colleges and universities, in addition to theoretical teaching, there is also experimental teaching. Experimental teaching can stimulate researchers' interest in continuing to explore scientific mysteries. There is a big disadvantage in today's college education, that is, a large number of students are engaged in theoretical research, only through software simulation, and seldom carry out physical experiments to verify their theoretical methods.

现阶段大学自动控制理论实验大部分采用MATLAB仿真来验证经典算法的作用,而这使得学生学习起来更加抽象。少数本科院校采用倒立摆系统或者复合网络法来进行实验。At this stage, most of the automatic control theory experiments in universities use MATLAB simulation to verify the effect of classical algorithms, which makes students learn more abstractly. A small number of undergraduate colleges use the inverted pendulum system or the compound network method to conduct experiments.

倒立摆系统是自动控制理论实验教学装置常用装置,倒立摆的控制问题就是使摆杆尽快地达到一个平衡位置,并且使之没有大的振荡和过大的角度和速度。当摆杆到达期望的位置后,系统能采用响应的算法从而克服随机扰动以保持稳定的位置。The inverted pendulum system is a commonly used device for the teaching device of the automatic control theory experiment. The control problem of the inverted pendulum is to make the pendulum reach a balance position as soon as possible without large oscillation and excessive angle and speed. When the pendulum reaches the desired position, the system can use the corresponding algorithm to overcome random disturbances to maintain a stable position.

倒立摆系统的输入来自传感器的小车与摆杆的实际位置信号,与期望值进行比较后,通过控制算法得到控制量,再经数模转换驱动直流电机实现倒立摆的实时控制。具体过程如下:摆杆的一端安装在小车上,作用力平行于小车运行的方向作用于小车,使杆绕小车上的轴在竖直平面内旋转,小车沿着水平铁轨运动,当没有作用力时,摆杆处于垂直的稳定的平衡位置(竖直向下),为了使杆子摆动或者达到竖直向上的稳定,需要给小车一个控制力,使其在轨道上被往前或朝后拉动。The input of the inverted pendulum system comes from the actual position signal of the trolley and the pendulum rod of the sensor. After comparing with the expected value, the control value is obtained through the control algorithm, and then the DC motor is driven by digital-to-analog conversion to realize the real-time control of the inverted pendulum. The specific process is as follows: one end of the pendulum rod is installed on the trolley, and the force acts on the trolley parallel to the running direction of the trolley, so that the rod rotates around the axis on the trolley in the vertical plane, and the trolley moves along the horizontal rail. When there is no force , the swing rod is in a vertical stable equilibrium position (vertically downward), in order to make the rod swing or reach vertically upward stability, it is necessary to give the dolly a control force so that it is pulled forward or backward on the track.

通过对小车的受力进行分析,可以得到摆杆角度和小车加速度之间的传递函数为:By analyzing the force of the trolley, the transfer function between the angle of the pendulum and the acceleration of the trolley can be obtained as:

从传递函数中可以看到,该系统是个二阶系统,通过对二阶系统的分析和控制可以验证经典算法的功能与准确性。It can be seen from the transfer function that the system is a second-order system, and the function and accuracy of the classical algorithm can be verified through the analysis and control of the second-order system.

倒立摆系统缺点:①该系统模型是建立在各种理想的情况下,比如忽略空气阻力和各种摩擦,摆杆必须为匀质杆,而实际实验过程中,空气阻力和各种摩擦是不可预知的,而且实际中根本不存在匀质杆,所以降低了实验的准确性,使后续控制算法的实现更加困难;②该系统包括小车运行的导轨,驱动小车运行的电机,以及摆杆等装置,所以比较笨重,不易移动和随身携带。其中要想使摆杆保持稳定,小车需要持续运行,导轨的长度至少需要1米。本系统只是一个理想模型,采用牛顿-欧拉方法建立倒立摆系统的数学模型,通过开环响应分析对该模型进行分析,利用古典控制理论和Matlab/Simulink仿真软件对系统进行控制器的设计。Disadvantages of the inverted pendulum system: ①The system model is established under various ideal conditions, such as ignoring air resistance and various frictions. The pendulum must be a homogeneous rod. It is predictable, and there is no homogeneous rod in reality, so the accuracy of the experiment is reduced, and the realization of the subsequent control algorithm is more difficult; ②The system includes the guide rail for the trolley, the motor for driving the trolley, and the swing rod and other devices , so it is bulky and difficult to move and carry around. Among them, in order to keep the pendulum stable, the trolley needs to run continuously, and the length of the guide rail needs to be at least 1 meter. This system is just an ideal model. The mathematical model of the inverted pendulum system is established by the Newton-Euler method, and the model is analyzed through the open-loop response analysis. The controller of the system is designed by using classical control theory and Matlab/Simulink simulation software.

复合网络法来模拟各种典型环节:利用运算放大器不同的输入网络和反馈网络模拟各种典型环节,然后按照给定系统的结构图将这些模拟环节连接起来,便得到了相应的模拟系统。再将输入信号加到模拟系统的输入端,并利用计算机等测量仪器,测量系统的输出,便可得到系统的动态响应曲线及性能指标。若改变系统的参数,还可进一步分析研究参数对系统性能的影响。Composite network method to simulate various typical links: use different input networks and feedback networks of operational amplifiers to simulate various typical links, and then connect these simulated links according to the structure diagram of a given system to obtain the corresponding analog system. Then add the input signal to the input end of the analog system, and use a computer and other measuring instruments to measure the output of the system, and then the dynamic response curve and performance index of the system can be obtained. If the parameters of the system are changed, the influence of the parameters on the performance of the system can be further analyzed and studied.

例如:图1为二阶系统的超前校正电路图,系统加入阶跃信号,测量系统阶跃响应,并记录超调量σ%和调节时间ts;开关s接通,重复上述步骤,并将两次所测的波形与数值进行比较,便可得到超前校正的作用。For example: Figure 1 is the lead correction circuit diagram of the second-order system, the system adds a step signal, measures the system step response, and records the overshoot σ% and the adjustment time t s ; the switch s is turned on, repeat the above steps, and the two By comparing the measured waveform with the numerical value, the effect of advanced correction can be obtained.

复合网络化模拟缺点:①复合网络化模拟各种典型环节时需要根据不同的算法需要临时搭建不同的工作平台,比如需要验证超前校正,则需要搭建如上图的模块,当需要验证滞后校正的时候需要重新搭建。②它是开环系统没有反馈环节,当系统不稳定时只能通过调节各个电子元器件的大小来使系统接近稳定。Disadvantages of composite network simulation: ①Composite network simulation of various typical links needs to temporarily build different working platforms according to different algorithms. For example, if you need to verify the lead correction, you need to build the module as shown above. Need to rebuild. ②It is an open-loop system without a feedback link. When the system is unstable, the system can only be approached to be stable by adjusting the size of each electronic component.

发明内容Contents of the invention

本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统要解决的技术问题是,提供一种体积小的便捷式机自动控制理论实验教学系统,能够完成自动控制理论教学中主要实验。The technical problem to be solved by the automatic control theory experiment teaching system based on a portable mechanical arm disclosed by the present invention is to provide a small and portable robot automatic control theory experiment teaching system, which can complete the main experiments in the automatic control theory teaching. .

本发明还公开基于一种基于便捷式机械臂的自动控制理论实验教学系统实现的典型教学方法。The invention also discloses a typical teaching method realized by a portable mechanical arm-based automatic control theory experiment teaching system.

本发明的目的是通过下述技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:

本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,包括被控对象、控制器、执行机构和反馈装置,构成完整的闭环控制系统回路。The invention discloses an automatic control theory experiment teaching system based on a portable mechanical arm, which includes a controlled object, a controller, an actuator and a feedback device, forming a complete closed-loop control system loop.

被控对象为机械臂与直流电机相嵌套组合,用于产生角度位置信号。如图2所示,机械臂的角度位置是被控对象S,其中S(r)是参考位置,即目标位置,而S(t)是机械臂的当前位置,即实际位置。The controlled object is a nested combination of a mechanical arm and a DC motor, which is used to generate an angular position signal. As shown in Figure 2, the angular position of the manipulator is the controlled object S, where S(r) is the reference position, ie the target position, and S(t) is the current position of the manipulator, ie the actual position.

控制器用于使被控对象的输出快速稳定地收敛到预定值。控制器根据控制系统的控制算法调节系统的静动态特性,是自动控制理论实验教学系统的研究内容。控制系统的控制算法调节系统的静动态特性由软件编程实现。The controller is used to make the output of the controlled object converge to a predetermined value quickly and stably. The controller adjusts the static and dynamic characteristics of the system according to the control algorithm of the control system, which is the research content of the automatic control theory experiment teaching system. The control algorithm of the control system adjusts the static and dynamic characteristics of the system by software programming.

执行机构为直流电机,直流电机控制机械臂转动,实现机械臂的位置控制。直流电机特性在出厂之后即视为固定不变,直流电机的数学模型由自身的电气特性决定。The actuator is a DC motor, and the DC motor controls the rotation of the mechanical arm to realize the position control of the mechanical arm. The characteristics of a DC motor are considered fixed after leaving the factory, and the mathematical model of a DC motor is determined by its own electrical characteristics.

反馈装置采用单位负反馈,用于检测到机械臂的实际角度位置信号,并将信号返回给控制器。所述的反馈装置优选由光电编码器实现。The feedback device adopts unit negative feedback, which is used to detect the actual angular position signal of the mechanical arm and return the signal to the controller. The feedback device is preferably realized by a photoelectric encoder.

直流电机的位置作为自动控制理论实验教学系统的研究对象。为了更直观的观察实验结果,在直流电机的输出轴上接机械手臂,作为电机位置的指示标志。使用控制器对机械臂进行位置控制。The position of the DC motor is taken as the research object of the automatic control theory experiment teaching system. In order to observe the experimental results more intuitively, a mechanical arm is connected to the output shaft of the DC motor as an indicator of the position of the motor. Use the controller for position control of the robotic arm.

所述的控制器包括PC上位机和ARM下位机;首先PC上位机的电压信号通过USB串口传输模块传送至MCU主控模块,并通过ARM控制芯片内部定时/计时器产生可控占空比方波驱动直流电机并带动机械臂转动;直流电机的角度位置信号通过反馈装置的两路反馈信号传送至MCU主控模块,通过ARM控制芯片内部计数器和相位逻辑分析判断机械臂的转动方向和角度位置,最终把角度位置信号传送至PC上位机进行下一步电压信号值的计算并在前端显示模块显示,实验最后直流电机旋转带动机械臂旋转以达到机械臂最后稳定的效果。The controller includes a PC upper computer and an ARM lower computer; first, the voltage signal of the PC upper computer is transmitted to the MCU main control module through the USB serial port transmission module, and the internal timing/timer of the ARM control chip generates a square wave with a controllable duty ratio Drive the DC motor and drive the mechanical arm to rotate; the angular position signal of the DC motor is transmitted to the MCU main control module through the two feedback signals of the feedback device, and the rotation direction and angular position of the mechanical arm are judged through the internal counter and phase logic analysis of the ARM control chip. Finally, the angular position signal is transmitted to the PC host computer for the calculation of the voltage signal value in the next step and displayed on the front-end display module. At the end of the experiment, the rotation of the DC motor drives the rotation of the mechanical arm to achieve the final stability of the mechanical arm.

MCU主控模块采用低成本的ARM控制芯片,负责所有其它外围电路的初始化、控制、驱动直流电机转动和接收光电编码器的位置反馈装置信号,并将得到的结果通过USB串口模块发送给PC上位机平台;USB串口传输模块可为ARM下位机提供电源,并且为ARM下位机和PC上位机之间的数据传输接口;电机驱动模块,机械臂的线性放大的驱动电路采用双路PWM方式驱动电压,驱动信号通过ARM控制芯片自带的定时器/计数器获得,以驱动电机的正转反转和停转,同时还设计有保护驱动电路逻辑保护电路;反馈装置用于检测到机械臂的实际角度位置信号,反馈至MCU主控模块,反馈装置是整个自动控制理论实验教学系统的反馈部分。The MCU main control module adopts a low-cost ARM control chip, which is responsible for the initialization and control of all other peripheral circuits, driving the DC motor to rotate and receiving the signal of the position feedback device of the photoelectric encoder, and sending the obtained results to the PC through the USB serial port module. The computer platform; the USB serial port transmission module can provide power for the ARM lower computer, and it is the data transmission interface between the ARM lower computer and the PC upper computer; the motor drive module, the driving circuit of the linear amplification of the mechanical arm adopts a dual-channel PWM driving voltage , the driving signal is obtained by the timer/counter that comes with the ARM control chip to drive the motor to rotate forward, reverse and stop. At the same time, a logic protection circuit is designed to protect the driving circuit; the feedback device is used to detect the actual angle of the mechanical arm The position signal is fed back to the MCU main control module, and the feedback device is the feedback part of the whole automatic control theory experiment teaching system.

所述的直流电机数学模型为:根据直流电机的电器特性,将直流电机的位置模型分成速度模型和位置积分环节两个部分,先通过辨识算法得到速度模型,然后再与位置积分环节组合得到完整的位置模型。如图3所示,通过所述的建模方式能够得到直流电机的位置系统的开环数学模型。为了计算Tm、Ke两个参数,以直流电机的速度控制作为研究对象,由于直流电机的速度控制对应的模型是标准的一阶模型其中Tm是位置系统的标准时间常数,假设系统在一次阶跃响应中转速稳定时的速度为t,当系统转速达到0.632t时对应的时间就是Tm。其中Uf表示位置系统中产生死区的未知时变非线性摩擦干扰力矩等效到输入端的电压,y表示电机的位置,v表示速度,设Tm为直流电机的时间常数,Ke为电机的速度反馈比例系数,其中Tm、Ke均为位置系统电气特性常数,而Uf是系统非线性死区的等效电压,在硬件系统建立的时候,对该死区进行直流驱动的软件补偿,从而得出直流电机位置模型为可以看出,位置系统为标准的二阶系统,根据电机位置控制的阶跃响应曲线,计算出参数Ke。通过多次实验修正计算,最后得出系统Tm、Ke两个参数分别为0.15、0.56。因此,直流电机位置模型为 The mathematical model of the DC motor is as follows: according to the electrical characteristics of the DC motor, the position model of the DC motor is divided into two parts: the speed model and the position integration link, and the speed model is first obtained through the identification algorithm, and then combined with the position integration link to obtain a complete location model. As shown in FIG. 3 , the open-loop mathematical model of the position system of the DC motor can be obtained through the modeling method described above. In order to calculate the two parameters of T m and K e , the speed control of DC motor is taken as the research object, because the model corresponding to the speed control of DC motor is a standard first-order model Where T m is the standard time constant of the position system, assuming that the speed of the system when the speed is stable in a step response is t, the corresponding time when the system speed reaches 0.632t is T m . Where U f represents the voltage equivalent to the input terminal of the unknown time-varying nonlinear frictional disturbance torque that produces a dead zone in the position system, y represents the position of the motor, v represents the speed, let T m be the time constant of the DC motor, and K e be the motor The speed feedback proportional coefficient of , where T m and K e are the electrical characteristic constants of the position system, and U f is the equivalent voltage of the nonlinear dead zone of the system. When the hardware system is established, the software compensation of the DC drive is performed on the dead zone , so that the position model of the DC motor is obtained as It can be seen that the position system is a standard second-order system, and the parameter K e is calculated according to the step response curve of the motor position control. After many experiments and calculations, the two parameters of system T m and K e are finally obtained to be 0.15 and 0.56 respectively. Therefore, the DC motor position model is

本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统外形优选盒装的,将控制器、执行机构和反馈装置全部封装起来,采用模块化的设计思路,仅仅留出接口与外部交互,在盒子的上面设计一个刻度盘,直流电机被固定在盒子内侧,直流电机输出轴从盒子的正上方伸出,并与一个指针相连,这样有助于观察自动控制理论实验现象,更好的分析实验结果。The appearance of the automatic control theory experiment teaching system based on a portable mechanical arm disclosed by the present invention is preferably box-packed, and the controller, actuator and feedback device are all packaged, and the design idea of modularization is adopted, only the interface and the external Interaction, design a dial on the top of the box, the DC motor is fixed inside the box, the output shaft of the DC motor protrudes from the top of the box, and is connected with a pointer, which is helpful to observe the experimental phenomenon of automatic control theory, better analysis of experimental results.

硬件空间位置连接关系:盒装实验箱是用来封装设备的,储物间可以存放实验需要的连接线,刻度盘用来显示机械臂转动的角度,指针用来呈现机械的转动,直流电源插孔是给直流电机可选的直流12V供电插口,USB数据接口/直流电源连接口是实验设备与PC上位机连接的接口,并对ARM下位机供电,电机供电切换是电机供电电压高低档(5V/12V)的切换按钮,电源开关是试验箱的总开关。The connection relationship of the hardware space position: the boxed experiment box is used to package the equipment, the connecting wires needed for the experiment can be stored in the storage room, the dial is used to display the rotation angle of the mechanical arm, the pointer is used to display the mechanical rotation, and the DC power plug The hole is an optional DC 12V power supply socket for the DC motor. The USB data interface/DC power supply connection port is the interface for connecting the experimental equipment to the PC host computer, and supplies power to the ARM lower computer. The motor power supply switch is the motor power supply voltage level (5V /12V) switching button, the power switch is the main switch of the test box.

由于本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统是针对自动控制理论课程教学设计的,自动控制理论课程的分析方法多采用图解法,如系统响应,根轨迹,频率特性灯,需要绘制大量的曲线,因此除了实验装置之外,还设计了上位机平台辅助教学。Because the automatic control theory experiment teaching system based on the portable manipulator disclosed in the present invention is designed for the teaching of the automatic control theory course, the analysis method of the automatic control theory course mostly adopts the graphical method, such as system response, root locus, frequency characteristics The lamp needs to draw a large number of curves, so in addition to the experimental device, a host computer platform is also designed to assist teaching.

上位机平台辅助教学的实验选择单元用于在实验之前必须选择所需要进行的实验;参数修改单元:是实验开始之前,学生必须在参数修改框内填写相应的实验参数,如果不填写,将使用默认参数;数据计算单元:对ARM下位机返回的实时数据进行分析和计算,将接收到的实时信息进行计算分析,将普通的数据转化为自动控制理论运用到的标志信息,方便学生的观看及理解;数据展示单元:学生不仅可以现场观察实验现象,还可以通过上位机平台定量的观察实验系统的各项实时数据,另外该单元还会把被控对象的实时曲线在上位机软件中展示出来;实验控制单元:控制实验的进度,实验可以在任何时间开始,中止,结束,也可以在实验结束后,调用之前的实验数据,观察对比;通信单元:负责与实验装置进行实时通信,发送控制命令的同时也接收实验装置返回的数据信息。The experiment selection unit of the host computer platform assisted teaching is used to select the required experiment before the experiment; the parameter modification unit: before the experiment starts, the students must fill in the corresponding experimental parameters in the parameter modification box, if not filled, it will be used Default parameters; data calculation unit: analyze and calculate the real-time data returned by the ARM lower computer, calculate and analyze the received real-time information, and convert ordinary data into symbol information applied by automatic control theory, which is convenient for students to watch and Understanding; data display unit: students can not only observe the experimental phenomenon on site, but also quantitatively observe various real-time data of the experimental system through the host computer platform. In addition, this unit will also display the real-time curve of the controlled object in the host computer software ;Experimental control unit: control the progress of the experiment, the experiment can be started, stopped, and ended at any time, or after the experiment is over, the previous experimental data can be called to observe and compare; communication unit: responsible for real-time communication with the experimental device, sending control The command also receives the data information returned by the experimental device.

上位机平台辅助教学功能:Auxiliary teaching function of host computer platform:

(1)控制实验装置进行实验:使用上位机负责给实验装置发送控制命令。实验的开始,暂停,结束,控制算法的选择,参数的回读均通过上位机平台进行控制,实验装置通过接收上位机的控制命令完成实验。(1) Control the experimental device to conduct experiments: use the host computer to send control commands to the experimental device. The start, pause, and end of the experiment, the selection of the control algorithm, and the readback of the parameters are all controlled through the host computer platform, and the experimental device completes the experiment by receiving the control commands from the host computer.

(2)展示实验曲线,分析实验数据:由于自动控制理论这门课程的特点,绘图是上位机平台一个必须实现的功能,上位机平台接收实验装置返回的实验数据例如机械臂的角度,位置等,通过计算整理,以曲线,数据表格等形式展示给学生,以达到好的教学效果。(2) Display the experimental curve and analyze the experimental data: due to the characteristics of the course of automatic control theory, drawing is a must-achieve function of the host computer platform, and the host computer platform receives the experimental data returned by the experimental device, such as the angle and position of the mechanical arm, etc. , through calculation and sorting, and display it to students in the form of curves, data tables, etc., in order to achieve a good teaching effect.

上位机的控制策略包括:The control strategy of the upper computer includes:

从便捷式机械臂直流电机的数学模型中能够得到在不添加控制器时的闭环极点,为了优化系统的静动态特性,提升控制效果,需要给系统加入控制算法。其中控制算法包括:From the mathematical model of the DC motor of the portable manipulator, the closed-loop pole without adding a controller can be obtained. In order to optimize the static and dynamic characteristics of the system and improve the control effect, it is necessary to add a control algorithm to the system. The control algorithm includes:

PID控制器设计:控制系统的数学模型,控制律为:PID controller design: the mathematical model of the control system, the control law is:

因此,在PID控制实验中,共设计了3个参数,分别为Kp,Ti,Td。在进行实验时,通过修改这三个参数,进行对比,可以得到比例积分微分环节在控制器中作用。Therefore, in the PID control experiment, a total of 3 parameters were designed, namely Kp, Ti, Td. When conducting experiments, by modifying these three parameters and making comparisons, it can be obtained that the proportional-integral-differential link plays a role in the controller.

超前滞后控制器设计:和PID控制实验类似,在超前滞后控制实验中,共设计了3个参数,分别为K,Ti,Td。在进行实验时,学生通过上位机控制平台可以修改控制器的参数,通过使用不同的控制参数,得到超前滞后控制器的功能。Lead-lag controller design: Similar to the PID control experiment, in the lead-lag control experiment, a total of 3 parameters were designed, namely K, Ti, and Td. During the experiment, students can modify the parameters of the controller through the host computer control platform, and obtain the function of the lead-lag controller by using different control parameters.

自定义算法设计:在本模块学生可以验证自己编写的算法是否能达到好的控制作用,可将自己编写的程序转换成动态链接库(.dll)格式上传至PC上位机,并运行程序,从得到的曲线中分析相关动态和静态性能指标,就可以得到衡量算法控制性能的参数,通过修改以验证自己的控制算法。Custom algorithm design: In this module, students can verify whether the algorithm they write can achieve a good control effect. They can convert the program they write into a dynamic link library (.dll) format and upload it to the PC host computer, and run the program. By analyzing the relevant dynamic and static performance indicators in the obtained curves, the parameters to measure the control performance of the algorithm can be obtained, and the control algorithm can be verified by modification.

根轨迹校正实验:通过设计校正网络的传递函数,使系统的性能指标满足给定的要求,包括串联超前校正和串联滞后校正。Root locus correction experiment: By designing the transfer function of the correction network, the performance index of the system can meet the given requirements, including series lead correction and series lag correction.

频率法校正实验,和根轨迹类似,通过设计校正网络的传递函数,使系统的性能指标满足给定的要求,包括串联超前校正和串联滞后校正。The frequency method correction experiment is similar to the root locus. By designing the transfer function of the correction network, the performance index of the system can meet the given requirements, including series lead correction and series lag correction.

极点配置实验,通过对原系统的分析,得到系统稳定的极点和零点,通过极点配置方法,对系统进行极点配置,是系统满足给定的目标。In the pole allocation experiment, through the analysis of the original system, the stable poles and zero points of the system are obtained, and the pole allocation method is used to configure the system to make the system meet the given goal.

线性二次型最后控制算法控制实验,包括LQR控制算法,LQR控制器的仿真,消除稳态误差以及LQR控制器的实际控制。Linear quadratic final control algorithm control experiment, including LQR control algorithm, simulation of LQR controller, elimination of steady-state error and actual control of LQR controller.

直流电机建模实验,通过对直流电机启动时角度位置的采集与数据分析,从具体实验中得到直流电机的模型参数。The DC motor modeling experiment, through the acquisition and data analysis of the angle position of the DC motor when it starts, obtains the model parameters of the DC motor from specific experiments.

有益效果:Beneficial effect:

1、本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,使用直流电机作为实验装置,使用低功耗ARM单片机进行实际控制,极大的降低了成本和能耗。1. The invention discloses an automatic control theory experiment teaching system based on a portable manipulator, using a DC motor as an experimental device, and using a low-power ARM single-chip microcomputer for actual control, which greatly reduces cost and energy consumption.

2、本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,采用闭环控制系统,功能比较全,能够完成理论教学中所有的实验,使学生学习起来更加具体,理解理论知识更加透彻。2. The teaching system for automatic control theory experiment teaching system based on portable mechanical arm disclosed by the present invention adopts a closed-loop control system with relatively complete functions and can complete all experiments in theoretical teaching, making students learn more concretely and understand theoretical knowledge more clearly. thorough.

3、本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,对机械臂进行闭环操作,和理论知识完全吻合,不涉及各种仿真,解决了目前主流实验设备需要仿真的问题。3. The invention discloses an automatic control theoretical experiment teaching system based on a portable manipulator. The closed-loop operation of the manipulator is completely consistent with the theoretical knowledge and does not involve various simulations. It solves the problem that current mainstream experimental equipment needs to be simulated. .

4、本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,抗干扰能力强,当外界环境的改变时不需要重新调整参数就可以直接实验;4. A teaching system for automatic control theory experiment teaching system based on a portable mechanical arm disclosed in the present invention has strong anti-interference ability, and can directly experiment without readjusting parameters when the external environment changes;

5、本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,通过对控制平台与执行机构进行封装,在保证了美观的同时使其能够更加方便地携带至课堂上进行教学演示,具有极强的便携性。5. A portable mechanical arm-based automatic control theory experiment teaching system disclosed in the present invention, by encapsulating the control platform and the actuator, it can be more conveniently carried to the classroom for teaching demonstration while ensuring the aesthetics , with strong portability.

6、本发明公开的一种基于便捷式机械臂的自动控制理论实验教学系统,学生可以通过对控制算法进行自定义设计,通过生成动态链接库上传至PC上位机,运行程序,从得到的曲线中分析相关动态和静态性能指标,并通过此实验装置验证自己编写的算法是否能达到好的控制作用。6. In the teaching system for automatic control theory experiment teaching system based on a portable mechanical arm disclosed in the present invention, students can customize the control algorithm, upload it to the PC host computer by generating a dynamic link library, run the program, and obtain the curve Analyze relevant dynamic and static performance indicators in the experiment, and verify whether the algorithm written by oneself can achieve good control effect through this experimental device.

附图说明Description of drawings

图1为背景技术中的超前校正电路图;Fig. 1 is the lead correction circuit diagram in the background technology;

图2为便携式机械臂控制系统模型图;Fig. 2 is a model diagram of the portable manipulator control system;

图3为直流电机数学模型;Fig. 3 is the mathematical model of DC motor;

图4为便携式机械臂控制系统工作方框图;Fig. 4 is a working block diagram of the portable manipulator control system;

图5为便捷式实验装置示意图;Fig. 5 is the schematic diagram of portable experimental device;

图6为机械臂设备系统的组成;Fig. 6 is the composition of mechanical arm equipment system;

其中①实验箱②储物间③刻度盘④指针⑤12V直流电源插孔⑥USB数据接口/直流5V电源连接口⑦网口⑧电机供电切换⑨电源开关Among them ① experiment box ② storage room ③ dial ④ pointer ⑤ 12V DC power jack ⑥ USB data interface/DC 5V power connection port ⑦ network port ⑧ motor power switch ⑨ power switch

图7为上位机平台结构图;Figure 7 is a structural diagram of the upper computer platform;

图8为PID控制系统数学模型。Figure 8 is the mathematical model of the PID control system.

具体实施方式:detailed description:

下面将结合附图和实施例对本发明加以详细说明,同时也叙述了本发明技术方案解决的技术问题及有益效果,需要指出的是,所描述的实施例仅旨在便于对本发明的理解,而对其不起任何限定作用。The present invention will be described in detail below in conjunction with accompanying drawing and embodiment, also described the technical problem and beneficial effect that the technical solution of the present invention solves simultaneously, it should be pointed out that described embodiment is only intended to facilitate the understanding of the present invention, and It has no limiting effect on it.

实施例1:Example 1:

如图2、4所示,本实施例公开的一种基于便捷式机械臂的自动控制理论实验教学系统,包括被控对象、控制器、执行机构和反馈装置,构成完整的闭环控制系统回路。As shown in Figures 2 and 4, this embodiment discloses an automatic control theory experiment teaching system based on a portable manipulator, including a controlled object, a controller, an actuator and a feedback device, forming a complete closed-loop control system loop.

被控对象为机械臂与直流电机相嵌套组合,用于产生角度位置信号。机械臂的角度位置是被控对象S,其中S(r)是参考位置,即目标位置,而S(t)是机械臂的当前位置,即实际位置。The controlled object is a nested combination of a mechanical arm and a DC motor, which is used to generate an angular position signal. The angular position of the manipulator is the controlled object S, where S(r) is the reference position, ie the target position, and S(t) is the current position of the manipulator, ie the actual position.

控制器用于校正系统的数学模型使之可以收敛到预定值。控制器根据控制系统的控制算法调节系统的静动态特性,是自动控制理论实验教学系统的研究内容。控制系统的控制算法调节系统的静动态特性由软件编程实现。The controller is used to calibrate the mathematical model of the system so that it can converge to a predetermined value. The controller adjusts the static and dynamic characteristics of the system according to the control algorithm of the control system, which is the research content of the automatic control theory experiment teaching system. The control algorithm of the control system adjusts the static and dynamic characteristics of the system by software programming.

执行机构为直流电机,直流电机控制机械臂转动,实现机械臂的位置控制。直流电机特性在出厂之后即视为固定不变,直流电机的数学模型由自身的电气特性决定。The actuator is a DC motor, and the DC motor controls the rotation of the mechanical arm to realize the position control of the mechanical arm. The characteristics of a DC motor are considered fixed after leaving the factory, and the mathematical model of a DC motor is determined by its own electrical characteristics.

反馈装置采用单位负反馈,用于检测到机械臂的实际角度位置信号,并将信号返回给控制器。所述的反馈装置由光电编码器实现。The feedback device adopts unit negative feedback, which is used to detect the actual angular position signal of the mechanical arm and return the signal to the controller. The feedback device is realized by a photoelectric encoder.

直流电机的位置作为自动控制理论实验教学系统的研究对象。为了更直观的观察实验结果,在直流电机的输出轴上接机械手臂,作为电机位置的指示标志。使用控制器对机械臂进行位置控制。The position of the DC motor is taken as the research object of the automatic control theory experiment teaching system. In order to observe the experimental results more intuitively, a mechanical arm is connected to the output shaft of the DC motor as an indicator of the position of the motor. Use the controller for position control of the robotic arm.

如图4所示,所述的控制器包括PC上位机和ARM下位机;首先PC上位机的电压信号通过USB串口传输模块传送至MCU主控模块,并通过ARM控制芯片内部定时/计时器产生可控占空比方波驱动直流电机并带动机械臂转动;直流电机的角度位置信号通过反馈装置的两路反馈信号传送至MCU主控模块,通过ARM控制芯片内部计数器和相位逻辑分析判断机械臂的转动方向和角度位置,最终把角度位置信号传送至PC上位机进行下一步电压信号值的计算并在前端显示模块显示,实验最后直流电机旋转带动机械臂旋转以达到机械臂最后稳定的效果。As shown in Figure 4, the controller includes a PC upper computer and an ARM lower computer; first, the voltage signal of the PC upper computer is transmitted to the MCU main control module through the USB serial port transmission module, and is generated by the internal timer/timer of the ARM control chip The controllable duty ratio square wave drives the DC motor and drives the mechanical arm to rotate; the angular position signal of the DC motor is transmitted to the MCU main control module through the two-way feedback signal of the feedback device, and the internal counter and phase logic analysis of the ARM control chip are used to determine the position of the mechanical arm. The rotation direction and angular position, and finally the angular position signal is sent to the PC host computer for the calculation of the voltage signal value in the next step and displayed on the front-end display module. At the end of the experiment, the rotation of the DC motor drives the rotation of the mechanical arm to achieve the final stability of the mechanical arm.

如图2所示,ARM下位机包括MCU主控模块、USB串口传输模块、电机驱动模块及反馈装置。MCU主控模块采用低成本的ARM控制芯片,负责所有其它外围电路的初始化、控制、驱动直流电机转动和接收光电编码器的位置反馈装置信号,并将得到的结果通过USB串口模块发送给PC上位机平台;USB串口传输模块可为ARM下位机提供电源,并且为ARM下位机和PC上位机之间的数据传输接口;电机驱动模块,机械臂的线性放大的驱动电路采用双路PWM方式驱动电压,驱动信号通过ARM控制芯片自带的定时器/计数器获得,以驱动电机的正转反转和停转,同时还设计有保护驱动电路逻辑保护电路;反馈装置用于检测到机械臂的实际角度位置信号,反馈至MCU主控模块,反馈装置是整个自动控制理论实验教学系统的反馈部分。As shown in Figure 2, the ARM lower computer includes an MCU main control module, a USB serial port transmission module, a motor drive module and a feedback device. The MCU main control module adopts a low-cost ARM control chip, which is responsible for the initialization and control of all other peripheral circuits, driving the DC motor to rotate and receiving the signal of the position feedback device of the photoelectric encoder, and sending the obtained results to the PC through the USB serial port module. The computer platform; the USB serial port transmission module can provide power for the ARM lower computer, and it is the data transmission interface between the ARM lower computer and the PC upper computer; the motor drive module, the driving circuit of the linear amplification of the mechanical arm adopts a dual-channel PWM driving voltage , the driving signal is obtained by the timer/counter that comes with the ARM control chip to drive the motor to rotate forward, reverse and stop. At the same time, a logic protection circuit is designed to protect the driving circuit; the feedback device is used to detect the actual angle of the mechanical arm The position signal is fed back to the MCU main control module, and the feedback device is the feedback part of the whole automatic control theory experiment teaching system.

如图3所示,所述的直流电机数学模型为:根据直流电机的电器特性,将直流电机的位置模型分成速度模型和位置积分环节两个部分,先通过辨识算法得到速度模型,然后再与位置积分环节组合得到完整的位置模型,通过所述的建模方式能够得到直流电机的位置系统的开环数学模型。为了计算Tm、Ke两个参数,以直流电机的速度控制作为研究对象,由于直流电机的速度控制对应的模型是标准的一阶模型其中Tm是位置系统的标准时间常数,假设系统在一次阶跃响应中转速稳定时的速度为t,当系统转速达到0.632t时对应的时间就是Tm。其中Uf表示位置系统中产生死区的未知时变非线性摩擦干扰力矩等效到输入端的电压,y表示电机的位置,v表示速度,设Tm为直流电机的时间常数,Ke为电机的速度反馈比例系数,其中Tm、Ke均为位置系统电气特性常数,而Uf是系统非线性死区的等效电压,在硬件系统建立的时候,对该死区进行直流驱动的软件补偿,从而得出直流电机位置模型为可以看出,位置系统为标准的二阶系统。根据电机位置控制的阶跃响应曲线,计算出参数Ke。通过多次实验修正计算,最后得出系统Tm、Ke两个参数分别为0.15、0.56。因此,直流电机位置模型为 As shown in Figure 3, the mathematical model of the DC motor is as follows: according to the electrical characteristics of the DC motor, the position model of the DC motor is divided into two parts: the speed model and the position integration link, and the speed model is first obtained through the identification algorithm, and then combined with A complete position model is obtained by combining the position integration links, and the open-loop mathematical model of the position system of the DC motor can be obtained through the modeling method. In order to calculate the two parameters of T m and K e , the speed control of DC motor is taken as the research object, because the model corresponding to the speed control of DC motor is a standard first-order model Where T m is the standard time constant of the position system, assuming that the speed of the system when the speed is stable in a step response is t, the corresponding time when the system speed reaches 0.632t is T m . Where U f represents the voltage equivalent to the input terminal of the unknown time-varying nonlinear frictional disturbance torque that produces a dead zone in the position system, y represents the position of the motor, v represents the speed, let T m be the time constant of the DC motor, and K e be the motor The speed feedback proportional coefficient of , where T m and K e are the electrical characteristic constants of the position system, and U f is the equivalent voltage of the nonlinear dead zone of the system. When the hardware system is established, the software compensation of the DC drive is performed on the dead zone , so that the position model of the DC motor is obtained as It can be seen that the position system is a standard second-order system. According to the step response curve of the motor position control, the parameter K e is calculated. After many experiments and calculations, the two parameters of system T m and K e are finally obtained to be 0.15 and 0.56 respectively. Therefore, the DC motor position model is

如图5、6所示,本实施例公开的一种基于便捷式机械臂的自动控制理论实验教学系统外形为盒装的,将控制器、执行机构和反馈装置全部封装起来,采用模块化的设计思路,仅仅留出接口与外部交互,在盒子的上面设计一个刻度盘,直流电机被固定在盒子内侧,直流电机输出轴从盒子的正上方伸出,并与一个指针相连,这样有助于观察自动控制理论实验现象,更好的分析实验结果。As shown in Figures 5 and 6, a portable manipulator-based automatic control theory experimental teaching system disclosed in this embodiment is box-packed, and the controller, actuator and feedback device are all packaged, and a modularized Design idea, only leave the interface to interact with the outside, design a dial on the top of the box, the DC motor is fixed inside the box, the output shaft of the DC motor protrudes from the top of the box, and is connected to a pointer, which helps Observe the experimental phenomena of automatic control theory, and better analyze the experimental results.

硬件空间位置连接关系:盒装实验箱是用来封装设备的,储物间可以存放实验需要的连接线,刻度盘用来显示机械臂转动的角度,指针用来呈现机械的转动,直流电源插孔是给直流电机可选的直流12V供电插口,USB数据接口/直流电源连接口是实验设备与PC上位机连接的接口,并对ARM下位机供电,电机供电切换是电机供电电压高低档(5V/12V)的切换按钮,电源开关是试验箱的总开关。The connection relationship of the hardware space position: the boxed experiment box is used to package the equipment, the connecting wires needed for the experiment can be stored in the storage room, the dial is used to display the rotation angle of the mechanical arm, the pointer is used to display the mechanical rotation, and the DC power plug The hole is an optional DC 12V power supply socket for the DC motor. The USB data interface/DC power supply connection port is the interface for connecting the experimental equipment to the PC host computer, and supplies power to the ARM lower computer. The motor power supply switch is the motor power supply voltage level (5V /12V) switching button, the power switch is the main switch of the test box.

由于本实施例公开的一种基于便捷式机械臂的自动控制理论实验教学系统是针对自动控制理论课程教学设计的,自动控制理论课程的分析方法多采用图解法,如系统响应,根轨迹,频率特性,需要绘制大量的曲线,因此除了实验装置之外,还公开上位机平台辅助教学。Since the experimental teaching system of automatic control theory based on a portable manipulator disclosed in this embodiment is designed for the teaching of automatic control theory courses, the analysis methods of automatic control theory courses mostly use graphic methods, such as system response, root locus, frequency characteristics, a large number of curves need to be drawn, so in addition to the experimental device, the host computer platform is also released to assist teaching.

如图7所示,上位机平台辅助教学的实验选择单元用于在实验之前必须选择所需要进行的实验;参数修改单元:是实验开始之前,学生必须在参数修改框内填写相应的实验参数,如果不填写,将使用默认参数;数据计算单元:对下位机返回的实时数据进行分析和计算,将接收到的实时信息进行计算分析,将普通的数据转化为自动控制理论运用到的标志信息,方便学生的观看及理解;数据展示单元:学生不仅可以现场观察实验现象,还可以通过上位机平台定量的观察实验系统的各项实时数据,另外该单元还会把被控对象的实时曲线在上位机软件中展示出来;实验控制单元:控制实验的进度,实验可以在任何时间开始,中止,结束,也可以在实验结束后,调用之前的实验数据,观察对比;通信单元:负责与实验装置进行实时通信,发送控制命令的同时也接收实验装置返回的数据信息。As shown in Figure 7, the experiment selection unit of the host computer platform assisted teaching is used to select the required experiment before the experiment; the parameter modification unit: before the experiment starts, the students must fill in the corresponding experimental parameters in the parameter modification box, If not filled, the default parameters will be used; data calculation unit: analyze and calculate the real-time data returned by the lower computer, calculate and analyze the received real-time information, and convert ordinary data into symbol information applied by automatic control theory. It is convenient for students to watch and understand; data display unit: students can not only observe the experimental phenomenon on the spot, but also quantitatively observe various real-time data of the experimental system through the host computer platform. In addition, this unit will also display the real-time curve of the controlled object on the upper displayed in the computer software; experimental control unit: control the progress of the experiment, the experiment can be started, stopped, and ended at any time, and after the experiment is over, the previous experimental data can be called for observation and comparison; communication unit: responsible for communicating with the experimental device Real-time communication, while sending control commands, it also receives data information returned by the experimental device.

上位机平台辅助教学功能:Auxiliary teaching function of host computer platform:

(1)控制实验装置进行实验:使用上位机负责给实验装置发送控制命令。实验的开始,暂停,结束,控制算法的选择,参数的回读均通过上位机平台进行控制,实验装置通过接收上位机的控制命令完成实验。(1) Control the experimental device to conduct experiments: use the host computer to send control commands to the experimental device. The start, pause, and end of the experiment, the selection of the control algorithm, and the readback of the parameters are all controlled through the host computer platform, and the experimental device completes the experiment by receiving the control commands from the host computer.

(2)展示实验曲线,分析实验数据:由于自动控制理论这门课程的特点,绘图是上位机平台一个必须实现的功能。上位机平台接收实验装置返回的实验数据例如机械臂的角度,位置等,通过计算整理,以曲线,数据表格等形式展示给学生,以达到好的教学效果。(2) Displaying experimental curves and analyzing experimental data: Due to the characteristics of the course of automatic control theory, drawing is a must-achieve function of the host computer platform. The upper computer platform receives the experimental data returned by the experimental device, such as the angle and position of the mechanical arm, sorts it out through calculation, and displays it to students in the form of curves and data tables to achieve good teaching results.

上位机的控制策略包括:The control strategy of the upper computer includes:

从便捷式机械臂直流电机的数学模型中能够得到在不添加控制器时的闭环极点,为了优化系统的静动态特性,提升控制效果,需要给系统加入控制算法。其中控制算法包括:From the mathematical model of the DC motor of the portable manipulator, the closed-loop pole without adding a controller can be obtained. In order to optimize the static and dynamic characteristics of the system and improve the control effect, it is necessary to add a control algorithm to the system. The control algorithm includes:

如图8所示,PID控制器设计:控制系统的数学模型,控制律为:As shown in Figure 8, PID controller design: the mathematical model of the control system, the control law is:

因此,在PID控制实验中,共设计了3个参数,分别为Kp,TI,Td。在进行实验时,通过修改这三个参数,进行对比,可以得到比例积分微分环节在控制器中作用。Therefore, in the PID control experiment, a total of three parameters were designed, namely K p , T I , T d . When conducting experiments, by modifying these three parameters and making comparisons, it can be obtained that the proportional-integral-differential link plays a role in the controller.

超前滞后控制器设计:和PID控制实验类似,在超前滞后控制实验中,共设计了3个参数,分别为K,Ti,Td。在进行实验时,学生通过上位机控制平台可以修改控制器的参数,通过使用不同的控制参数,得到超前滞后控制器的功能。Lead-lag controller design: Similar to the PID control experiment, in the lead-lag control experiment, a total of 3 parameters were designed, namely K, T i , T d . During the experiment, students can modify the parameters of the controller through the host computer control platform, and obtain the function of the lead-lag controller by using different control parameters.

自定义算法设计:在本模块学生可以验证自己编写的算法是否能达到好的控制作用,通过将自己的算法写入上位机,运行程序,从得到的曲线中分析相关动态和静态性能指标,就可以得到衡量算法控制性能的参数,通过修改以验证自己的控制算法。Custom algorithm design: In this module, students can verify whether the algorithm they write can achieve a good control effect. By writing their own algorithm into the host computer, running the program, and analyzing the relevant dynamic and static performance indicators from the obtained curve, the You can get the parameters to measure the control performance of the algorithm, and verify your own control algorithm by modifying it.

根轨迹校正实验:通过设计校正网络的传递函数,使系统的性能指标满足给定的要求,包括串联超前校正和串联滞后校正。Root locus correction experiment: By designing the transfer function of the correction network, the performance index of the system can meet the given requirements, including series lead correction and series lag correction.

频率法校正实验,和根轨迹类似,通过设计校正网络的传递函数,使系统的性能指标满足给定的要求,包括串联超前校正和串联滞后校正。The frequency method correction experiment is similar to the root locus. By designing the transfer function of the correction network, the performance index of the system can meet the given requirements, including series lead correction and series lag correction.

极点配置实验,通过对原系统的分析,得到系统稳定的极点和零点,通过极点配置方法,对系统进行极点配置,是系统满足给定的目标。In the pole allocation experiment, through the analysis of the original system, the stable poles and zero points of the system are obtained, and the pole allocation method is used to configure the system to make the system meet the given goal.

线性二次型最后控制算法控制实验,包括LQR控制算法,LQR控制器的仿真,消除稳态误差以及LQR控制器的实际控制。Linear quadratic final control algorithm control experiment, including LQR control algorithm, simulation of LQR controller, elimination of steady-state error and actual control of LQR controller.

实验示例1:PID实验Experiment example 1: PID experiment

基于所述的一种基于便捷式机械臂的自动控制理论实验教学系统实现的自动自动控制理论PID实验教学方法,包括如下步骤:Based on the automatic control theory PID experiment teaching method realized by the automatic control theory experiment teaching system based on a portable mechanical arm, the method comprises the following steps:

步骤一:将实验设备接上电,通过USB接口将上位机和上位机操作系统连接。Step 1: Connect the experimental equipment to power, and connect the host computer and the host computer operating system through the USB interface.

步骤二:打开上位机操作系统。Step 2: Open the upper computer operating system.

步骤三:系统进行初始化,包括串口的选择,通讯率,数据位等的选择。Step 3: The system is initialized, including the selection of the serial port, communication rate, data bits, etc.

步骤四:选择PID实验,配置Kp,TI,Td三个参数,点击开始实验,系统开始运行,此时会弹出表示机械臂角度的实验曲线,观察曲线的走向,看系统是否趋于稳定,如果不稳定返回上一层,重新配置参数进行实验,直到系统稳定。Step 4: Select the PID experiment, configure K p , T I , T d three parameters, click to start the experiment, and the system starts to run. At this time, an experimental curve representing the angle of the mechanical arm will pop up. Observe the trend of the curve to see if the system tends to Stable, if it is unstable, return to the previous layer, reconfigure the parameters and conduct experiments until the system is stable.

实验示例2:超前滞后实验Experimental Example 2: Lead Lag Experiment

基于所述的一种基于便捷式机械臂的自动控制理论实验教学系统实现的自动自动控制理论超前滞后教学方法,包括如下步骤:Based on the automatic control theory lead-lag teaching method realized by the automatic control theory experimental teaching system based on a portable mechanical arm, the method comprises the following steps:

步骤一:同上Step 1: Same as above

步骤二:同上。Step 2: Same as above.

步骤三:同上。Step 3: Same as above.

步骤四:选择超前滞后实验,配置K,Ti,Td三个参数,点击开始实验,系统开始运行,此时会弹出表示机械臂角度的实验曲线,观察曲线的走向,看系统是否趋于稳定,如果不稳定返回上一层,重新配置参数进行实验,直到系统稳定。Step 4: Select the lead-lag experiment, configure the three parameters K, T i , T d , click to start the experiment, and the system starts to run. At this time, an experimental curve representing the angle of the mechanical arm will pop up. Observe the trend of the curve to see if the system tends to Stable, if it is unstable, return to the previous layer, reconfigure the parameters and conduct experiments until the system is stable.

以上控制所述的具体描述,对发明的目的、技术方案和有益效果进行进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific description above controls the purpose, technical solutions and beneficial effects of the invention in further detail. It should be understood that the above description is only a specific embodiment of the present invention and is not used to limit the protection of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

1.一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:包括被控对象、控制器、执行机构和反馈装置,构成完整的闭环控制系统回路;1. An automatic control theory experiment teaching system based on a portable mechanical arm is characterized in that: it comprises a controlled object, a controller, an actuator and a feedback device, forming a complete closed-loop control system loop; 被控对象为机械臂与直流电机相嵌套组合,用于产生角度位置信号;机械臂的角度位置是被控对象S,其中S(r)是参考位置,即目标位置,而S(t)是机械臂的当前位置,即实际位置;The controlled object is a nested combination of a mechanical arm and a DC motor, which is used to generate an angular position signal; the angular position of the mechanical arm is the controlled object S, where S(r) is the reference position, that is, the target position, and S(t) is the current position of the robotic arm, that is, the actual position; 控制器用于校正系统的数学模型;控制器根据控制系统的控制算法调节系统的静动态特性,是自动控制理论实验教学系统的研究内容;控制系统的控制算法调节系统的静动态特性由PC上位机软件编程实现;The controller is used to correct the mathematical model of the system; the controller adjusts the static and dynamic characteristics of the system according to the control algorithm of the control system, which is the research content of the automatic control theory experiment teaching system; the control algorithm of the control system adjusts the static and dynamic characteristics of the system by the PC upper computer Software programming implementation; 执行机构为直流电机,直流电机控制机械臂转动,实现机械臂的位置控制;直流电机特性在出厂之后即视为固定不变,直流电机的数学模型由自身的电气特性决定;The actuator is a DC motor, which controls the rotation of the mechanical arm and realizes the position control of the mechanical arm; the characteristics of the DC motor are regarded as fixed after leaving the factory, and the mathematical model of the DC motor is determined by its own electrical characteristics; 反馈装置采用单位负反馈,用于检测到机械臂的实际角度位置信号,并将信号返回给控制器;所述的反馈装置优选由光电编码器实现;The feedback device adopts unit negative feedback, which is used to detect the actual angular position signal of the mechanical arm, and returns the signal to the controller; the feedback device is preferably realized by a photoelectric encoder; 直流电机的角度位置作为自动控制理论实验教学系统的研究对象;为了更直观的观察实验结果,在直流电机的输出轴上接机械手臂,作为电机位置的指示标志;使用控制器对机械臂进行角度位置控制。The angular position of the DC motor is taken as the research object of the automatic control theory experiment teaching system; in order to observe the experimental results more intuitively, a mechanical arm is connected to the output shaft of the DC motor as an indicator of the position of the motor; use the controller to adjust the angle of the mechanical arm position control. 2.如权利要求1所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:所述的控制器包括PC上位机和ARM下位机;其中,ARM下位机包括MCU主控模块、USB串口传输模块、电机驱动模块及反馈装置;MCU主控模块采用低成本的ARM控制芯片,负责所有其它外围电路的初始化和控制、负责驱动直流电机转动、接收光电编码器的位置反馈装置信号,并将得到的结果通过USB串口模块发送给PC上位机平台;USB串口传输模块可作为ARM下位机提供电源,并且是ARM下位机和PC上位机之间的数据传输接口;电机驱动模块,机械臂的线性放大的驱动电路采用双路PWM方式驱动电压,驱动信号通过ARM控制芯片自带的定时器/计数器获得,以驱动电机的正转反转和停转,同时还设计有保护驱动电路逻辑保护电路;反馈装置用于检测到机械臂的实际角度位置信号,反馈至MCU主控模块,反馈装置是整个自动控制理论实验教学系统的反馈部分。2. A kind of automatic control theory experiment teaching system based on portable manipulator as claimed in claim 1, it is characterized in that: described controller comprises PC upper computer and ARM lower computer; Wherein, ARM lower computer comprises MCU master Control module, USB serial port transmission module, motor drive module and feedback device; MCU main control module adopts low-cost ARM control chip, responsible for initialization and control of all other peripheral circuits, responsible for driving DC motor rotation, and receiving position feedback from photoelectric encoders device signal, and send the obtained results to the PC host computer platform through the USB serial port module; the USB serial port transmission module can be used as the ARM lower computer to provide power, and is the data transmission interface between the ARM lower computer and the PC upper computer; the motor drive module , the linearly amplified drive circuit of the manipulator adopts a dual-channel PWM drive voltage, and the drive signal is obtained through the timer/counter that comes with the ARM control chip to drive the forward and reverse rotation and stop of the motor. At the same time, a protection drive is also designed. The circuit logic protects the circuit; the feedback device is used to detect the actual angular position signal of the manipulator and feed it back to the MCU main control module. The feedback device is the feedback part of the entire automatic control theory experiment teaching system. 3.如权利要求2所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:所述的直流电机数学模型为:根据直流电机的电器特性,将直流电机的位置模型分成速度模型和位置积分环节两个部分,先通过辨识算法得到速度模型,然后再与位置积分环节组合得到完整的位置模型;通过所述的建模方式能够得到直流电机的位置系统的开环数学模型,为了计算Tm、Ke两个参数,以直流电机的速度控制作为研究对象,由于直流电机的速度控制对应的模型是标准的一阶模型其中Tm是位置系统的标准时间常数,假设系统在一次阶跃响应中转速稳定时的速度为t,当系统转速达到0.632t时对应的时间就是Tm;其中Uf表示位置系统中产生死区的未知时变非线性摩擦干扰力矩等效到输入端的电压,y表示电机的位置,v表示速度,设Tm为直流电机的时间常数,Ke为电机的速度反馈比例系数,其中Tm、Ke均为位置系统电气特性常数,而Uf是系统非线性死区的等效电压,在硬件系统建立的时候,对该死区进行直流驱动的软件补偿,从而得出直流电机位置模型为可以看出,位置系统为标准的二阶系统,根据电机位置控制的阶跃响应曲线,计算出参数Ke;通过多次实验修正计算,最后得出系统Tm、Ke两个参数分别为0.15、0.56,因此,直流电机位置模型为 3. A kind of automatic control theory experiment teaching system based on portable manipulator as claimed in claim 2, it is characterized in that: described DC motor mathematical model is: according to the electric characteristic of DC motor, the position model of DC motor It is divided into two parts: the speed model and the position integration link. First, the speed model is obtained through the identification algorithm, and then combined with the position integration link to obtain a complete position model; through the above modeling method, the open-loop mathematics of the position system of the DC motor can be obtained Model, in order to calculate the two parameters of T m and K e , the speed control of the DC motor is taken as the research object, because the model corresponding to the speed control of the DC motor is a standard first-order model Among them, T m is the standard time constant of the position system, assuming that the speed of the system when the speed is stable in a step response is t, when the system speed reaches 0.632t, the corresponding time is T m ; where U f represents the dead time in the position system The unknown time-varying nonlinear friction disturbance torque in the area is equivalent to the voltage at the input terminal, y represents the position of the motor, v represents the speed, let T m be the time constant of the DC motor, K e is the speed feedback proportional coefficient of the motor, where T m , K e are the electrical characteristic constants of the position system, and U f is the equivalent voltage of the nonlinear dead zone of the system. When the hardware system is established, the software compensation of the DC drive is performed on the dead zone, so that the position model of the DC motor is obtained as It can be seen that the position system is a standard second-order system. According to the step response curve of the motor position control, the parameter K e is calculated; after many experiments and calculations, the two parameters of the system T m and K e are finally obtained as 0.15, 0.56, therefore, the DC motor position model is 4.如权利要求1或3所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:所述的控制器包括PC上位机和ARM下位机;首先PC上位机的电压信号通过USB串口传输模块传送至MCU主控模块,并通过ARM控制芯片内部定时/计时器产生可控占空比方波驱动直流电机并带动机械臂转动;直流电机的角度位置信号通过反馈装置的两路反馈信号传送至MCU主控模块,通过ARM控制芯片内部计数器和相位逻辑分析判断机械臂的转动方向和角度位置,最终把角度位置信号传送至PC上位机进行下一步电压信号值的计算并在前端显示模块显示,实验最后直流电机旋转带动机械臂旋转以达到机械臂最后稳定的效果。4. A kind of automatic control theory experiment teaching system based on portable manipulator as claimed in claim 1 or 3, it is characterized in that: described controller comprises PC upper computer and ARM lower computer; First the voltage of PC upper computer The signal is transmitted to the MCU main control module through the USB serial port transmission module, and the internal timing/timer of the ARM control chip generates a square wave with a controllable duty ratio to drive the DC motor and drive the mechanical arm to rotate; the angular position signal of the DC motor passes through the two feedback devices. The feedback signal is transmitted to the MCU main control module, and the rotation direction and angular position of the mechanical arm are judged through the internal counter and phase logic analysis of the ARM control chip, and finally the angular position signal is transmitted to the PC host computer for the calculation of the voltage signal value in the next step. The front-end display module shows that at the end of the experiment, the rotation of the DC motor drives the rotation of the robotic arm to achieve the final stability of the robotic arm. 5.如权利要求1、2或3所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:外形优选盒装的,将控制器、执行机构和反馈装置全部封装起来,采用模块化的设计思路,仅仅留出接口与外部交互,在盒子的上面设计一个刻度盘,直流电机被固定在盒子内侧,直流电机输出轴从盒子的正上方伸出,并与一个指针相连;5. A portable mechanical arm-based automatic control theory experiment teaching system as claimed in claim 1, 2 or 3, characterized in that: the shape is preferably boxed, and the controller, actuator and feedback device are all packaged , using a modular design idea, leaving only the interface to interact with the outside, designing a dial on the top of the box, the DC motor is fixed inside the box, and the output shaft of the DC motor protrudes from the top of the box and is connected to a pointer ; 硬件空间位置连接关系:盒装实验箱是用来封装设备的,储物间可以存放实验需要的连接线,刻度盘用来显示机械臂转动的角度,指针用来呈现机械的转动,直流电源插孔是直流电机可选的直流12V供电插口,USB数据接口/直流电源连接口是实验设备与PC上位机连接的接口,并对ARM下位机供电,电机供电切换是电机供电电压高低档(5V/12V)的切换按钮,电源开关是试验箱的总开关。The connection relationship of the hardware space position: the boxed experiment box is used to package the equipment, the connecting wires needed for the experiment can be stored in the storage room, the dial is used to display the rotation angle of the mechanical arm, the pointer is used to display the mechanical rotation, and the DC power plug The hole is an optional DC 12V power supply socket for the DC motor. The USB data interface/DC power supply connection port is the interface for connecting the experimental equipment to the PC host computer, and supplies power to the ARM lower computer. 12V) switch button, the power switch is the main switch of the test box. 6.如权利要求5所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:PC上位机平台辅助教学:上位机平台辅助教学的实验选择单元用于在实验之前必须选择所需要进行的实验;参数修改单元:是实验开始之前,学生必须在参数修改框内填写相应的实验参数,如果不填写,将使用默认参数;数据计算单元:对ARM下位机返回的实时数据进行分析和计算,将接收到的实时信息进行计算分析,将普通的数据转化为自动控制理论运用到的标志信息,方便学生的观看及理解;数据展示单元:学生不仅可以现场观察实验现象,还可以通过上位机平台定量的观察实验系统的各项实时数据,另外该单元还会把被控对象的实时曲线在上位机软件中展示出来;实验控制单元:控制实验的进度,实验可以在任何时间开始,中止,结束,也可以在实验结束后,调用之前的实验数据,观察对比;通信单元:负责与实验装置进行实时通信,发送控制命令的同时也接收实验装置返回的数据信息。6. A kind of automatic control theory experiment teaching system based on portable manipulator as claimed in claim 5, it is characterized in that: PC upper computer platform assisted teaching: the experiment selection unit of upper computer platform assisted teaching is used for must before experiment Select the desired experiment; parameter modification unit: before the experiment starts, students must fill in the corresponding experimental parameters in the parameter modification box, if not filled in, the default parameters will be used; data calculation unit: the real-time data returned by the ARM lower computer Carry out analysis and calculation, calculate and analyze the received real-time information, and convert ordinary data into symbol information applied by automatic control theory, which is convenient for students to watch and understand; data display unit: students can not only observe experimental phenomena on site, but also The real-time data of the experimental system can be quantitatively observed through the host computer platform. In addition, the unit will also display the real-time curve of the controlled object in the host computer software; the experimental control unit: controls the progress of the experiment, and the experiment can be performed at any time Start, stop, end, or after the experiment is over, call the previous experimental data for observation and comparison; communication unit: responsible for real-time communication with the experimental device, sending control commands and receiving data information returned by the experimental device. 7.如权利要求6所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:所述的PC上位机的控制策略包括:7. A kind of automatic control theory experiment teaching system based on portable mechanical arm as claimed in claim 6, is characterized in that: the control strategy of described PC upper computer comprises: PID控制器设计:控制系统的数学模型,控制律为:PID controller design: the mathematical model of the control system, the control law is: uu (( kk )) == [[ KK pp ++ KK pp TT TT II ++ KK PP TT dd TT ]] ee (( kk )) ++ [[ KK pp TT TT II -- KK PP TT dd TT ]] ee (( kk -- 11 )) ++ KK pp TT TT II ΣΣ (( ee (( kk -- 22 )) )) 因此,在PID控制实验中,共设计了3个参数,分别为Kp,Ti,Td;在进行实验时,通过修改这三个参数,进行对比,可以得到比例积分微分环节在控制器中作用;Therefore, in the PID control experiment, a total of 3 parameters were designed, namely Kp, Ti, Td; during the experiment, by modifying these three parameters and comparing them, we can get the role of the proportional integral differential link in the controller; 超前滞后控制器设计:和PID控制实验类似,在超前滞后控制实验中,共设计了3个参数,分别为Kp,TI,Td;在进行实验时,学生通过PC上位机控制平台可以修改控制器的参数,通过使用不同的控制参数,得到超前滞后控制器的功能;Design of lead-lag controller: Similar to the PID control experiment, in the lead-lag control experiment, a total of 3 parameters are designed, namely K p , T I , T d ; during the experiment, students can control the platform through the PC upper computer. Modify the parameters of the controller, and obtain the function of the lead-lag controller by using different control parameters; 自定义算法设计:在本模块学生可以验证自己编写的算法是否能达到好的控制作用,可将自己编写的程序转换成动态链接库(.dll)格式上传至PC上位机,并运行程序,从得到的曲线中分析相关动态和静态性能指标,就可以得到衡量算法控制性能的参数,通过修改以验证自己的控制算法;Custom algorithm design: In this module, students can verify whether the algorithm they write can achieve a good control effect. They can convert the program they write into a dynamic link library (.dll) format and upload it to the PC host computer, and run the program. By analyzing the relevant dynamic and static performance indicators in the obtained curve, you can get the parameters to measure the control performance of the algorithm, and verify your own control algorithm by modifying it; 根轨迹校正实验:通过设计校正网络的传递函数,使系统的性能指标满足给定的要求,包括串联超前校正和串联滞后校正;Root locus correction experiment: By designing the transfer function of the correction network, the performance index of the system can meet the given requirements, including series lead correction and series lag correction; 频率法校正实验,和根轨迹类似,通过设计校正网络的传递函数,使系统的性能指标满足给定的要求,包括串联超前校正和串联滞后校正;The frequency method correction experiment is similar to the root locus. By designing the transfer function of the correction network, the performance index of the system can meet the given requirements, including series lead correction and series lag correction; 极点配置实验,通过对原系统的分析,得到系统稳定的极点和零点,通过极点配置方法,对系统进行极点配置,是系统满足给定的目标;In the pole configuration experiment, through the analysis of the original system, the stable poles and zero points of the system are obtained, and the pole configuration method is used to configure the system to make the system meet the given goal; 线性二次型最后控制算法控制实验,包括LQR控制算法,LQR控制器的仿真,消除稳态误差以及LQR控制器的实际控制Linear quadratic final control algorithm control experiment, including LQR control algorithm, simulation of LQR controller, elimination of steady-state error and actual control of LQR controller 直流电机建模实验,通过对直流电机启动时角度位置的采集与数据分析,从具体实验中得到直流电机的模型参数。The DC motor modeling experiment, through the acquisition and data analysis of the angle position of the DC motor when it starts, obtains the model parameters of the DC motor from specific experiments. 8.如权利要求7所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:自动控制理论PID实验教学方法,包括如下步骤,8. A kind of automatic control theory experiment teaching system based on portable mechanical arm as claimed in claim 7, is characterized in that: the automatic control theory PID experiment teaching method, comprises the steps, 步骤一:将实验设备接上电,通过USB接口将下位机和上位机操作系统连接;Step 1: Connect the experimental equipment to power, and connect the lower computer and the upper computer operating system through the USB interface; 步骤二:打开上位机操作系统;Step 2: Open the host computer operating system; 步骤三:系统进行初始化,包括串口的选择,通讯率,数据位等的选择;Step 3: The system is initialized, including the selection of serial port, communication rate, data bits, etc.; 步骤四:选择PID实验,配置Kp,TI,Td三个参数,点击开始实验,系统开始运行,此时会弹出表示机械臂角度的实验曲线,观察曲线的走向,看系统是否趋于稳定,如果不稳定返回上一层,重新配置参数进行实验,直到系统稳定。Step 4: Select the PID experiment, configure K p , T I , T d three parameters, click to start the experiment, and the system starts to run. At this time, an experimental curve representing the angle of the mechanical arm will pop up. Observe the trend of the curve to see if the system tends to Stable, if it is unstable, return to the previous layer, reconfigure the parameters and conduct experiments until the system is stable. 9.如权利要求7所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:自动控制理论超前滞后实验教学方法,包括如下步骤,9. A kind of automatic control theory experiment teaching system based on portable mechanical arm as claimed in claim 7, is characterized in that: the automatic control theory lead-lag experiment teaching method comprises the following steps, 步骤一:将实验设备接上电,通过USB接口将下位机和上位机操作系统连接;Step 1: Connect the experimental equipment to power, and connect the lower computer and the upper computer operating system through the USB interface; 步骤二:打开上位机操作系统;Step 2: Open the host computer operating system; 步骤三:系统进行初始化,包括串口的选择,通讯率,数据位等的选择;Step 3: The system is initialized, including the selection of serial port, communication rate, data bits, etc.; 步骤四:选择超前滞后实验,配置K,T1,T2三个参数,点击开始实验,系统开始运行,此时会弹出表示机械臂角度的实验曲线,观察曲线的走向,看系统是否趋于稳定,如果不稳定返回上一层,重新配置参数进行实验,直到系统稳定。Step 4: Select the lead-lag experiment, configure the three parameters K, T 1 , and T 2 , click to start the experiment, and the system starts to run. At this time, an experimental curve representing the angle of the mechanical arm will pop up. Observe the trend of the curve to see if the system tends to Stable, if it is unstable, return to the previous layer, reconfigure the parameters and conduct experiments until the system is stable. 10.如权利要求1、2或3所述的一种基于便捷式机械臂的自动控制理论实验教学系统,其特征在于:所述的反馈装置优选由光电编码器实现。10. A portable mechanical arm-based automatic control theory experiment teaching system according to claim 1, 2 or 3, characterized in that the feedback device is preferably realized by a photoelectric encoder.
CN201611079546.6A 2016-11-30 2016-11-30 An experimental teaching system of automatic control theory based on portable robotic arm Expired - Fee Related CN106502162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611079546.6A CN106502162B (en) 2016-11-30 2016-11-30 An experimental teaching system of automatic control theory based on portable robotic arm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611079546.6A CN106502162B (en) 2016-11-30 2016-11-30 An experimental teaching system of automatic control theory based on portable robotic arm

Publications (2)

Publication Number Publication Date
CN106502162A true CN106502162A (en) 2017-03-15
CN106502162B CN106502162B (en) 2019-01-25

Family

ID=58328110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611079546.6A Expired - Fee Related CN106502162B (en) 2016-11-30 2016-11-30 An experimental teaching system of automatic control theory based on portable robotic arm

Country Status (1)

Country Link
CN (1) CN106502162B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107123350A (en) * 2017-07-13 2017-09-01 郑州工业应用技术学院 A kind of automatic Control Theory Experiment tutoring system based on portable mechanical arm
CN108230865A (en) * 2018-02-11 2018-06-29 安徽工程大学 Automated teaching apparatus based on spin control system
TWI688843B (en) * 2018-11-30 2020-03-21 財團法人金屬工業研究發展中心 Automatic control method and automatic control device of mechanical system
CN111216131A (en) * 2020-01-21 2020-06-02 重庆邮电大学 Robot cascade anti-interference control method and system based on flexible actuator drive
CN111223384A (en) * 2019-12-09 2020-06-02 中国民用航空飞行学院 Teaching experiment platform for characteristics and control of variable-pitch aviation power system
CN112621746A (en) * 2020-12-02 2021-04-09 上海交通大学烟台信息技术研究院 PID control method with dead zone and mechanical arm visual servo grabbing system
CN114360345A (en) * 2022-02-28 2022-04-15 南京航空航天大学 Portable automatic control principle teaching experiment system of dexterous type
CN116372934A (en) * 2023-04-25 2023-07-04 上海卓昕医疗科技有限公司 A method and system for protecting the boundary of a robot arm joint based on a position loop

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0699375A (en) * 1992-09-18 1994-04-12 Kawasaki Heavy Ind Ltd Robot operation training device
CN201465410U (en) * 2009-06-17 2010-05-12 天津科技大学 A simulation teaching instrument for pose transformation of a mechanical arm
CN201576397U (en) * 2009-04-09 2010-09-08 杨红娟 Robot teaching model
CN201946205U (en) * 2011-02-25 2011-08-24 北京联合大学生物化学工程学院 Teaching instrument of robot forearm structure
KR20120036680A (en) * 2010-10-08 2012-04-18 경운대학교 산학협력단 The educational robot kit using toy block
CN103728972A (en) * 2014-01-06 2014-04-16 中国石油大学(华东) Test platform and method for synchronous control over multiple mechanical arms
CN104965466A (en) * 2015-07-08 2015-10-07 北京理工大学 Direct current motor control teaching experiment system
CN105204394A (en) * 2015-08-26 2015-12-30 电子科技大学 Six-degree-of-freedom chewing robot control system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0699375A (en) * 1992-09-18 1994-04-12 Kawasaki Heavy Ind Ltd Robot operation training device
CN201576397U (en) * 2009-04-09 2010-09-08 杨红娟 Robot teaching model
CN201465410U (en) * 2009-06-17 2010-05-12 天津科技大学 A simulation teaching instrument for pose transformation of a mechanical arm
KR20120036680A (en) * 2010-10-08 2012-04-18 경운대학교 산학협력단 The educational robot kit using toy block
CN201946205U (en) * 2011-02-25 2011-08-24 北京联合大学生物化学工程学院 Teaching instrument of robot forearm structure
CN103728972A (en) * 2014-01-06 2014-04-16 中国石油大学(华东) Test platform and method for synchronous control over multiple mechanical arms
CN104965466A (en) * 2015-07-08 2015-10-07 北京理工大学 Direct current motor control teaching experiment system
CN105204394A (en) * 2015-08-26 2015-12-30 电子科技大学 Six-degree-of-freedom chewing robot control system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
杨晶: "基于智能控制的教学机器人控制器的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
赵京,卫沅: "机器人实验教学系统创新实践方法及应用", 《实验室研究与探索》 *
陈欢庆,楼明,瞿如珍: "机器人教学是培养创造实践能力的有效途径", 《机器人教育》 *
黄斌: "基于手臂机器人控制的远程实验系统", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107123350A (en) * 2017-07-13 2017-09-01 郑州工业应用技术学院 A kind of automatic Control Theory Experiment tutoring system based on portable mechanical arm
CN108230865A (en) * 2018-02-11 2018-06-29 安徽工程大学 Automated teaching apparatus based on spin control system
TWI688843B (en) * 2018-11-30 2020-03-21 財團法人金屬工業研究發展中心 Automatic control method and automatic control device of mechanical system
CN111223384A (en) * 2019-12-09 2020-06-02 中国民用航空飞行学院 Teaching experiment platform for characteristics and control of variable-pitch aviation power system
CN111216131A (en) * 2020-01-21 2020-06-02 重庆邮电大学 Robot cascade anti-interference control method and system based on flexible actuator drive
CN112621746A (en) * 2020-12-02 2021-04-09 上海交通大学烟台信息技术研究院 PID control method with dead zone and mechanical arm visual servo grabbing system
CN114360345A (en) * 2022-02-28 2022-04-15 南京航空航天大学 Portable automatic control principle teaching experiment system of dexterous type
CN116372934A (en) * 2023-04-25 2023-07-04 上海卓昕医疗科技有限公司 A method and system for protecting the boundary of a robot arm joint based on a position loop

Also Published As

Publication number Publication date
CN106502162B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN106502162A (en) A kind of automatic Control Theory Experiment teaching system based on portable mechanical arm
CN104965466B (en) A kind of DC MOTOR CONTROL teaching experiment system
CN102708749B (en) Portable Classroom Teaching Demonstration Model
CN109459254B (en) A Dynamic Semi-Physical Simulation Platform for Multi-joint Robot
CN108427324A (en) A kind of flexible mechanical arm control emulation platform and its emulation mode
CN101706648A (en) Design method of motion controller based on RCP and DSP
CN110658740A (en) PLC-based semi-physical virtual process control practical training platform
CN203930517U (en) A kind of Single-Rotational Inverted Pendulum control experimental system
Küçükdermenci Real-Time Speed Control System: PID Tuning and Visualization with Proteus and LabVIEW
Tejado et al. Physical modeling based simulators to support teaching in automatic control: the rotatory pendulum
Küçükdermenci Integration of Proteus and LabVIEW for Open-Loop DC Motor Control with Position and Speed Feedback
CN109272852B (en) Content-extensible linear position control teaching experiment system and method
CN203895037U (en) Transport teaching training system based on alternating current servo control
CN104035450A (en) Rotary inverted pendulum control experiment system and control method
Kaewmanee et al. A new low-cost hardware-in-the-loop simulator for control of power electronics systems laboratory
CN100435050C (en) Control method of pendulum acrobatic movement of underactuated double pendulum system
Yajun et al. A design of elevator positioning control system model
CN108010411A (en) A kind of intelligence assembly type automatically controls synthetic instruction experiment porch
CN104881034A (en) Sailboard experiment system and sailboard measure method
CN211956163U (en) A Cricket Ball Control Experiment System Based on Position Detection of Resistive Screen
CN102736547A (en) Physical and digital integrated simulation platform of wind turbine hydraulic variable pitch control system
Rütters et al. Teaching control theory with a simplified helicopter model and a classroom fitting hardware test-bench
CN111427303B (en) A simulator measurement and control system based on multi-point measurement compensation method
Enikov et al. Low-cost take-home experiment on classical control using matlab/simulink real-time windows target
CN102799192A (en) Nonlinear disturbance simulation and detection control system for astronomical telescope

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190125

Termination date: 20191130