Raspberry_Pi_Education_Manual

Notes:

GPIO board pins

There are 17 pins available to operate in GPIO mode, configurable as either inputs or outputs. They carry just one bit of digital data.

High = 3.3V Low = 0V

Board pin

BCM GPIO number

Board pin

BCM GPIO number

3* 5*

0 1 4

16 18 19 21 22 23 24 26

23 24 10

7 8

14 15 17 18 21 22

9

10 11 12 13 15

25 11

8 7

* Note that these pins have a 1.8k pull-up resistor on the Raspberry Pi board.

Inter-Integrated Circuit (I²C) I²C is an interface on which you can connect multiple I²C slave devices. The Raspberry Pi acts as the master on the bus.

Board pin BCM GPIO number Function Description 3* 0 SDA Data 5* 1 SCL Clock

Serial Peripheral Interface (SPI) SPI is an interface on which you can connect multiple SPI slave devices. The Raspberry Pi can only act as the master on the bus.

There are five pins available to connect devices to the Raspberry Pi using SPI:

Board pin BCM GPIO number Function Description 19 10 MOSI

Master Out, Slave In Master In, Slave Out

21 23 24 26

9

MISO SCLK

11

Serial Clock

8 7

CE0 CE1

Channel Enable 0. Also known as Slave Select (SS) Channel Enable 1. Also known as Slave Select (SS)

Universal Asynchronous Receiver/Transmitter (UART) The UART is a serial bus connection. Note that these pins run at 3.3V and the RS232 specification is for 12V. If you connect this to a RS232 serial device, you could potentially damage your Raspberry Pi. Please be careful!

Tip...

Please be careful with the UART connection! If you use too much current then you could

Board pin BCM GPIO number Function Description 8 14 TX Transmit 10 15 RX Receive

easily break something!

Human-computer interfacing

130

Made with FlippingBook flipbook maker