了解 Raspberry Pi 的 GPIO 引脚端口

了解 Raspberry Pi 的 GPIO 引脚端口

TONYLABS 27 Jan, 2014
Share:

前言:

很多买家咨询树莓派,给小编的印象就是大多数爱好者是期望把它当作一台廉价的电脑使用,的确树莓派无可厚非是一台小型的电脑,可是他风靡全球的原因绝不仅仅在于它的经济性,更重要的是它是一台可以完全操控的电脑,那完全操控到什么程度呢? 很多人都在用运行 Windows、Macintosh 操作系统的电脑,而这些操作系统我们除了安装、卸载软件,其内核的东西,我们几乎不能修改什么,而树莓派,是完全开放式的,只要不断学习,你可以从它的"内芯"深处去改变它,控制它,下面我们举几个例子:   

  • 树莓派开机后控制 LED 灯按照特定频率闪烁
  • 树莓派获取室内温度、湿度发微博
  • 通过网络远程控制树莓派打开、关闭窗帘
  • ......

  全世界不计其数的玩家,在用树莓派做出很多意想不到的创意制作,只要你发挥想象,就可以慢慢实现,所以,小编再次说明一下,树莓派不是一台拿来上网、聊天、看视频的小电脑。  

了解 GPIO 的含义:

General Purpose Input Output (通用输入/输出)简称为GPIO,或总线扩展器,利用工业标准I2C、SMBus或SPI接口简化了I/O口的扩展。当微控制器或芯片组没有足够的I/O端口,或当系统需要采用远端串行通信或控制时,GPIO产品能够提供额外的控制和监视功能。  

Raspberry Pi 树莓派的GPIO:

在树莓派的板子上有一个排针座,2x13,共计26个引脚,定义如下:   [caption id="attachment_171" align="alignnone" width="500"]

树莓派 GPIO 功能定义图

 树莓派 GPIO 功能定义图[/caption]

Like what you're reading? Subscribe to our top stories.

We will continue to update Front; if you have any questions or suggestions, please contact us!

Follow us on Medium, Twitter, Facebook, YouTube, and Dribbble.

Image Description
Written by

Hanna Wolfe

I create advanced website builders made exclusively for web developers.

3 Comments

  • Image Description
    Dave Austin 1 day ago

    As a Special Education teacher this resonates so well with me. Fighting with gen ed teachers to flatten for the students with learning disabilities. It also confirms some things for me in my writing.

    Reply
    • Image Description
      Hanna Wolfe 1 day ago

      Love it Dave! We're all about keeping it up.

      Reply
  • Image Description
    Christina Kray 2 days ago

    Since our attention spans seem to be shrinking by the day — keeping it simple is more important than ever.

    Reply

Post a comment

Stay in the know

Get special offers on the latest developments from Front.