Please enable JavaScript to use CodeHS

Intro to Programming with Karel and micro:bit

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