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.
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.
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.
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!
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!
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 friendly blocks to make a virtual 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!