PROJECT 1: PUSHBUTTON-CONTROLLED LED

IN THIS PROJECT, YOU’LL ADD A PUSHBUTTON SWITCH TO AN LED CIRCUIT TO CONTROL WHEN THE LED IS LIT.

image
image

PARTS REQUIRED

• Arduino board

• Breadboard

• Jumper wires

• LED

• Momentary tactile four-pin pushbutton

• 10k-ohm resistor

• 220-ohm resistor

This project will take you through the basics of switches, which you’ll be using a lot throughout this book. Almost all electrical items use switches to turn an element on or off. There are many types of switches, and the one you’ll use now is a pushbutton (Figure 1-1

Get Arduino Project Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.