{"id":2352,"date":"2018-03-30T11:53:13","date_gmt":"2018-03-30T15:53:13","guid":{"rendered":"https:\/\/blogs.mathworks.com\/iot\/?p=2352"},"modified":"2018-03-30T11:54:40","modified_gmt":"2018-03-30T15:54:40","slug":"discussions-about-how-to-use-matlab-and-arduino-on-the-matlab-maker-community","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/iot\/2018\/03\/30\/discussions-about-how-to-use-matlab-and-arduino-on-the-matlab-maker-community\/","title":{"rendered":"Discussions About How to Use MATLAB and Arduino on the MATLAB Maker Community"},"content":{"rendered":"
As most of you know I love building IoT projects. Most of these maker projects use an Arduino, Particle, or Raspberry Pi, like my IR color-changing\u00a0robot<\/a>\u00a0that connects to ThingSpeak<\/a> and the CheerLights<\/a> project.<\/p>\n I recently became the moderator of the MATLAB Maker Community<\/a> that is hosted on MATLAB Central. There are many times where MATLAB and Simulink\u00a0can help build a hardware-based project or be used to create the code running on a device. I also use MATLAB for analytics. Here are the\u00a0most popular<\/a>\u00a0colors on CheerLights in the last 30 days. The goal of the MATLAB Maker Community<\/a>\u00a0is to connect makers and builders together. I learn by working with others and sharing my work. If you are interested in maker project, I suggest following the Maker Community and jumping in on conversations or starting new discussions. I find this helpful if I am exploring a new idea or looking for feedback.<\/p>\n Right now, there is a discussion thread<\/a> about how to use MATLAB to interface and interact with an Arduino. Makers can use MATLAB to control an Arduino by first installing the\u00a0MATLAB\u00ae<\/sup>\u00a0Support Package for Arduino<\/a>\u00ae<\/sup>. Once you have the support package, you can use MATLAB to control the Arduino with familiar MATLAB commands.<\/p>\n As most of you know I love building IoT projects. Most of these maker projects use an Arduino, Particle, or Raspberry Pi, like my IR color-changing\u00a0robot\u00a0that connects to ThingSpeak and the… read more >><\/a><\/p>\n","protected":false},"author":148,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[258,256],"tags":[14,141,210,60,209],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/2352"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/users\/148"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/comments?post=2352"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/2352\/revisions"}],"predecessor-version":[{"id":2368,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/2352\/revisions\/2368"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/media?parent=2352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/categories?post=2352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/tags?post=2352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n% create an Arduino object\r\na = arduino('com3', 'uno');<\/pre>\n% turn on an LED connected to Pin D11\r\nwriteDigitalPin(a, 'D11', 1);<\/pre>\n
% turn off an LED connected to Pin D11\r\nwriteDigitalPin(a, 'D11', 0);<\/pre>\n
Share your ideas on how to use the MATLAB connection to Arduino on the MATLAB Maker Community<\/a>.<\/h2>\n","protected":false},"excerpt":{"rendered":"
<\/div>\n