1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.
-
Upload
byron-oakey -
Category
Documents
-
view
221 -
download
4
Transcript of 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.
![Page 1: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/1.jpg)
1
Simulink Support for VEX Cortex BEST Robotics 2013
Sandeep Hiremath
![Page 2: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/2.jpg)
2
WebEx
Chat
I was on the road and could provide my comments only this
![Page 3: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/3.jpg)
3
Outline
Intro to Simulink – Launching and Navigating through the software
– Creating a simple robot program
– Simulating and Debugging robot programs
– Advanced Logic Design 3D Virtual World Access to the software Software Installation More Training Resources
![Page 4: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/4.jpg)
4
What is Simulink?
Simulink is a software package for modeling, simulating, and testing the BEST robot program.
![Page 5: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/5.jpg)
5
Why Simulink?
• Simple Programming Interface- Easy to use interface- Graphical drag and drop- NO prior programming knowledge required
• More Efficient Design Flow- Parallel development- No waiting for robot to be built
• Simulation and Debug- Test your program without hardware- What-if scenarios are easy
• Advanced Programming also- Stateflow- Embedded MATLAB code
![Page 6: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/6.jpg)
6
Why Simulink?
Used in Engineering curriculum all over the world (~4000 schools) –MATLAB and Simulink
Used in many robotics, aerospace and automotive student competitions - http://www.mathworks.com/academia/student-competitions/
Many K-12 teachers are now using MATLAB and Simulink for teaching in classroom– MATLAB at Trinity Schools
View how secondary students learn science and math interactively.
![Page 7: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/7.jpg)
7
Simulink and BEST Library
BEST Robotics Library
Learn more: http://www.mathworks.com/products/demos/academia/simulink-quick-start/
![Page 8: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/8.jpg)
8
Sample Robot
3 big motors2 servosSwitch
Right motor – Left motor – Arm motor –
![Page 9: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/9.jpg)
9
Lets Build!
Tank Robot Configuration– tank2.mdl (Example model)
Your RobotJoystick Control
2 vertical axes control the 2 wheels
Robot Program / Behavior
![Page 10: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/10.jpg)
10
VEX CortexTwo Vertical Axes
Robot Program / Behavior
Two Motors
Lets Build!
Tank Robot Configuration– tank2.mdl (Example model)
Right Motor
Left Motor
Pin 2
Pin 9
![Page 11: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/11.jpg)
11
VEX Controller/Gamepad
![Page 12: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/12.jpg)
12
VEX Microcontroller
![Page 13: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/13.jpg)
13
Setup
![Page 14: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/14.jpg)
14
New terms
Simulink model – robot program Block – command or function Library – group of blocks or commands Generate code - Auto generate C code from the
Simulink model Run a Simulink model – ‘Simulate’ a program
on PC
![Page 15: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/15.jpg)
15
What is Simulation?
Model ofBehavior
Simulation is the imitation of some real thing, state of affairs, or process.
What if we do this? Imitate the robot behavior What will the robot do?
Stimulus Response
![Page 16: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/16.jpg)
16
Gamepad Input to program
Sources
Sinks
deadband
0
Toggle
Terminator
Switch
Stateflow
Scope
Real Time
Manual Switch
Joystick Input
Analog_1
Analog_2
Analog_3
Analog_4
D8_lef t
D8_down
D8_right
D8_up
D5_up
D6_up
D5_down
D6_down
D7_up
D7_right
D7_down
D7_lef t
Gamepad Input
Gamepad Input
Right Speed
Lef t Speed
Field Simulator
Display
Convert
Data Type Conversion
1
Constant
![Page 17: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/17.jpg)
17
Gamepad Input to Simulink
Sources
Sinks
deadband
0
Toggle
Terminator
Switch
Stateflow
Scope
Real Time
Manual Switch
Joystick Input
Analog_1
Analog_2
Analog_3
Analog_4
D8_lef t
D8_down
D8_right
D8_up
D5_up
D6_up
D5_down
D6_down
D7_up
D7_right
D7_down
D7_lef t
Gamepad Input
Gamepad Input
Right Speed
Lef t Speed
Field Simulator
Display
Convert
Data Type Conversion
1
Constant
VEX Controller NOT supported
![Page 18: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/18.jpg)
18
Gamepad Input to Simulink
Sources
Sinks
deadband
0
Toggle
Terminator
Switch
Stateflow
Scope
Real Time
Manual Switch
Joystick Input
Analog_1
Analog_2
Analog_3
Analog_4
D8_lef t
D8_down
D8_right
D8_up
D5_up
D6_up
D5_down
D6_down
D7_up
D7_right
D7_down
D7_lef t
Gamepad Input
Gamepad Input
Right Speed
Lef t Speed
Field Simulator
Display
Convert
Data Type Conversion
1
Constant
Logitech Gamepad F310
![Page 19: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/19.jpg)
19
Gamepad Input to Simulink
Sources
Sinks
deadband
0
Toggle
Terminator
Switch
Stateflow
Scope
Real Time
Manual Switch
Joystick Input
Analog_1
Analog_2
Analog_3
Analog_4
D8_lef t
D8_down
D8_right
D8_up
D5_up
D6_up
D5_down
D6_down
D7_up
D7_right
D7_down
D7_lef t
Gamepad Input
Gamepad Input
Right Speed
Lef t Speed
Field Simulator
Display
Convert
Data Type Conversion
1
Constant
Xbox Controller!!
![Page 20: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/20.jpg)
20
BEST VEX Library
Workflow Summary
Auto Code Generation- easyC
Simulink Model
Hardware
Simulation/Testing
![Page 21: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/21.jpg)
21
Overview - BEST Library
![Page 22: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/22.jpg)
22
Advanced Programming Stateflow
– Demo: Tank2withGear.mdl Aracde2withGear.mdl
– Blocks: Latch Gear Transmission
Using Embedded MATLAB function block New!!– Demo:
Teank2withGear_EML.mdl
– Blocks: Utilities library -> MATLAB Function
![Page 23: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/23.jpg)
23
Getting access to software
Contact your Hub Directors for DVDs 2 DVDs per team Label has a URL – Installation instructions No online download available No Paperwork 1-year full access
![Page 24: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/24.jpg)
24
Software and Installation 2 DVDs per team (Hubs get a DVD too!) Label on the DVD has installation/activation key Label has URL instructions:
www.mathworks.com/BESTInstall 1 year full access (May 2013 to May 2014)
System Requirements:– Windows XP or later version (Vista, 7)
– Could be 32-bit or 64-bit machines
– Need ‘easy C’ to download the program to VEX hardware (easyC Cortex V4)
Contact: [email protected]
Labe
l
![Page 25: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/25.jpg)
25
Training Resources
Weekly WebEx training – Info on BRI home page
Video Tutorials available– www.bestinc.org > Participants > Resources
On Demand online training– – Customized for teams
– Q&A Contact
![Page 26: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/26.jpg)
26
BEST Simulink Design Award
One team per region recognized for the best robot program designed using Simulink.
Every submission – A Simulink file
– A short (fun+ technical) video
More details – Coming soon!
![Page 27: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/27.jpg)
27
Thank you!
![Page 28: 1 Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath.](https://reader035.fdocuments.in/reader035/viewer/2022062320/56649ca65503460f94968c22/html5/thumbnails/28.jpg)
28