All packs

Lights

Push-button light

Hold a button and an LED lights; let go and it goes out. The first step to a doorbell or a game buzzer.

  • Easy
  • about 20 min
  • Arduino Uno
  • No soldering
  • 7 parts
  • 5 wires
  • 17 lines of code
Try it in the simulator

Opens this circuit, already wired, with the sketch loaded. Free, nothing to install.

Idea

A button looks simple, but a pin with nothing connected reads noise. This build uses the Uno's built-in pull-up so the pin always has a clear answer.

What you learn

Reading a button with digitalRead(), and why INPUT_PULLUP makes a pressed button read LOW.

How it works

  1. input

    Push button

  2. decides

    Arduino Uno

  3. output

    LED

Powered with 5 V from the Uno's USB cable. No battery and no soldering.

This circuit and sketch are run in the ManuStem simulator before the pack is published. Real parts vary between makers: follow the labels printed on your own module, not its position in the picture.