<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.2.0">
<drawing>
<board>
<plain>
<wire x1="0" y1="3" x2="3" y2="0" width="0" layer="20" curve="90"/>
<wire x1="3" y1="0" x2="62" y2="0" width="0" layer="20"/>
<wire x1="62" y1="0" x2="65" y2="3" width="0" layer="20" curve="90"/>
<wire x1="65" y1="3" x2="65" y2="53" width="0" layer="20"/>
<wire x1="65" y1="53" x2="62" y2="56" width="0" layer="20" curve="90"/>
<wire x1="62" y1="56" x2="3" y2="56" width="0" layer="20"/>
<wire x1="3" y1="56" x2="0" y2="53" width="0" layer="20" curve="90"/>
<wire x1="0" y1="53" x2="0" y2="37.5" width="0" layer="20"/>
<wire x1="0" y1="37.5" x2="1" y2="36.5" width="0" layer="20" curve="90"/>
<wire x1="1" y1="36.5" x2="4" y2="36.5" width="0" layer="20"/>
<wire x1="4" y1="36.5" x2="5" y2="35.5" width="0" layer="20" curve="-90"/>
<wire x1="5" y1="35.5" x2="5" y2="20.5" width="0" layer="20"/>
<wire x1="5" y1="20.5" x2="4" y2="19.5" width="0" layer="20" curve="-90"/>
<wire x1="4" y1="19.5" x2="1" y2="19.5" width="0" layer="20"/>
<wire x1="1" y1="19.5" x2="0" y2="18.5" width="0" layer="20" curve="90"/>
<wire x1="0" y1="18.5" x2="0" y2="3" width="0" layer="20"/>
<hole x="3.5" y="3.5" drill="2.8"/>
<hole x="3.5" y="52.5" drill="2.8"/>
<hole x="61.5" y="52.5" drill="2.8"/>
<hole x="61.5" y="3.5" drill="2.8"/>
<text>TOP</text>
<text>BOTTOM</text>
<text>OUTPUT 1</text>
<text>OUTPUT 2</text>
<text>OUTPUT 3</text>
<text>OUTPUT 4</text>
<text>+   -</text>
<text>+   -</text>
<text>+   -</text>
<text>+   -</text>
<text>-   +</text>
<text>-   +</text>
<text>-   +</text>
<text>-   +</text>
<text>INPUT
1</text>
<text>INPUT
2</text>
<text>INPUT
3</text>
<text>INPUT
4</text>
<text>RPI GPIO</text>
<text>IO PORT</text>
<text>TRIGGER</text>
<text>OUTPUT 1
OUTPUT 2
OUTPUT 3
OUTPUT 4
INPUT 1
INPUT 2
INPUT 3
INPUT 4
TRIGGER</text>
<text>4
5
6
26
21
22
23
24
3</text>
<text>Design by Ian Horsburgh
Layout by Matt Hoskins
RPI-HAT-GPIO v1.0
NPG 2015</text>
<text>-   +</text>
</plain>
<libraries>
<library name="FLYFISH">
<packages>
<package name="PIN_20X2">
</package>
<package name="SOIC8">
</package>
<package name="PIN_W_2">
</package>
</packages>
</library>
<library name="resistor">
<packages>
<package name="M0805">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
MELF 0.10 W</description>
</package>
<package name="C0805K">
<description>&lt;b&gt;Ceramic Chip Capacitor KEMET 0805 Reflow solder&lt;/b&gt;&lt;p&gt;
Metric Code Size 2012</description>
</package>
</packages>
</library>
<library name="optocoupler">
<description>&lt;b&gt;Opto Couplers&lt;/b&gt;&lt;p&gt;
Siemens, Hewlett-Packard, Texas Instuments, Sharp, Motorola&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="DIL06">
<description>&lt;b&gt;Dual In Line Package&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SparkFun-Connectors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find connectors and sockets- basically anything that can be plugged into or onto.&lt;br&gt;&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 
&lt;br&gt;&lt;br&gt;
You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.</description>
<packages>
<package name="SCREWTERMINAL-3.5MM-2">
</package>
<package name="1X02">
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="K1" library="FLYFISH" package="PIN_20X2" value="PIN20X2">
<attribute name="VALUE"/>
</element>
<element name="U1" library="FLYFISH" package="SOIC8" value="EEPROM24">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R1" library="resistor" package="M0805" value="3k9">
<attribute name="TOLERANCE" value="5%"/>
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="C1" library="resistor" package="C0805K" value="100nF">
<attribute name="DIELECTRIC" value="X7R"/>
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R2" library="resistor" package="M0805" value="3k9">
<attribute name="TOLERANCE" value="5%"/>
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R3" library="resistor" package="M0805" value="1k">
<attribute name="TOLERANCE" value="5%"/>
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="CFG" library="FLYFISH" package="PIN_W_2" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="OC1" library="optocoupler" package="DIL06" value=""/>
<element name="OC2" library="optocoupler" package="DIL06" value=""/>
<element name="OC3" library="optocoupler" package="DIL06" value=""/>
<element name="OC4" library="optocoupler" package="DIL06" value=""/>
<element name="JP1" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP2" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP3" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP4" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP5" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP6" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP7" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP8" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
<element name="JP9" library="SparkFun-Connectors" package="1X02" value="">
<attribute name="VALUE"/>
</element>
<element name="JP10" library="SparkFun-Connectors" package="1X02" value="">
<attribute name="VALUE"/>
</element>
<element name="JP11" library="SparkFun-Connectors" package="1X02" value="">
<attribute name="VALUE"/>
</element>
<element name="JP12" library="SparkFun-Connectors" package="1X02" value="">
<attribute name="VALUE"/>
</element>
<element name="JP13" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-2" value="">
<attribute name="PROD_ID" value="CONN-08399"/>
</element>
</elements>
<signals>
<signal name="S$28">
</signal>
<signal name="S$33">
</signal>
<signal name="S$39">
</signal>
<signal name="S$40">
</signal>
<signal name="S$60">
</signal>
<signal name="S$61">
</signal>
<signal name="S$213">
</signal>
<signal name="S$234">
</signal>
<signal name="RPI_GND">
<contactref element="U1" pad="4"/>
<contactref element="U1" pad="3"/>
<contactref element="U1" pad="1"/>
<contactref element="U1" pad="2"/>
<contactref element="CFG" pad="2"/>
<contactref element="C1" pad="2"/>
<contactref element="K1" pad="9"/>
<contactref element="K1" pad="25"/>
<contactref element="K1" pad="39"/>
<contactref element="K1" pad="6"/>
<contactref element="K1" pad="14"/>
<contactref element="K1" pad="20"/>
<contactref element="K1" pad="30"/>
<contactref element="K1" pad="34"/>
<contactref element="OC4" pad="2"/>
<contactref element="OC3" pad="2"/>
<contactref element="OC2" pad="2"/>
<contactref element="OC1" pad="2"/>
<contactref element="JP13" pad="2"/>
</signal>
<signal name="+3V3">
<contactref element="U1" pad="8"/>
<contactref element="R3" pad="2"/>
<contactref element="C1" pad="1"/>
<contactref element="R2" pad="2"/>
<contactref element="R1" pad="2"/>
<contactref element="K1" pad="1"/>
<contactref element="K1" pad="17"/>
</signal>
<signal name="N$1">
<contactref element="U1" pad="6"/>
<contactref element="R1" pad="1"/>
<contactref element="K1" pad="28"/>
</signal>
<signal name="N$2">
<contactref element="U1" pad="5"/>
<contactref element="R2" pad="1"/>
<contactref element="K1" pad="27"/>
</signal>
<signal name="N$3">
<contactref element="U1" pad="7"/>
<contactref element="R3" pad="1"/>
<contactref element="CFG" pad="1"/>
</signal>
<signal name="+5V">
<contactref element="K1" pad="2"/>
<contactref element="K1" pad="4"/>
</signal>
<signal name="N$4">
<contactref element="JP1" pad="1"/>
<contactref element="OC1" pad="5"/>
</signal>
<signal name="N$5">
<contactref element="JP2" pad="1"/>
<contactref element="OC2" pad="5"/>
</signal>
<signal name="N$6">
<contactref element="JP3" pad="1"/>
<contactref element="OC3" pad="5"/>
</signal>
<signal name="N$7">
<contactref element="JP4" pad="1"/>
<contactref element="OC4" pad="5"/>
</signal>
<signal name="EXT_GND">
<contactref element="OC2" pad="4"/>
<contactref element="JP2" pad="2"/>
<contactref element="OC4" pad="4"/>
<contactref element="OC1" pad="4"/>
<contactref element="OC3" pad="4"/>
<contactref element="JP4" pad="2"/>
<contactref element="JP1" pad="2"/>
<contactref element="JP3" pad="2"/>
<contactref element="JP9" pad="2"/>
<contactref element="JP10" pad="2"/>
<contactref element="JP11" pad="2"/>
<contactref element="JP12" pad="2"/>
<contactref element="JP5" pad="2"/>
<contactref element="JP6" pad="2"/>
<contactref element="JP7" pad="2"/>
<contactref element="JP8" pad="2"/>
</signal>
<signal name="RPI_GPIO4">
<contactref element="K1" pad="16"/>
<contactref element="OC1" pad="1"/>
</signal>
<signal name="RPI_GPIO5">
<contactref element="K1" pad="18"/>
<contactref element="OC2" pad="1"/>
</signal>
<signal name="RPI_GPIO6">
<contactref element="K1" pad="22"/>
<contactref element="OC3" pad="1"/>
</signal>
<signal name="RPI_GPIO26">
<contactref element="K1" pad="32"/>
<contactref element="OC4" pad="1"/>
</signal>
<signal name="RPI_GPIO3">
<contactref element="K1" pad="15"/>
<contactref element="JP13" pad="1"/>
</signal>
<signal name="RPI_GPIO21">
<contactref element="K1" pad="29"/>
<contactref element="JP9" pad="1"/>
<contactref element="JP5" pad="1"/>
</signal>
<signal name="RPI_GPIO22">
<contactref element="K1" pad="31"/>
<contactref element="JP10" pad="1"/>
<contactref element="JP6" pad="1"/>
</signal>
<signal name="RPI_GPIO23">
<contactref element="K1" pad="33"/>
<contactref element="JP11" pad="1"/>
<contactref element="JP7" pad="1"/>
</signal>
<signal name="RPI_GPIO24">
<contactref element="K1" pad="35"/>
<contactref element="JP12" pad="1"/>
<contactref element="JP8" pad="1"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
