Please enable JavaScript to use CodeHS

Introduction to Physical Computing with Arduino

Description

In this lesson, students will connect and control a servo motor using their Arduino device. They will learn to use for and while loops to control components, along with the write command from the Servo library.

Objective

Students will be able to:

  • Use for and while loops to control the flow of their programs
  • Control a servo motor by using the Servo library and the write command in Arduino programs
  • Understand why and how libraries are used in Arduino programs
Description

In this lesson, students will learn how buttons can be used to allow for additional user input in their programs. They will learn to use conditionals to control components, along with the digitalRead command.

Objective

Students will be able to:

  • Use conditionals to control the flow of their programs
  • Control components by using buttons and the digitalRead command in Arduino programs
Description

In this lesson, students will learn about sensors and why they are so important in physical computing. They will use an ultrasonic range finder to detect attributes of the Arduino’s environment and write programs that will make decisions based on these values.

Objective

Students will be able to:

  • Use operators inside conditionals to control the flow of their programs
  • Use the value of an ultrasonic range finder to control commands in Arduino 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 Arduino’s environment and write programs that will 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 various sensors to gather information about the environment and control components in their Arduino programs
Description

In this lesson, students will learn how motor controllers can be used in their circuits to control DC motors. They will explore the different ways to control the direction and speed of motors in their programs, setting them up to use this very adaptable component in many future programs.

Objective

Students will be able to:

  • Use motors and motor controllers in their circuits
  • Apply commands they are familiar with to control motors
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