文件名称:Annular-inverted-pendulum
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 415kb
- 下载次数:
- 0次
- 提 供 者:
- 曾**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这是用飞思卡尔单片机MC9S12XS128实现的一级倒立摆,里面有详细的解释,基本都有注解。
机械上包括:一个直流电机,一个电位器检测摆杆角度,一个两相编码器反馈转角。
软件上采用了四倍化编码器,将原来编码器的1000线,变成了4000线,倒立摆的控制周期定位了10ms,可改,该实验达到了平衡控制的目的,但是并没有完成上甩,需要用手把摆杆放直,然后启动单片机,实验时,单片机在30度内平衡控制,由于所选的电机虚位大,所以控制时抖的厉害。-Freescale microcontroller MC9S12XS128 an inverted pendulum, which are explained in detail, and basically has a comment. Machine, comprising: a DC motor, a potentiometer for detecting the pendulum angle, a two-phase encoder feedback corner. The software uses four times the encoder, the original encoder 1000 lines into 4000 lines, inverted pendulum control cycle positioning 10ms, can be changed, the experiment to achieve the purpose of balance control, but not completed on rejection, need hand the pendulum put straight, and then start the microcontroller, experiment, microcontroller 30 degrees balance control the selected motor imaginary bit control when shaking.
机械上包括:一个直流电机,一个电位器检测摆杆角度,一个两相编码器反馈转角。
软件上采用了四倍化编码器,将原来编码器的1000线,变成了4000线,倒立摆的控制周期定位了10ms,可改,该实验达到了平衡控制的目的,但是并没有完成上甩,需要用手把摆杆放直,然后启动单片机,实验时,单片机在30度内平衡控制,由于所选的电机虚位大,所以控制时抖的厉害。-Freescale microcontroller MC9S12XS128 an inverted pendulum, which are explained in detail, and basically has a comment. Machine, comprising: a DC motor, a potentiometer for detecting the pendulum angle, a two-phase encoder feedback corner. The software uses four times the encoder, the original encoder 1000 lines into 4000 lines, inverted pendulum control cycle positioning 10ms, can be changed, the experiment to achieve the purpose of balance control, but not completed on rejection, need hand the pendulum put straight, and then start the microcontroller, experiment, microcontroller 30 degrees balance control the selected motor imaginary bit control when shaking.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
--------------_Data\CWSettingsWindows.stg
...................\Standard\TargetDataWindows.tdt
...................\........\ObjectCode\MC9S12XS128.c.o
...................\........\..........\main.c.o
...................\........\..........\datapage.c.o
...................\........\..........\Start12.c.o
bin\Project.map
...\Project.abs
...\Project.abs.glo
...\Project.abs.s19
cmd\Full_Chip_Simulation_SetCPU.cmd
...\Full_Chip_Simulation_Startup.cmd
...\Full_Chip_Simulation_Preload.cmd
...\Full_Chip_Simulation_Postload.cmd
...\Full_Chip_Simulation_Reset.cmd
...\TBDML_Erase_unsecure_hcs12xe.cmd
...\TBDML_Vppon.cmd
...\TBDML_Vppoff.cmd
...\TBDML_Startup.cmd
...\TBDML_Preload.cmd
...\TBDML_Postload.cmd
...\TBDML_Reset.cmd
prm\Project.prm
...\burner.bbl
Project_Data\CWSettingsWindows.stg
............\Standard\TargetDataWindows.tdt
............\........\ObjectCode\MC9S12XS128.c.o
............\........\..........\main.c.o
............\........\..........\datapage.c.o
............\........\..........\Start12.c.o
Sources\datapage.c
.......\Start12.c
.......\main.c
.......\derivative.h
环形倒立摆程序.mcp
C_Layout.hwl
Default.mem
Full_Chip_Simulation.ini
TBDML.ini
--------------_Data\Standard\ObjectCode
Project_Data\Standard\ObjectCode
--------------_Data\Standard
Project_Data\Standard
--------------_Data
bin
cmd
prm
Project_Data
Sources