0

I have a Raspberry Pi 2 model B, and whenever I connect a resistor and LED to the 5 Volt pin and the ground pin it immediately turns on without any programming to enable it. I just want to know wether this is normal behaviour, since I thought that you're supposed to turn the pins on programatically.

1
  • 1
    you are connecting an LED and resistor between a power pin and ground? .... you would have to include a switch if you want to turn off the LED .... or you could connect the LED to one of the GPIO pins instead
    – jsotola
    Commented Mar 16, 2018 at 18:51

1 Answer 1

2

The 5V pin is always "on" in the sense that you mean it. It is not one of the GPIO pins, even though it is on the same header and looks the same. The GPIO pins are the ones that you can control programmatically.

1
  • Useful dynamic site for GPIO info : pinout.xyz
    – CoderMike
    Commented Mar 16, 2018 at 22:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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