Micro:bit Intro

MakeCode: Micro:bit

The BBC micro:bit is a small wearable and programmable device that has these components:

  • a 5x5 LED display,
  • accelerometer,
  • compass,
  • buttons,
  • I/O pins,
  • Micro USB plug,
  • Bluetooth Low Energy antenna,
  • ARM Cortex-M0 processor, and
  • battery plug (Source)

Step 1 - Get Ready

Pick up your box of micro:bit components. You can find a list of all items in the document included in your bag. Below is a list of everything that should be in there:

  1. micro:bit — The brains of the outfit with a bunch of on-board components.
  2. USB micro-B Cable: This 6-foot cable provides you with a USB-A connector at the host end and standard B connector at the device end.
  3. Alligator Test Leads: A great way to connect individual components to the micro:bit ring connectors.
  4. Battery Pack: A AA battery pack with the JST connector that fits the micro:bit.
  5. Jumper Wires Standard 7in M/M: These are high-quality wires that allow you to make connections with components on the breadboard.
  6. Piezo Buzzer: BUZZZZ! Used to make different frequencies of sound.
  7. Small Servo: Here is a simple, low-cost, high-quality servo for all your mechatronic needs. (not included)
Microbit Components

Step 2 - Plan with Pseudocode

What do you want your program to do? The first step in writing a computer program is to create a plan for what you want your program to do. Write out a detailed step-by-step plan for your program.

Pseudocode is like a detailed outline or rough draft of your program. Pseudocode is a mix of natural language and code.

Step 3 - Code & Create

Use the code shown left to give your robot head expressions.

Step 4 - Save Code to Micro:bit

1. To save the code to the micro:bit, click on the disk image or DOWNLOAD button to the left of the screen. This will allow you to save everything to your computer, then copy it to your micro:bit device.

2. When the hex file has been saved to your computer, you can copy it to your micro:bit via the USB cable.

3. Copy the hex file saved on your computer to the micro:bit. Simply open the MICROBIT (just as you would a USB flash drive) then drag-n-drop the hex file as shown in the image right.

In a moment, your Micro:bit will automatically begin to run the program.

Windows user? Right-click and choose SEND TO then select MICROBIT.

Step 5 - Publish Your Code

Ready to share your awesome MakeCode hex file with others? Publish your hex code online.

1. Click on SHARE icon at top left of the MakeCode screen

2. Click the COPY button that appears, as shown below. Notice you have EMBED code in case you want to embed the code on a website

Materials You Will Need

  1. Robot Head template to build the first part of a body for your Micro:bit expressions (get your own copy of the Word document that you can print)
  2. Scissors/Exacto knife
  3. Glue sticks
  4. Tape
  5. Micro:bit
  6. Speakers/earbuds/headphones
  7. Alligator clips

Steps To Follow

  1. Decorate Your Robot Head
  2. Fold your robot head together
  3. Make note of where wires will need to go
  4. Cut holes
    1. where wires will need to go
    2. where buttons are
    3. where LEDs appear so they are viewable
  5. Try again until you get it to your satisfaction

Are You Done?

Make a Video

When you are done, FlipGrid your presentation. Remember to:

Note: Get the Flipgrid app on your smartphone or just use your computer.

Flipgrid Code: 23840d