{"id":23,"date":"2016-08-14T19:48:29","date_gmt":"2016-08-14T19:48:29","guid":{"rendered":"http:\/\/r.jander.me.uk\/?p=23"},"modified":"2016-08-14T19:48:29","modified_gmt":"2016-08-14T19:48:29","slug":"developing-an-android-app-for-ev3","status":"publish","type":"post","link":"https:\/\/r.jander.me.uk\/index.php\/2016\/08\/14\/developing-an-android-app-for-ev3\/","title":{"rendered":"Developing an Android App for EV3"},"content":{"rendered":"<p>At the\u00a0<a href=\"http:\/\/www.bricktastic.org\">Bricktastic<\/a>\u00a0event back in July I showed off my <a href=\"https:\/\/www.youtube.com\/watch?v=4xXCmw4Y5iA\">Plott3r<\/a>\u00a0as part of the Mindstorms exhibits. It was programmed to do the Hilbert and Dragon curves, several plot &#8220;files&#8221; and some other bits.<\/p>\n<p>One of the questions that the kids kept asking was something along the lines of &#8220;can it write my name?&#8221; Unfortunately it wasn&#8217;t, and isn&#8217;t, capable of writing ad-hoc text. So since then I&#8217;ve been pondering ways of supplying user-provided text. I did consider an ultrasonic triangulated &#8220;keyboard&#8221;, but the US sensors got confused with each other&#8217;s signals &#8211; so for the moment I&#8217;ve put that idea to bed to be revisited in the future. My original thought, however, was &#8220;can I do this with a mobile phone?&#8221;<\/p>\n<p>Since that original thought I&#8217;ve been looking at how to write an Android app that has a simple text box and &#8220;send&#8221; button. Kids are used to mobiles these days, so it seems to me to be the perfect UI. So far I seem to have settled on using <a href=\"http:\/\/ai2.appinventor.mit.edu\/\">MIT&#8217;s App Inventor 2<\/a>. It does support EV3 to some extent, but I&#8217;m going to have to get down and dirty with the EV3 byte code to send mailbox messages via bluetooth \ud83d\ude42<\/p>\n<p>So, now I need to get learning how this AI2 system works. Thankfully they have tutorials, so I&#8217;ll be building the <a href=\"http:\/\/appinventor.mit.edu\/explore\/ai2\/lego-%C2%AE-ev3-tilt-drive.html\">tilt\/move<\/a> tutorial soon to get to grips with communicating with the EV3. Tinkering with bytecode won&#8217;t be too daunting as I&#8217;m used to getting down to that level of bit twiddling via my current and previous jobs.<\/p>\n<p>Nothing to show yet, but watch this space!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the\u00a0Bricktastic\u00a0event back in July I showed off my Plott3r\u00a0as part of the Mindstorms exhibits. It was programmed to do the Hilbert and Dragon curves, several plot &#8220;files&#8221; and some other bits. One of the questions that the kids kept asking was something along the lines of &#8220;can it write my name?&#8221; Unfortunately it wasn&#8217;t, &hellip; <a href=\"https:\/\/r.jander.me.uk\/index.php\/2016\/08\/14\/developing-an-android-app-for-ev3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Developing an Android App for EV3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":1,"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/r.jander.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}