Attention: Safety Recall of Vernier Go Direct Charge Station. Click to learn more.

Shop

Experiments​

Functions Part 2

Experiment #6 from Vernier Coding Activities with Arduino®: Analog Sensors

Education Level
High School
College

Introduction

In the last activity you created functions as a way to make the program easier to understand. Although the importance of using local variables whenever possible was emphasized, you also learned how to use several global variables as a first step in working with functions. 

In this activity you will learn how to pass information from one function to another so you can eliminate the majority of global variables.

Objectives

  • Learn formatting for passing information between functions

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.

Purchase the Lab Book

This experiment is #6 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.

Learn More

Vernier Coding Activities with Arduino
SAVE/SHARE YOUR CART