Hello,
Pi 1 model has 26 pins while Pi 3b has 40. So is it that the first 26 pins of Pi 3B correspond to the 26 pins of Pi 1?
-
- Posts: 165
- Joined: Thu Oct 26, 2017 7:23 pm
[SOLVED] Raspberry pi 1 26 pins and corresponding pins in Pi 3B
Last edited by deepakdeshp on Mon Sep 16, 2019 1:42 pm, edited 1 time in total.
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
Almost. Issuing pinout shows the differences, here place side by side using the paste command:
Physical pins 3 & 5 have different functions now.
Code: Select all
40 pin 26 pin
======================= ======================
3V3 (1) (2) 5V 3V3 (1) (2) 5V
GPIO2 (3) (4) 5V GPIO0 (3) (4) 5V
GPIO3 (5) (6) GND GPIO1 (5) (6) GND
GPIO4 (7) (8) GPIO14 GPIO4 (7) (8) GPIO14
GND (9) (10) GPIO15 GND (9) (10) GPIO15
GPIO17 (11) (12) GPIO18 GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND GPIO21 (13) (14) GND
GPIO22 (15) (16) GPIO23 GPIO22 (15) (16) GPIO23
3V3 (17) (18) GPIO24 3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND GPIO10 (19) (20) GND
GPIO9 (21) (22) GPIO25 GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8 GPIO11 (23) (24) GPIO8
GND (25) (26) GPIO7 GND (25) (26) GPIO7
GPIO0 (27) (28) GPIO1
GPIO5 (29) (30) GND
GPIO6 (31) (32) GPIO12
GPIO13 (33) (34) GND
GPIO19 (35) (36) GPIO16
GPIO26 (37) (38) GPIO20
GND (39) (40) GPIO21
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him
Pronouns: he/him
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
It depends if you pi 1B is a revision 1 or a revision 2 as several pins changed between them,
the revision 2 has the same first 26 gpio pins as the pi1B, 2B, 3B & 3B+

To figure out which you have run
which will give the following results
now if you look at the revision number which in this case is 0002 you can use this chart to figure out which revision you have

in this example I ran the command on my early pi 1B revision 1 with 256MB of ram.
if you are running raspbian jessie , stretch or buster you can also get the revision by running
which when run on the same pi 1 B as used for the above gives this result
old but useful https://www.raspberrypi-spy.co.uk/2012/ ... d-version/
the revision 2 has the same first 26 gpio pins as the pi1B, 2B, 3B & 3B+

To figure out which you have run
Code: Select all
cat /proc/cpuinfo
Code: Select all
pi@TestPi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 0002
Serial : 000000003d0740f5

in this example I ran the command on my early pi 1B revision 1 with 256MB of ram.
if you are running raspbian jessie , stretch or buster you can also get the revision by running
Code: Select all
cat /proc/device-tree/model
Code: Select all
Raspberry Pi Model B Rev 1
old but useful https://www.raspberrypi-spy.co.uk/2012/ ... d-version/
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported
The use of crystal balls & mind reading are not supported
-
- Posts: 165
- Joined: Thu Oct 26, 2017 7:23 pm
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
Thanks for the update.pcmanbob wrote: ↑Wed Aug 28, 2019 2:24 pmIt depends if you pi 1B is a revision 1 or a revision 2 as several pins changed between them,
the revision 2 has the same first 26 gpio pins as the pi1B, 2B, 3B & 3B+
To figure out which you have run
which will give the following resultsCode: Select all
cat /proc/cpuinfo
now if you look at the revision number which in this case is 0002 you can use this chart to figure out which revision you haveCode: Select all
pi@TestPi:~ $ cat /proc/cpuinfo processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2835 Revision : 0002 Serial : 000000003d0740f5
in this example I ran the command on my early pi 1B revision 1 with 256MB of ram.
if you are running raspbian jessie , stretch or buster you can also get the revision by running
which when run on the same pi 1 B as used for the above gives this resultCode: Select all
cat /proc/device-tree/model
Code: Select all
Raspberry Pi Model B Rev 1
old but useful https://www.raspberrypi-spy.co.uk/2012/ ... d-version/
-
- Posts: 165
- Joined: Thu Oct 26, 2017 7:23 pm
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
Thank you.scruss wrote: ↑Wed Aug 28, 2019 2:11 pmAlmost. Issuing pinout shows the differences, here place side by side using the paste command:Physical pins 3 & 5 have different functions now.Code: Select all
40 pin 26 pin ======================= ====================== 3V3 (1) (2) 5V 3V3 (1) (2) 5V GPIO2 (3) (4) 5V GPIO0 (3) (4) 5V GPIO3 (5) (6) GND GPIO1 (5) (6) GND GPIO4 (7) (8) GPIO14 GPIO4 (7) (8) GPIO14 GND (9) (10) GPIO15 GND (9) (10) GPIO15 GPIO17 (11) (12) GPIO18 GPIO17 (11) (12) GPIO18 GPIO27 (13) (14) GND GPIO21 (13) (14) GND GPIO22 (15) (16) GPIO23 GPIO22 (15) (16) GPIO23 3V3 (17) (18) GPIO24 3V3 (17) (18) GPIO24 GPIO10 (19) (20) GND GPIO10 (19) (20) GND GPIO9 (21) (22) GPIO25 GPIO9 (21) (22) GPIO25 GPIO11 (23) (24) GPIO8 GPIO11 (23) (24) GPIO8 GND (25) (26) GPIO7 GND (25) (26) GPIO7 GPIO0 (27) (28) GPIO1 GPIO5 (29) (30) GND GPIO6 (31) (32) GPIO12 GPIO13 (33) (34) GND GPIO19 (35) (36) GPIO16 GPIO26 (37) (38) GPIO20 GND (39) (40) GPIO21
-
- Posts: 165
- Joined: Thu Oct 26, 2017 7:23 pm
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
My model is
Code: Select all
cat /proc/device-tree/model
Raspberry Pi Model B Rev 1
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
In that case there are some differences between your gpio and that of the first 26 pins of the 40 pin gpio.deepakdeshp wrote: ↑Sat Sep 14, 2019 2:07 amMy model isCode: Select all
cat /proc/device-tree/model Raspberry Pi Model B Rev 1
you need to use this pin layout for your pi.

As pins 3,5 & 13 are different gpio numbers.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported
The use of crystal balls & mind reading are not supported
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Raspberry pi 1 26 pins and corresponding pins in Pi 3B
Take what I advise as advice not the utopian holy grail, and it is gratis !!