MicroPython 101

A project-based introduction to micro:bit programming using MicroPython with instructions to build 16 hands-on micro:bit projects. Buy

Course Summary
  • Grades 6 - 8
  • Advanced level
  • 14 lessons
  • Python
    • Web
Course Includes
  • 14 lessons
  • 86 activities
  • Enhanced Creativity Tools
  • Automatic Assessment
  • Tutorials and Reviews
  • Coding Puzzles
  • DIY Projects
  • Quizzes
  • Teacher Guides
  • Answer Keys
Prerequisites
No previous coding experience required.

Description

Introduce your class to physical computing with micro:bit and MicroPython. This course is an advanced introduction to micro:bit and requires prior Python programming knowledge. The curriculum engages students as they see their abstract programs come to life on a tangible physical device that they can control with their hands. Using built-in micro:bit sensors, buttons, and the 5X5 LED display, students build animated LED emojis, real-world temperature sensors, pedometers, multiplayer games, and even a two-way Morse code radio.

The course includes 16 hands-on projects with step-by-step instructions. It is delivered in an interactive notebook-style lesson format so that students can learn new concepts, write programs, and deploy code to the micro:bit right from the lesson interface. There is nothing to download or install on your computer. In addition, students can also launch Tynker Code Editor and write their own programs from scratch.

The lesson plans in this course build and reinforce STEM skills, problem solving, debugging, and collaboration skills, as students bridge digital and physical learning. Students will apply abstract programming concepts to create tangible hands-on micro:bit-based inventions.

Each lesson is designed for a class period of 45-60 minutes. All student work is automatically tracked and assessed, and you'll be able to monitor individual progress and mastery charts for your students.

This course is recommended for advanced students who are already familiar with Python. Beginner students may enroll in micro:Bit 101 where they use Tynker Blocks to program micro:bit.

This course is supported online and not supported on iPad.

Recommended Accessories: This course requires micro:bit devices (not included). You may purchase these separately at a variety of resellers or consider buying the classroom pack from Tynker. Each lesson has a detailed Parts List.

  • micro:bit, USB cable, Battery pack, 2xAAA batteries (for each students or group)
  • Accessories: Lessons 13, 14 require a Piezo speaker and Alligator clips
  • Lessons 15,16 require two or more micro:bits
  • Optional: microBit Inventor’s Kit: Classroom Pack (includes accessories required for all lessons)

While most lessons need a single micro:bit, it is encouraged that students improvise to create inventions that incorporate external cables, LEDs, speakers, aluminum foil, and other accessories, when available.

See the this section on the micro:bit foundation for more ideas!

Topics Covered

  • micro:bit Python commands
  • 2-way radio communication
  • Deploying code to the micro:bit
  • Light and temperature sensing
  • Reading sensor values
  • Gestures and motion detection
  • Programming the LED grid
  • Multiplayer game development

What Students Learn

  • Display animations on the micro:bit LED
  • Create classic arcade games on the micro:bit
  • Create a pedometer by detecting steps
  • Build a prime number checker
  • Program a loaded die that always rolls 6
  • Detect button clicks and other events
  • Create multiplayer games using the radio
  • Build a soundboard to play musical notes
  • Extend the project to the physical world

Technical Requirements

* Online courses require a modern desktop computer, laptop computer, Chromebook, or Netbook with Internet access and a Chrome (29+), Firefox (30+), Safari (7+), or Edge (20+) browser. No downloads required.

1. Introduction
6 activities
Learn to program the micro:bit using MicroPython
2. Emoji Maker
6 activities
Learn to draw and animate on the micro:bit using MicroPython
3. Track and Field
9 activities
Program a pedometer and a lap timer using micro:bit and MicroPython
4. Prime Time
6 activities
Learn to use the micro:bit to work with numbers
5. Temperature Search
8 activities
Learn to use the micro:bit to sense temperature changes
6. Reflex Master
7 activities
Build a reaction time game for the micro:bit using MicroPython
7. Maze Madness
6 activities
Create a maze game where you have to avoid touching the sides
8. High Rollers
10 activities
Program the micro:bit to become a die that only rolls high numbers
9. Soundboard
7 activities
Program your micro:bit to play sounds and use text-to-speech
10. Button Masher
8 activities
Create a 2-player game where the player who clicks first wins
11. Dodgeball
6 activities
Create a dodgeball game that works on the micro:bit
12. Guess the Word
8 activities
Build a guess-the-word game on the micro:bit
13. Morse Code
7 activities
Build a micro:bit radio communicator that sends and receives morse code
14. Treasure Hunt
6 activities
Write a program to locate a hidden micro:bit