<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.7.0">
<drawing>
<board>
<plain>
<wire x1="0" y1="4" x2="0" y2="46" width="0.2032" layer="20"/>
<wire x1="0" y1="46" x2="4" y2="50" width="0.2032" layer="20" curve="-90"/>
<wire x1="4" y1="50" x2="46" y2="50" width="0.2032" layer="20"/>
<wire x1="46" y1="50" x2="50" y2="46" width="0.2032" layer="20" curve="-90"/>
<wire x1="50" y1="4" x2="46" y2="0" width="0.2032" layer="20" curve="-90"/>
<wire x1="46" y1="0" x2="4" y2="0" width="0.2032" layer="20"/>
<wire x1="4" y1="0" x2="0" y2="4" width="0.2032" layer="20" curve="-90"/>
<hole x="3" y="3" drill="2.032"/>
<hole x="47" y="3" drill="2.032"/>
<hole x="47" y="47" drill="2.032"/>
<hole x="3" y="47" drill="2.032"/>
<text>Tinkerman 2017
ESPURNA-H
0.6.20170212</text>
<text>3V3</text>
<text>NO</text>
<text>NC</text>
<text>L</text>
<text>N</text>
<wire x1="5.207" y1="12.827" x2="5.969" y2="12.446" width="0.127" layer="20" curve="-46.397216"/>
<wire x1="5.969" y1="12.446" x2="15.875" y2="2.159" width="0.127" layer="20" curve="1.723313"/>
<wire x1="15.875" y1="2.159" x2="16.51" y2="2.921" width="0.127" layer="20" curve="164.392548"/>
<wire x1="2.54" y1="12.827" x2="2.54" y2="13.843" width="0.127" layer="20" curve="-180"/>
<wire x1="2.54" y1="13.843" x2="5.207" y2="13.843" width="0.127" layer="20"/>
<wire x1="5.207" y1="13.843" x2="6.35" y2="13.208" width="0.127" layer="20" curve="-43.602819"/>
<wire x1="6.35" y1="13.208" x2="16.51" y2="2.921" width="0.127" layer="20" curve="1.906086"/>
<wire x1="2.54" y1="18.415" x2="8.382" y2="18.415" width="0.127" layer="20"/>
<wire x1="2.54" y1="18.415" x2="2.54" y2="19.431" width="0.127" layer="20" curve="-180"/>
<wire x1="2.54" y1="19.431" x2="8.382" y2="19.431" width="0.127" layer="20"/>
<wire x1="2.5" y1="24" x2="8.5" y2="24" width="0.127" layer="20"/>
<wire x1="7.5" y1="25" x2="2.5" y2="25" width="0.127" layer="20"/>
<wire x1="2.5" y1="25" x2="2.5" y2="24" width="0.127" layer="20" curve="180"/>
<wire x1="19.685" y1="13.843" x2="20.701" y2="13.716" width="0.127" layer="20" curve="180"/>
<wire x1="20.701" y1="13.716" x2="20.701" y2="39.497" width="0.127" layer="20"/>
<wire x1="20.701" y1="39.497" x2="21.209" y2="40.005" width="0.127" layer="20" curve="-90"/>
<wire x1="21.209" y1="40.005" x2="29.591" y2="40.005" width="0.127" layer="20"/>
<wire x1="29.591" y1="40.005" x2="30.099" y2="40.513" width="0.127" layer="20" curve="90"/>
<wire x1="30.099" y1="40.513" x2="30.099" y2="48.514" width="0.127" layer="20"/>
<wire x1="30.099" y1="48.514" x2="28.829" y2="48.26" width="0.127" layer="20" curve="180"/>
<wire x1="28.575" y1="41.021" x2="20.193" y2="41.021" width="0.127" layer="20"/>
<wire x1="20.193" y1="41.021" x2="19.685" y2="40.513" width="0.127" layer="20" curve="73.739904"/>
<wire x1="19.685" y1="40.513" x2="19.685" y2="13.843" width="0.127" layer="20"/>
<wire x1="19.685" y1="9.779" x2="20.701" y2="9.906" width="0.127" layer="20" curve="-180"/>
<wire x1="20.701" y1="9.906" x2="20.701" y2="7.366" width="0.127" layer="20"/>
<wire x1="25.273" y1="6.858" x2="25.781" y2="6.35" width="0.127" layer="20" curve="-90"/>
<wire x1="25.781" y1="6.35" x2="25.781" y2="1.397" width="0.127" layer="20"/>
<wire x1="25.781" y1="1.397" x2="24.765" y2="1.397" width="0.127" layer="20" curve="-180"/>
<wire x1="24.257" y1="6.096" x2="20.193" y2="6.096" width="0.127" layer="20"/>
<wire x1="20.193" y1="6.096" x2="19.685" y2="6.604" width="0.127" layer="20" curve="-106.260205"/>
<wire x1="19.685" y1="9.779" x2="19.685" y2="6.604" width="0.127" layer="20"/>
<wire x1="5.207" y1="12.827" x2="2.54" y2="12.827" width="0.127" layer="20"/>
<text>DANGER
HIGH VOLTAGE</text>
<text>VARISTOR</text>
<text>FUSE</text>
<wire x1="8.382" y1="19.431" x2="8.382" y2="18.415" width="0.127" layer="20" curve="-180"/>
<wire x1="24.765" y1="1.397" x2="24.765" y2="5.588" width="0.127" layer="20"/>
<wire x1="24.765" y1="5.588" x2="24.257" y2="6.096" width="0.127" layer="20" curve="90"/>
<wire x1="25.273" y1="6.858" x2="21.209" y2="6.858" width="0.127" layer="20"/>
<wire x1="21.209" y1="6.858" x2="20.701" y2="7.366" width="0.127" layer="20" curve="-90"/>
<wire x1="28.829" y1="48.26" x2="28.829" y2="41.275" width="0.127" layer="20"/>
<wire x1="28.829" y1="41.275" x2="28.575" y2="41.021" width="0.127" layer="20" curve="-90"/>
<text>DANGER
HIGH VOLTAGE</text>
<wire x1="8.5" y1="27" x2="17.23" y2="27" width="0.127" layer="20"/>
<wire x1="17.23" y1="27" x2="17.73" y2="26.5" width="0.127" layer="20" curve="-90"/>
<wire x1="17.73" y1="26.5" x2="17.23" y2="26" width="0.127" layer="20" curve="-90"/>
<wire x1="17.23" y1="26" x2="9.5" y2="26" width="0.127" layer="20"/>
<wire x1="9.5" y1="26" x2="9" y2="25.5" width="0.127" layer="20" curve="90"/>
<wire x1="9" y1="25.5" x2="9" y2="24.5" width="0.127" layer="20"/>
<wire x1="9" y1="24.5" x2="8.5" y2="24" width="0.127" layer="20" curve="-90"/>
<wire x1="7.5" y1="25" x2="8" y2="25.5" width="0.127" layer="20" curve="90"/>
<wire x1="8" y1="25.5" x2="8" y2="26.5" width="0.127" layer="20"/>
<wire x1="8" y1="26.5" x2="8.5" y2="27" width="0.127" layer="20" curve="-90"/>
<text>N</text>
<wire x1="50" y1="46" x2="50" y2="21" width="0.2032" layer="20"/>
<wire x1="50" y1="21" x2="44" y2="21" width="0.2032" layer="20"/>
<wire x1="44" y1="21" x2="44" y2="5" width="0.2032" layer="20"/>
<wire x1="44" y1="5" x2="50" y2="5" width="0.2032" layer="20"/>
<wire x1="50" y1="5" x2="50" y2="4" width="0.2032" layer="20"/>
<text>GND</text>
<text>IO4</text>
<text>LED</text>
<text>GND</text>
<text>TXD</text>
<text>IO0</text>
<text>RXD</text>
<text>GND</text>
<text>5V</text>
<text>IO0</text>
<text>TXD</text>
<text>RXD</text>
<text>GND</text>
<text>5V</text>
<text>GND</text>
<text>LED</text>
<text>IO4</text>
<text>3V3</text>
<text>GND</text>
</plain>
<libraries>
<library name="xose">
<packages>
<package name="0805">
</package>
<package name="TACTILE-BUTTON-SMD">
</package>
<package name="ESP-12-SMD">
</package>
<package name="SOT223">
<description>&lt;b&gt;Smal Outline Transistor&lt;/b&gt;</description>
</package>
<package name="SOT23">
<description>&lt;b&gt;SOT-23&lt;/b&gt;</description>
</package>
<package name="SCREWTERMINAL-200MIL-2">
</package>
<package name="FUSE_5MM">
</package>
<package name="SOP8">
</package>
<package name="1206">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;</description>
</package>
<package name="2512">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;</description>
</package>
<package name="1X05">
</package>
<package name="SOD80">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;</description>
</package>
<package name="SCREWTERMINAL-200MIL-3">
</package>
</packages>
</library>
<library name="Spark">
<packages>
<package name="SRD-5VDC-SL-C">
</package>
</packages>
</library>
<library name="captain-slow">
<description>Library provided by http://captain-slow.dk/&lt;br&gt;&lt;br&gt;
Find the newest version at https://github.com/blddk/EagleLbr/</description>
<packages>
<package name="HLK-PM01">
</package>
</packages>
</library>
<library name="SparkFun-DiscreteSemi">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find discrete semiconductors- transistors, diodes, TRIACs, optoisolators, 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; 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="V18ZA2P">
</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="SMD4-7">
<description>&lt;b&gt;SMD 4&lt;/b&gt; Option 7&lt;p&gt;
Source:&lt;a href=" http://www.vishay.com/docs/83673/sfh618.pdf"&gt; Data sheet &lt;/a&gt;</description>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="IC1" library="xose" package="SOT223" value="AMS1117-3.3"/>
<element name="R26" library="xose" package="0805" value="10K"/>
<element name="RESET" library="xose" package="TACTILE-BUTTON-SMD" value="TACTILE_BUTTON_SMD"/>
<element name="C11" library="xose" package="0805" value="10uF"/>
<element name="C12" library="xose" package="0805" value="10uF"/>
<element name="R21" library="xose" package="0805" value="10K"/>
<element name="R24" library="xose" package="0805" value="10K"/>
<element name="C22" library="xose" package="0805" value="100nF"/>
<element name="R25" library="xose" package="0805" value="10K"/>
<element name="C21" library="xose" package="0805" value="100nF"/>
<element name="IC2" library="xose" package="ESP-12-SMD" value="ESP-12-SMD"/>
<element name="RLY1" library="Spark" package="SRD-5VDC-SL-C" value="SRD-05VDC-SL-C"/>
<element name="Q3" library="xose" package="SOT23" value=""/>
<element name="R32" library="xose" package="0805" value="1K"/>
<element name="U$1" library="captain-slow" package="HLK-PM01" value="MAINS_CONVERTERS"/>
<element name="VARISTOR" library="SparkFun-DiscreteSemi" package="V18ZA2P" value="V18ZA2P"/>
<element name="FUSE" library="xose" package="FUSE_5MM" value="FUSEX20MM"/>
<element name="JP3" library="xose" package="SCREWTERMINAL-200MIL-2" value=""/>
<element name="IC4" library="xose" package="SOP8" value="HLW8012"/>
<element name="Q4" library="xose" package="SOT23" value=""/>
<element name="R49" library="xose" package="0805" value="10K"/>
<element name="R45" library="xose" package="0805" value="10K"/>
<element name="R47" library="xose" package="0805" value="10K"/>
<element name="R48" library="xose" package="0805" value="15K"/>
<element name="R46" library="xose" package="0805" value="15K"/>
<element name="R1" library="xose" package="2512" value="0.001R"/>
<element name="R44" library="xose" package="0805" value="1K"/>
<element name="R43" library="xose" package="0805" value="1K"/>
<element name="C42" library="xose" package="0805" value="33nF"/>
<element name="C41" library="xose" package="0805" value="33nF"/>
<element name="R42" library="xose" package="1206" value="0"/>
<element name="R51" library="xose" package="0805" value="470K"/>
<element name="R52" library="xose" package="0805" value="470K"/>
<element name="R53" library="xose" package="0805" value="470K"/>
<element name="R54" library="xose" package="0805" value="470K"/>
<element name="R55" library="xose" package="0805" value="470K"/>
<element name="R50" library="xose" package="0805" value="1K"/>
<element name="C45" library="xose" package="0805" value="100nF"/>
<element name="C44" library="xose" package="0805" value="1uF"/>
<element name="C43" library="xose" package="0805" value="100nF"/>
<element name="R23" library="xose" package="0805" value="10K"/>
<element name="JP22" library="xose" package="1X05" value=""/>
<element name="JP21" library="xose" package="1X05" value=""/>
<element name="Q2" library="xose" package="SOT23" value=""/>
<element name="R28" library="xose" package="0805" value="300"/>
<element name="R22" library="xose" package="0805" value="10K"/>
<element name="D3" library="xose" package="SOD80" value="1N4148"/>
<element name="R27" library="xose" package="0805" value="22"/>
<element name="JP1" library="xose" package="SCREWTERMINAL-200MIL-3" value=""/>
<element name="IC3" library="optocoupler" package="SMD4-7" value="PC817CS">
<attribute name="OC_FARNELL" value="1469583"/>
<attribute name="MPN" value="SFH6186-2"/>
<attribute name="OC_NEWARK" value="58K2210"/>
<attribute name="MF" value="VISHAY/TELEFUNKEN"/>
</element>
<element name="R31" library="xose" package="0805" value="220"/>
</elements>
<signals>
<signal name="GND">
<contactref element="RESET" pad="2"/>
<contactref element="RESET" pad="1"/>
<contactref element="IC1" pad="1"/>
<contactref element="C12" pad="2"/>
<contactref element="IC2" pad="GND"/>
<contactref element="C21" pad="2"/>
<contactref element="U$1" pad="VO-"/>
<contactref element="C11" pad="1"/>
<contactref element="IC4" pad="5"/>
<contactref element="Q4" pad="2"/>
<contactref element="R48" pad="1"/>
<contactref element="R46" pad="1"/>
<contactref element="R50" pad="1"/>
<contactref element="C41" pad="1"/>
<contactref element="C42" pad="1"/>
<contactref element="R42" pad="1"/>
<contactref element="C45" pad="1"/>
<contactref element="C43" pad="1"/>
<contactref element="C44" pad="1"/>
<contactref element="JP21" pad="4"/>
<contactref element="JP22" pad="1"/>
<contactref element="JP22" pad="5"/>
<contactref element="Q3" pad="2"/>
<contactref element="R25" pad="1"/>
<contactref element="C22" pad="2"/>
</signal>
<signal name="RESET">
<contactref element="IC2" pad="RESET"/>
<contactref element="RESET" pad="3"/>
<contactref element="RESET" pad="4"/>
<contactref element="C22" pad="1"/>
<contactref element="R26" pad="1"/>
</signal>
<signal name="3V3">
<contactref element="R24" pad="1"/>
<contactref element="IC1" pad="4"/>
<contactref element="C12" pad="1"/>
<contactref element="R21" pad="1"/>
<contactref element="C21" pad="1"/>
<contactref element="IC2" pad="VCC"/>
<contactref element="R23" pad="1"/>
<contactref element="JP22" pad="4"/>
<contactref element="R22" pad="1"/>
<contactref element="IC3" pad="1"/>
<contactref element="R26" pad="2"/>
</signal>
<signal name="GPIO0">
<contactref element="JP21" pad="1"/>
<contactref element="IC2" pad="GPIO0"/>
<contactref element="R23" pad="2"/>
</signal>
<signal name="TXD">
<contactref element="IC2" pad="TX"/>
<contactref element="JP21" pad="2"/>
</signal>
<signal name="RXD">
<contactref element="IC2" pad="RX"/>
<contactref element="JP21" pad="3"/>
</signal>
<signal name="5V">
<contactref element="IC1" pad="3"/>
<contactref element="U$1" pad="VO+"/>
<contactref element="C11" pad="2"/>
<contactref element="IC4" pad="1"/>
<contactref element="R49" pad="2"/>
<contactref element="C44" pad="2"/>
<contactref element="C43" pad="2"/>
<contactref element="JP21" pad="5"/>
<contactref element="RLY1" pad="COIL1"/>
<contactref element="D3" pad="2"/>
<contactref element="IC3" pad="4"/>
<contactref element="R28" pad="2"/>
</signal>
<signal name="CH_PD">
<contactref element="IC2" pad="CH_PD"/>
<contactref element="R21" pad="2"/>
</signal>
<signal name="N$2">
</signal>
<signal name="NC">
<contactref element="RLY1" pad="CLOSED"/>
<contactref element="JP3" pad="2"/>
</signal>
<signal name="NO">
<contactref element="RLY1" pad="OPEN"/>
<contactref element="JP3" pad="1"/>
</signal>
<signal name="GPIO5">
<contactref element="IC2" pad="GPIO5"/>
<contactref element="R27" pad="2"/>
</signal>
<signal name="N$8">
<contactref element="FUSE" pad="3"/>
<contactref element="VARISTOR" pad="P$2"/>
<contactref element="U$1" pad="AC_L"/>
</signal>
<signal name="NEUTRAL">
<contactref element="U$1" pad="AC_N"/>
<contactref element="VARISTOR" pad="P$1"/>
<contactref element="R51" pad="1"/>
<contactref element="JP1" pad="3"/>
<contactref element="JP1" pad="2"/>
</signal>
<signal name="GPIO4">
<contactref element="IC2" pad="GPIO4"/>
<contactref element="R22" pad="2"/>
<contactref element="JP22" pad="3"/>
</signal>
<signal name="GPIO12">
<contactref element="IC2" pad="GPIO12"/>
<contactref element="R31" pad="2"/>
</signal>
<signal name="A0">
<contactref element="IC2" pad="ADC"/>
</signal>
<signal name="N$10">
<contactref element="Q4" pad="3"/>
<contactref element="R49" pad="1"/>
<contactref element="IC4" pad="8"/>
</signal>
<signal name="N$11">
<contactref element="IC4" pad="7"/>
<contactref element="R45" pad="2"/>
</signal>
<signal name="N$13">
<contactref element="IC4" pad="6"/>
<contactref element="R47" pad="2"/>
</signal>
<signal name="GPIO13">
<contactref element="R45" pad="1"/>
<contactref element="R46" pad="2"/>
<contactref element="IC2" pad="GPIO13"/>
</signal>
<signal name="GPIO14">
<contactref element="R47" pad="1"/>
<contactref element="R48" pad="2"/>
<contactref element="IC2" pad="GPIO14"/>
</signal>
<signal name="LINE2">
<contactref element="RLY1" pad="COMMON"/>
<contactref element="R44" pad="2"/>
<contactref element="R42" pad="2"/>
<contactref element="R1" pad="1"/>
</signal>
<signal name="LINE1">
<contactref element="R43" pad="2"/>
<contactref element="JP1" pad="1"/>
<contactref element="FUSE" pad="1"/>
<contactref element="R1" pad="2"/>
</signal>
<signal name="N$12">
<contactref element="R43" pad="1"/>
<contactref element="C41" pad="2"/>
<contactref element="IC4" pad="2"/>
</signal>
<signal name="N$14">
<contactref element="R44" pad="1"/>
<contactref element="C42" pad="2"/>
<contactref element="IC4" pad="3"/>
</signal>
<signal name="V2P">
<contactref element="IC4" pad="4"/>
<contactref element="C45" pad="2"/>
<contactref element="R50" pad="2"/>
<contactref element="R55" pad="2"/>
</signal>
<signal name="N$16">
<contactref element="R55" pad="1"/>
<contactref element="R54" pad="1"/>
</signal>
<signal name="N$17">
<contactref element="R54" pad="2"/>
<contactref element="R53" pad="2"/>
</signal>
<signal name="N$18">
<contactref element="R53" pad="1"/>
<contactref element="R52" pad="1"/>
</signal>
<signal name="N$19">
<contactref element="R52" pad="2"/>
<contactref element="R51" pad="2"/>
</signal>
<signal name="GPIO2">
<contactref element="IC2" pad="GPIO2"/>
<contactref element="R24" pad="2"/>
<contactref element="Q4" pad="1"/>
</signal>
<signal name="GPIO16">
<contactref element="IC2" pad="GPIO16"/>
</signal>
<signal name="LED">
<contactref element="JP22" pad="2"/>
<contactref element="Q2" pad="2"/>
</signal>
<signal name="N$4">
<contactref element="Q3" pad="3"/>
<contactref element="RLY1" pad="COIL2"/>
<contactref element="D3" pad="1"/>
</signal>
<signal name="N$3">
<contactref element="Q2" pad="1"/>
<contactref element="R27" pad="1"/>
</signal>
<signal name="N$15">
<contactref element="R31" pad="1"/>
<contactref element="IC3" pad="2"/>
</signal>
<signal name="N$1">
<contactref element="Q2" pad="3"/>
<contactref element="R28" pad="1"/>
</signal>
<signal name="GPIO15">
<contactref element="IC2" pad="GPIO15"/>
<contactref element="R25" pad="2"/>
</signal>
<signal name="N$5">
<contactref element="Q3" pad="1"/>
<contactref element="R32" pad="2"/>
</signal>
<signal name="N$6">
<contactref element="IC3" pad="3"/>
<contactref element="R32" pad="1"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
