<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.2.0">
<drawing>
<board>
<plain>
<wire x1="0" y1="66.04" x2="0" y2="0" width="0.6096" layer="20"/>
<wire x1="0" y1="0" x2="26.67" y2="0" width="0.6096" layer="20"/>
<wire x1="26.67" y1="0" x2="26.67" y2="66.04" width="0.6096" layer="20"/>
<wire x1="26.67" y1="66.04" x2="0" y2="66.04" width="0.6096" layer="20"/>
<text>RELAY BOARD
REVISION 1.0
Brian Estrada</text>
</plain>
<libraries>
<library name="SparkFun-PowerIC">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find drivers, regulators, and amplifiers.&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; CC v3.0 Share-Alike 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="SOT223">
<description>&lt;b&gt;SOT-223&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SparkFun-Passives">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find resistors, capacitors, inductors, test points, jumper pads, etc.&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; CC v3.0 Share-Alike 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="EIA3216-KIT">
<description>&lt;h3&gt;EIA3216-KIT&lt;/h3&gt;
&lt;b&gt;Warning:&lt;/b&gt; This is the KIT version of this package. This package has longer pads to make hand soldering easier.&lt;br&gt;</description>
</package>
<package name="0805">
</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="DIP4">
<description>&lt;b&gt;DIP 4&lt;/b&gt; 300 mil&lt;p&gt;
Source: http://www.vishay.com/docs/83673/sfh618.pdf</description>
</package>
</packages>
</library>
<library name="SparkFun">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
We've spent an enormous amount of time creating and checking these footprints and parts. 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; CC v3.0 Share-Alike 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="SMA-DIODE">
<description>&lt;B&gt;Diode&lt;/B&gt;&lt;p&gt;
Basic SMA packaged diode. Good for reverse polarization protection. Common part #: MBRA140</description>
</package>
</packages>
</library>
<library name="esp8266modules">
<packages>
<package name="ESP-12-E">
<description>ESP8266 Module ESP-12-E</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; CC v3.0 Share-Alike 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="1X02_LOCK_LONGPADS">
<description>This footprint was designed to help hold the alignment of a through-hole component (i.e.  6-pin header) while soldering it into place.  
You may notice that each hole has been shifted either up or down by 0.005 of an inch from it's more standard position (which is a perfectly straight line).  
This slight alteration caused the pins (the squares in the middle) to touch the edges of the holes.  Because they are alternating, it causes a "brace" 
to hold the component in place.  0.005 has proven to be the perfect amount of "off-center" position when using our standard breakaway headers.
Although looks a little odd when you look at the bare footprint, once you have a header in there, the alteration is very hard to notice.  Also,
if you push a header all the way into place, it is covered up entirely on the bottom side.  This idea of altering the position of holes to aid alignment 
will be further integrated into the Sparkfun Library for other footprints.  It can help hold any component with 3 or more connection pins.</description>
</package>
<package name="1X03_LOCK">
</package>
</packages>
</library>
<library name="SparkFun-Electromechanical">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find anything that moves- switches, relays, buttons, potentiometers. Also, anything that goes on a board but isn't electrical in nature- screws, standoffs, etc.&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; CC v3.0 Share-Alike 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="TACTILE-PTH">
<description>&lt;b&gt;OMRON SWITCH&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SRD-05VDC-SL-C">
<packages>
<package name="SRD-05VDC-SL-C">
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="3.3V" library="SparkFun-PowerIC" package="SOT223" value=""/>
<element name="C1" library="SparkFun-Passives" package="EIA3216-KIT" value="22uF"/>
<element name="C2" library="SparkFun-Passives" package="EIA3216-KIT" value="10uF"/>
<element name="COUPLER" library="optocoupler" package="DIP4" value="SFH618A-2">
<attribute name="OC_NEWARK" value="21H7744"/>
<attribute name="MPN" value="SFH618A-2"/>
<attribute name="MF" value="VISHAY/TELEFUNKEN"/>
<attribute name="OC_FARNELL" value="6424855"/>
</element>
<element name="D1" library="SparkFun" package="SMA-DIODE" value="DIODE-SCHOTTKY_"/>
<element name="ESP_BOARD" library="esp8266modules" package="ESP-12-E" value="ESP-12-E">
<attribute name="DIMENSIONS" value="24.0 x 16.0 mm"/>
<attribute name="PITCH" value="0.078&quot; / 2 mm"/>
<attribute name="PINS" value="22"/>
</element>
<element name="EXT_SWT" library="SparkFun-Connectors" package="1X02_LOCK_LONGPADS" value=""/>
<element name="FLASH" library="SparkFun-Electromechanical" package="TACTILE-PTH" value=""/>
<element name="MAINRELAY" library="SRD-05VDC-SL-C" package="SRD-05VDC-SL-C" value="RELAYPTH"/>
<element name="PULLUP" library="SparkFun-Passives" package="0805" value="10k"/>
<element name="R1" library="SparkFun-Passives" package="0805" value="10k"/>
<element name="R2" library="SparkFun-Passives" package="0805" value="10k"/>
<element name="R3" library="SparkFun-Passives" package="0805" value="10k"/>
<element name="R4" library="SparkFun-Passives" package="0805" value="10k"/>
<element name="RESET" library="SparkFun-Electromechanical" package="TACTILE-PTH" value=""/>
<element name="SERIAL" library="SparkFun-Connectors" package="1X03_LOCK" value=""/>
<element name="VIN" library="SparkFun-Connectors" package="1X02_LOCK_LONGPADS" value=""/>
</elements>
<signals>
<signal name="INPUT">
<contactref element="MAINRELAY" pad="COIL1"/>
<contactref element="COUPLER" pad="4"/>
<contactref element="D1" pad="C"/>
</signal>
<signal name="GND">
<contactref element="COUPLER" pad="2"/>
<contactref element="3.3V" pad="1"/>
<contactref element="C1" pad="C"/>
<contactref element="C2" pad="C"/>
<contactref element="FLASH" pad="1"/>
<contactref element="RESET" pad="1"/>
<contactref element="SERIAL" pad="1"/>
<contactref element="VIN" pad="1"/>
<contactref element="ESP_BOARD" pad="GND"/>
<contactref element="R4" pad="1"/>
<contactref element="EXT_SWT" pad="1"/>
<contactref element="MAINRELAY" pad="COIL0"/>
<contactref element="D1" pad="A"/>
</signal>
<signal name="CO">
<contactref element="MAINRELAY" pad="SWCOMMON"/>
</signal>
<signal name="NO">
<contactref element="MAINRELAY" pad="SWOPEN"/>
</signal>
<signal name="NC">
<contactref element="MAINRELAY" pad="SWCLOSED"/>
</signal>
<signal name="TRIGGER">
<contactref element="COUPLER" pad="1"/>
<contactref element="ESP_BOARD" pad="GPIO14"/>
</signal>
<signal name="+3.3V">
<contactref element="3.3V" pad="4"/>
<contactref element="C2" pad="A"/>
<contactref element="ESP_BOARD" pad="VCC"/>
<contactref element="PULLUP" pad="1"/>
<contactref element="R1" pad="1"/>
<contactref element="COUPLER" pad="3"/>
</signal>
<signal name="+5V">
<contactref element="3.3V" pad="3"/>
<contactref element="C1" pad="A"/>
<contactref element="VIN" pad="2"/>
</signal>
<signal name="N$3">
<contactref element="RESET" pad="3"/>
<contactref element="R2" pad="1"/>
</signal>
<signal name="N$4">
<contactref element="FLASH" pad="3"/>
<contactref element="R3" pad="1"/>
</signal>
<signal name="FLASH">
<contactref element="R3" pad="2"/>
<contactref element="ESP_BOARD" pad="GPIO0"/>
</signal>
<signal name="RESET">
<contactref element="R2" pad="2"/>
<contactref element="ESP_BOARD" pad="RESET"/>
</signal>
<signal name="RX">
<contactref element="SERIAL" pad="2"/>
<contactref element="ESP_BOARD" pad="RX"/>
</signal>
<signal name="TX">
<contactref element="SERIAL" pad="3"/>
<contactref element="ESP_BOARD" pad="TX"/>
</signal>
<signal name="CH_PD">
<contactref element="ESP_BOARD" pad="CH_PD"/>
<contactref element="R1" pad="2"/>
</signal>
<signal name="GPIO15">
<contactref element="ESP_BOARD" pad="GPIO15"/>
<contactref element="R4" pad="2"/>
</signal>
<signal name="SWITCH">
<contactref element="ESP_BOARD" pad="GPIO12"/>
<contactref element="PULLUP" pad="2"/>
<contactref element="EXT_SWT" pad="2"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
