User Generated Education

Education as it should be – passion-based.

micro:bit Projects Coded with Python

leave a comment »

I have a strong emphasis with a few groups of my gifted students in integrating physical computing into my instructional activities. I’ve discussed the benefits of physical computing in Scratch and Makey Makey Across the Curriculum.

As I have my students in my classes for several years during their 2nd through 6th grade education, I start teaching them block coding using MakeCode and Scratch in the early grades. As such, this year, due to a desire to advance their skills, I’ve begun having the students use Python for the micro:bit to combine physical computing and learning Python.

Python is an excellent first text-based language to learn. Its instructions and syntax are based on natural language, making code easy to read, understand and modify. As well as being widely used in education, it’s used in industry, especially in the areas of data science and machine learning. Python is not just used by software developers, but also by people working in fields as diverse as medicine, physics and finance. Python on the BBC micro:bit brings the benefits of physical computing to students aged 11-14, learning programming fundamentals through text-based coding: immersive, creative experiences for students that help build engagement and knowledge (https://microbit.org/get-started/user-guide/python-editor/).

Standards Addressed

ISTE Standards for Students

  • Know and use a deliberate design process for generating ideas, testing theories, creating innovative artifacts or solving authentic problems.
  • Develop, test and refine prototypes as part of a cyclical design process.
  • Exhibit a tolerance for ambiguity, perseverance and the capacity to work with open-ended problems.
  • Create original works or responsibly repurpose or remix digital resources into new creations.

Next Generation Science Standards

  • Analyze data from tests to determine similarities and differences among several design solutions to identify the best characteristics of each that can be combined into a new solution to better meet the criteria for success.
  • Develop a model to generate data for iterative testing and modification of a proposed object, tool, or process such that an optimal design can be achieved.

Math Standards

  • Measure angles in whole-number degrees using a protractor. Sketch angles of specified measure.
  • Graph points on the coordinate plane to solve real-world and mathematical problems.

Here are some of the projects they’ve completed:


Spoon Race Using the micro:bit Python Data Logger

The Egg and Spoon race is a game where a player carries an object (like an egg) across some distance without it falling out of a holder. In the case of the Egg and Spoon, the player must carefully walk with an egg held in a spoon. The egg must remain in the spoon until the player crosses the finish line. The egg can easily roll out of the spoon so the player needs skill and patience to balance the egg until finishing the race (https://makecode.microbit.org/examples/egg-and-spoon).

The micro:bit can be programmed to record data about how much shake occurs during the race. The winner is the one with the least amount of shake. See more about it at https://microbit.org/projects/make-it-code-it/python-wireless-data-logger/.

Thanks, Katie Henry and Jacqueline Russell, for this!

The code – https://drive.google.com/file/d/1gsc1ghanyL7CvXV6HQXnzJRcLVkFN3NU/view?usp=sharing.

FYI – the students absolutely loved this!


micro:bit Pal Coded with Python

The micro:bit is coded to make a pal. It is customized with different images and the built-in speaker to make it even more fun with its expressive sounds (music, expressive sounds, and speech).



The code – https://drive.google.com/file/d/1p8RIGQIGTLloAqXwjswdxlNFvkjDuF3_/view?usp=sharing.


micro:bit Warmer-Colder Game

In this old children’s game, one player hides an object hides an object that other player seeks to find. Temperature words tell them if they are moving towards the object (getting warmer) or away from it (getting colder). In this case, the micro:bit radio function is used by the hider to give hints through the micro:bit to the seeker.



The code – https://drive.google.com/file/d/1-F8D9wx81r8ESqhi_KUA5zCy3L_8oPsQ/view?usp=sharing

Written by Jackie Gerstein, Ed.D.

February 15, 2024 at 2:19 pm

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.