首页 > 器件类别 > 开发板/开发套件/开发工具

RASPIO-005

RASPIO PRO HAT PROTECTED POR

器件类别:开发板/开发套件/开发工具   

厂商名称:Pimoroni_Ltd

下载文档
器件参数
参数名称
属性值
平台
Raspberry Pi
类型
接口
功能
GPIO
内容
文档预览
GPIO Zero
Programming
With
by Alex Eames
Introduction
Protected Ports Perfectly Positioned
The RasPiO
®1
Pro Hat was developed out of the perceived need for a
HAT which puts the
Raspberry Pi's GPIO ports in numerical order
and
clearly labelled. You don't have to count pins or wonder which port
you're connecting to. Each port has a female socket to plug your wires
or components into. The ports are arranged, along with plenty of
power and GND sockets, around a 72-point breadboard.
If you want to do some electronics, it's made a lot easier for you. LEDs
need no current-limiting resistors
because they are already built-in.
Pro Hat also has a
protection circuit on each GPIO port,
which means
you won't damage your Pi's ports by wiring something up incorrectly.
(But it is still possible to cause damage by directly shorting 3V3 or 5V
to GND.)
Additionally, if you want to bypass the 330 Ohm resistor on a GPIO
port, you can connect directly to the unprotected side where all the
ports
2
are broken out as through-holes. This is particularly useful for
buzzers, which usually require slightly over the 10mA limit imposed by
the resistors.
Ben Nuttall and Dave Jones have created GPIO Zero as the ideal way
into Python GPIO programming. Using it with the Pro HAT means there
is
nothing to install
before you can start playing.
Also, by keeping the board inexpensive, I hope it's realistic for
individuals, schools and jams to be able to get hold of some and
discover the joys of controlling the world with the Raspberry Pi and
GPIO Zero.
1
2
RasPiO is a trademark of Alex Eames. Raspberry Pi is a trademark of the Raspberry Pi Foundation
Apart from GPIO26, which is used for the HAT EEPROM
v0.1
© Alex Eames 2016
GPIO Zero Programming With
RasPiO Pro Hat
2 of 24
Pro Hat Instructions
The RasPiO Pro Hat uses the BCM GPIO port numbering scheme. This
is a perfect match for GPIO Zero.
Hardware Technical Overview
This page is mainly for the technically minded. If you just want to get on
with experimenting, you can skip to the next section.
Port Protection
The port protection is via a 3V3 Zener diode and 330 Ohm resistor on
each port. The Zener diode clips over-voltage down to a safe 3V3. The
330 Ohm resistor limits the current into or out of a port to 10 mA. This
is enough to prevent port damage in most situations.
Schematic of port protection circuit
Hardware Pull-ups
GPIOs 2, 3 and 26 all have hardware pull-ups. GPIOs 2 & 3 (the i
2
c
ports) have 2k pull-up resistors on them. GPIO 26 on the Pro Hat is also
connected to the EEPROM write-protect pin, which has a 1k pull-up.
This means that the default state for these pins is HIGH unless brought
LOW in software. So if you connect an LED to any of these ports it will
GPIO Zero Programming With
RasPiO Pro Hat
v0.1
© Alex Eames 2016
3 of 24
be (dimly) lit by default.
SPI Limitations
I've found that SPI devices (e.g. MCP3008) work fine, even through the
protected ports. In Beta-testing, it was discovered that some high-
speed SPI devices, like the PiTFT and other small SPI LCD colour
screens do not play nicely with the protection circuitry. This is not seen
as much of a problem as it falls outside the expected use of the Pro
Hat. But that's what Beta testing is for. Thanks
Ton van Overbeek
for
discovering that one.
If SPI is enabled on the Pi, the default state is HIGH for GPIOs 7 & 8
(CE0 & CE1). LEDs connected to these ports will be lit unless brought
LOW in software.
GPIO Zero Programming With
RasPiO Pro Hat
v0.1
© Alex Eames 2016
4 of 24
Know Your RasPiO Pro Hat
The RasPiO Pro Hat has been designed to fit any 40-pin consumer
model of Raspberry Pi and make it as easy as possible for people to get
into GPIO Zero programming on the Pi.
Anatomy of RasPiO Pro Hat
The RasPiO Pro Hat has female header sockets to plug in wires and
components. In the wiring diagrams we'll remove these to make things
clearer.
Breadboards give an easy
way to make connections.
The five points in each row
are connected to each other.
But each of the rows
(a, b, c) are completely
separate from each other.
GPIO Zero Programming With
RasPiO Pro Hat
v0.1
© Alex Eames 2016
5 of 24
查看更多>
别让等效串联电阻(ESR)浪费电能并损耗电容器
分享一篇国外刊登在EDN美国网站的文章,仅供大家学习。 ? 记得还在学校时,我们从电气工程...
电容器 TI技术论坛
MSP430
求:MSP430F2418最小系统 MSP430 ...
TY天网 微控制器 MCU
DM642图像处理程序的主要结构
直接从图像处理这块进行学习不是特别适应,以前做单片机时由于单片机的片内资源不是特别多,所以对片内...
Aguilera DSP 与 ARM 处理器
《Rust实战》学习for循环
for 循环:迭代的中心支柱 在流程控制中首先介绍了for,因此,在rust中,应该for是最常用...
lugl4313820 编程基础
LPC1788 的LCD 为寄存器什么不能读写
请教高手,帮忙看看问题:自己做的LPC1788FBD208 板子,使用NXP 的 LCD_Demo ...
wanta.nie NXP MCU
希望厂家出厂就是这款
空调罩子的创意,不得不服 哈哈哈 希望厂家出厂就是这款 111111 等要拿下来洗的时候,就会...
吾妻思萌 创意市集
热门器件
热门资源推荐
器件捷径:
E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF EG EH EI EJ EK EL EM EN EO EP EQ ER ES ET EU EV EW EX EY EZ F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF FG FH FI FJ FK FL FM FN FO FP FQ FR FS FT FU FV FW FX FY FZ G0 G1 G2 G3 G4 G5 G6 G7 G8 G9 GA GB GC GD GE GF GG GH GI GJ GK GL GM GN GO GP GQ GR GS GT GU GV GW GX GZ H0 H1 H2 H3 H4 H5 H6 H7 H8 HA HB HC HD HE HF HG HH HI HJ HK HL HM HN HO HP HQ HR HS HT HU HV HW HX HY HZ I1 I2 I3 I4 I5 I6 I7 IA IB IC ID IE IF IG IH II IK IL IM IN IO IP IQ IR IS IT IU IV IW IX J0 J1 J2 J6 J7 JA JB JC JD JE JF JG JH JJ JK JL JM JN JP JQ JR JS JT JV JW JX JZ K0 K1 K2 K3 K4 K5 K6 K7 K8 K9 KA KB KC KD KE KF KG KH KI KJ KK KL KM KN KO KP KQ KR KS KT KU KV KW KX KY KZ
需要登录后才可以下载。
登录取消