Learning to use the GPIO pins on your Raspberry Pi opens up a whole world of possibilities. The basic principles learned through beginner projects pave the way toward useful knowledge of both DIY electronics and programming.
This tutorial will show you two ways to add a button to your Raspberry Pi project. The button will be used to control an LED. Written instructions are available below the video.
You Will Need To get started, make sure you have the following components:
1 x Raspberry Pi (Any will do, model 3B is used in this tutorial) 1 x Push Button 1 x LED 1 x 220 Ohm Resistor (Higher values are fine, your LED will just be dimmer) 1 x Breadboard Hook up wires Once gathered, you should have components that look something like this:
You’ll also need an SD card with the Raspbian operating system installed. The quickest way to do this is with the NOOBS (New Out Of the Box Software) image. Instructions on how to do this are available in this video:
Setting Up the Circuit You wi..Read More