{"id":1153,"date":"2013-10-10T15:20:07","date_gmt":"2013-10-10T15:20:07","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=1153"},"modified":"2019-04-02T10:23:38","modified_gmt":"2019-04-02T10:23:38","slug":"how-to-use-app-inventor-with-arduino","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/how-to-use-app-inventor-with-arduino\/","title":{"rendered":"How To Use App Inventor With Arduino"},"content":{"rendered":"<p><strong>Note: This post is outdated.<\/strong> For a recent version see\u00a0<a href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-mit-app-inventor-2-and-arduino\/\">Getting Started with MIT App Inventor 2 and Arduino<\/a>.<!--more--><\/p>\n<p>This project&#8217;s source file for the android app is outdated, because it was built using the old MIT APP Inventor Classic software, that is no longer supported. However, this project still works if you convert the files to the recent format\u00a0<a href=\"http:\/\/convert.appinventor.mit.edu\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>We also have other projects that you may find useful:<\/p>\n<ul>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/arduino-control-2-dc-motors-via-bluetooth\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino \u2013 Control 2 DC Motors Via Bluetooth<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/android-app-rgb-led-with-arduino-and-bluetooth\/\" target=\"_blank\" rel=\"noopener noreferrer\">Android App \u2013 RGB LED with Arduino and Bluetooth<\/a><\/li>\n<\/ul>\n<p>If you like Android Apps and Arduino take a look at our course:\u00a0<a href=\"https:\/\/randomnerdtutorials.com\/android-apps-for-arduino-with-mit-app-inventor-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">Android Apps for Arduino with MIT App Inventor<\/a>.<\/p>\n<p><a href=\"https:\/\/randomnerdtutorials.com\/android-apps-for-arduino-with-mit-app-inventor-2\/\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-37169\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=235%2C305&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"235\" height=\"305\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?w=424&amp;quality=100&amp;strip=all&amp;ssl=1 424w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=116%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 116w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=231%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 231w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=62%2C80&amp;quality=100&amp;strip=all&amp;ssl=1 62w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=170%2C220&amp;quality=100&amp;strip=all&amp;ssl=1 170w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=77%2C100&amp;quality=100&amp;strip=all&amp;ssl=1 77w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=183%2C238&amp;quality=100&amp;strip=all&amp;ssl=1 183w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=320%2C415&amp;quality=100&amp;strip=all&amp;ssl=1 320w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/04\/PBK15-Render-Copy-550.jpg?resize=375%2C487&amp;quality=100&amp;strip=all&amp;ssl=1 375w\" sizes=\"(max-width: 235px) 100vw, 235px\" \/><\/a><!--more--><\/p>\n<h2 class=\"entry-title\">How To Use App Inventor With Arduino<\/h2>\n<p>After so many requests, I&#8217;ve decided to create this quick tutorial! I hope you enjoy.<\/p>\n<p>This will help you understand how App Inventor works and how it can interact with your arduino via bluetooth.<\/p>\n<h2>Watch this video tutorial<\/h2>\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/cVj0jqOlGXo?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2><strong>Download all my source code below<\/strong><\/h2>\n<ul>\n<li>Arduino Sketch<\/li>\n<li>BlueLED.apk<\/li>\n<li>BlueLED Source files (for editing purpose)<\/li>\n<\/ul>\n<p><strong><a title=\"Direct Download Link\" href=\"https:\/\/dl.dropbox.com\/s\/hxzmo7lnsf8ugrv\/Source%20Code%20%28Android%20App%20%2B%20Arduino%20Sketch%29.zip\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to download<\/a><\/strong><\/p>\n<p><strong>Note:<\/strong> If you want to edit my app this is what you need to do: After\u00a0you download this folder make sure you unzip it. Only upload the <strong>BlueLED.zip<\/strong> into App Inventor.<\/p>\n<h2>Parts Required<\/h2>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\"wp-image-1150 aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/parts.jpg?resize=335%2C251&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"parts\" width=\"335\" height=\"251\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/parts.jpg?resize=1024%2C764&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/parts.jpg?resize=300%2C224&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/parts.jpg?w=2400&amp;quality=100&amp;strip=all&amp;ssl=1 2400w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/p>\n<ul>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/compatible-arduino-uno-r3-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino UNO<\/a>\u00a0\u2013 read\u00a0<a href=\"https:\/\/makeradvisor.com\/best-arduino-starter-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">Best Arduino Starter Kits<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/bluetooth-module-hc-06\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x Bluetooth Module (for example: HC-05,<\/a> <a href=\"http:\/\/randomnerdtutorials.com\/parts-hc-05-bluetooth-module-review\/\" rel=\"nofollow\" data-cke-saved-href=\"https:\/\/randomnerdtutorials.com\/parts-hc-05-bluetooth-module-review\/\">click here to\u00a0read my review here about this Bluetooth module<\/a>)<\/li>\n<li>1x Smartphone (any Android will work, I\u2019ve only tested with Samsung Galaxy Ace)<\/li>\n<li>Android Application (you can download it in the next step)<\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x 220Ohm Resistor<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/3mm-5mm-leds-kit-storage-box\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x LED<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/mb-102-solderless-breadboard-830-points\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x Breadboard<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/jumper-wires-kit-120-pieces\/\" target=\"_blank\" rel=\"noopener noreferrer\">Jumper Cables<\/a><\/li>\n<\/ul>\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n<h2 style=\"text-align: left;\">Schematics<\/h2>\n<p style=\"text-align: center;\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"wp-image-1152 aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/Schematics.png?resize=507%2C259&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"[Schematics]\" width=\"507\" height=\"259\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/Schematics.png?w=768&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/Schematics.png?resize=300%2C153&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/Schematics.png?resize=630%2C320&amp;quality=100&amp;strip=all&amp;ssl=1 630w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/Schematics.png?resize=276%2C140&amp;quality=100&amp;strip=all&amp;ssl=1 276w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/p>\n<h3>\u00a0Tips:<\/h3>\n<ul>\n<li>You need to remove the RX and TX cables when you\u2019re uploading the sketch to your Arduino.<\/li>\n<\/ul>\n<ul>\n<li>Sometimes people connect the TX from the bluetooth module to the TX of the Arduino\u2026 that\u2019s wrong and it won\u2019t work. Make sure you connect it properly, the TX into RX and the RX into the TX.<\/li>\n<\/ul>\n<ul>\n<li>If the HC-05 Bluetooth Module asks for a password, It\u2019s \u20191234\u2032.<\/li>\n<\/ul>\n<ul>\n<li>Before Testing my \u201cBlueLED\u201d app, test if you\u2019ve made all the connections correctly. How you can do that? Simply enter numbers (\u20191\u2032, \u20190\u2032)\u00a0into your serial monitor and your LED should be turning on and off.<\/li>\n<\/ul>\n<p>I hope you found this useful!<\/p>\n<p>Do you have any questions?\u00a0Leave a comment down below!<\/p>\n<p>Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my\u00a0Facebook Page.<\/p>\n<p><strong>P.S.<\/strong>\u00a0You don\u2019t have a Bluetooth Module yet?\u00a0<a title=\"Reviews - Bluetooth Module\" href=\"https:\/\/randomnerdtutorials.com\/parts-hc-05-bluetooth-module-review\/\">Read my review here <\/a>about the one I\u2019m using in this tutorial!<\/p>\n<p><strong>P.P.S.<\/strong> Check a Similar project made by me using MIT App Inventor. <a href=\"https:\/\/randomnerdtutorials.com\/arduino-control-2-dc-motors-via-bluetooth\/\" target=\"_blank\" rel=\"noopener noreferrer\">(Click here)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: This post is outdated. For a recent version see\u00a0Getting Started with MIT App Inventor 2 and Arduino.<\/p>\n","protected":false},"author":1,"featured_media":1151,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[308,271,267,2,264,10],"tags":[188,189,186,187,185],"class_list":["post-1153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-0-mit","category-android","category-arduino-project","category-arduino","category-project","category-a-tutorials","tag-arduino-android-app","tag-bluetooth-app-for-arduino","tag-how-mit-app-inventor-works","tag-mit-app-inventor-with-arduino","tag-video-tutorial-in-how-to-use-mit-app-inventor"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/10\/thumbnail.jpg?fit=2592%2C1936&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/1153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=1153"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/1151"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}