
So for example, digital output or serial interface and that kind of thing. And on the right side shows the blocks in a specific library, like the support package for Arduino.Īs you can see, the individual blocks in this library are focused on a particular interface to the Arduino Uno board. On the left side, you're going to see a list of libraries that are installed in your version. This is going to open a pre-built model that's ready for code generation and does exactly the kind of things that we want to do in this tutorial.įor now, I'm going to show you how to do this from scratch, so click on the Simulink library icon to open the library browser. In case you want to jump to the code generation step directly, simply type ArduinoUno_gettingstarted at the MATLAB command prompt and just hit Enter. In this video, I'm going to show you how to build a simple model.

These are really simple step-by-step examples that you can follow to get started on your own. So once the package is installed, it's going to open up the documentation and show you how to get started with the support package. You go to your MATLAB desktop, select your option for the support package, log into your account, and that's it. Give it a minute to install, and it's really that simple. Now, you're going to log into your MathWorks Account, hit Next through the license agreement, and complete the simple installation with a few clicks. And you can select whichever support package you want to install. Click Next, and you'll see a list of hardware boards that are supported in MATLAB.

Here, you're going to click on the top, on Add-ons, and then select Hardware Support Packages, and internet as the way of installation. So with that, we're ready to jump into the installation. Now, moving onto the next step, we're going to assume that you've built this simple circuit, connected it to the Uno, and the Uno is connected to the computer that has MATLAB installed on it. The other end of the LED is connected to the ground on the Arduino Uno board. On the hardware side, we are building a very simple circuit, wherein an LED is connected to the pin 9 of the Arduino Uno board via a 220 ohm resistor. This student version will give you access to 10 additional products in addition to MATLAB and Simulink. Just so you know, the student version for MATLAB is available for a little over $100 from the MathWorks website or from. You will also need a MathWorks Account, which you can create on the MathWorks website or during the installation. On the software side, we're going to need MATLAB installed. Then we are going to build a simple Simulink model and generate code from that model to run on the Arduino Uno hardware board that links in LED. In this tutorial, I'm going to show you how to set up the Simulink support package for Arduino.
