STEP FIVE: Adding button to Breadboard Arduino

Overview

In this lesson you will add a button to your breadboard Arduino. Your final project will need to include some interactive component. This may be a button, a potentiometer, a light sensor, or a temperature sensor. You will start by working with a button.

Exercises

  1. Add an button to your breadboard.

  2. Write a program to make all eight LEDs turn on when you press the button.

  3. Write a program to toggle the lights, so that the go on after one press and then go off after the second press.

  4. Write a program to make all eight LEDs change color while the button is pressed.