Introduction
In this activity you will explore using the output pins on the Arduino® in response to programming or sensor input. The skills learned in this activity can apply to many fun and interesting projects. For example, you can control the temperature by turning on a fan when the temperature is above a certain level. Or you can create your own musical instrument by linking the pitch of a buzzer to the force applied to a force sensor.
Objectives
- Use control structures to integrate logic statements into your code
- Understand how IF, IF THEN, and FOR logic statements work
- Explore integrating output devices into logic statements