{"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\"><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/0d3MdZuDOTc?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=pt-PT&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span><\/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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"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_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-ey","jetpack_featured_media_url":"","_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}]}}