1 of 19

MAKE CODE FOR MICRO:BIT�HTTPS://MAKECODE.MICROBIT.ORG/GRATITUDE for resources: DALE REED AND DOUGLAS KIANG`

Chinma Uche

Academy of Aerospace and Engineering

Windsor, CT

2 of 19

Welcome!

3 of 19

Description

  • This is an introduction to Micro:bit. The Micro:Bit is a pocket-sized computer for bringing digital ideas, games and apps to life.  The expectation is a hands on experience of the Micro:bit with discussion on how to implement Micro:Bit in the classroom.  Hope that it is useful.

4 of 19

What is MicroBit?

5 of 19

Micro:Bit

Just works always, everywhere

    • Free web-based
    • Offline capabilities

Real skills

    • Block to Text editor progression
    • JavaScript, VS Code extension

Make CS fun and tangible

    • Easy drag & drop deployment
    • Simulator for quick iteration

6 of 19

Micro:Bit Accessories.

                • Crocodile clips

Battery Pack & USB cable

Headphones

Maker Kits

7 of 19

Start a Project

Start a New Project

8 of 19

Program an Animation

  • Open the Basic Toolbox drawer
  • Drag 2 of the Show LED blocks onto your Workspace

3. Position them under the Forever block to look like this:

9 of 19

Program an Animation

  • In the first Show LED block, click squares to turn on lights to make a design
  • Notice your animation running in the Simulator

Smiley Face

Heart

  • Try replacing the first Show LED block with a Show Icon block
  • Experiment with other Basic blocks

10 of 19

Download your program to the micro:bit

  • Plug in your micro:bit with USB cable
  • Click Download Button
  • Edge: Select ‘Save As’ onto your MICROBIT USB drive
  • Chrome: Find the file you downloaded (microbit-Untitled.hex), and copy your file over to the micro:bit drive when it appears on your computer

11 of 19

Add Inputs

  • Open the Input Toolbox drawer
  • Drag a On Button Pressed block onto your Workspace
  • Drag a Show String block under the On Button Pressed block in your program
  • Test your program in the Simulator by clicking Button A
  • Try other inputs

12 of 19

JavaScript Editor

  • Click the JavaScript button at the top

  • Try typing in the following line of code:

13 of 19

MakeCode for MicroBit

  • https://makecode.microbit.org/

2. Smiley face (Uses Radio): https://makecode.microbit.org/projects/smiley-buttons

14 of 19

Magic 8 Ball

15 of 19

Find your Partner

  • Uses Radio: (send a message that enable you to find your partner.

2. Sending Message Extension https://bit.ly/cs4hs2017 by Dale Reed of University of Chicago.

16 of 19

Setting an alarm

                  • needs a piezoelectric buzzer

17 of 19

Curriculum

18 of 19

Explorations

https://makecode.microbit.org/projects

Group A: Magic Button Trick

Group B: Coin Flipper

19 of 19

Questions / Comments

?