I am a new PI owner and was thinking is it possible to wire a button and LED to the GPIO pins so that when the button is pressed, the LED turns on. Can you please guide me on what hardware I need if this is possible? Thanks in advance.

  • 1
    -1 for lack of effort a simple google search would return several pages like this one raspberrypi.org/learning/physical-computing-with-python/… – Steve Robillard Mar 19 '17 at 17:03
  • 1
    Welcome to Raspberry Pi! Please take the tour and visit the helpcenter to see how things work here. Note that some research effort is expected here (which is why your question got a minus one even as a typed this comment). This particular questions sound vey likely to have been asked before. Please use the search first. Also: check the MagPi for some inspiration and plenty of tutorials (covering this basics). Really worth a look! – Ghanima Mar 19 '17 at 17:04
  • This is one of the most basic tasks a new Pi owner can undertake. Why did you buy a Pi in the first place if you didn't even know this was possible? – stevieb Mar 19 '17 at 22:15

Google will give you the response quite easily, but I'll bite. You'll need:

  • A Breadboard
  • A 330 ohm resistor
  • Two Male-Female jumper wires

You could skip the breadboard, but it would definitely make things easier for you if you would use it.

Just google "raspberry pi light led" without the quotes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.