{"id":902,"date":"2016-06-04T15:22:00","date_gmt":"2016-06-04T14:22:00","guid":{"rendered":"http:\/\/ofalcao.pt\/blog\/?p=902"},"modified":"2016-06-14T15:32:40","modified_gmt":"2016-06-14T14:32:40","slug":"controlling-wedo-2-0-motor-from-linux","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2016\/controlling-wedo-2-0-motor-from-linux","title":{"rendered":"Controlling WeDo 2.0 motor from Linux"},"content":{"rendered":"<p>LEGO Education released the WeDO 2.0 some months ago and I bought a kit. I returned to LEGO thanks to WeDO 1.0 and since I&#8217;m already using BLE with the SBrick, using the WeDo 2.0 seemed natural.<\/p>\n<p>But LEGO Education made the Android app very restrictive and only a few Android devices are allowed to install it &#8211; I have two different BLE enabled Android phones and none complies with LEGO Education definitions. Although LEGO Education promised a SDK for the new WeDO 2.0, there&#8217;s still nothing available and since I don&#8217;t own a Windows computer or an Apple device, my WeDO 2.0 kit was rusting on the shelf, waiting for better days.<\/p>\n<p>Then yesterday I found a Microsoft guy&#8217; with some <a href=\"https:\/\/github.com\/kpathakota\/Build2016BluetoothCodeSamples\">bluetooth code samples<\/a> with references for the WeDO 2.0 &#8211; how ironic!<\/p>\n<p>So it took me only a few hours to achieve what I think is a world premiere: a linux system controlling a LEGO WeDO 2.0 motor. And what better linux system than a LEGO Mindstorms EV3?<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" title=\"LEGO Mindstorms EV3 controlling WeDO 2.0 Motor\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/0d3MdZuDOTc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p>Next post will I&#8217;ll give more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LEGO Education released the WeDO 2.0 some months ago and I bought a kit. I returned to LEGO thanks to WeDO 1.0 and since I&#8217;m already using BLE with the SBrick, using the WeDo 2.0 seemed natural. But LEGO Education made the Android app very restrictive and only a few Android devices are allowed to &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2016\/controlling-wedo-2-0-motor-from-linux\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;Controlling WeDo 2.0 motor from Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":[1],"tags":[150,165,231],"series":[],"class_list":["post-902","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","tag-ble-en","tag-python-pt","tag-wedo-2-0"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-ey","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/comments?post=902"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/902\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=902"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}