{"id":270,"date":"2015-08-25T17:30:05","date_gmt":"2015-08-25T16:30:05","guid":{"rendered":"http:\/\/www.sarbyn.com\/tech\/?p=270"},"modified":"2015-08-25T12:20:59","modified_gmt":"2015-08-25T11:20:59","slug":"a-simple-android-arduino-bluetooth-project","status":"publish","type":"post","link":"https:\/\/www.sarbyn.com\/blog\/2015\/08\/25\/a-simple-android-arduino-bluetooth-project\/","title":{"rendered":"A simple Android <-> Arduino Bluetooth project"},"content":{"rendered":"<p>This is a simple project that use a bluetooth channel in order to connect an Android application with an Arduino.<br \/>\nThe aim of this sample is:<\/p>\n<ul>\n<li>Learn how Bluetooth serial channel works<\/li>\n<li>Learn how\u00a0to configure a bluetooth device on Android<\/li>\n<li>Send a string from Arduino to Android\u00a0(in this example the value of light sensor)<\/li>\n<li>Send a byte from Android to Arduino\u00a0(in this example the LED ON-OFF status)<\/li>\n<\/ul>\n<p>The Arduino schema is very simple<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.sarbyn.com\/tech\/wp-content\/uploads\/2015\/08\/schema_bb.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-271\" src=\"https:\/\/i0.wp.com\/www.sarbyn.com\/tech\/wp-content\/uploads\/2015\/08\/schema_bb-198x300.png?resize=198%2C300\" alt=\"schema_bb\" width=\"198\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.sarbyn.com\/blog\/wp-content\/uploads\/2015\/08\/schema_bb.png?resize=198%2C300&amp;ssl=1 198w, https:\/\/i0.wp.com\/www.sarbyn.com\/blog\/wp-content\/uploads\/2015\/08\/schema_bb.png?resize=677%2C1024&amp;ssl=1 677w, https:\/\/i0.wp.com\/www.sarbyn.com\/blog\/wp-content\/uploads\/2015\/08\/schema_bb.png?w=1071&amp;ssl=1 1071w\" sizes=\"(max-width: 198px) 100vw, 198px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I&#8217;ve used an HC-06 bluetooth adapter, the cheapest (and slower)\u00a0available on ebay.\u00a0You can find the source code of the android\u00a0application and Arduino Sketch file on my <a href=\"https:\/\/github.com\/sarbyn\/ardudroid-bt-test\">GITHUB<\/a> repositories.<\/p>\n<p>Now I&#8217;m ready to add bluetooth feature on my &#8220;HomeTemp&#8221; project.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a simple project that use a bluetooth channel in order to connect an Android application with an Arduino. The aim of this sample is: Learn how Bluetooth serial channel works Learn how\u00a0to configure a bluetooth device on Android Send a string from Arduino to Android\u00a0(in this example the value of light sensor) Send <a class=\"read-more\" href=\"https:\/\/www.sarbyn.com\/blog\/2015\/08\/25\/a-simple-android-arduino-bluetooth-project\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10],"tags":[75,21,42,28,73],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-examples","tag-android","tag-arduino","tag-bluetooth","tag-github","tag-hc-06"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3JApm-4m","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/270"}],"collection":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":1,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":272,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions\/272"}],"wp:attachment":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}