Task 2: Button circuit

Add a push button to your LED and potentiometer circuit so the LED only lights while the button is pressed.

Step 6 of 8 in Part 3: Push buttons

← Workshop 2 lessons
All lessons in Workshop 2

Part 1: Getting started

  1. 1 Welcome and what you'll need
  2. 2 Review: Workshop 1 basics

Part 2: Potentiometers

  1. 3 Potentiometers
  2. 3.1 Task 1: Potentiometer circuit

Part 3: Push buttons

  1. 4 Push buttons
  2. 4.1 Task 2: Button circuit

Part 4: Capacitors

  1. 5 Capacitors
  2. 5.1 Task 3: Capacitor circuit

Assignment

Build an LED circuit with a push button, so the LED only lights while you press the button. Then add the potentiometer from Task 1, so you can also control how bright it is.

Check your circuit

Before you plug in the battery holder, check:

  • The button, resistor and LED are all in series, in one loop from + to −
  • The button's legs that connect when pressed are in different rows
  • The LED's longer leg is on the side toward +

Then plug in the batteries:

  • The LED is off until you press the button
  • The LED lights while you hold the button, and turns off when you let go
  • With the potentiometer added, turning the dial changes how bright the LED is while you press the button

Troubleshooting

  • LED always on? Your two wires may be on legs that are always joined inside the button. Rotate the button a quarter turn.
  • LED never lights? Check the LED's direction, and make sure the button's legs are in different rows.
  • Need a hint? Look back at the "With a button" circuit in Lesson 4.