Arduino Potentiometer Activities

Background

This is a schematic for your circuit:

null

Some programming basics we will need to know for our program:

null

Assignment

Write a program that builds on the basics we learned about in our Blinking LED circuit, this time using the value returned from our sensorValue variable as the delay value. Use pin A0 for the input from the potentiometer.

Note!

After you have this assignment completed, call your instructor over to have it marked.

Assignment 2

Add the statement

Serial.begin(9600);

to your setup() function and the statement

Serial.println(sensorValue);

to your loop() function.

Run this program, then call your instructor over for a discussion on how to convert this value to a voltage value. Modify your program accordingly.

Note!

After you have this assignment completed, call your instructor over to have it marked.

Leave a Reply

Your email address will not be published. Required fields are marked *