Raspberry Pi_Eng_02.8 GPIO


Published Book on Amazon


All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


2.8   GPIO

 

Raspberry Pi is not only able to use the resources in the system, but also has functions to communicate with various external devices and control them through the interface. It can process input or output with an external device, or adjust an external device. It is possible to implement a function of receiving various measurement values from an external sensor to judge a situation and performing appropriate processing accordingly. It is also possible to build a system that directly controls an external system by creating an Embedded Program.

 

The key device for Raspberry Pi's external interface is the GPIO (General Purpose Input Output) port. GPIO (General Purpose Input Output) refers to a general purpose input/output port that is flexible enough to be selectively set as an input or output according to the purpose of software, without fixing one connection port as an input or an output. GPIOs have ports for general purposes as well as ports for special purposes such as serial ports, SPIs, or I2C lines.

 

The Raspberry Pi can communicate with other external electronic components and circuits through the GPIO port, allowing Raspberry Pi to act as a controller in large electronic circuits. Through the GPIO port, Raspberry Pi can sense temperature, turn servo-motors, and communicate with other computing devices using a variety of protocols

 

In Raspberry Pi, the GPIO has a slightly different shape by model. Raspberry Pi 1 model A/B has 26 pins, but Raspberry Pi 1 model A+/B+, Raspberry Pi 2 model B and Raspberry Pi 3 model B provide a total of 40 pins while maintaining the previous 26 pins as the same layout.

 

For details on Raspberry Pi GPIO, please refer to the description in [Chapter 25 External Interface].