官术网_书友最值得收藏!

Raspberry Pi's GPIO

The Raspberry Pi Zero comes with a 40-pin GPIO header. Out of these 40 pins, we can use 26 pins either to read inputs (from sensors) or control outputs. The other pins are power supply pins (5V, 3.3V, and Ground pins):

Raspberry Pi Zero GPIO mapping (source: https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/README.md)

We can use up to 26 pins of the Raspberry Pi's GPIO to interface appliances and control them. But, there are certain pins that have an alternative function, which will be discussed in the later chapters.

The earlier image shows the mapping of the Raspberry Pi's GPIO pins. The numbers in the circle correspond to the pin numbers on the Raspberry Pi's processor. For example, GPIO pin 2 (second pin from the left on the bottom row) corresponds to the GPIO pin 2 on the Raspberry Pi's processor and not the physical pin location on the GPIO header.

In the beginning, it might be confusing to try and understand the pin mapping. Keep a GPIO pin handout (available for download along with this chapter) for your reference. It takes some time to get used to the GPIO pin mapping of the Raspberry Pi Zero.

The Raspberry Pi Zero's GPIO pins are 3.3V tolerant, that is, if a voltage greater than 3.3V is applied to the pin, it may permanently damage the pin. When set to high, the pins are set to 3.3V and 0V when the pins are set to low.

主站蜘蛛池模板: 乌兰浩特市| 商水县| 东城区| 丹江口市| 柳州市| 龙胜| 达拉特旗| 稷山县| 保定市| 宣威市| 大新县| 湛江市| 南乐县| 星子县| 文山县| 海口市| 诸暨市| 从化市| 监利县| 绩溪县| 大石桥市| 长葛市| 青州市| 项城市| 红桥区| 南和县| 泉州市| 永顺县| 洪湖市| 九龙坡区| 鲁山县| 刚察县| 芜湖县| 龙山县| 临邑县| 南乐县| 安阳市| 峨眉山市| 荥阳市| 友谊县| 双辽市|