<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Set up and Blink - MATLAB and Simulink with Raspberry Pi</title><link>https://community.element14.com/learn/learning-center/stem-academy/w/documents/19658/set-up-and-blink---matlab-and-simulink-with-raspberry-pi</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Set up and Blink - MATLAB and Simulink with Raspberry Pi</title><link>https://community.element14.com/learn/learning-center/stem-academy/w/documents/19658/set-up-and-blink---matlab-and-simulink-with-raspberry-pi</link><pubDate>Fri, 20 May 2016 03:42:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:10e2ded8-5e2f-4008-9827-079c3ee3c60f</guid><dc:creator>madhugovindarajan</dc:creator><comments>https://community.element14.com/learn/learning-center/stem-academy/w/documents/19658/set-up-and-blink---matlab-and-simulink-with-raspberry-pi#comments</comments><description>Current Revision posted to Documents by madhugovindarajan on 5/20/2016 3:42:22 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#000000;font-size:18pt;"&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;Overview&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#000000;font-size:18pt;"&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x377/__key/communityserver-wikis-components-files/00-00-00-02-44/5023.contentimage_5F00_70398.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/5023.contentimage_70398.png-620x377.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=DjTO1c%2B%2B6FxHgORepSxvUtv890XVPg3OMejpXJdG6C4%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=PNViQn1tJCK+Z/AJiFag1A==" style="max-height: 377px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;You can use MATLAB to communicate with a Raspberry Pi board and its peripheral devices using MATLAB Support Package for Raspberry Pi.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;You can program Raspberry Pi boards to run your algorithms using Simulink Support Package for Raspberry Pi Hardware. The support package generates code from your Simulink model in a click of a button that then runs on the Raspberry Pi board.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;This tutorial covers a step-by-step guide to:&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;MATLAB Support Package&lt;/strong&gt;&lt;/p&gt;&lt;ol style="margin-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;li&gt;Set up the MATLAB support package for Raspberry Pi.&lt;/li&gt;&lt;li&gt;Send commands from MATLAB to Raspberry Pi to blink the on-board LED.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;&lt;span style="padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Simulink Support Package&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style="margin-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;li&gt;Set up the Simulink support package for Raspberry Pi.&lt;/li&gt;&lt;li&gt;Build a simple Simulink model for controlling pins on the Raspberry Pi.&lt;/li&gt;&lt;li&gt;Generate, download and run code on the Raspberry Pi to blink the on-board LED.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;In this tutorial Raspberry Pi 2 is used as an example, however the same steps can be used for other boards like Raspberry Pi Model B+ etc.&lt;/p&gt;&lt;p style="margin:0;padding:0px;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;&lt;span style="font-size:18pt;font-family:arial, helvetica, sans-serif;"&gt;Software&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;MATLAB and Simulink Student Suite Release 2015a - now available for $99&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://www.mathworks.com/academia/student_version/" rel="nofollow ugc noopener" style="color:#00acec;background:transparent;" target="_blank"&gt;MathWorks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://www.amazon.com/MATLAB-Simulink-Student-Version-R2014a/dp/0989614026/ref=sr_1_1?ie=UTF8&amp;amp;qid=1422487997&amp;amp;sr=8-1&amp;amp;keywords=matlab+student+version" rel="nofollow ugc noopener" style="color:#00acec;background:transparent;" target="_blank"&gt;Amazon US&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://www.amazon.co.uk/MATLAB-Simulink-Student-Version-R2014a/dp/0989614026/ref=sr_1_1?ie=UTF8&amp;amp;qid=1422488152&amp;amp;sr=8-1&amp;amp;keywords=matlab+student+version" rel="nofollow ugc noopener" style="color:#00acec;background:transparent;" target="_blank"&gt;Amazon UK&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;If you are not a student, you can purchase the MATLAB Home-Use license for personal use:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="https://www.mathworks.com/products/matlab-home/" rel="nofollow ugc noopener" style="color:#00acec;background:transparent;" target="_blank"&gt;MATLAB home-use&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="line-height:1.5em;font-size:18pt;font-family:arial, helvetica, sans-serif;"&gt;&lt;strong&gt;Hardware&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://www.mcmelectronics.com/product/83-16530" target="_blank"&gt;Raspberry Pi 2&lt;/a&gt;&lt;/li&gt;&lt;li&gt;USB Cable&lt;/li&gt;&lt;li&gt;Ethernet cable&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=tmMySPPLVGw"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=3Bcw2VzlFA0"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="font-size:18pt;font-family:arial, helvetica, sans-serif;"&gt;&lt;strong&gt;Setup MATLAB and Simulink Support Packages for Raspberry Pi&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;1) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Open MATLAB and click the Add-Ons drop down menu on the top right. &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Click on Get Hardware Support Packages in the drop down menu to start the installer. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x186/__key/communityserver-wikis-components-files/00-00-00-02-44/7827.contentimage_5F00_70399.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/7827.contentimage_70399.png-620x186.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=B%2FM9PIalDAh9ywLfL1tq8b%2By2wBDdtnUyOc3HhGKfM8%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=21n2AMLUn/+QverIsjDwMQ==" style="max-height: 186px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;2) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Select &amp;#39;Install from Internet&amp;#39; as the source for installing the support package and click next.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x283/__key/communityserver-wikis-components-files/00-00-00-02-44/4774.contentimage_5F00_70400.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/4774.contentimage_70400.png-620x283.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=vCRz7vtTQTqZJFddwWRPiRc%2FbhXEap7dwEz2zLVH%2BbI%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Yqp+v7cIXorQ5cMPbhOP/g==" style="max-height: 283px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;3) On the&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; list of support packages select Raspberry Pi and click Next, to install both the support packages at once.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x381/__key/communityserver-wikis-components-files/00-00-00-02-44/7802.contentimage_5F00_70401.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/7802.contentimage_70401.png-620x381.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=I63vmDlBR5iDZwuIXOb%2BQop42xig7gi7i9g%2B9KtDLuQ%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=kjDiUncJQexH4lcQvvOLIg==" style="max-height: 381px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;4) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Log in to your MathWorks account. If you don&amp;#39;t have a MathWorks account, you can create one during the install process or by &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://www.mathworks.com/mwaccount/register?uri=%2Fmwaccount%2F" rel="nofollow ugc noopener" style="color:#00acec;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;background:#ffffff;" target="_blank"&gt;visiting this page on the MathWorks website&lt;/a&gt;&lt;a class="jive-link-external-small" href="https://www.mathworks.com/accesslogin/createProfile.do?uri=http://www.mathworks.com/" rel="nofollow ugc noopener" style="color:#00acec;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;background:#ffffff;" target="_blank"&gt;.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/321x370/__key/communityserver-wikis-components-files/00-00-00-02-44/5758.contentimage_5F00_70402.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/5758.contentimage_70402.png-321x370.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=REWpOHmL0EGvSpVgnPN1g%2FJsPPedb1NOddrzHYYoh0s%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=LpVaYlpGtyRrgvwD0odpTw==" style="max-height: 370px;max-width: 321px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;5) Once you &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;accept the license agreement on the next screen, click Next through the following screens to finish the installation of both MATLAB and Simulink Support Package for Raspberry Pi. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x381/__key/communityserver-wikis-components-files/00-00-00-02-44/1157.contentimage_5F00_70403.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/1157.contentimage_70403.png-620x381.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=jfEstBlc8k2FWz6WllY6Fg6k7wVSUEljLNUaqXgw2I8%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=vn0W+uj4Qz90i7g4H3vBkA==" style="max-height: 381px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;6) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;On the Firmware Update page, select the appropriate board (for this tutorial, Raspberry Pi 2 Model&amp;nbsp; B is chosen). &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x497/__key/communityserver-wikis-components-files/00-00-00-02-44/3276.contentimage_5F00_70404.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/3276.contentimage_70404.png-620x497.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=DmVdLkKeWr1%2BZ%2BlQiop2xWSG0xxtBTAKSvnPHYx9MQM%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=pZyQJ4ohVJcBpG9khQZRNA==" style="max-height: 497px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;7) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;In the configure network screen, select Direct connection to host computer (to follow along with this tutorial). &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x496/__key/communityserver-wikis-components-files/00-00-00-02-44/1122.contentimage_5F00_70405.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/1122.contentimage_70405.png-620x496.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=GkxigYzvl%2BaYI34f1kgM0ajZTu3tSTPKRNsnuQXACcs%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=mG9+xXpI+zV360SYVCAXTQ==" style="max-height: 496px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;8) &lt;/span&gt;In the next window titled &amp;#39;Select a drive&amp;#39;, the MicroSD cards that are detected by MATLAB will show up in a list format. If the MicroSD memory card does not get detected by MATLAB, but is detected by the OS - close MATLAB and restart MATLAB as an administrator. To continue with the process, the &lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;targetupdater&lt;/code&gt;command can be used in MATLAB.&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x495/__key/communityserver-wikis-components-files/00-00-00-02-44/6431.contentimage_5F00_70406.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/6431.contentimage_70406.png-620x495.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=%2BRYGNIz2gdJb%2FsMnmle3FN4n1ozs90ufFUA82L%2B8NJ4%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=qYgmuZJs+2tAtrcL+KPasg==" style="max-height: 495px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x496/__key/communityserver-wikis-components-files/00-00-00-02-44/0640.contentimage_5F00_70407.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/0640.contentimage_70407.png-620x496.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=R47lwtA2820d16N0IzC26GB8O6gh%2By7Ut%2FAt2A2nnfo%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=KFzaw7Pp0hjfrVw5qE+BeQ==" style="max-height: 496px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;9) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Select write option to erase existing items on the memory card and flash the latest firmware that is needed by the Support package. &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Click Next through the following screens to finish the installation for both MATLAB and Simulink Support Package for Raspberry Pi.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:18pt;font-family:arial, helvetica, sans-serif;"&gt;&lt;strong&gt;Blinking On-board LED Using MATLAB Support Package for Raspberry Pi&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;To establish a connection between MATLAB and Pi 2, the following command can be used from MATLAB.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt; &amp;gt;&amp;gt; mypi = raspi&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;This command connects MATLAB to the most recent successful connection to a Raspberry Pi board,&lt;em&gt; including the setup process&lt;/em&gt;. A MATLAB variable by the name &amp;#39;mypi&amp;#39; should now appear on the workspace or an error message indicating what went wrong. This object represents the connection that MATLAB has established with the physical object (Raspberry Pi).&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x228/__key/communityserver-wikis-components-files/00-00-00-02-44/3782.contentimage_5F00_70408.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/3782.contentimage_70408.png-620x228.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=EV47AwlNIv%2F0GwLpAHbtXJYyLev%2BZ6bzbMlFwa%2F7maA%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=iIyNhpx+IdMtwkU4gOE2Dg==" style="max-height: 228px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;To switch on the on-board LED connected, execute the following command&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;&amp;gt;&amp;gt; writeLED(mypi,&amp;#39;led0&amp;#39;,1)&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Here we are sending a request from MATLAB to Raspberry Pi board, to write the value of 1 on the on-board LED. This should switch ON your LED.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;To blink the LED, we have to switch it ON and OFF periodically.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;for i = 1:10&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; writeLED(mypi,&amp;#39;led0&amp;#39;,1);&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pause(0.5);&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; writeLED(mypi,&amp;#39;led0&amp;#39;,0);&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pause(0.5);&lt;/code&gt;&lt;br /&gt;&lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;end&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Other functions that are related to the MATLAB Support Package for Raspberry Pi can also be used along with the Raspberry Pi object &amp;#39;mypi&amp;#39;. To take a look at the featured examples from MATLAB Support Package for Raspberry Pi, type &lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;raspi_examples&lt;/code&gt; in MATLAB Command Window.&lt;/p&gt;&lt;h2 style="font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-weight:400;color:#333333;margin-top:10px;padding-bottom:5px;"&gt;&lt;a class="jive-link-external-small" href="https://learn.adafruit.com/how-to-use-matlab-and-simulink-with-raspberry-pi/blink-an-led-using-matlab-support-package-and-raspberry-pi#common-error-messages" rel="nofollow ugc noopener" style="color:#999999;margin-top:3px;font-size:14px;background:transparent;" target="_blank"&gt;&lt;span class="fa-link fa" style="font-family:FontAwesome;font-size:inherit;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="anchor-link-target"&gt;&lt;/span&gt;&lt;strong&gt;Common Error Messages&lt;/strong&gt;&lt;/h2&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#ff0000;font-size:10pt;"&gt;Error using raspi (line 157)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:10pt;color:#ff0000;"&gt;Cannot establish an SSH connection to the board with device address &amp;quot;169.254.0.2&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="font-size:10pt;color:#ff0000;"&gt;Caused by:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:10pt;color:#ff0000;"&gt;Error using raspi (line 153)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:10pt;"&gt;Error executing command: FATAL ERROR: Network error: Network is unreachable&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Ensure that the Raspberry Pi board is connected to the computer that you are working with. Usually when the lights on the ethernet port and the ACT LED are blinking, there is a connection between the Pi board and the computer.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;If for some reason the connection between MATLAB and Raspberry Pi board is lost, the following error message appears.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#ff0000;font-size:10.5px;"&gt;The host and client connection is lost. Make sure the board is plugged in and/or recreate arduino and its related objects.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;The best practices to follow to resolve this error -&lt;/p&gt;&lt;ol style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;li&gt;Disconnect the USB cable and Ethernet cable from both the Pi board and computer.&lt;/li&gt;&lt;li&gt;Clean up MATLAB by typing &lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;clear&lt;/code&gt; in MATLAB Command Window.&lt;/li&gt;&lt;li&gt;Plug in the USB cable to computer and Pi board.&lt;/li&gt;&lt;li&gt;Try connecting to the board from MATLAB by using &lt;code style="font-family:Monaco, Menlo, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:12.6000003814697px;padding:2px 4px;color:#c7254e;background-color:#f9f2f4;"&gt;raspi&lt;/code&gt; command.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#333333;font-size:24px;"&gt;&lt;strong&gt;Blinking On-board LED Using Simulink Support Package for Raspberry Pi&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Create your own Simulink model&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;1) In MATLAB, select &lt;strong&gt;New &amp;gt; Simulink Model&lt;/strong&gt; under the HOME Tab.&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/614x553/__key/communityserver-wikis-components-files/00-00-00-02-44/1638.contentimage_5F00_70409.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/1638.contentimage_70409.png-614x553.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=HV7Qy%2Fq5a53HH2Z6Q%2Fl2RlS5AJnVsy9%2BhGWppWlWSzE%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=rldhGSu+ECbfns4SfWLzVA==" style="max-height: 553px;max-width: 614px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;2) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Click on the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Library Browser&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; Icon on the simulink model and go to &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; tab under Simulink in the Simulink Library Browser window.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x217/__key/communityserver-wikis-components-files/00-00-00-02-44/0243.contentimage_5F00_70410.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/0243.contentimage_70410.png-620x217.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dBnhJNibH4pAGnd7mfG%2BjWv4tN2n1lSmldoVl8bSDpA%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=xZEUA4sTtHxBkPVsBAeksQ==" style="max-height: 217px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;3) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Drag the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Pulse Generator&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; block from the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; library to your model and change the values as shown here.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x426/__key/communityserver-wikis-components-files/00-00-00-02-44/6318.contentimage_5F00_70411.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/6318.contentimage_70411.png-620x426.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ryJ00TydW2ah1004hbf7sb7hcUTh6uKBZXWxM8fbKiE%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=OPKDsnV6so5teipMnqFUSw==" style="max-height: 426px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;4) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Use the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;LED Block&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; from &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Simulink Support Package for Raspberry Pi Hardware&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; in the Library Browser and change the parameters as shown here.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x557/__key/communityserver-wikis-components-files/00-00-00-02-44/4265.contentimage_5F00_70412.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/4265.contentimage_70412.png-620x557.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=IokjwUE8eLvF%2B4qpUaujP4Uan8Rxe%2B6if5v97j%2BNY5A%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=7dJpmPMbbFjvfUwFDL2tdw==" style="max-height: 557px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x401/__key/communityserver-wikis-components-files/00-00-00-02-44/2112.contentimage_5F00_70413.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/2112.contentimage_70413.png-620x401.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=iYTWv7lr%2FMuTtnh9RdhtNPILsLqUWLFAmGzL%2FqQCQeY%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Ax/JE0MPmSqKz79dRY5Zxg==" style="max-height: 401px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;5) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Drag and drop the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Data Type Conversion block&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; from the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Signal Attributes&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; tab under the Simulink library. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x555/__key/communityserver-wikis-components-files/00-00-00-02-44/3683.contentimage_5F00_70414.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/3683.contentimage_70414.png-620x555.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=gJtzKZIEsmiNf9hEfZ97QsCDlfU1zKDEifgf2BcBTh4%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=sdq5G/w6jOTyG9TSyu+A6g==" style="max-height: 555px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;6) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;When you move the mouse pointer close to the arrow on the block, it will change to a plus sign. Left click when you seee the plus sign and drag the mouse to make the intended connection. Once the connection is made you can release the left click button.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x406/__key/communityserver-wikis-components-files/00-00-00-02-44/1538.contentimage_5F00_70415.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/1538.contentimage_70415.png-620x406.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Ar05Kdl5qK%2FKaz%2BUqvOTbac1xCxlbRG8VQZCYKvOK5M%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=oQmKddLcueUs0yXui7QZWQ==" style="max-height: 406px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;7)&amp;nbsp; &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;Save this model and to configure the model go to &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Tools &amp;gt; Run on Target Hardware &amp;gt; Prepare To Run...&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x344/__key/communityserver-wikis-components-files/00-00-00-02-44/7485.contentimage_5F00_70416.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/7485.contentimage_70416.png-620x344.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=6TFywpLhXeVo3SaYR8Ook6h8EZ%2BtL04q6y%2FR2TvsehQ%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=OhsTrnlzIKCYS0gAiEK5jg==" style="max-height: 344px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;8) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;When the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Configuration Parameters&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; page opens up, set the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Target hardware&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; parameter to Raspberry Pi. Do not change any other settings.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x212/__key/communityserver-wikis-components-files/00-00-00-02-44/8156.contentimage_5F00_70417.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/8156.contentimage_70417.png-620x212.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=UhOjZKRhJeQinN29HEbXnvBBhoZv5Ag6LWIit4OhSZs%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=0EUay8kSd/IRi3cVuo0sEg==" style="max-height: 212px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;9) &lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;In your Simulink model, click the &lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;strong&gt;Deploy To Hardware&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt; button on the toolbar. Code will be generate from the model, which is then deployed to your Pi 2. The on-board LED should blink one time every second.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-top:10px;color:#333333;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;font-size:14px;"&gt;&lt;span style="color:#333333;font-size:14px;font-family:&amp;#39;Gotham SSm A&amp;#39;, &amp;#39;Gotham SSm B&amp;#39;;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x359/__key/communityserver-wikis-components-files/00-00-00-02-44/6013.contentimage_5F00_70418.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/02/44/6013.contentimage_70418.png-620x359.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0GerIWsaokmhyFhCarNDGnlAtU0FCuLR%2Bonc7tIYRGo%3D&amp;amp;se=2026-05-29T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=48oKwhHiRm6sPQ1fpXfKVg==" style="max-height: 359px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: stem space&lt;/div&gt;
</description></item></channel></rss>