# Inverted-Pendulum
Simulation of Inverted pendulum with animation on virtual realm 3d tool.
Download all the files INTO a single folder,for e.g say "Inv_Folder".Now go to Inv_Folder and select the Necessare files.zip;right click and press extract here. Note that the three folders have to be placed in the same folder Inv_Folder where you downloaded the files.
Uncomment the "Real time pacer" block so that the simulation time reduces to the actual real world time in the inverted_pendulum.slx file.
Make sure all the files are in one folder.
Run the Init_vars.m file to initialise global variables. Only then run the "Inverted_pendulul.slx" file to view the simulink simulation.
Double click the VR sink block (The one with a pink sphere and a blule square) to see the animation.
Tune the PID block to play around with the stability of the model.
Pulse is given as an external disturbance to assess the model stability.
Make sure you use the LINEAR dynamics block instead of the non linear dynamics block that has been commented.
This also works with joystick. Make sure you plug a USB joystick that is detectable on windows platform. Uncomment the Joystick block, and connect the output of '5' that is in a triangular block (Basically a gain block) to the input of the system. (remove the '0' constant block that is left of the PID(s) and the summer block and connect it here.) PLEASE DONOT FORGET TO TURN ON THE ANALOG BUTTON ON THE JOYSTICK OR ELSE THE INPUT FROM THE JOYSTICK WILL BE DIGITAL (lowest and highest) PUSHING THE INVERTED PENDULUM BLOCK OFF YOUR SCREEN.
Enjoy!
没有合适的资源?快使用搜索试试~ 我知道了~
毕业设计&课设-基于MATLAB Simulink的虚拟领域三维工具上倒立摆动画仿真.zip
共22个文件
m:5个
autosave:3个
slx:3个
需积分: 1 1 下载量 191 浏览量
2024-01-08
22:58:12
上传
评论
收藏 196KB ZIP 举报
温馨提示
matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随
资源推荐
资源详情
资源评论
收起资源包目录
毕业设计&课设-基于MATLAB Simulink的虚拟领域三维工具上倒立摆动画仿真.zip (22个子文件)
matlab_code
realtime_pacer_lib.slx 22KB
realtime_pacer_help.html 2KB
Inverted_Pendulum.slx.autosave 21KB
realtime_pacer_example.mdl 24KB
README.txt 559B
Inverted_Pendulum.slxc 4KB
Init_Vars.m 139B
realtime_pacer_lib.mdl.r2010a 20KB
Self_Balance_Bot.wrl 3KB
msfun_realtime_elapsed.m 2KB
Self_Balance_Bot.slxc 4KB
Self_Balance_Bot.slx 25KB
Inverted_Pendulum.wrl 2KB
msfun_realtime_pacer.m 4KB
untitled.slx.autosave 17KB
Necessary Files.zip 46KB
Inverted_Pendulum 1KB
slblocks.m 144B
README.md 2KB
Inverted_Pendulum.slx 26KB
Initial_Vars.m 118B
Self_Balance_Bot.slx.autosave 22KB
共 22 条
- 1
资源评论
白话机器学习
- 粉丝: 8978
- 资源: 7681
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功