Please enable JavaScript to use CodeHS

Introduction to Physical Computing with Arduino

Lesson 2.4 Functions

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