Output and Logic Statements
Experiment #7 from Vernier Coding Activities with Arduino®: Analog Sensors
- Subject
- Engineering
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
Sensors and Equipment
This experiment features the following sensors and equipment. Additional equipment may be required.
Ready to Experiment?
Ask an Expert
Get answers to your questions about how to teach this experiment with our support team.
- Call toll-free: 888-837-6437
- Chat with Us
- Email support@vernier.com
Purchase the Lab Book
This experiment is #7 of Vernier Coding Activities with Arduino®: Analog Sensors. The experiment in the book includes student instructions as well as instructor information for set up, helpful hints, and sample graphs and data.