Microbit
Beginner
60 mins
Teacher/Student led
185 points
What you need:
Chromebook/Laptop/PC
Microbit

Exploring Microbits

Embark on an exciting journey to learn about microbits, pocket-sized computers that you can program. This step-by-step lesson guides you through creating a new project, exploring the project editor, adding and deleting code, and programming your microbit to display messages, react to button presses, show icons, play melodies, and respond to movement. Enjoy exploring the world of microbits!
Learning Goals Learning Outcomes Teacher Notes

Live Class Feed

This is a live feed of the latest activity by your students on this lesson. It will update in real-time as they work on the lesson.
Load previous activity

    1 - What is a microbit?

    Meet the microbit! A microbit is a small, pocket-sized computer that we can program to do fun and interesting things.

    It's like a tiny, interactive billboard that can display messages, play sounds, and react to your actions. You can program it to respond to buttons being pressed and even movement.

    In this lesson, we're going to learn how to program the microbit to show messages and react to button presses. Let's get started!



    2 - Create a new project

    Did you know we can program our microbit using a website? To start our coding adventure, we need to create a new project.

    First, open the website MakeCode for microbit.

    Once you're there, look for a button that says 'New Project' and click on it. It will ask you what you want to call your project. Give your project a name (for example 'my project') and then click on the 'Create' button.

    This will open a new, blank project where we can start programming our microbit and give it instructions.


    3 - The Project Editor

    Let's take a look around the projector editor screen.

    Microbit Simulator
    On the left side of the screen, you'll see a simulator of a microbit. When we create some code, we will see it play in the simulator.

    Toolbox
    On the right side of the simulator, you'll see a toolbox with different categories of blocks. Each of these blocks is a different type of instruction for the microbit.

    Code Area
    On the right is the code area where we will write our code. It starts with two code blocks already added:
    on start and forever. on start is used for code that should run once when the microbit starts up. forever is used for code that should keep running over and over again.


    4 - Add Our First Code!

    Now let's add our first piece of code. The microbit has a grid of little red LED lights and we're going to make the microbit show some numbers using those lights.

    Add the following code:

    basic.showNumber(0)
    Once you've added that code, the microbit simulator should show the number 0.

    Next change the number 0 to a different number, in our example we changing it to the number 4:

    basic.showNumber(4)
    Now the simulator should refresh and show the number 4.




    5 - Delete Some Code

    Now let's delete the show number code block. We can do this by dragging and dropping it back into the toolbox.

    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more