Lessons 2 and 3 – Block Editor Challenges

Learning Objectives

  • Design programs using the Microsoft Block Editor language for the Microbit
  • Develop your problem solving abilities

Learning Outcomes

All must develop simple programs using the instructions on the BBC Microbit website.  Give a brief description of how each program works. (Level 3)

Most should develop a mixture of simple and intermediate programs using the instructions on the BBC Microbit website.  Be able to describe how the programs work and suggest possible improvements to each.  (Level 4)

Some could develop intermediate and maker programs using the instructions on the BBC Microbit website.  Use crocodile clips to connect Microbits to other devices.  Be able to describe how the programs work and carry out improvements to each. (Level 5)

Keywords

Words to learn: program, crocodile clips, Microbit, calibrate, compass

Click here to open the Microbit Block Editor

Starter – Digital dice

Follow the tutorial for this program carefully.  Take it steady and make sure you think about what you are doing.  Don’t just rush through the tutorials.  You need to UNDERSTAND each step before you move on to the next.

Give the microbit a shake, and it’ll come up with a random number…

Click here, and go to tutorials/dice.  Can you make it simulate 2 or 3 dice?  See if you can change the code.

Once more, make sure you screenshot and annotate your code, adding to your micro:bit presentation.  It is vital that you evidence your work.

Main 1 – Light Meter

bulb

Gremlins don’t like bright light, so this program would be very handy!  Using this link  scroll to down to tools, and you’ll find a tutorial for “light meter”.  Once you have completed the initial activity, try to make the leds brighter in softer light….

Once more, make sure you screenshot and annotate your code, adding to your micro:bit presentation.  It is vital that you evidence your work.

Main 2 – Love Meter

heart

We are going to develop a love meter using your Microbit!  The way it works is that you and the person you want to see if you’re in love with hold hands (awww).  With your other hand one of you holds on to the pin marked 0 and the other person holds onto the pin marked GND.  When you do this you form a circuit and the Microbit will give you a rating from 0 (not in love at all) to 10 (omg, when are you getting married?  LOL!).

Click here to open the exercise and give it a go.  You’ll have to scroll to the tutorial called “Love Meter”.  How can YOU improve this program?

Once more, make sure you screenshot and annotate your code, adding to your micro:bit presentation.  It is vital that you evidence your work.

Main 3 – Rock, Scissors, Paper

rock-paper-scissors

A common way of settling who goes first is to have a game of rock, scissors, paper.  But this is the 21st Century, let’s get our Microbit to do the difficult work of choosing one.  In this activity you will be able to shake the Microbit and it will choose a symbol that will represent rock, scissors or paper.

Click here to open the activity.  Scroll to the “rock paper scissors” tutorial.  Once you’ve done that you can screenshot and annotate your work!

Main 4 – Group Activity

Click here and scroll down to the Micro:bit radio activities.  You’ll need to work with someone else and their micro:bit for this one, but you should be able to send a mood image (emoji…)  to another micro:bit.  This really does open up many more possibilities…

As always, try to expand on the code you’re given.  Amend it, add features and make it your own.  This is the best way to learn….
Once you’ve done that you can screenshot and annotate your work!

Main 5 – Micro:bit Micro:fit?

One way to measure our activity and exercise to count how many steps we take over a given amount of time.  For this we use a pedometer.

Of course we can make one with the micro:bit!!  Check out the “step counter program in the “fashion” section.   Of course, without a battery, you’ll have to test it on the spot.
To make this better, can you make encouraging messages appear after so many steps?  Maybe a sad/happy face?   Hint – look how you made Rock /Paper/ Scissors.

Once you’ve done that you can screenshot and annotate your work!

Extension Work

Done all of the problems above?  Good stuff.  Have a look on the Microbit website and try some of the activities you’ve not had a go at yet!  You can have a go at the “maker” section if your teacher has some crocodile clip wires (and fruit…!)