{"id":23,"date":"2020-05-03T17:33:47","date_gmt":"2020-05-03T17:33:47","guid":{"rendered":"https:\/\/samndave.org.uk\/ourdoc\/?page_id=23"},"modified":"2024-09-01T19:59:50","modified_gmt":"2024-09-01T19:59:50","slug":"microbit-notes","status":"publish","type":"page","link":"https:\/\/samndave.org.uk\/index.php\/microbit-notes\/","title":{"rendered":"Micro:bit notes"},"content":{"rendered":"\n<div class=\"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\">\n<h3 class=\"wp-block-heading\">Useful links:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/microbit-micropython.readthedocs.io\/en\/latest\/tutorials\/hello.html\">Micropython tutorial<\/a><\/li><li><a href=\"https:\/\/tech.microbit.org\/hardware\/edgeconnector\/\">Micro:bit pinout<\/a><\/li><li><a href=\"https:\/\/www.elegoo.com\/tutorial\/Elegoo%2037%20Sensor%20Kit%20Tutorial%20for%20UNO%20R3%20and%20Mega%202560%20V2.0.0.2020.03.10.zip\">Elegoo sensor kit doc<\/a><\/li><li><a href=\"https:\/\/4tronix.co.uk\/blog\/?p=1734\">4tronix Bit:Commander<\/a><\/li><\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/microbit.org\/\">BBC Micro:bit<\/a> is a fantastic low cost little board for introducing children to computer hardware and programming. Similar in some functionality to a Raspberry Pi and Arudino, it makes adding hardware fairly simple.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"244\" src=\"http:\/\/samndave.org.uk\/wp-content\/uploads\/2020\/05\/microbit.jpg\" alt=\"\" class=\"wp-image-43\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">However, while going through some exercises with my son, we found we were spending a lot of time working out how to drive hardware, lots of debugging and he generally got bored when after an hour we did not have a lot to show from it. The following pages are my notes as I have learned how various hardware works and code samples ready for him to cut and paste to put together fun projects. The majority of the code is <a href=\"https:\/\/micropython.org\/\">Micropython<\/a> and hardware sourced from the <a href=\"https:\/\/www.elegoo.com\/product\/elegoo-upgraded-37-in-1-sensor-modules-kit-v2-0\/\">Elegoo 37 in 1 sensor kit<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The basic micro:bit has 3 accessible IO pins with crocodile clips, Vcc and GND, limiting what hardware can be connected. However with a IO breakout board and a breadboard, you can access all 20 IO pins with ease. A number of models are available, we have used the one from <a href=\"https:\/\/www.elecfreaks.com\/store\/micro-bit-breadboard-adapter.html\">ElecFreaks<\/a>, which is available from a number of UK based stockists such as <a href=\"https:\/\/coolcomponents.co.uk\/collections\/micro-bit\/products\/bbc-micro-bit-breadboard-adapter\">CoolComponents<\/a>.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\">\n<h3 class=\"wp-block-heading\">To Do:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Ultra sonic module<\/li><li>Active and passive buzzers<\/li><li>Soil moisture sensor<\/li><li>Temperature: DHT11 &amp; BME280<\/li><li>Stepper motor<\/li><\/ul>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\">Hardware Notes<\/h4>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts is-layout-flow wp-block-latest-posts-is-layout-flow\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/12\/26\/microbit-serial-communications\/\">Micro:bit Serial Communications<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/12\/26\/microbit-oled-ssd1306-screen\/\">Micro:bit OLED (SSD1306) Screen<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/08\/03\/microbit-keypads\/\">Micro:bit Keypads<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/08\/01\/microbit-more-io-pins-pcf8574-binary-and-hex\/\">Micro:Bit More IO pins (PCF8574), binary and hex<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/07\/28\/lcd-display-screen\/\">Micro:bit LCD Display Screen<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/25\/microbit-rotary-encoder\/\">Micro:bit Rotary Encoder<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/17\/microbit-buttons\/\">Micro:bit Buttons<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/15\/microbit-sg09-servo\/\">Micro:bit SG09 Servo<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/06\/microbit-neopixels\/\">Micro:bit Neopixels<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/03\/microbit-joystick-module\/\">Micro:bit Joystick Module<\/a><\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\">Projects<\/h4>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts is-layout-flow wp-block-latest-posts-is-layout-flow\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/08\/04\/project-a-microbit-calculator\/\">Project: A Micro:bit calculator<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/25\/project-rotary-encoder-servo\/\">Project: Rotary Encoder &#038; Servo<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/samndave.org.uk\/index.php\/2020\/05\/07\/project-neopixel-game\/\">Project: Neopixel game<\/a><\/li>\n<\/ul><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Useful links: Micropython tutorial Micro:bit pinout Elegoo sensor kit doc 4tronix Bit:Commander The BBC Micro:bit [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-23","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/pages\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":1,"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/pages\/23\/revisions"}],"predecessor-version":[{"id":917,"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/pages\/23\/revisions\/917"}],"wp:attachment":[{"href":"https:\/\/samndave.org.uk\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}