基于ARM的双足步行机器人运动控制器设计
- 作者
- 董德吉
- 导师
- 李泽湘
- 学校
- 哈尔滨工业大学
- 专业
- 控制理论与工程
- 分类号
- TP242 机器人
- 学位
- 硕士学位论文
- 年份
- 2006
- 下载次数
- 762
- 被引次数
- 2
摘要
本论文设计了基于ARM内核芯片,S3C2440,的机器人运动控制器。S3C2440芯片是三星电子设计的最新款高性能基于ARM内核的微控制器,最高运行时钟达533 MHz。该芯片设计应用于手持应用设备,从另一个观点看它可以看作是更微型的个人计算机,与其它单片机相比它的功能更加强大,具有更多的通用端口和更多的外围片上设备。一直以来,机器人的控制总是与非线性控制,便结构控制,非稳定系统控制等紧密相关。也正因为如此,许多机器人的运动控制器应用DSP或者其他更专业的特殊数字芯片。在我们的机器人运动控制器中,选择了S3C2440作为主控芯片,外接存储器包括:32M*2的SDRAM,2M的NOR Flash和64M的Nand Flash。根据舵机的控制信号特性,设计使用S3C2440的一个通用引脚控制一个舵机,应用中断来对时间进行描述。在设计硬件的驱动程序上;S3C2440芯片上的UART1被选作与个人电脑通讯的工具并编写了相应得驱动程序,片上Caches和Buffer系统被使用,片上PWMtimer0被设计成对时间进行描述的中断,系统得总线时钟被重新设定。在软件操作系统的设计上,μC/OS-II被选作系统得实时内核。该内核是从一开始就以嵌入式实时应用的实时多任务内核而设计的,由于它的高效性和底硬件资源占用特性,已经在嵌入式应用中被广泛的采用。该内核可以同时管理最多达56个任务,在多数的嵌入式应用中这已经是足够用的了。该论文中移植的μC/OS-II支持文本切换,中断服务中更改人物的优先级,能有效地运行于S3C2440上管理资源。该双足步行机器人的驱动器采用舵机。该驱动元件可以看作是位置侍服系统。控制器最基本的任务就是产生控制舵机所需的控制信号。
目录
摘要 4-5
ABSTRACT 5-11
LIST OF TABLES 11-12
LIST OF FIGURES 12-15
1 INTRODUCTION 15-21
1.1 The back ground of this project 15
1.2 The goal and significance of the project 15-16
1.3 The development of robot 16-17
1.3.1 The development of robot overseas 16-17
1.4 The development of robot in home 17-18
1.5 The introduction of Embedded Real Time Systems 18-19
1.6 Summary 19-21
2 ROBOT BODY SYSTEM ANALYSIS 21-27
2.1 Brief introduction of our humanoid robot module 21-22
2.2 TThe structure and control property of the actuator 22-24
2.3 ATnalysis of walking step relative to angle variant of steer-engine 24-25
2.4 SuTmmary 25-27
3 ARM ARCHITECTURE AND S3C2440 27-33
3.1 Advantage of ARM architecture 27
3.2 About S32440 27-32
3.2.1 Introduction of ARM920T 27-29
3.2.2 Overview of S3C2440[13] 29-32
3.3 On chip peripheral resource applied to humanoid robot controlle 32
3.4 Summary 32-33
4 HARDWARE DESIGN OF ROBOT CONTROLLER 33-39
4.1 The global view of hardware design 33
4.2 Port distribution for controlling the steering-engine 33-35
4.3 External memory design 35-37
4.3.1 Design of SDRAM interface and NOR flash interface 35-36
4.3.2 Design of NAND flash 36-37
4.4 summary 37-39
5 DESIGN OF SYSTEM’S KEY SOURCE CODE 39-47
5.1 ARM exception vectors and processor’s response to exception 39-40
5.2 Design the bootloader 40-42
5.3 About data transfer 42-43
5.4 Compile the program using ADS 1.2 43-44
5.5 Using hardware emulator to download the bin file to flash 44-45
5.6 Summary 45-47
6 RTOS/ERTOS AND μC /OS-II /OS-II PORTING 47-63
6.1 Real-Time Systems Concepts 47-48
6.1.1 Foreground-Background Systems 47-48
6.2 Critical Section of Code 48-51
6.2.1 Multitasking 48-49
6.2.2 Task 49
6.2.3 Context Switch (or Task Switch) 49-50
6.2.4 Kernel 50
6.2.5 Scheduler 50
6.2.6 Non-Preemptive Kernel and Preemptive Kernel 50-51
6.2.7 Task Priority 51
6.2.8 Advantages and Disadvantages of Real-Time Kernels 51
6.3 μC/OS-II introducti 51-57
6.3.1 Handling access to critical sections of code 51-52
6.3.2 Tasks and Task states 52-53
6.3.3 OS_TCBs (Task Control Blocks) 53-54
6.3.4 Ready List 54-57
6.4 Porting μC/OS-II 57-59
6.5 About context 59-60
6.6 Running μC/OS-II on S3C2440 60-61
6.7 Summary 61-63
7 DTESIGN OF SYSTEM’S DIVER PROGRAMS 63-67
7.1 What is diver programs 63
7.2 S3C2440’s UART and it’s diver 63-66
7.3 Using MMU to improve the real time response of the interrupts 66
7.4 Summary 66-67
8 SYSTEM DESIGN AND REALIZATION 67-81
8.1 Control property of Steering-Engine 67-68
8.2 ARM system’s clock and PWMtimer0 interrupt 68-69
8.3 Error analysis of steering-engine’s control signal 69-70
8.4 Improve the small variant input response of the steering-engine 70-75
8.5 Realization of modulate_output on steering-engine 75-78
8.6 The running result of the control signal 78-79
8.7 Summary 79-81
9 CONCLUSION 81-83
9.1 About references 81
9.2 About the future research 81-83
REFERENCES 83-87
APPENDICES SOURCE CODE OF THE SYSTEM 87-153
A.1 C START UP CODES 87-122
A.1.1 File: 24401NIT.S 87-109
A.1.2 File: OPTION.IN C 109-114
A.1.3 File: MEMCF.INC 114-119
A.1.4 File: 2440ADDER.INC 119-122
A.2 UART DIVER SOURCE CODES 122-132
A.3 PORTING μC/OS-II SOURCE CODE 132-153
A.3.1 File: os_cpu_a.s 132-142
A.3.2 File: OS_CPU_C.C 142-148
A.3.3 File: OS_CFG.H 148-153
HARBIN INSTITUTE OF TECHNOLOGY AUTHORIZATION USAGE CERTIFICATE MASTER DEGREE THESIS 153-156
相关论文
- 基于ARM的分布式工业信号采集模块的研究
- 基于ARM9的粮仓环境监测系统关键技术研究与实现
- 基于Linux的嵌入式网络控制系统设计与实现
- 基于ARM的工业设备网关模块设计与实现
- 基于嵌入式的远程监控系统设计与实现
- 车载称重系统的研究与设计
- 基于ARM的过程监控与故障诊断系统及应用
- 基于ARM的嵌入式视频监控系统的研究与设计
- 无人值守通信机房的数据采集系统
- 基于IFSF协议的加油机控制装置
- 基于ARM的嵌入式新风测控系统的研究与设计
- 基于ARM的全地形八足机器人控制系统研究
- 基于ARM的中小型煤矿远程监控系统的设计
- 基于嵌入式Web服务器家居远程监控的研究
- 基于GPRS的油井工况远程监控系统
- 基于嵌入式Web服务器的机房监控系统的研制
- 基于ARM嵌入式移动图像监控系统的研究与设计
- 基于ARM的智能视频监控系统的研究与设计
- 基于ARM9嵌入式网络视频监控系统的设计
- 基于嵌入式Web服务器的洞库数据采集监控系统