Presentation on theme: "Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath"— Presentation transcript:
1Simulink Support for VEX Cortex BEST Robotics 2013 Sandeep Hiremath
2I was on the road and could provide my comments only this WebExChat
3Outline Intro to Simulink 3D Virtual World Access to the software Launching and Navigating through the softwareCreating a simple robot programSimulating and Debugging robot programsAdvanced Logic Design3D Virtual WorldAccess to the softwareSoftware InstallationMore Training Resources
4What is Simulink?Simulink is a software package for modeling, simulating, and testing the BEST robot program.First lets introduce Simulink and what it can do.Simulink is a Block-diagram environmentWhere you can model and simulate dynamic, linear, nonlinear systems.It lets you accurately design, implement, and test:Control systemsSignal processing systemsCommunications systemsAnd other time-varying systemsWe can talk about Simulink both as a product and within the context of other tools that use Simulink as a platform for Model-Based Design. Lets make that distinction now, by first discussing the key features of Simulink the product.
5Why Simulink? Simple Programming Interface More Efficient Design Flow - Easy to use interface- Graphical drag and drop- NO prior programming knowledge requiredMore Efficient Design FlowParallel developmentNo waiting for robot to be builtSimulation and Debug- Test your program without hardware- What-if scenarios are easyAdvanced Programming also- Stateflow- Embedded MATLAB code
6Why Simulink?Used in Engineering curriculum all over the world (~4000 schools) –MATLAB and SimulinkUsed in many robotics, aerospace and automotive student competitions -Many K-12 teachers are now using MATLAB and Simulink for teaching in classroomMATLAB at Trinity Schools View how secondary students learn science and math interactively.
7Simulink and BEST Library BEST Robotics LibrarySimulink – Quick why?BEST Library –Where can you learn more from?Learn more:
8Sample Robot 3 big motors 2 servos Switch Right motor – Left motor – Arm motor –Need to change this based on proto-robot
9Lets Build! Tank Robot Configuration tank2.mdl (Example model) 2 vertical axes control the 2 wheelsYour RobotJoystick ControlRobot Program / Behavior
10Lets Build! Tank Robot Configuration tank2.mdl (Example model) VEX CortexTwo Vertical AxesRobot Program / BehaviorTwo MotorsRight MotorLeft MotorPin 2Pin 9
14New terms Simulink model – robot program Block – command or function Library – group of blocks or commandsGenerate code - Auto generate C code from the Simulink modelRun a Simulink model – ‘Simulate’ a program on PC
15What is Simulation?Simulation is the imitation of some real thing, state of affairs, or process.Model ofBehaviorStimulusResponseWhat if we do this?Imitate the robot behaviorWhat will the robot do?
22Advanced Programming Stateflow Demo:Tank2withGear.mdlAracde2withGear.mdlBlocks:LatchGear TransmissionUsing Embedded MATLAB function block New!!Teank2withGear_EML.mdlUtilities library -> MATLAB Function
23Getting access to software Contact your Hub Directors for DVDs2 DVDs per teamLabel has a URL – Installation instructionsNo online download availableNo Paperwork1-year full access
24Software and Installation 2 DVDs per team (Hubs get a DVD too!)Label on the DVD has installation/activation keyLabel has URL instructions: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 machinesNeed ‘easy C’ to download the program to VEX hardware (easyC Cortex V4)Contact:Label
25Training Resources Weekly WebEx training – Info on BRI home page Video Tutorials available> Participants > ResourcesOn Demand online training–Customized for teamsQ&AContact
26BEST Simulink Design Award One team per region recognized for the best robot program designed using Simulink.Every submissionA Simulink fileA short (fun+ technical) videoMore details – Coming soon!