Difference between revisions of "GPIO Pinout"

From HiveTool
Jump to: navigation, search
(Resources)
(Resources)
Line 226: Line 226:
 
#[http://elinux.org/BCM2835_datasheet_errata eLinux.org BCM2835 datasheet errata]
 
#[http://elinux.org/BCM2835_datasheet_errata eLinux.org BCM2835 datasheet errata]
 
#[https://github.com/raspberrypi/hats Hardware attached on Top]
 
#[https://github.com/raspberrypi/hats Hardware attached on Top]
#[[http://wiringpi.com/pins/|WiringPi Alternate GPIO Assignments]]
+
#[http://wiringpi.com/pins/| WiringPi Alternate GPIO Assignments]

Revision as of 21:23, 28 April 2015

General Purpose Input Output (GPIO)

This page is to identify the alternate functions of the Raspberry Pi GPIO and to keep Hivetool developers from stepping on each other by reserving pins for Hivetool hardware.

Notes

  1. GPIO pins are 3.3 volt logic levels and are not tolerant of 5V levels
  2. These GPIO properties are set as a block, not per pin (GPIO pins 0-27 are in the same block).
    1. Can interrupt based on high/low/rise/fall/change.
    2. Schmitt Trigger Input (hysteresis) can be on or off,
    3. Output slew rate can be fast or limited, and
    4. Source and sink currents are configurable from 2 mA up to 16 mA.
  3. ID_SD and ID_SC PINS are reserved for ID EEPROM.
    At boot time this I2C interface will be interrogated to look for an EEPROM that identifes the attached board and allows
    automagic setup of the GPIOs (and optionally, Linux drivers).
    DO NOT USE these pins for anything other than attaching an I2C ID EEPROM. Leave unconnected if ID EEPROM not required.

Color Legend

Color Legend
3.3 VDC PowerSerial Console/PowerI2S Audio
5 VDC PowerHX711 ScaleHAT ID ROM
GroundDHT22 Temp/Hum.I2C Sensors
Unused


Light green signals labeled "Unused" are available for development. Other colors are being used or are reserved for sensor families. A rain gauge and tilt sensor need to be implemented.


GPIO ordered by Header Pins

The first 26 pins on J8 (A+ and B+ models) are the same as H1 on the A and B models.

Hivetool
Reserved for I2C Sensors
Reserved for I2C Sensors
Reserved for I2C Sensors
Reserved for DHT22,7
Reserved for I2C Sensors
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Unused
Reserved ID EEPROM
Unused
Unused
Unused
Reserved I2S
Unused
Unused
R Pi
3.3 VDC Power
GPIO 2 I2C SDA
GPIO 3 I2C SCL
GPIO 4 GPCLK0
Ground
GPIO 17
GPIO 27
GPIO 22
3.3 VDC Power
GPIO 10 SPI0 MOSI
GPIO 09 SPI0 MISO
GPIO 11 SPI0 SCLK
Ground
GPIO 0 I2C0_SDA
GPIO 5 GPCLK1
GPIO 6 GPCLK2
GPIO 13 PWM1
GPIO 19 PCM_FS
GPIO 26
Ground
J8
12
34
56
78
910
1112
1314
1516
1718
1920
2122
2324
2526
2728
2930
3132
3334
3536
3738
3940
R Pi
5 VDC Power
5 VDC Power
Ground
GPIO 14 TXD
GPIO 15 RXD
GPIO 18 PCM_CLK
Ground
GPIO 23
GPIO 24
Ground
GPIO 25
GPIO 8 SPI0_CE0
GPIO 7 SPI0_CE1
GPIO 1 I2C0_SCL
Ground
GPIO 12 PWM0
Ground
GPIO 16
GPIO 20 PCM_DIN
GPIO 21 PCM DOUT
Hivetool
Reserved Power HX711
Reserved Power
Reserved Ground
Reserved serial console
Reserved serial console
Reserved I2S
Reserved HX711
Reserved HX711
Reserved HX711
Unused
Reserved for DHT22,6
Unused
Unused
Reserved ID EEPROM
Unused
Unused
Unused
Unused
Reserved I2S
Reserved I2S



GPIO ordered by Signal Name

SignalAlt FunctionJ8H1H5
3.3 VDC Power113
3.3 VDC Power1717
5 VDC Power221
5 VDC Power44
GPIO 0I2C0_SDA27
GPIO 1I2C0_SCL28
GPIO 2I2C1 SDA33
GPIO 3I2C1 SCL55
GPIO 4GPCLK077
GPIO 5GPCLK129
GPIO 6GPCLK231
GPIO 7SPI0 CE12626
GPIO 8SPI0 CE02424
GPIO 9 SPI0 MISO2121
GPIO 10SPI0 MOSI1919
GPIO 11SPI0 SCLK2323
GPIO 12PWM032
GPIO 13PWM133
GPIO 14UART0 TXD88
GPIO 15UART0 RXD1010
GPIO 1636
GPIO 171111
GPIO 18PCM_CLK1212
GPIO 19PCM_FS35
GPIO 20PCM_DIN38
GPIO 21PCM DOUT40
GPIO 221515
GPIO 231616
GPIO 241818
GPIO 252222
GPIO 2637
GPIO 271313
GPIO 28I2C0_SDA3
GPIO 29I2C0_SCL4
GPIO 305
GPIO 316
Ground667
Ground998
Ground1414
Ground2020
Ground2525
Ground30
Ground34
Ground39

Resources

  1. eLinux.org RPi Low-level peripherals
  2. Raspberry Pi B+ Reduced Schematic
  3. eLinux.org BCM2835 GPIO functions
  4. BCM2835 Data Sheet (Manual)
  5. eLinux.org BCM2835 datasheet errata
  6. Hardware attached on Top
  7. WiringPi Alternate GPIO Assignments