Lesson 2 – Introduction to MakeCode for the BBC micro:bit


Tutorial –

  1. Your next tutorial in this development track is called, “Introduction to Microsoft MakeCode”.
  2. Clicking on the each of the links below opens them up in a new window. Let’s access the tutorial by clicking on the following Link
  3. We would recommend reading through the tutorial and answering the questions as you step through.
  4. If there are concepts you do not understand or if you have any doubts please feel free to ask someone, or consider using Google to get them answered and clarified.
  5. We will be writing our code using the Microsoft MakeCode Block based coding editor. So let’s open up the code editor for the BBC micro:bit using the following Link.
  6. At the end of the tutorial are some challenges. We would encourage you to take on the challenges and enhance your learning.
  7. Let’s get coding!!!!

Prerequisites –

  1. BBC micro:bit –
    1. This development track makes extensive use of the BBC micro:bit.
    2. If you haven’t purchased a BBC micro:bit yet you might want to head over to OzToyLib and pick one up now.
    3. We would recommend that you pick up the BBC micro:bit kit which comes with a battery pack, usb cable and the real micro:bit.
    4. We will be using the official online python editor to write code for all our tutorials. No investment required here.
  2. BBC micro:bit Starter Kit –
    1. You can purchase the Smart Science IoT kit through the OzToyLib store – Smart Science IoT Kit for BBC micro:bit
    2. Please note that the BBC micro:bit needs to be purchased separately from the Smart Science IoT Kit for BBC micro:bit
    3. You can purchase the Smart Science IoT Kit for BBC micro:bit at OzToyLib.
  3. You can also look up each of these products at your local electronics hobby store.

About the BBC micro:bit –

The Micro Bit (also referred to as BBC Micro Bit, stylised as micro:bit) is an ARM-based embedded system designed by the BBC for use in computer education in the UK. The board is 4 cm × 5 cm and has an ARM Cortex-M0 processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons, and can be powered by either USB or an external battery pack. The device inputs and outputs are through five ring connectors that are part of the 23-pin edge connector at the bottom of the board. The micro:bit can be programmed using the Microsoft Block code program editor which is similar to the block based language Scratch ideal for 7-12 year olds. The micro:bit can also be programmed using the Makecode editor in Javascript and Python which allows for older kids to learn the Javascript and Python programming language using the micro:bit.

You can read more about the BBC micro:bit at the microbit website. Also see Kitronik’s resources here – Parents Complete Guide To The BBC micro:bit.


Reference –

  1. Learn more about the BBC micro:bit here – <Link>
  2. Look for a BBC micro:bit re-seller here and pick one up now.

Questions