{"id":1945,"date":"2014-02-15T13:30:46","date_gmt":"2014-02-15T13:30:46","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=1945"},"modified":"2019-04-02T10:23:37","modified_gmt":"2019-04-02T10:23:37","slug":"android-app-that-sends-a-message-to-your-arduino","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/android-app-that-sends-a-message-to-your-arduino\/","title":{"rendered":"Android App that Sends a Message to Your Arduino"},"content":{"rendered":"<p>In this project I&#8217;m going to show an Android app that sends a message to your Arduino via bluetooth. And that message will be displayed in a Doted Matrix display.<!--more--><\/p>\n<h3>Resources for this project:<\/h3>\n<ul>\n<li><a title=\"How to Use App Inventor with Arduino\" href=\"https:\/\/randomnerdtutorials.com\/how-to-use-app-inventor-with-arduino\/\">How To Use App Inventor With an Arduino<\/a><\/li>\n<li><a title=\"Control 2 DC motor via bluetooth\" href=\"https:\/\/randomnerdtutorials.com\/arduino-control-2-dc-motors-via-bluetooth\/\">Control 2 DC Motors Via Bluetooth with an android app created with MIT App Inventor<\/a><\/li>\n<li><a title=\"Freetronics DMD\" href=\"https:\/\/randomnerdtutorials.com\/review-freetronics-dmd-32x16-red\/\">Review of the Freetronics DMD 32\u00d716 Red<\/a><\/li>\n<li><a title=\"Bluetooth Module\" href=\"https:\/\/randomnerdtutorials.com\/parts-hc-05-bluetooth-module-review\/\">Review of the HC-05 Bluetooth Module<\/a><\/li>\n<\/ul>\n<h2>Watch the video below<\/h2>\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/RQvSMlZiNoc?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>Parts Required<\/h2>\n<ul>\n<li><span style=\"line-height: 1.5em;\">1x Arduino Uno<\/span><\/li>\n<li>1x DMD (<a href=\"http:\/\/www.freetronics.com\/collections\/display\/dmd\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to buy one<\/a> or read my review <a title=\"DMD Review\" href=\"https:\/\/randomnerdtutorials.com\/review-freetronics-dmd-32x16-red\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>)<\/li>\n<li><span style=\"line-height: 1.5em;\">1x Bluetooth Module (for example: HC-05,\u00a0<\/span><a style=\"line-height: 1.5em;\" 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><span style=\"line-height: 1.5em;\">)<\/span><\/li>\n<li><span style=\"line-height: 1.5em;\">1x Smartphone (any Android will work, I\u2019ve only tested with Samsung Galaxy Ace)<\/span><\/li>\n<li><span style=\"line-height: 1.5em;\">Android Application (you can download it in the next step)<\/span><\/li>\n<li><span style=\"line-height: 1.5em;\">1x Breadboard<\/span><\/li>\n<li><span style=\"line-height: 1.5em;\">Jumper Cables<\/span><\/li>\n<\/ul>\n<p style=\"text-align: center;\">\u00a0<a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/paarts.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-1953\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/paarts.jpg?resize=352%2C267&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"paarts\" width=\"352\" height=\"267\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/paarts.jpg?w=587&amp;quality=100&amp;strip=all&amp;ssl=1 587w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/paarts.jpg?resize=300%2C227&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<h2>Schematics<\/h2>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Schematics-compressed.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter wp-image-1948\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Schematics-compressed.jpg?resize=368%2C296&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"[Schematics-compressed]\" width=\"368\" height=\"296\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Schematics-compressed.jpg?resize=1024%2C822&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Schematics-compressed.jpg?resize=300%2C241&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Schematics-compressed.jpg?w=1512&amp;quality=100&amp;strip=all&amp;ssl=1 1512w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/a><\/p>\n<h2>Source Code<\/h2>\n<div data-lock-id=\"onpLock625189\">\n<ul>\n<li><a title=\"Arduino Sketch\" href=\"https:\/\/gist.github.com\/RuiSantosdotme\/59331f15fda341c319f5\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino Sketch<\/a><\/li>\n<li><a title=\"DMD\" href=\"https:\/\/github.com\/freetronics\/DMD\" target=\"_blank\" rel=\"noopener noreferrer\">Install the DMD library<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Send_Message.zip\" target=\"_blank\" rel=\"noopener noreferrer\">Send_Message.apk<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/Send_Message_aia.zip\" target=\"_blank\" rel=\"noopener noreferrer\">Send_Message.aia<\/a> (to edit the android app)<\/li>\n<\/ul>\n<p><strong>Note:<\/strong>\u00a0If you want to edit my app this is what you need to do. Download Send_Message.aia and upload it to <a title=\"MIT App Inventor\" href=\"http:\/\/appinventor.mit.edu\/explore\/\" target=\"_blank\" rel=\"noopener noreferrer\">MIT App Inventor<\/a>.<span style=\"font-size: 1.17em; line-height: 1.5em;\">\u00a0<\/span><\/p>\n<h3><span style=\"font-size: 1.17em; line-height: 1.5em;\">Tips:<\/span><\/h3>\n<\/div>\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><span style=\"line-height: 1.5em;\">Before Testing my android app, test if you\u2019ve made all the connections correctly. How you can do that? Simply enter some messages (for example: &#8220;Random&#8221;)\u00a0into your serial monitor and your DMD should display that message.<\/span><\/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><a title=\"How To Use App Inventor With Arduino\" href=\"https:\/\/randomnerdtutorials.com\/how-to-use-app-inventor-with-arduino\/\"><strong>P.S. Click here to see how to use MIT App Inventor with Arduino<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this project I&#8217;m going to show an Android app that sends a message to your Arduino via bluetooth. And that message will be displayed in a Doted Matrix display.<\/p>\n","protected":false},"author":1,"featured_media":1956,"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":[],"class_list":["post-1945","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"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/02\/thumbnail_final.jpg?fit=818%2C544&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/1945","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=1945"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/1945\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/1956"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=1945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=1945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=1945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}