CN103240743B - System and method for improving performance of incremental code disc - Google Patents
System and method for improving performance of incremental code disc Download PDFInfo
- Publication number
- CN103240743B CN103240743B CN201310176703.5A CN201310176703A CN103240743B CN 103240743 B CN103240743 B CN 103240743B CN 201310176703 A CN201310176703 A CN 201310176703A CN 103240743 B CN103240743 B CN 103240743B
- Authority
- CN
- China
- Prior art keywords
- robot
- chip microcomputer
- position information
- code disc
- pulse
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000012545 processing Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 6
- 238000002955 isolation Methods 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 3
- 230000006872 improvement Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 14
- 230000008901 benefit Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000750 progressive effect Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Landscapes
- Manipulator (AREA)
Abstract
本发明公开了一种增量式码盘性能提高系统和方法。在机器人计算机系统的基础上增加单片机系统实现性能提升。机器人计算机系统,其用于控制机器人的运行并利用增量式码盘检测机器人关节的当前位置信息,其在机器人结束工作时向单片机系统发送机器人关节的当前位置信息,并在机器人开始工作时从单片机系统接收机器人关节的当前位置信息;单片机系统,其用于在接收到机器人计算机系统发送的机器人关节的当前位置信息后,检测增量式码盘发出的脉冲信息,并根据所述脉冲信息更新所述机器人关节的当前位置信息。本发明公开的上述系统,可随时准确获取电机的当前位置,实现了增量式码盘的绝对计数,而且可满足生产商对机器人系统低成本高性能的需求。
The invention discloses a system and method for improving the performance of an incremental code disc. On the basis of the robot computer system, a single-chip microcomputer system is added to realize performance improvement. The robot computer system is used to control the operation of the robot and use the incremental code disc to detect the current position information of the robot joints. It sends the current position information of the robot joints to the single-chip microcomputer system when the robot finishes working, and from the The single-chip microcomputer system receives the current position information of the robot joint; the single-chip microcomputer system is used to detect the pulse information sent by the incremental code disc after receiving the current position information of the robot joint sent by the robot computer system, and update it according to the pulse information The current position information of the robot joint. The above-mentioned system disclosed by the present invention can accurately obtain the current position of the motor at any time, realizes the absolute counting of the incremental code disc, and can meet the requirements of the manufacturer for the low cost and high performance of the robot system.
Description
技术领域technical field
本发明属于机器人自动化领域,尤其涉及一种用于增量式码盘性能的提高系统及其方法。The invention belongs to the field of robot automation, and in particular relates to a system and method for improving the performance of an incremental code disc.
背景技术Background technique
机器人操作是指通过某种机构使末端工具在空间运动。为了满足实际生产需要,末端工具应该按照确定的轨迹运动,即控制机器人末端工具在每一时刻的位姿,这需要在任意时刻控制机器人各个关节的准确位置来实现。因此准确记录电机位置有重要意义。Robot manipulation refers to the movement of the end tool in space through some mechanism. In order to meet the actual production needs, the end tool should move according to the determined trajectory, that is, control the pose of the robot end tool at each moment, which needs to be realized by controlling the accurate position of each joint of the robot at any time. Therefore, it is of great significance to accurately record the position of the motor.
伺服电机的位置检测方法有很多,其中光电码盘在机器人控制中应用最广。光电码盘按工作产生信号不同通常分为绝对式码盘和增量式码盘。其中,绝对式码盘产生的电机位置信号是唯一的,任何时刻均能获知电机的位置。绝对式码盘的抗干扰特性较强,可靠性较高,但由于其输出信号比较复杂,为信号处理电路的设计带来困难,此外,绝对式码盘的成本也偏高。增量式码盘通过电机转动时输出正交脉冲,由计数设备处理计算出其位置,当编码器静止或系统断电时,依靠计数设备的内部存储器记录位置信息。对于采用增量式码盘的伺服电机,当系统断电后,电机不能有任何抖动,否则,计数设备记忆的零点位置发生偏移,而且这种偏移量只有在错误的生产结果出现后才能知道,这在工业现场是不允许发生的。There are many methods for detecting the position of servo motors, among which photoelectric encoders are the most widely used in robot control. Photoelectric code discs are usually divided into absolute code discs and incremental code discs according to the different signals generated by the work. Among them, the motor position signal generated by the absolute code disc is unique, and the position of the motor can be known at any time. The absolute code disc has strong anti-interference characteristics and high reliability, but because its output signal is relatively complex, it brings difficulties to the design of the signal processing circuit. In addition, the cost of the absolute code disc is also high. The incremental code disc outputs quadrature pulses when the motor rotates, and the counting device processes and calculates its position. When the encoder is stationary or the system is powered off, the position information is recorded by the internal memory of the counting device. For servo motors using incremental code discs, when the system is powered off, the motor must not have any vibration, otherwise, the zero position memorized by the counting device will be offset, and this offset can only be confirmed after the wrong production result occurs. You know, this is not allowed to happen in the industrial field.
综上所述,绝对式码盘的位置信息任何时候可以直接读取,可是成本偏高,硬件电路复杂。而对于增量式码盘,当电机断电后重启,或者掉电期间电机存在非正常转动,如抱闸失灵时,电机的实际位置不易获知。因此对于采用增量式码盘的伺服电机,当上位机断电时需要有一个外部系统来记录电机的位置,否则每次开机都重新标定电机位置较为麻烦,有时甚至是不可行的。鉴于目前增量式码盘应用广泛,若能克服增量式码盘的不足,具有重要意义。To sum up, the position information of the absolute code wheel can be read directly at any time, but the cost is high and the hardware circuit is complicated. For the incremental encoder, when the motor restarts after power failure, or the motor rotates abnormally during power failure, such as the brake failure, the actual position of the motor is not easy to know. Therefore, for a servo motor using an incremental encoder, an external system is required to record the position of the motor when the upper computer is powered off, otherwise it would be cumbersome to recalibrate the position of the motor every time it is turned on, and sometimes it is even unfeasible. In view of the wide application of incremental code discs, it is of great significance to overcome the shortcomings of incremental code discs.
发明内容Contents of the invention
有鉴于此,本发明提出了一种增量式码盘性能的提高系统及其方法。其在原机器人系统的基础上加装本发明提出的上述系统,在上位机断电时由该系统来记录电机位置,可实现增量式码盘的绝对计数功能。In view of this, the present invention proposes a system and method for improving the performance of an incremental code disc. The above-mentioned system proposed by the present invention is installed on the basis of the original robot system, and the position of the motor is recorded by the system when the upper computer is powered off, and the absolute counting function of the incremental code disc can be realized.
本发明公开的用于增量式码盘性能提高系统,其包括:The performance improvement system for incremental code discs disclosed by the present invention includes:
机器人计算机系统,其用于控制机器人的运行并利用增量式码盘检测机器人关节的当前位置信息,其在机器人结束工作时向单片机系统发送机器人关节的当前位置信息,并在机器人开始工作时从单片机系统接收机器人关节的当前位置信息;The robot computer system is used to control the operation of the robot and use the incremental code disc to detect the current position information of the robot joints. It sends the current position information of the robot joints to the single-chip microcomputer system when the robot finishes working, and from the The single-chip microcomputer system receives the current position information of the robot joint;
单片机系统,其用于在接收到机器人计算机系统发送的机器人关节的当前位置信息后,检测增量式码盘发出的脉冲信息,并根据所述脉冲信息更新所述机器人关节的当前位置信息。The single-chip microcomputer system is used to detect the pulse information sent by the incremental code disc after receiving the current position information of the robot joint sent by the robot computer system, and update the current position information of the robot joint according to the pulse information.
本发明公开的用于增量式码盘性能提高方法,其包括:The method for improving the performance of an incremental code disc disclosed by the present invention includes:
步骤1、机器人计算机系统利用增量式码盘检测机器人关节的位置信息;Step 1, the robot computer system uses the incremental code disc to detect the position information of the robot joints;
步骤2、机器人计算机系统向单片机系统发送机器人关节的当前位置信息,并结束机器人的工作;Step 2, the robot computer system sends the current position information of the robot joints to the single-chip microcomputer system, and ends the work of the robot;
步骤3、单片机系统接收到所述机器人计算机系统发送的机器人关节的当前位置信息后,检测所述增量式码盘的脉冲信息;Step 3. After the single-chip microcomputer system receives the current position information of the robot joints sent by the robot computer system, it detects the pulse information of the incremental code disc;
步骤4、根据所检测到的脉冲信息更新所述机器人关节的当前位置信息;Step 4, updating the current position information of the robot joints according to the detected pulse information;
步骤5、机器人重新开始工作,所述机器人计算机系统从所述单片机系统获取所述机器人关节的当前位置信息。Step 5: The robot starts working again, and the computer system of the robot acquires the current position information of the joints of the robot from the single-chip microcomputer system.
本发明取得的有益效果是提出了一种来记录上位机断电时电机位置的系统和方法:The beneficial effect obtained by the present invention is to propose a system and method for recording the position of the motor when the upper computer is powered off:
优点一,可实现相对码盘的绝对计数功能,机器人系统不需要每次上电都重新标定;Advantage 1, the absolute counting function relative to the code disc can be realized, and the robot system does not need to be re-calibrated every time it is powered on;
优点二,在机器人系统上增加单片机系统,方便快捷地实现提升原系统功能;Advantage 2, adding a single-chip microcomputer system to the robot system, it is convenient and quick to realize the function upgrading of the original system;
优点三,成本低,结构简单,可靠性高;Advantage three, low cost, simple structure, high reliability;
优点四,系统功耗低,并采用先进的电源管理方案。不需更换电池,方便用户;Advantage 4, the system has low power consumption and adopts advanced power management scheme. No need to replace the battery, convenient for users;
优点五,适用性广,针对不同型号的码盘,使用相应的码盘接口便可实现改装。Advantage 5, wide applicability, for different types of code discs, it can be modified by using the corresponding code disc interface.
附图说明Description of drawings
图1是本发明中机器人系统结构框图;Fig. 1 is a structural block diagram of a robot system in the present invention;
图2是本发明中电源管理模块的工作原理示意图;Fig. 2 is a schematic diagram of the working principle of the power management module in the present invention;
图3是本发明中增量式码盘脉冲计数原理示意图;Fig. 3 is a schematic diagram of the principle of incremental code disc pulse counting in the present invention;
图4是本发明中码盘信号处理模块的实现原理示意图。Fig. 4 is a schematic diagram of the realization principle of the code disc signal processing module in the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明作进一步的详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
图1示出了本发明中具有增量式码盘性能提高装置的机器人系统结构框图。如图1中所示该机器人系统包括:机器人1、机器人关节2、电机3、电机控制器4、增量式码盘5、机器人计算机系统6以及单片机系统7;所述机器人计算机系统6以及单片机系统7共同构成用于增量式码盘性能提高的装置。Fig. 1 shows a structural block diagram of a robot system with an incremental code disc performance improving device in the present invention. This robot system comprises as shown in Figure 1: robot 1, robot joint 2, motor 3, motor controller 4, incremental code disc 5, robot computer system 6 and single-chip microcomputer system 7; Described robot computer system 6 and single-chip microcomputer The system 7 together constitutes a device for performance enhancement of incremental code discs.
所述单片机系统包括:CPU、码盘信号处理模块8、电源管理模块9和数据通讯模块10。其中,机器人计算机系统6在开机时调节机器人关节2处的电机3处于零点位置,正常工作时机器人计算机系统6通过电机控制器4控制机器人关节2处的电机3的转角和速度,增量式码盘5记录机器人关节2处的电机3的相对位置作为反馈信号。The single-chip microcomputer system includes: a CPU, a code disc signal processing module 8 , a power management module 9 and a data communication module 10 . Wherein, the robot computer system 6 adjusts the motor 3 at the robot joint 2 to be at the zero position when starting up, and the robot computer system 6 controls the rotation angle and speed of the motor 3 at the robot joint 2 through the motor controller 4 during normal operation, and the incremental code The disk 5 records the relative position of the motor 3 at the robot joint 2 as a feedback signal.
所述单片机系统7,优选地以TI公司的MSP430G2553作为CPU,所述码盘信号处理模块8、电源管理模块9和数据通讯模块10三部分构成外围电路。所述码盘信号处理模块8用于对增量式码盘5发出的脉冲信号进行检测和记录,并根据检测到的脉冲信号计算并存储为相应关节的相对位置信息;所述电源管理模块9负责将电源电压转化为单片机系统芯片所需的电平,并实现单片机系统7在机器人系统电源和充电电池双电源之间切换;所述数据通讯模块10用于实现单片机系统7与机器人计算机系统6的通信。The single-chip microcomputer system 7 preferably uses TI's MSP430G2553 as the CPU, and the code wheel signal processing module 8, the power management module 9 and the data communication module 10 constitute peripheral circuits. The code disc signal processing module 8 is used to detect and record the pulse signal sent by the incremental code disc 5, and calculate and store the relative position information of the corresponding joint according to the detected pulse signal; the power management module 9 Responsible for converting the power supply voltage into the level required by the single-chip system chip, and realizing the switching between the single-chip system 7 between the robot system power supply and the dual power supply of the rechargeable battery; the data communication module 10 is used to realize the single-chip system 7 and the robot computer system 6 Communication.
机器人系统在断电时,由机器人计算机系统6向单片机系统7传递机器人关节2处的电机3的当前位置信息,并发送开始计数命令;在机器人系统再次通电后,由机器人计算机系统6从单片机系统7接收此时的位置信息,并发送结束计数和清空当前位置信息命令。When the robot system is powered off, the robot computer system 6 transmits the current position information of the motor 3 at the robot joint 2 places to the single-chip microcomputer system 7, and sends a start counting command; 7 Receive the position information at this time, and send the end counting and clear the current position information command.
图2示出了本发明中电源管理模块结构及其工作原理示意图。如图2所示,该电源管理模块包括:充电电路11,电池部分12,光电隔离13,电平转换芯片14。其中,充电电路11采用专用充电模块,其用于对电池部分12进行充电;电池部分12,优选地采用1000mAh的充电电池,其用于在机器人计算机系统6断电后,向单片机系统7供电;光电隔离13,其用于机器人计算机系统6和单片机系统7的电气隔离,保证安全可靠;电平转换芯片14,优选地采用电源芯片NCP50033,其用于将机器人计算机系统6或电池部分12提供的电源电压转换成单片机系统所需的电平。Fig. 2 shows a schematic diagram of the structure and working principle of the power management module in the present invention. As shown in FIG. 2 , the power management module includes: a charging circuit 11 , a battery part 12 , a photoelectric isolation 13 , and a level conversion chip 14 . Wherein, the charging circuit 11 adopts a dedicated charging module, which is used to charge the battery part 12; the battery part 12 preferably adopts a 1000mAh rechargeable battery, which is used to supply power to the single-chip microcomputer system 7 after the robot computer system 6 is powered off; Photoelectric isolation 13, it is used for the electrical isolation of robot computer system 6 and single-chip microcomputer system 7, guarantees safe and reliable; The supply voltage is converted to the level required by the microcontroller system.
可见,所述电源管理模块有两个功能。第一是可实现双电源管理,在机器人系统供电和充电电池供电之间切换。当单片机检测到机器人系统通电时,机器人系统为单片机系统供电,并为电池充电;当检测到机器人系统断电时,电池为单片机系统供电。第二是电平转换,即可将供电电源电压转换成单片机系统中CPU和芯片所需电平,确保系统正常工作。此外,电源电路中安装大容量电容,确保供电切换时电压持续稳定;选用电池容量应确保机器人系统断电期间足够供应单片机系统的正常工作。It can be seen that the power management module has two functions. The first is that it can realize dual power supply management, switching between the power supply of the robot system and the power supply of the rechargeable battery. When the microcontroller detects that the robot system is powered on, the robot system supplies power to the microcontroller system and charges the battery; when it detects that the robot system is powered off, the battery supplies power to the microcontroller system. The second is level conversion, which can convert the power supply voltage to the level required by the CPU and chip in the single-chip microcomputer system to ensure the normal operation of the system. In addition, a large-capacity capacitor is installed in the power supply circuit to ensure continuous and stable voltage when the power supply is switched; the battery capacity should be selected to ensure that the robot system can supply enough for the normal operation of the single-chip system during power failure.
图3示出了本发明中增量式码盘脉冲计数原理示意图。如图3所示,所述增量式码盘5产生90度相位差的A、B两路脉冲信号,其中A路脉冲信号用于指示电机位置变化量,B路脉冲信号用于指示电机的转向。假设A路脉冲信号上升沿时B为低电平,则说明此时电机3正转;反之,假如A路脉冲信号上升沿时B为高电平,此时电机反转。这种方法虽然会有系统误差,如个别脉冲捕捉不到,但由于电机既有正转又有反转,不会出现一个方向的累进性误差,短时间内不会出现问题。Fig. 3 shows a schematic diagram of the pulse counting principle of the incremental code disc in the present invention. As shown in Figure 3, the incremental code disc 5 generates two pulse signals A and B with a phase difference of 90 degrees, wherein the pulse signal A is used to indicate the position change of the motor, and the pulse signal B is used to indicate the position of the motor. turn. Assuming that B is low level when the pulse signal of channel A rises, it means that the motor 3 is rotating forward at this time; on the contrary, if B is high level when the pulse signal of channel A is rising, the motor is reversed at this time. Although there will be systematic errors in this method, such as individual pulses cannot be captured, since the motor has both forward and reverse rotations, there will be no progressive errors in one direction, and there will be no problems in a short time.
图4示出了本发明中码盘信号处理模块8的实现原理示意图。如图3中所示,该码盘信号处理模块包括:脉冲检测功能模块15、脉冲记录功能模块16和位置信息存储模块17。其中,所述脉冲检测功能模块15,用于在当单片机系统7由电池部分12供电时,检测增量式码盘5的A路脉冲信号,并在检测到所述A路脉冲信号后,唤醒单片机系统7的CPU使其全速运行;所述脉冲记录功能模块16用于在单片机系统7全速运行时,记录所述增量式码盘5输出两路A、B正交脉冲信号。所述脉冲记录功能模块16包括个数信号端口18和方向信号端口19,所述个数信号端口18用于捕获A路脉冲信号的上升沿,并记录脉冲个数,并根据所记录的脉冲个数和增量式码盘5的位数将其转换成电机的位置信息。其中增量式码盘5的位数由其铭牌获知,编程时存储进去。例如有一个N位的码盘,即转一圈产生的脉冲个数为2N,若个数信号端口18记录的脉冲个数为n,那可知电机转角为。所述方向信号端口19用于读取此时B路脉冲信号的电平高低,并以此来判断电机转向。其中,脉冲检测功能模块15和脉冲记录功能模块16由单片机系统7即MSP430G2553单片机的IO口实现。所述位置信息存储模块17用于存储电机的当前位置信息,由单片机系统7即MSP430G2553单片机的内部存储器实现。Fig. 4 shows a schematic diagram of the implementation principle of the code wheel signal processing module 8 in the present invention. As shown in FIG. 3 , the code wheel signal processing module includes: a pulse detection function module 15 , a pulse recording function module 16 and a position information storage module 17 . Wherein, the pulse detection function module 15 is used to detect the A-way pulse signal of the incremental code disc 5 when the single-chip microcomputer system 7 is powered by the battery part 12, and after detecting the A-way pulse signal, wake up The CPU of the single-chip microcomputer system 7 makes it run at full speed; the pulse recording function module 16 is used to record the two-way A and B orthogonal pulse signals output by the incremental code disc 5 when the single-chip microcomputer system 7 runs at full speed. Described pulse recording function module 16 comprises number signal port 18 and direction signal port 19, and described number signal port 18 is used for capturing the rising edge of A road pulse signal, and record pulse number, and according to the recorded pulse number The number and the number of digits of the incremental code disc 5 are converted into the position information of the motor. Wherein the number of digits of incremental code disc 5 is known by its nameplate, and is stored during programming. For example, there is an N-bit code disc, that is, the number of pulses generated by one rotation is 2 N , if the number of pulses recorded by the number signal port 18 is n, then it can be known that the motor rotation angle is . The direction signal port 19 is used to read the level of the B-channel pulse signal at this time, and use it to judge the direction of the motor. Wherein, the pulse detection function module 15 and the pulse recording function module 16 are realized by the IO port of the MSP430G2553 MCU system 7. The position information storage module 17 is used for storing the current position information of the motor, and is realized by the internal memory of the single-chip microcomputer system 7, that is, the MSP430G2553 single-chip microcomputer.
下面详细介绍上述具有增量式码盘性能提高装置的机器人系统的运行流程。The following describes in detail the operation process of the above-mentioned robot system with the incremental code disc performance improving device.
1)当机器人计算机系统6正常工作时,单片机系统7处于低功耗休眠状态;当机器人计算机系统6结束工作时,其向单片机系统7的数据通讯模块10发送唤醒信号,并向单片机系统7传送机器人关节2的当前位置信息。1) When the robot computer system 6 was working normally, the single-chip microcomputer system 7 was in a low-power dormant state; when the robot computer system 6 finished working, it sent a wake-up signal to the data communication module 10 of the single-chip computer system 7, and transmitted Current position information of robot joint 2.
2)机器人计算机系统6断电后,单片机系统7切换其供电电源,由机器人计算机系统6为其供电转为电池部分12供电,单片机系统7处于准备计数的低功耗状态。2) After the robot computer system 6 is powered off, the single-chip microcomputer system 7 switches its power supply, and its power supply is transferred to the battery part 12 by the robot computer system 6, and the single-chip microcomputer system 7 is in a low power consumption state ready to count.
3)由于抱闸失灵或者其他的情况造成电机的非正常转动,增量式码盘5会输出A、B两路正交脉冲信号作为中断信号。当单片机系统7的脉冲检测功能模块15检测到所述A、B两路脉冲信号时,使其全速运行,并进入中断服务子程序,进而脉冲记录功能模块16实现对A、B两路正交脉冲信号的记录,并且不断刷新位置信息存储模块17中的电机位置信息。此外,根据有无脉冲信号,单片机系统7选择全速运行或低功耗工作模式,确保电池更长时间运行。3) Due to abnormal rotation of the motor caused by brake failure or other circumstances, the incremental code disc 5 will output two orthogonal pulse signals of A and B as interrupt signals. When the pulse detection function module 15 of single-chip microcomputer system 7 detects described A, B two-way pulse signal, make it run at full speed, and enter interrupt service subroutine, and then pulse recording function module 16 realizes to A, B two-way orthogonal record of the pulse signal, and constantly refresh the motor position information in the position information storage module 17. In addition, according to whether there is a pulse signal, the single-chip microcomputer system 7 selects a full-speed operation or a low-power operation mode to ensure a longer battery operation.
4)单片机系统7编程时存有增量式码盘的型号,可知增量式码盘5的位数,进而将脉冲信息转换成位置变化量,不断更新关节2的位置信息。由于单片机系统7运行速度有限,为了保证机器人关节2位置的测量精度和机器人1安全,当单片机系统7记录的相对位置超出其能力时,例如脉冲的大量丢失,超量程范围,内部程序冲突等,在机器人计算机系统6开机时,会收到单片机系统7的重新归零指令。4) When the single-chip microcomputer system 7 is programmed, the model of the incremental code disc is stored, and the number of digits of the incremental code disc 5 can be known, and then the pulse information is converted into a position change, and the position information of the joint 2 is continuously updated. Due to the limited operating speed of the single-chip microcomputer system 7, in order to ensure the measurement accuracy of the position of the robot joint 2 and the safety of the robot 1, when the relative position recorded by the single-chip microcomputer system 7 exceeds its capability, such as a large number of pulses are lost, the range is exceeded, and the internal program conflicts, etc., When the robot computer system 6 is turned on, it will receive a re-zero instruction from the single-chip microcomputer system 7.
5)当机器人计算机系统6重新开始工作时,单片机系统7向机器人计算机系统6传送关节2的位置信息。因而,机器人计算机系统6可直接开始工作,不需要重新标定。而单片机系统7在上传相对位置信息后,处于休眠状态等待机器人计算机系统6的命令。同时,单片机系统7切换电源,由机器人机器人系统6为单片机系统7供电,并通过充电电路11为电池部分12充电。5) When the robot computer system 6 starts working again, the single-chip microcomputer system 7 transmits the position information of the joint 2 to the robot computer system 6 . Thus, the robot computer system 6 can start working directly without recalibration. After the single-chip microcomputer system 7 uploads the relative position information, it is in a dormant state and waits for the command of the robot computer system 6 . At the same time, the single-chip microcomputer system 7 switches the power supply, and the robot robot system 6 supplies power for the single-chip microcomputer system 7, and charges the battery part 12 through the charging circuit 11 .
本发明提出的上述系统充分利用了机器人系统在工作时自身的计数功能,通过串口通讯进行协调,和单片机系统在不同时间记录电机位置。单片机系统用于记录机器人断电期间电机的非正常微小转动,采用运算速度较低的单片机即可满足要求。值得强调的是,本系统可在不对机器人系统本身作任何改变的情况下全面提升系统的性能,功耗和成本方面都具有明显的优势,能够有效满足现在机器人领域对产品低成本高性能的需求。The above-mentioned system proposed by the present invention makes full use of the counting function of the robot system itself during work, coordinates through serial port communication, and records the position of the motor at different times with the single-chip microcomputer system. The single-chip microcomputer system is used to record the abnormal small rotation of the motor during the power-off period of the robot, and the single-chip microcomputer with a low computing speed can meet the requirements. It is worth emphasizing that this system can fully improve the performance of the system without making any changes to the robot system itself. It has obvious advantages in terms of power consumption and cost, and can effectively meet the needs of low-cost and high-performance products in the robotics field. .
本发明公开的上述系统具有以下优点:1)可针对不同型号的码盘,只需更换数据采集接口,硬件电路和软件程序通用性高,因此使用范围广,可靠性高;(2)本系统针对的是机器人系统不工作后电机的非正常转动,对CPU的运算速度要求不高,选用单片机成本较低;(3)采用的正交脉冲计数方法不会产生累进型误差。The above-mentioned system disclosed by the present invention has the following advantages: 1) it can be used for different types of code discs, only the data acquisition interface needs to be replaced, and the hardware circuit and software program have high versatility, so the application range is wide and the reliability is high; (2) the system It is aimed at the abnormal rotation of the motor after the robot system is not working, and the requirement for the computing speed of the CPU is not high, and the cost of selecting a single-chip microcomputer is low; (3) The orthogonal pulse counting method adopted will not produce progressive errors.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention, and are not intended to limit the present invention. Within the spirit and principles of the present invention, any modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310176703.5A CN103240743B (en) | 2013-05-14 | 2013-05-14 | System and method for improving performance of incremental code disc |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310176703.5A CN103240743B (en) | 2013-05-14 | 2013-05-14 | System and method for improving performance of incremental code disc |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103240743A CN103240743A (en) | 2013-08-14 |
CN103240743B true CN103240743B (en) | 2015-04-22 |
Family
ID=48920786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310176703.5A Expired - Fee Related CN103240743B (en) | 2013-05-14 | 2013-05-14 | System and method for improving performance of incremental code disc |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103240743B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104639013B (en) * | 2015-03-16 | 2018-02-13 | 珠海格力智能装备技术研究院有限公司 | Motion control apparatus, motion controller, and motion control method |
CN105666492B (en) * | 2016-03-11 | 2018-02-16 | 奇瑞汽车股份有限公司 | SCARA joint of robot back to zero control methods |
CN110405751B (en) * | 2018-04-28 | 2022-10-18 | 深圳果力智能科技有限公司 | Robot and control method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1641316A (en) * | 2004-01-10 | 2005-07-20 | 中国科学院长春光学精密机械与物理研究所 | Full digital addition processing circuit for incremental photoelectric shaft-position encoder |
CN1680774A (en) * | 2004-04-07 | 2005-10-12 | 发那科株式会社 | Metering device |
CN101571409A (en) * | 2008-04-28 | 2009-11-04 | 台达电子工业股份有限公司 | Absolute optical code wheel as well as absolute coder and method for detecting absolute position thereof |
CN201559195U (en) * | 2009-12-11 | 2010-08-25 | Abb技术有限公司 | robot |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09311055A (en) * | 1996-05-22 | 1997-12-02 | Sanyo Denki Co Ltd | Absolute encoder |
-
2013
- 2013-05-14 CN CN201310176703.5A patent/CN103240743B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1641316A (en) * | 2004-01-10 | 2005-07-20 | 中国科学院长春光学精密机械与物理研究所 | Full digital addition processing circuit for incremental photoelectric shaft-position encoder |
CN1680774A (en) * | 2004-04-07 | 2005-10-12 | 发那科株式会社 | Metering device |
CN101571409A (en) * | 2008-04-28 | 2009-11-04 | 台达电子工业股份有限公司 | Absolute optical code wheel as well as absolute coder and method for detecting absolute position thereof |
CN201559195U (en) * | 2009-12-11 | 2010-08-25 | Abb技术有限公司 | robot |
Non-Patent Citations (1)
Title |
---|
基于双码盘的竞赛机器人运动控制系统设计与研究;李金彦;《中国优秀硕士学位论文》;20090401;第1-27、51-60页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103240743A (en) | 2013-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107650142B (en) | Servo driving system applied to mechanical arm joint | |
CN102841618B (en) | Novel quick-exploration automatic control system for microcomputer rat | |
CN101973035B (en) | Method and device for precise positioning of robot joint initial position | |
CN107662220A (en) | A kind of joint of mechanical arm and mechanical arm | |
CN202906819U (en) | Downhole brushless direct current motor controller | |
CN102837311B (en) | Low speed Full-automatic spot gluing machine people servo controller in a kind of five axles | |
CN103240743B (en) | System and method for improving performance of incremental code disc | |
CN102841619B (en) | Rapid exploration automatic control system for micro-mouse | |
CN103955152B (en) | A high-precision electronic mouse for maze competition and its use method | |
CN102866707A (en) | All-digital servo-control system for microcomputer mouse | |
CN106452231A (en) | Brush DC motor driver and control method thereof | |
CN109968356A (en) | Robotic arm force feedback control system and method based on embedded motion controller | |
CN202837916U (en) | Single-axis medium-low speed adhesive dispensing robot servo control system | |
CN107856740A (en) | The computational methods and system of a kind of wheel steering angle | |
CN103294060A (en) | Medium-low-speed cable patrol robot control system | |
CN207071945U (en) | A kind of servo drive system being applied in joint of mechanical arm | |
CN200997078Y (en) | Motor controlling system of omnibearing discretionary movable robot | |
CN204945798U (en) | A kind of Intelligent transfer robot adopting automation controller able to programme | |
CN102830643A (en) | Uniaxial medium/low-speed dispensing robot servo control system | |
CN102722174B (en) | AGV (Automatic Guided Vehicle) control system based on bus control mode | |
CN105651317A (en) | Absolute encoder and operation method thereof | |
TWI757879B (en) | Encoding device, motor and controlling method of encoding device | |
You et al. | Design of two-wheel balance car based on STM32 | |
CN202837914U (en) | Five-axis medium-low speed full-automatic adhesive dispensing robot servo controller | |
CN206905695U (en) | A kind of multi-turn absolute value encoder |
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 | ||
CB03 | Change of inventor or designer information |
Inventor after: Jing Fengshui Inventor after: Mao Yijian Inventor after: Tan Min Inventor after: Li En Inventor after: Liang Zize Inventor after: Yang Guodong Inventor after: Yang Chao Inventor after: Qi Yuhan Inventor after: Sun Yao Inventor before: Jing Fengshui Inventor before: Tan Min Inventor before: Li En Inventor before: Liang Zize Inventor before: Yang Guodong Inventor before: Mao Yijian Inventor before: Yang Chao Inventor before: Qi Yuhan Inventor before: Sun Yao |
|
CB03 | Change of inventor or designer information | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150422 |
|
CF01 | Termination of patent right due to non-payment of annual fee |