edsulst
Posts: 28
Joined: Sat Nov 16, 2019 7:39 am

Use of GPIO pins

Sun Jun 14, 2020 5:53 pm

Hi There,

For my project I'm using 17 GPIO pins, but I need one extra.

The GPIO pins I'm using are alle the green one's as mentioned here: https://www.raspberrypi-spy.co.uk/2012/ ... tyPhoto/1/

Is it possible to use another GPIO pin, for example 2, 3, 9 or 10, as an input as well ?

Gr. Edwin

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Use of GPIO pins

Sun Jun 14, 2020 6:03 pm

edsulst wrote:
Sun Jun 14, 2020 5:53 pm
Hi There,

For my project I'm using 17 GPIO pins, but I need one extra.

The GPIO pins I'm using are alle the green one's as mentioned here: https://www.raspberrypi-spy.co.uk/2012/ ... tyPhoto/1/

Is it possible to use another GPIO pin, for example 2, 3, 9 or 10, as an input as well ?

Gr. Edwin


The 40-way header on all recent RPi boards has 26 programmable gpio pins. See https://pinout.xyz/

Do you have very early hardware with only a 26-pin header?

hippy
Posts: 7459
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Use of GPIO pins

Sun Jun 14, 2020 7:13 pm

edsulst wrote:
Sun Jun 14, 2020 5:53 pm
The GPIO pins I'm using are alle the green one's as mentioned here: https://www.raspberrypi-spy.co.uk/2012/ ... tyPhoto/1/
The blue, purple and pink marked GPIO pins are used for specific special purposes but can also be used as general purpose input or output if not otherwise used.

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Use of GPIO pins

Sun Jun 14, 2020 7:19 pm

B.Goode wrote:
Sun Jun 14, 2020 6:03 pm

The 40-way header on all recent [sic] RPi boards has 26 programmable gpio pins. See https://pinout.xyz/

Do you have very early hardware with only a 26-pin header?
"Recent" being since the release of the original B+ in July 2014.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

edsulst
Posts: 28
Joined: Sat Nov 16, 2019 7:39 am

Re: Use of GPIO pins

Sun Jun 14, 2020 7:45 pm

Sorry, but I forgot to tell you that I have a Raspberry Pi 3 model B V1.2 with a 40 pin header.
Now I only used the green colored pins and I wasn't sure if other colors could be used.

But if I read the posts correctly it's possible to use the blue, purple and pink also. GREAT !!

I did read somewhere that the yellow color pins can't be used
Since you never mentioned the yellow color I think that's right.

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Use of GPIO pins

Sun Jun 14, 2020 8:31 pm

edsulst wrote:
Sun Jun 14, 2020 7:45 pm

Now I only used the green colored pins and I wasn't sure if other colors could be used.
What? The pins on a regular RPi are not coloured in any way.

Image

https://pinout.xyz shows you which pins are which.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Use of GPIO pins

Sun Jun 14, 2020 8:38 pm

DougieLawson wrote:
Sun Jun 14, 2020 8:31 pm
https://pinout.xyz shows you which pins are which.
It does indeed, and oh, look... the pins are coloured in that image! :lol:
Unreadable squiggle

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Use of GPIO pins

Sun Jun 14, 2020 9:38 pm

Those colours aren't on a physical RPi3B.

There are coloured headers you can solder in to a Zero https://shop.pimoroni.com/products/colo ... io-headers but they don't match https://pinout.xyz

The 3.3V, 5V, and GND pins are not GPIOs.There are 28 usable GPIOs.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
Burngate
Posts: 6290
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Use of GPIO pins

Mon Jun 15, 2020 9:36 am

edsulst wrote:
Sun Jun 14, 2020 5:53 pm
The GPIO pins I'm using are alle the green one's as mentioned here: https://www.raspberrypi-spy.co.uk/2012/ ... tyPhoto/1/
DougieLawson wrote:
Sun Jun 14, 2020 9:38 pm
Those colours aren't on a physical RPi3B.
Do we really need to argue about where the colour is? It seems obvious to me that edsulst is referring to the colouring used by raspberry-spy.
edsulst wrote:
Sun Jun 14, 2020 7:45 pm
I did read somewhere that the yellow color pins can't be used
Since you never mentioned the yellow color I think that's right.
If you're referring to pins 27 & 28, it's best not to use those GPIOs since at boot-up, the Pi checks them for HATs, and can get its knickers twisted if something's connected to them.

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Use of GPIO pins

Mon Jun 15, 2020 9:41 am

Burngate wrote:
Mon Jun 15, 2020 9:36 am
edsulst wrote:
Sun Jun 14, 2020 5:53 pm
The GPIO pins I'm using are alle the green one's as mentioned here: https://www.raspberrypi-spy.co.uk/2012/ ... tyPhoto/1/
DougieLawson wrote:
Sun Jun 14, 2020 9:38 pm
Those colours aren't on a physical RPi3B.
Do we really need to argue about where the colour is? It seems obvious to me that edsulst is referring to the colouring used by raspberry-spy.
I didn't click that Raspberrypi-Spy URL as it includes a date of "2012/06" so I'd assumed it was for the 26 pin Raspberries.
My URL of choice for the pins is https://pinout.xyz as it has added value that each pin can be clicked for a description and there's stuff for I2C, SPI, etc. and a whole raft of HATs and pHATs on there.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

edsulst
Posts: 28
Joined: Sat Nov 16, 2019 7:39 am

Re: Use of GPIO pins

Mon Jun 15, 2020 9:57 am

Thank you all for answering to my question.
It's clear to me now that I can use more pins than I thought.


// Edwin

Return to “Beginners”