2Pushbutton LED Flashlight
This LED flashlight will teach you to use pushbuttons, an essential skill in electronic circuits. You’ll learn how to use a pushbutton in your circuit to trigger an event—in this case, lighting an LED—when the pushbutton is pressed and stop the event when it’s released.
PARTS REQUIRED
Raspberry Pi
Breadboard
5 mm LED
330 Ω resistor
Jumper wires
INTRODUCING SWITCHES AND BUTTONS
Switches are everywhere. You use them to turn on lights, adjust the speed of your blender, light your stove, and so much more. There’s a wide variety of switches available, but some of the ones you’ll see around the house include pushbutton, toggle, ...
Get 20 Easy Raspberry Pi Projects 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.