Download presentation
Presentation is loading. Please wait.
1
Topics: Arduino Target Package
Arduino Part 4 Topics: Arduino Target Package
2
MathWorks Solutions(review)
1 Arduino IO Package: Used to perform analog and digital input and output as well as motor control from the MATLAB command line 2 Arduino Target: Used to compile and download Simulink® code directly to the Arduino board
3
Workshop Overview Getting started Hands-on Project 1: LED control
Hands-on Project 2: LED dimmer
4
1 2 3 Getting started Install Matlab 2012a or later version
In a MATLAB® Command Window, enter targetinstaller. 3 Choose to get the support package from the Internet or from a folder.
5
Getting started(cont.)
4 Select the Install check box for either Arduino® target, and click Next > 5 Click install ArduinoIO
6
Getting started(cont.)
Click 7 Click simulink icon to launch simulink library browser. Library target for use with arduino hardware
7
Hands-on Project 1: LED blink
Prepare your simulink block: Output to arduino led pin13
8
Hands-on Project 1: LED blink
2 Click tools > Run on Target Hardware > prepare to Run click
9
Hands-on Project 1: LED blink
3 Click OK click
10
Hands-on Project 1: LED blink
4 Click tools > Run on Target Hardware > Run click
11
Hands-on Project 1: LED blink
5 Make sure your model has been successfully downloaded to arduino and observe the onboard LED
12
Hands-on Project 2: LED dimmer
1 2 Hardware Simulink model R 1k Ohm R 220 Ohm
13
Hands-on Project 2: LED dimmer
3 Click tools > Run on Target Hardware > Run click
14
http://www.mathworks.com/har dware-support/arduino- matlab.html
dware-support/arduino- matlab.html References
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.