Please enable JavaScript to use CodeHS

Introduction to Physical Computing with micro:bit

Description

In this first lesson, students will be introduced to their micro:bit device and the MakeCode editor, where they will build and test programs throughout the course. They will also be guided through the process to download programs from the editor to their device and will learn a few basic commands to get started writing micro:bit programs.

Objective

Students will be able to:

  • Articulate what physical computing is
  • Download and run programs on their micro:bit device in order to physically view programs as they create them throughout the course
  • Use the showNumber and showString commands in micro:bit programs
Description

In this lesson, students will take a deeper look at developing, testing, and running programs on the micro:bit simulator and on their devices. They will learn how the 5x5 grid system is laid out and will utilize more commands to light specific LEDs on the screen.

Objective

Students will be able to:

  • Develop, test, and run programs both on the micro:bit simulator and on physical devices
  • Use the MakeCode grid numbering system to light specific LEDs on the 5x5 LED screen
  • Use the led.plot, led.unplot, and basic.pause commands in micro:bit programs
Description

In this lesson, students will learn about comments and pseudocode, why they are important, and how they help organize and plan programs. They will also learn the basic difference between analog and digital components and how to use the plotBrightness and clearScreen commands in their programs.

Objective

Students will be able to:

  • Use comments to write more readable programs
  • Develop pseudocode in order to properly plan and organize their programs
  • Use the plotBrightness and clearScreen commands in micro:bit programs
Description

In this lesson, students will build their first physical circuit using their micro:bit devices. They will learn to use variables to control components, along with the analogWritePin and digitalWritePin commands.

Objective

Students will be able to:

  • Articulate what a variable is and why they are used
  • Assign and utilize variable in their programs
  • Create a simple circuit using micro:bit pins
  • Control an external LED by using the analogWritePin and digitalWritePin commands in micro:bit programs
Description

In this lesson, students review content with a 15 question Unit Quiz.

Objective

Students will be able to:

  • Prove their knowledge of basic coding concepts through a multiple choice quiz
Description

In this lesson, students will connect a speaker to their physical circuit to play music using their micro:bit! They will learn to use for loops to control components, along with the playNote command.

Objective

Students will be able to:

  • Use for loops to control the flow of their programs
  • Control an external speaker by using the playNote command in micro:bit programs
  • Understand the correlation between frequency values and the pitch of a tone
Description

In this lesson, students will learn how to use the built-in buttons to control their programs and will learn to use while loops to control components.

Objective

Students will be able to:

  • Use while loops to control the flow of their programs
  • Use buttons to control their programs
Description

In this lesson, students will learn about sensors and why they are so important in physical computing. They will use various internal sensors to detect attributes of the micro:bit’s environment and write programs that will complete certain tasks based on these values.

Objective

Students will be able to:

  • Use operators to control the flow of their programs
  • Use the reading of internal sensors to control commands in micro:bit programs
Description

In this lesson, students will connect a micro servo motor to their physical circuit and control its location using their device. They will learn to use conditionals to control components, along with the servoWritePin command.

Objective

Students will be able to:

  • Use conditionals to control the flow of their programs
  • Control the position of a servo motor by using the servoWritePin command in micro:bit programs
Description

In this lesson, students will use their first external sensor, an ultrasonic range finder, to measure distance and control components in the programs. They will develop and use functions with and without parameters to more clearly organize their code and make it more reusable.

Objective

Students will be able to:

  • Use functions with and without parameters to create more organized and reusable programs
  • Use an ultrasonic range finder to sense distance and control components in their micro:bit programs
Description

In this lesson, students review content with a 14 question Unit Quiz.

Objective

Students will be able to:

  • Prove their knowledge of basic coding concepts through a multiple choice quiz
Description

In this lesson, students will learn why and how breadboards are used to build more complex circuits. They will experiment with different built-in Gestures and will use all of the concepts they’ve learned up to this point to complete their first larger projects- a digital watch and an Inchworm.

Objective

Students will be able to:

  • Use control structures to develop readable, concise, and effective programs
  • Use breadboards to build more complex circuits
Description

In this lesson, students will research, develop, and present a lesson to their peers on the use of a new sensor with their micro:bit devices.

Objective

Students will be able to:

  • Research how to use a new sensor with their micro:bit devices
  • Develop and present a lesson to their peers instructing them on how to use a new sensor in their programs
Description

Students will get a chance to follow instructions written by someone they’ve never met to replicate a project in this lesson. They will then evaluate and improve these directions to make them more effective for a target audience.

Objective

Students will be able to:

  • Follow step-by-step instructions to build complex circuits using breadboards
  • Evaluate the clarity and effectiveness of given instructions
  • Improve directions to more effectively serve a specific audience
Description

In this final lesson, students will put together all of the concepts learned throughout the course to create a project of their choice. They will work individually, or with partners or groups to creatively develop a program of their choosing.

Objective

Students will be able to:

  • Synthesize concepts and skills learned in the course to create their own final project
  • Scope their project (eliminate features that aren’t necessary) so that it fits in the timeframe allotted
  • Present their project to their classmates and talk about how the project was developed