{"id":6032,"date":"2019-08-01T16:31:49","date_gmt":"2019-08-01T14:31:49","guid":{"rendered":"https:\/\/blog.generationrobots.com\/?p=6032"},"modified":"2023-05-05T16:38:32","modified_gmt":"2023-05-05T14:38:32","slug":"program-your-microbit-board-from-a-smartphone","status":"publish","type":"post","link":"https:\/\/www.generationrobots.com\/blog\/en\/program-your-microbit-board-from-a-smartphone\/","title":{"rendered":"Program your micro:bit board from a smartphone!"},"content":{"rendered":"\n<html>\n <body>\n  <p>\n   Did you know that you could program your\n   <strong>\n    micro:bit board\n   <\/strong>\n   with only a mobile (and some 4G network)? For those who don\u2019t know micro:bit, it is a single board computer (like Raspberry Pi or Arduino) launched by the BBC in 2015.\n   <br\/>\n   Since then, this credit card sized nano-computer has conquered the world of education in England, but also in the rest of Europe.\n  <\/p>\n  \n  \n  <p>\n   Micro:bit doesn\u2019t cost much (19,90\u20ac inc. tax), even compared to the\n   <strong>\n    <a class=\"catalogue\" href=\"\/en\/326-microcontrollers-and-development-boards\" title=\"Arduino main boards\">\n     Arduino\n    <\/a>\n   <\/strong>\n   and\n   <strong>\n    <a class=\"catalogue\" href=\"\/en\/214-raspberry-pi-boards\" title=\"Raspberry Pi boards\">\n     Raspberry Pi\n    <\/a>\n   <\/strong>\n   boards.\n  <\/p>\n  \n  \n  <p>\n   <strong>\n    Micro:bit features a lot of sensors (especially given its size!)\n   <\/strong>\n  <\/p>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    2 x Microcontroller\n   <\/li>\n   \n   \n   <li>\n    1 x Bluetooth chip\n   <\/li>\n   \n   \n   <li>\n    1 x Digital compass\n   <\/li>\n   \n   \n   <li>\n    1 x Accelerometer \/ Gyroscope\n   <\/li>\n   \n   \n   <li>\n    1 x Temperature sensor\n   <\/li>\n   \n   \n   <li>\n    1 x USB host\n   <\/li>\n   \n   \n   <li>\n    1 x Connector for battery\n   <\/li>\n   \n   \n   <li>\n    2 x Programmable A and B buttons\n   <\/li>\n   \n   \n   <li>\n    1 x 5&#215;5 Matrix with 25 individually programmable LEDs\n   <\/li>\n   \n   \n   <li>\n    5 x Inputs &amp; Outputs (Digital &amp; Analog)\n   <\/li>\n   \n   \n   <li>\n    20 x Connecting pins (GPIO pins)\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <p>\n   <strong>\n    Micro:bit is very small.\n   <\/strong>\n   It is the size of a credit card and only 2 mm thick (6mm if the A &amp; B buttons are included).\n  <\/p>\n  \n  \n  <p>\n   <strong>\n    A wide range of compatible accessories have been developed\n   <\/strong>\n   by other manufacturers like Seeed Studio, Elecfreaks or Kitronic. Micro:bit is also compatible with the\n   <a class=\"catalogue\" href=\"\/en\/402667-camera-module-v2-raspberry-pi.html\" title=\"Camera Module V2 for Raspberry Pi\">\n    Raspberry Pi camera module\n   <\/a>\n   .\n  <\/p>\n  \n  \n  <p>\n   <strong>\n    There is a highly engaged user community\n   <\/strong>\n   around micro:bit and a wide range of online resources to help you getting started (guides, tutorials, projects).\n  <\/p>\n  \n  \n  <p>\n   <strong>\n    You can program your micro:bit from a computer, a mobile, or a tablet.\n   <\/strong>\n   Just follow this blogpost\u2019s instructions to learn how to code from a smartphone.\n  <\/p>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-step-1-download-the-micro-bit-app-to-your-device-mobile-or-tablet\">\n   Step 1: download the micro:bit app to your device (mobile or tablet)\n  <\/h2>\n  \n  \n  <p>\n   The micro:bit app is compatible with both Android and iOS devices:\n  <\/p>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.samsung.microbit\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Micro:bit app for Android\">\n     Micro:bit app for Android\n    <\/a>\n   <\/li>\n   \n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/apps.apple.com\/gb\/app\/micro-bit\/id1092687276\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Micro:bit app for iOS\">\n     AMicro:bit app for iOS\n    <\/a>\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-step-2-pair-your-micro-bit-board-with-your-app\">\n   Step 2: pair your micro:bit board with your app\n  <\/h2>\n  \n  \n  <p>\n   Micro:bit runs on 3.3V (with a battery) and 5V (with USB). If the board is properly powered, the LED on the micro:bit matrix will begin to flash.\n  <\/p>\n  \n  \n  <p>\n   You have to enable your smartphone or tablet Bluetooth.\n  <\/p>\n  \n  \n  <ul class=\"wp-block-list\">\n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/support.google.com\/android\/answer\/9075925?hl=fr\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Enable or disable Bluetooth on an Android device\">\n     Enable or disable Bluetooth on an Android device\n    <\/a>\n   <\/li>\n   \n   \n   <li>\n    <a class=\"catalogue\" href=\"https:\/\/support.apple.com\/fr-fr\/HT204091\" rel=\"noopener noreferrer\" target=\"_blank\" title=\"Enable or disable Bluetooth on an iOS device\">\n     Enable or disable Bluetooth on an iOS device\n    <\/a>\n   <\/li>\n   \n  <\/ul>\n  \n  \n  <ol class=\"wp-block-list\">\n   \n   <li>\n    Open the micro:bit app and tap on the \u00ab\u00a0Connect\u00a0\u00bb button\n   <\/li>\n   \n   \n   <li>\n    Tap on \u00ab\u00a0Pair a new micro:bit\u00a0\u00bb\n   <\/li>\n   \n   \n   <li>\n    The app may ask permission to access some of your smartphone features\n   <\/li>\n   \n   \n   <li>\n    To pair yout device with the micro:bit, press and hold down both buttons A and B and press the Reset button at the same time. Hold down the reset button for 2 or 3 seconds and then release it. Then release the A and B buttons.\n   <\/li>\n   \n   \n   <li>\n    A pattern will appear on the micro:bit LED matrix. Draw the exact same pattern on the app\u2019s screen.\n   <\/li>\n   \n   \n   <li>\n    To finish the pairing process, press the Reset button.\n   <\/li>\n   \n  <\/ol>\n  \n  \n  <figure class=\"wp-block-image aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/07\/etapes-appairer-microbit-avec-android.jpg\">\n    <img fetchpriority=\"high\" decoding=\"async\" width=\"936\" height=\"321\" alt=\"Pairing process for micro:bit card with an Android device\" class=\"wp-image-5960\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/07\/etapes-appairer-microbit-avec-android.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2019\/07\/etapes-appairer-microbit-avec-android.jpg 936w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2019\/07\/etapes-appairer-microbit-avec-android-300x103.jpg 300w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2019\/07\/etapes-appairer-microbit-avec-android-768x263.jpg 768w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/>\n   <\/a>\n  <\/figure>\n  \n  \n  <p>\n   The app will assign an ID to your micro:bit board, our board\u2019s ID is VAGOP:\n  <\/p>\n  \n  \n  <figure class=\"wp-block-image aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/08\/application-microbit-nomme-la-carte.jpg\">\n    <img decoding=\"async\" width=\"300\" height=\"274\" alt=\"The micro:bit app will assign an ID to your card\" class=\"wp-image-5967\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/08\/application-microbit-nomme-la-carte.jpg\"\/>\n   <\/a>\n  <\/figure>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-step-3-create-a-program\">\n   Step 3: create a program\n  <\/h2>\n  \n  \n  <p>\n   The best way to check if you have successfully paired your board with your smartphone is to test the temperature sensor.\n  <\/p>\n  \n  \n  <figure class=\"wp-block-image aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/08\/microbit-android-bluetooth-temperature-test.jpg\">\n    <img decoding=\"async\" width=\"900\" height=\"186\" alt=\"Code your micro:bit on Android\" class=\"wp-image-5964\" src=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/08\/microbit-android-bluetooth-temperature-test.jpg\" srcset=\"https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2019\/08\/microbit-android-bluetooth-temperature-test.jpg 900w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2019\/08\/microbit-android-bluetooth-temperature-test-300x62.jpg 300w, https:\/\/www.generationrobots.com\/blog\/wp-content\/uploads\/2019\/08\/microbit-android-bluetooth-temperature-test-768x159.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/>\n   <\/a>\n  <\/figure>\n  \n  \n  <p>\n   Nothing is easier than creating a micro:bit program on Android! Go to the micro:bit main interface and click on \u00ab Create code \u00bb. The micro:bit website will pop up on your screen, from there, just simply choose your programming language.\n  <\/p>\n  \n  \n  <p>\n   Choose the visual editor MakeCode (or the MicroPython editor) and enter the code above (you can switch between languages easily, just click on the \u00ab Settings \u00bb icon (English is the default language).\n  <\/p>\n  \n  \n  <p>\n   Click on the purple icon on the lower right side of the screen to download the .hex file to your device.\n  <\/p>\n  \n  \n  <h2 class=\"wp-block-heading\" id=\"h-step-4-transfer-a-file-to-the-micro-bit-board\">\n   Step 4: transfer a file to the micro:bit board\n  <\/h2>\n  \n  \n  <figure class=\"wp-block-image aligncenter\">\n   <a href=\"https:\/\/blog.generationrobots.com\/wp-content\/uploads\/2019\/08\/flash-hex-code-microbit-bluetooth.jpg\">\n    <img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"303\" alt=\"Flash a .hex file to the micro:bit board\" class=\"wp-image-5965\" src=\"\/blog\/wp-content\/uploads\/2019\/08\/flash-hex-code-microbit-bluetooth-e1564668599831.jpg\"\/>\n   <\/a>\n  <\/figure>\n  \n  \n  <p>\n   Get back to the micro:bit app\u2019s main page and select \u00ab Flash \u00bb. Choose a .hex file to flash.\n  <\/p>\n  \n  \n  <p>\n   You will find a list of files on the micro:bit (files in .hex format) already stored in your device. Choose the file you want and press the flash button to transfer. The file is automatically transfered into the micro:bit\n  <\/p>\n  \n  \n  <p>\n   Once the .hex file has been downloaded, a confirmation message pops up on the screen. Once the .hex file has been downloaded, a confirmation message pops up on the screen.\n  <\/p>\n  \n <\/body>\n<\/html>","protected":false},"excerpt":{"rendered":"<p>Did you know that you could program your micro:bit board with only a mobile (and some 4G network)? For those who don\u2019t know micro:bit, it is a single board computer (like Raspberry Pi or Arduino) launched by the BBC in 2015. Since then, this credit card sized nano-computer has conquered the world of education in[&#8230;]<br \/> <a class=\"button\" href=\"https:\/\/www.generationrobots.com\/blog\/en\/program-your-microbit-board-from-a-smartphone\/\" style=\"float:right;\">Read this article &gt;&gt;<\/a><\/p>\n","protected":false},"author":188,"featured_media":5970,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1132],"tags":[],"class_list":["post-6032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education-en"],"_links":{"self":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/6032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/users\/188"}],"replies":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/comments?post=6032"}],"version-history":[{"count":6,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/6032\/revisions"}],"predecessor-version":[{"id":14366,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/posts\/6032\/revisions\/14366"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/media\/5970"}],"wp:attachment":[{"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/media?parent=6032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/categories?post=6032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.generationrobots.com\/blog\/wp-json\/wp\/v2\/tags?post=6032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}