Seven Segment Challenges

Overview

In this lesson, you will use the seven-segment display to display values from a variety of inputs.

Exercise:

  1. Set up an input button on your breadboard and connect it to a digital pin. Write a program to display the number of times the button has been pressed. You might need to use a delay to prevent the button from over counting a single press.

  2. Add a potentiometer to your breadboard. Write a program to display the value of the potentiometer in volts on the display.

  3. Using the MCP9808 temperature sensor, display the temperature on the LED display. In order to do this, you will need to combine minimal code for the temperature sensor with minimal code for the LED display.

TEACHER CHECK ____