I am starting a pet project that involves Raspberry Pi 2 and I was wondering. What is the maximum amount of GPIO modules I can connect to a Raspberry Pi 2? I Basically my question does not involve only the amount of GPIO pins that the pi has but also regarding power. If the power that RPI2 takes in is only 5V how many modules can it support?

  • 2
    What is a GPIO module?
    – joan
    Commented Mar 6, 2016 at 21:19
  • bluetooth module, proximity sensor, etc, aren't they connected to the Pi from GPIO pins? Commented Mar 6, 2016 at 21:22
  • There must be hundreds if not thousands of such modules all with differing GPIO requirements and differing power requirements. I don't understand what you are trying to find out.
    – joan
    Commented Mar 6, 2016 at 21:29
  • what is the maximum that RPi can handle, e.g. up to (random number here) V output to modules so I can use the information I have on each module and see if I can make my project :) Commented Mar 6, 2016 at 21:34
  • 1
    The Pi2 has 28 usable GPIO and can supply up to 2 amps at 5V via the microUSB power socket.
    – joan
    Commented Mar 6, 2016 at 21:41

2 Answers 2


Each "thing or wire" you connect to a GPIO pin will act as a current load or source. That is, they will pull current from the rPI GPIO pin or try to source current into the pin. Lets say, for ease, that the thing connected to the GPIO pin is acting as a load, wanting to pull current from the pin. The rPI GPIO pin has a maximum current sourcing capability that you need to understand. Once you know how much current the GPIO pin can source (or sink), then you can get a handle on how many loads you can put on that one GPIO pin. You don't want to exceed the maximum current load capability of the rPI.
Another thing to pay attention to is the capacitive loading you apply to the GPIO pin. Each digital load or source you apply to a GPIO pin also has a bit of capacitance associated with them. Putting many loads on a GPIO pin increases the total capacitive load and thus will distort and corrupt the slew rate of the rPI GPIO pin, not to mention meeting minimum CMOS voltage thresholds for the pin. The effect could be that devices on the GPIO pin don't see a valid logic signal. You may be turning the GPIO pin to a logic 1 but the devices don't see a valid logic 1 level. An oscilloscope can help you here during debug, to look at your signal and make sure the logic levels and slew rate are correct.

  • 1
    Although i was covered by the answer i am selecting this one as it has more info that i need Commented Mar 7, 2016 at 15:18
  • Dang. At least I got to taste the glory of an accepted answer, even if only for a moment.
    – Jason C
    Commented Mar 7, 2016 at 17:57

Your question doesn't really make a lot of sense. There is no "maximum number".

As long as none of your boards require conflicting uses of the same GPIO pins, and you don't exceed the maximum supply current of the GPIO power rails (USB power supply current minus board draw on 5V line [so, depends on your power supply, probably in the 500-1500 mA range], and I think 50 mA on the 3.3V line) then it's fine.

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.