基于AVR单片机软件控制系统设计的机器人毕业论文外文翻译.docx
《基于AVR单片机软件控制系统设计的机器人毕业论文外文翻译.docx》由会员分享,可在线阅读,更多相关《基于AVR单片机软件控制系统设计的机器人毕业论文外文翻译.docx(19页珍藏版)》请在三一办公上搜索。
1、外文资料The Software Control System Design for Robot Based on AVR MCUKai Yang, Junmei Zhang, Wenbin LI, Liu YangSchool of TechnologyBeijing Forestry UniversityBeijing, ChinaCorresponding author: Junmei Zhang, AbstractWith the fast development of new principle in intelligent control, mobile robot has bec
2、ome the focus in the field of robotics and automation for scholars. Robot competitions are active worldwide and expanded. Based on the competition requirements and rules of 2008 Asia-Pacific Robot Contest, the control software of the competition robot is designed in this paper. In the control system
3、, the AVR single chip computer and C-language are used to achieve the DC motor control, rudder servo control, and path planning of the robot. From an overall perspective, the structure of the program is clear and could meet the control requirements of the competition robot. The program can also meet
4、 the expected function.Keywords- robot; control software; AVR SCM; path planningI. INTRODUCTION Robot is the highest manifestation of artificial intelligence and product of the development of automation technology. Robot competitions are active worldwide and expanded. This article is based on the 20
5、08 Asia-Pacific Robot Contest launched on robotics research. The task of the robot competition requirements and rules of the game is that the robot track on the path line to snatch at the object which is put on the top on the pillars. This designs control request in the standard site is that the rob
6、ot can track the signal line steady and fast, arrives at specified location according to the predetermined way and realizes the snatch and so on a series of movements assigned 1. Robot control system itself is complex. This article mainly involves software control. The whole control system is divide
7、d into the following tasks: DC motor control, multichannel rudder control, path planning and so on.II. DC MOTOR CONTROLA. The choice of control schemeThis design uses two DC motor as a system driver to control the movement of the robot left and right wheels. MCU control methods for motor are general
8、ly two types: analog control and digital control methods. Digital control method is to issue specific instructions to the motor control unit directly through the serial port of MCU in order to achieve the corresponding control requirements. The motors currently on the market are equipped with approp
9、riate professional control module. The control module is one that contains the instruction decoding, PID adjustment, photoelectric encoder and other modules, with good anti-interference and control advantages of high accuracy2. Because of conditions, such as restrictions on the system board, conside
10、red from the stability and reliability of the overall system, this design chooses the digital control method.B. MCU serial communication theory and flowThe motor control commands are stored in a one dimensional array. Each time one controls the motor, which is to send an array of characters to the c
11、orresponding controller.This work is completed by the AVR controlling universal synchronous and asynchronous serial receiver and transponder (USART) of chip. In this process, the control chip and motor control units use the way of asynchronous serial communication to carry on the correspondence. Con
12、trol chip is as the host computer, while the motor control unit is as a data receiving terminal. The format of Character frame is 8 data bits, 1 stop bit, no parity bit, and the baud rate is the 9600 bit/s. As the USART interior includes a baud rate generator, its clock input is 8 frequency division
13、 or 16 frequency division of system clock input(depending on the asynchronous communication working pattern, when for double speed pattern is 16 frequency division, otherwise is 8 frequency division). The data transmission selects query mode to carry on. After sending data due out to buffer register
14、, buffer register empty flag bit is kept sending the query. When this flag bit is 1, it means the transmission has completed and next data can be transmitted. The Fig. 1 is the flowchart of serial communication.III. MULTICHANNEL RUDDER CONTROLAs the robot arms multiple joints need to control by the
15、rudder, the MCU must be able to control multichannel rudder. From the correlation between pulse width and angle of rudder, we can see that the pulse width is very short relative to the pulse period and the time of pulse emergence is not necessarily. As long as in a pulse cycle, pulses appearing at a
16、ny time are able to meet the requirement. Therefore, we can control a multichannel rudder by means of generating different output pulses at different times in a signal cycle 3. Below taking timer overflow interrupt which generates PWM to control 6 rudders (this system only uses 2 rudders) simultaneo
17、usly. We suppose the control signal output ports of 6 rudders are respectively portc.0 to portc.5. The time of high level is respectively Th0 to Th5. The control step is as follows: Pull portc.0 first, timer timing Th0. When the timer overflows and causes interrupt, portc.0 is pulled down, while por
18、tc.1 is pulled and timer times Th1.Do this process again and again until portc.5 is pulled down. Then the timer times 20ms-(Th0+ Th1+ Th2+ Th3+ Th4+ Th5) and completes a signal cycle timing. The flowchart of rudder control value calculating program and the rudder control program see the Fig. 2 and F
19、ig. 3 below.IV. PATH PLANNINGWhether robot could walk in accordance with pre-set routes, the key is that the robot could take a straight line and change direction accurately according to control requirement, and continue to walk along straight line after turning the direction. Without appropriate al
20、gorithms, the robot will walk a noticeable s-shaped curve, not only affecting the speed, but also very easy to deviate from the leading line. Robot movement was divided into the following sequence of actions: seeking the signal line to go straight, calculating the number of grid to position, and cha
21、nging direction.A. Line trackingThis design uses three sensors S1, S2, and S3 to ensure the robot to go straight. These three sensors distribute in the front of the robot by the triangular pattern. When a robot moves forward, its status of going forward is determined through the sensor feedback valu
22、es of these three sensors. When the robot has the deflection, speed commands of motor are carried out to produce speed difference of motor of both sides and cause the robot to turn back to guide online in the opposite direction. As the robot speed is quick, it is very easy to appear that three senso
23、rs deviate together from the leading line, which is unable to adjust. Therefore we design state storage variable s_flag to record adjustment process. When the robot deviates from the leading line to the left, MCU makes an order of speed difference to motor control module to make the robot back to th
24、e right side, and assigns a value to the state variable at the same time (e.g. 1). Similarly, when the robot deviates in the opposite direction, it will implement an appropriate action, except for assigning another value (e.g. 0) to the state variable to show differences 3. In the adjustment process
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 AVR 单片机 软件 控制系统 设计 机器人 毕业论文 外文 翻译
链接地址:https://www.31ppt.com/p-4957724.html