In this code activity, students are introduced to embedded programming on the BBC micro:bit. The activity is available in the Blockly visual programming language or the Python programming language. A full micro:bit simulator is provided for both, so you do not require a physical micro:bit device.
The activity is structured as sequence of interactive notes and questions that students are challenged to answer. Students learn how to display images to the screen and handle button presses. They are introduced to computational thinking concept of branching control structures to make decisions that control the flow of a program.
Students will:
The BBC micro:bit is an embedded device designed for the classroom. (What is an embedded device?)
As well as the LED display and buttons, the micro:bit also contains an accelerometer, temperature sensor, magnetometer, and Bluetooth, and can be connected to other components like speakers, motors, screens, lights, and more.
The activity provides an excellent opportunity to discuss examples of embedded devices students may have encountered, and leads into a discussion about the Internet of Things.
Some examples:
Some examples:
Extend the lesson into a crafts project by using paper, play dough or textiles to create a skin for the micro:bit. Here's an example of a skin for a rabbit pet.
Register as a teacher for free!
Use drag-and-drop blocks to write your own programs, learn about sequence and ordering, and create fun monster characters!
Start coding now!Learn about the differences between animals, and how Biologists use programming to help them do science! You'll use the programming language Python to classify animals based on their characteristics.
Start coding now!This Cyber Security Mini course is a short introduction to staying safe online. You'll learn about secure passwords, phishing, security settings, social media and more!
Start coding now!Use the programming language Python to build a friendly chatbot called "Eliza". Can she fool your friends into thinking she's a human?
Start coding now!Use the programming language Python and instruct a turtle to draw flags from around the world! How many countries do you know?
Start coding now!A Navy captain is held captive inside his ship. A major landmark has gone dark. And weapons are pointed at Sydney’s busiest sites… It’s all connected, and it’s up to you to free the captain, track down the culprit, and stop them. Students will need to trace clues, solve puzzles, and figure out how to stop a large scale simulated cyber attack before it’s too late.
Start coding now!Use the programming language Python to make speedy changes to images. Make fun image editing programs and make your own image filter!
Start coding now!Use the programming language Python and instruct a turtle to draw fantastic snowflakes with code! Brrr, is it getting cold in here?
Start coding now!Build programs using friendly blocks and instruct a turtle to draw fantastic snowflakes with code! Brrr, is it getting cold in here?
Start coding now!Get started with the BBC micro:bit. Use the Python programming language to make a pet that you can feed and play with! No micro:bit required.
Start coding now!This activity is designed to introduce branching. Use the Blockly version of Python and its turtle module to draw and colour hydrangea flowers!
Start coding now!Ever wanted to create your own emoticon? Use the programming language Python to explore emoticons and text manipulation.
Start coding now!Use the visual programming language Blockly to investigate space and reach for the stars.
Start coding now!Use the programming language Python to model a disease outbreak. Can you solve the curious case of the glowing nose?
Start coding now!Use the programming language Python to create a simple game (or MUD). Can you find your way through the dark tunnel?
Start coding now!