Please enable JavaScript to use CodeHS

Introduction to Physical Computing with Arduino

Lesson 2.3 Arithmetic, Comparison, and Logical Operators

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