low-cost hardware connectivity with · pdf file4 contents what is low-cost hardware? hardware...
TRANSCRIPT
![Page 1: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/1.jpg)
1© 2013 The MathWorks, Inc.
Low-Cost hardware connectivity with Simulink
MATLAB-Day RWTH AachenSebastian GroßOctober 24th, 2013
![Page 2: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/2.jpg)
2
LEGO Mindstorms NXT: a first demo
EDUCON 2013, Berlin, Germany
![Page 3: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/3.jpg)
3
A first demo: the “behind the scenes”
45 lines ofMATLAB
code, only
![Page 4: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/4.jpg)
4
Contents
What is low-cost hardware?
Hardware and Simulink: a great combo
Install, simulate, and enjoy: work-flow
Let us help you get started
![Page 5: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/5.jpg)
5
What is low-cost hardware?
![Page 6: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/6.jpg)
6
Simulink supported low-cost hardware
R2011b 2012a 2012b 2013a 2013b
BeagleBoard
Raspberry Pi
Gumstix Overo
ArduinoBoard
PandaBoard
LEGO MindstormsNXT
€370€370
€185€185
€50€50€15€15
€135€135
€40€40
![Page 7: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/7.jpg)
7
Hardware capabilities and features
Actuators: servo motor {display, speaker}
Sensors:light, color, ultrasonic, sound, accelerometer, gyro, etc.
Outputs:PWM, digital,serial, servo
Inputs: analog, digital, serial, servo
Microcontroller ATmega328 (AVR)
Flash Memory 32 KB
SRAM 2 KB
EEPROM 1 KB
Clock Speed 16 MHz
Microcontroller AT91SAM7S256 (ARM)
Flash Memory 256 KB
SRAM 64 KB
Operating freq. 55 MHz
![Page 8: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/8.jpg)
8
Why low-cost hardware?
![Page 9: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/9.jpg)
9
Learn hands-on[retain knowledge]
1.
![Page 10: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/10.jpg)
10
ChallengeProvide students with hands-on control system design experience while keeping down costs
Solution Introduce a low-cost, portable laboratory module based on MATLAB, Simulink, and an aeropendulum
Results Equipment costs lowered Technical concepts better illustrated Transferable control design skills acquired
“These experiences do not require expensive lab equipment. In fact, we have found that MATLAB, Simulink, and a simple low-cost device are all that is needed.”
Dr. Eniko T. EnikovUniversity of Arizona
Link to article
Dr. Enikov and students experimenting with the aeropendulum in the lab.
Engaging Students in Hands-On Control System Design: University of Arizona
![Page 11: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/11.jpg)
11
Get a taste of the “real world”[do it like the pro’s]
2.
![Page 12: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/12.jpg)
12
Model-Based Design: first steps …
ModelModel SimulateSimulate
Generate codeGenerate codeTest on hardware
Test on hardware
Collect and understand
requirements
Collect and understand
requirements
![Page 13: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/13.jpg)
13
ChallengeProvide engineering students with a low-cost learning environment for studying the design and control of a variety of industrial robot manipulators
Solution Use MATLAB and Simulink to develop an integrated environment for simulating, visualizing, and optimizing designs using a reconfigurable robot
Results Students prepared for work in industry Complex optimizations automated Months of development time eliminated
“With MATLAB and Simulink we developed a low-cost design and simulation environment that enables students to apply theoretical aspects of kinematics, dynamics, and controls of robot manipulators in a realistic way, optimize their designs, and see those designs in action.”
Dr. Reza EmamiUniversity of Toronto
Link to user story
The University of Toronto Institute for Aerospace Studies reconfigurable robot manipulator.
Reconfigurable Robots at University of Toronto
![Page 14: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/14.jpg)
14
Foster success[by motivation]
3.
![Page 15: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/15.jpg)
15
RWTH Aachen students working with a Mindstorms NXT robot.
ChallengeEnabling 1st year students to apply theoretical concepts in math and signal processing in a hands-on experimental lab. Fostering soft skills by working in a team environment.
Solution Use MATLAB and LEGO Mindstorm NXT to build and program robots.
Results MATLAB programming skills rated high by students after course Motivation rated excellent to good by almost 90% of students Ability to link theoretical foundations to practical applications
“This high level of motivation is reflected in the number of extra hours the students devoted to their projects. We knew we had achieved our objectives when students demanded that we set up a workshop so that they could continue working with the robots in their free time.”
Univ.-Professor Dr.-Ing. Til AachRWTH Aachen University
Link to user story
LEGO Mindstorms NXT at RWTH Aachen: a success story
![Page 16: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/16.jpg)
16
How-to? The work flow
![Page 17: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/17.jpg)
17
What do you need to get it done, the bare essentials
Low-cost H/W (+ peripherals)MATLAB and Simulink (+ toolboxes)
targetinstallertargetupdater
Model, simulate, test, and enjoy
1 Get
2 Get
3 Run
4 Run
5 Code
![Page 18: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/18.jpg)
18
Setting-up target hardware: quick and easy
>> targetinstaller
>> targetupdater
DONE…
Installs all requirements
Updates firmware on target hardware
![Page 19: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/19.jpg)
19
LEGO Mindstorms NXT Simulink Support Package
Inputs, sensors
Outputs, actuators
Examples
![Page 20: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/20.jpg)
20
Raspberry Pi Simulink Support Package (13a)
Outputs, actuators
Inputs, sensors
Examples
![Page 21: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/21.jpg)
21
Arduino Support Package
Examples
Inputs, sensors
Outputs, actuators
![Page 22: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/22.jpg)
22
Arduino Ball-tracking demo
Control logic implemented in
StateFlow
![Page 23: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/23.jpg)
23
Arduino Ball-tracking demo: on-target code (controller)
PI controller running on Arduino board
Input
Output
![Page 24: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/24.jpg)
24
Ressources and support to get started
![Page 25: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/25.jpg)
25
Academia web page
![Page 26: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/26.jpg)
26
Hardware Support ressources
![Page 27: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/27.jpg)
27
MATLAB Central, File Exchange and other goodies
![Page 28: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/28.jpg)
28
Support is available right “next door”
Sebastian Gross: [email protected]
Tech support: +49-89-45235-6700 + press 4
Customer service: +49-89-45235-6700 + press 3
: MATLAB/Simulink in education
: specific technical questions
: and for everything else
![Page 29: Low-Cost hardware connectivity with · PDF file4 Contents What is low-cost hardware? Hardware and Simulink: a great combo Install, simulate, and enjoy: work-flow Let us help you get](https://reader033.vdocuments.mx/reader033/viewer/2022052709/5a78af867f8b9ae91b8df53c/html5/thumbnails/29.jpg)
29
Get low-cost H/Wtoday and start enjoying
with Simulink