<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="9.6.0">
<drawing>
<board>
<plain>
<wire x1="0" y1="0" x2="92.456" y2="0" width="0" layer="20"/>
<wire x1="92.456" y1="0" x2="92.456" y2="68.58" width="0" layer="20"/>
<wire x1="92.456" y1="68.58" x2="0" y2="68.58" width="0" layer="20"/>
<wire x1="0" y1="68.58" x2="0" y2="0" width="0" layer="20"/>
<hole x="3.302" y="3.302" drill="3.048"/>
<hole x="89.154" y="3.302" drill="3.048"/>
<text>L</text>
<text>N</text>
<text>110V~230V</text>
<text>10A MAX</text>
<text>GND</text>
<text>IN0</text>
<text>IN1</text>
<text>IN2</text>
<text>IN3</text>
<text>3V3</text>
<text>L</text>
<text>L</text>
<text>L</text>
<text>L</text>
<text>NO</text>
<text>NO</text>
<text>NO</text>
<text>NO</text>
<text>NC</text>
<text>NC</text>
<text>NC</text>
<text>NC</text>
<text>PORT3</text>
<text>PORT2</text>
<text>PORT1</text>
<text>PORT0</text>
<hole x="3.302" y="65.278" drill="3.048"/>
<hole x="89.154" y="65.278" drill="3.048"/>
<text>HLK-5M05</text>
<text>AM1117
3.3V</text>
<text>ULN2003A</text>
<text>http://github.com/pimvanpelt/
4 Port Relay Board
version 1.0</text>
<text>C1</text>
<text>C2</text>
</plain>
<libraries>
<library name="SparkFun-Connectors">
<description>&lt;h3&gt;SparkFun Connectors&lt;/h3&gt;
This library contains electrically-functional connectors. 
&lt;br&gt;
&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is &lt;b&gt; the end user's responsibility&lt;/b&gt; to ensure correctness and suitablity for a given componet or application. 
&lt;br&gt;
&lt;br&gt;If you enjoy using this library, please buy one of our products at &lt;a href=" www.sparkfun.com"&gt;SparkFun.com&lt;/a&gt;.
&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="1X02">
<description>&lt;h3&gt;Plated Through Hole&lt;/h3&gt;
&lt;p&gt;Specifications:
&lt;ul&gt;&lt;li&gt;Pin count:2&lt;/li&gt;
&lt;li&gt;Pin pitch:0.1"&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;
&lt;p&gt;Example device(s):
&lt;ul&gt;&lt;li&gt;CONN_02&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description>
</package>
<package name="1X06">
<description>&lt;h3&gt;Plated Through Hole - 6 Pin&lt;/h3&gt;
&lt;p&gt;Specifications:
&lt;ul&gt;&lt;li&gt;Pin count:6&lt;/li&gt;
&lt;li&gt;Pin pitch:0.1"&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;
&lt;p&gt;Example device(s):
&lt;ul&gt;&lt;li&gt;CONN_06&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description>
</package>
<package name="SCREWTERMINAL-3.5MM-3">
<description>&lt;h3&gt;Screw Terminal  3.5mm Pitch -3 Pin PTH&lt;/h3&gt;
&lt;p&gt;Specifications:
&lt;ul&gt;&lt;li&gt;Pin count: 3&lt;/li&gt;
&lt;li&gt;Pin pitch: 3.5mm/138mil&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=”https://www.sparkfun.com/datasheets/Prototyping/Screw-Terminal-3.5mm.pdf”&gt;Datasheet referenced for footprint&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example device(s):
&lt;ul&gt;&lt;li&gt;CONN_03&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description>
</package>
</packages>
</library>
<library name="HLK-5M05">
<packages>
<package name="CONV_HLK-5M05">
</package>
</packages>
</library>
<library name="varistor">
<description>&lt;b&gt;Varistors/Thermistors&lt;/b&gt;&lt;p&gt;
Block, Siemens and generic&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="S10K11">
<description>&lt;b&gt;VARISTOR&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="fuses">
<description>&lt;b&gt;Fuses and Fuse Holders&lt;/b&gt;&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="SH23,5A">
<description>&lt;b&gt;FUSE HOLDER&lt;/b&gt;&lt;p&gt; grid 23,5 mm, isolated cap&lt;p&gt; Ordered from Banggood (pim@ipng.nl)</description>
</package>
</packages>
</library>
<library name="ULN2003ADR">
<packages>
<package name="SOIC127P600X175-16N">
</package>
</packages>
</library>
<library name="SparkFun-IC-Power">
<description>&lt;h3&gt;SparkFun Power Driver and Management ICs&lt;/h3&gt;
In this library you'll find anything that has to do with power delivery, or making power supplies.
&lt;p&gt;Contents:
&lt;ul&gt;&lt;li&gt;LDOs&lt;/li&gt;
&lt;li&gt;Boost/Buck controllers&lt;/li&gt;
&lt;li&gt;Charge pump controllers&lt;/li&gt;
&lt;li&gt;Power sequencers&lt;/li&gt;
&lt;li&gt;Power switches&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;
&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is &lt;b&gt; the end user's responsibility&lt;/b&gt; to ensure correctness and suitablity for a given componet or application. 
&lt;br&gt;
&lt;br&gt;If you enjoy using this library, please buy one of our products at &lt;a href=" www.sparkfun.com"&gt;SparkFun.com&lt;/a&gt;.
&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="SOT223">
<description>&lt;b&gt;SOT-223&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SparkFun-Retired">
<description>&lt;h3&gt;SparkFun Electronics' Retired foot prints&lt;/h3&gt;
In this library you'll find all manner of retired footprints for resistors, capacitors, board names, ICs, etc., that are &lt;b&gt; no longer used&lt;/b&gt; in our catalog.
&lt;br&gt;
&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is &lt;b&gt; the end user's responsibility&lt;/b&gt; to ensure correctness and suitablity for a given componet or application. 
&lt;br&gt;
&lt;br&gt;If you enjoy using this library, please buy one of our products at &lt;a href=" www.sparkfun.com"&gt;SparkFun.com&lt;/a&gt;.
&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="EIA3216">
</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="J1" library="SparkFun-Connectors" package="1X02" value="">
<attribute name="VALUE"/>
</element>
<element name="J2" library="SparkFun-Connectors" package="1X02" value="">
<attribute name="VALUE"/>
</element>
<element name="PS1" library="HLK-5M05" package="CONV_HLK-5M05" value="HLK-5M05">
<attribute name="AVAILABILITY" value="Unavailable"/>
<attribute name="DESCRIPTION" value=" "/>
<attribute name="MF" value="Hi-link"/>
<attribute name="MP" value="HLK-5M05"/>
<attribute name="PACKAGE" value="Package Analog Devices"/>
<attribute name="PRICE" value="None"/>
</element>
<element name="R1" library="varistor" package="S10K11" value="S10K11">
<attribute name="NAME"/>
<attribute name="POPULARITY" value="0"/>
<attribute name="VALUE"/>
</element>
<element name="U$1" library="fuses" package="SH23,5A" value="SH23,5A"/>
<element name="U1" library="ULN2003ADR" package="SOIC127P600X175-16N" value="ULN2003ADR">
<attribute name="DESCRIPTION" value=" Bipolar _BJT_ Transistor Array 7 NPN Darlington 50V 500mA Surface Mount 16-SOIC "/>
<attribute name="DIGI-KEY_PART_NUMBER" value="296-1368-1-ND"/>
<attribute name="DIGI-KEY_PURCHASE_URL" value="https://www.digikey.nl/product-detail/en/texas-instruments/ULN2003ADR/296-1368-1-ND/404968?utm_source=snapeda&amp;utm_medium=aggregator&amp;utm_campaign=symbol"/>
<attribute name="MF" value="Texas Instruments"/>
<attribute name="MP" value="ULN2003ADR"/>
<attribute name="PACKAGE" value="SOIC-16 STMicroelectronics"/>
</element>
<element name="J3" library="SparkFun-Connectors" package="1X06" value="">
<attribute name="PROD_ID" value="CONN-08437"/>
<attribute name="VALUE"/>
</element>
<element name="U$2" library="SparkFun-IC-Power" package="SOT223" value="V_REG_LD1117VXXLD1117-SMD">
<attribute name="PROD_ID" value="VREG-13917"/>
</element>
<element name="C1" library="SparkFun-Retired" package="EIA3216" value="10uF">
<attribute name="PROD_ID" value="CAP-00811"/>
</element>
<element name="C2" library="SparkFun-Retired" package="EIA3216" value="10uF">
<attribute name="PROD_ID" value="CAP-00811"/>
</element>
<element name="U$3" library="SRD-05VDC-SL-C" package="SRD-05VDC-SL-C" value="RELAYPTH">
<attribute name="VALUE"/>
</element>
<element name="U$4" library="SRD-05VDC-SL-C" package="SRD-05VDC-SL-C" value="RELAYPTH">
<attribute name="VALUE"/>
</element>
<element name="U$5" library="SRD-05VDC-SL-C" package="SRD-05VDC-SL-C" value="RELAYPTH">
<attribute name="VALUE"/>
</element>
<element name="U$6" library="SRD-05VDC-SL-C" package="SRD-05VDC-SL-C" value="RELAYPTH">
<attribute name="VALUE"/>
</element>
<element name="J4" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-3" value="">
<attribute name="PROD_ID" value="CONN-08288"/>
<attribute name="SF_ID" value="PRT-08235"/>
<attribute name="VALUE"/>
</element>
<element name="J5" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-3" value="">
<attribute name="PROD_ID" value="CONN-08288"/>
<attribute name="SF_ID" value="PRT-08235"/>
<attribute name="VALUE"/>
</element>
<element name="J6" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-3" value="">
<attribute name="PROD_ID" value="CONN-08288"/>
<attribute name="SF_ID" value="PRT-08235"/>
<attribute name="VALUE"/>
</element>
<element name="J7" library="SparkFun-Connectors" package="SCREWTERMINAL-3.5MM-3" value="">
<attribute name="PROD_ID" value="CONN-08288"/>
<attribute name="SF_ID" value="PRT-08235"/>
<attribute name="VALUE"/>
</element>
</elements>
<signals>
<signal name="AC1">
<contactref element="R1" pad="2"/>
<contactref element="PS1" pad="1"/>
<contactref element="U$1" pad="2"/>
<contactref element="U$3" pad="SWCOMMON"/>
<contactref element="U$6" pad="SWCOMMON"/>
<contactref element="U$5" pad="SWCOMMON"/>
<contactref element="U$4" pad="SWCOMMON"/>
</signal>
<signal name="AC2">
<contactref element="R1" pad="1"/>
<contactref element="PS1" pad="2"/>
<contactref element="J2" pad="1"/>
<contactref element="J2" pad="2"/>
<contactref element="J4" pad="2"/>
<contactref element="J5" pad="2"/>
<contactref element="J6" pad="2"/>
<contactref element="J7" pad="2"/>
</signal>
<signal name="AC1_IN">
<contactref element="U$1" pad="1"/>
<contactref element="J1" pad="2"/>
<contactref element="J1" pad="1"/>
</signal>
<signal name="GND">
<contactref element="PS1" pad="3"/>
<contactref element="J3" pad="1"/>
<contactref element="C1" pad="C"/>
<contactref element="U$2" pad="1"/>
<contactref element="C2" pad="C"/>
<contactref element="U1" pad="8"/>
</signal>
<signal name="VCC">
<contactref element="PS1" pad="4"/>
<contactref element="U$2" pad="3"/>
<contactref element="C1" pad="A"/>
<contactref element="U1" pad="9"/>
<contactref element="U$3" pad="COIL1"/>
<contactref element="U$5" pad="COIL1"/>
<contactref element="U$4" pad="COIL1"/>
<contactref element="U$6" pad="COIL1"/>
</signal>
<signal name="IN3">
<contactref element="U1" pad="4"/>
<contactref element="J3" pad="5"/>
</signal>
<signal name="IN2">
<contactref element="U1" pad="3"/>
<contactref element="J3" pad="4"/>
</signal>
<signal name="IN1">
<contactref element="U1" pad="2"/>
<contactref element="J3" pad="3"/>
</signal>
<signal name="IN0">
<contactref element="U1" pad="1"/>
<contactref element="J3" pad="2"/>
</signal>
<signal name="VCCIO">
<contactref element="J3" pad="6"/>
<contactref element="U$2" pad="2"/>
<contactref element="C2" pad="A"/>
</signal>
<signal name="OUT0">
<contactref element="U1" pad="16"/>
<contactref element="U$3" pad="COIL0"/>
</signal>
<signal name="OUT1">
<contactref element="U1" pad="15"/>
<contactref element="U$4" pad="COIL0"/>
</signal>
<signal name="OUT2">
<contactref element="U1" pad="14"/>
<contactref element="U$5" pad="COIL0"/>
</signal>
<signal name="OUT3">
<contactref element="U1" pad="13"/>
<contactref element="U$6" pad="COIL0"/>
</signal>
<signal name="N$1">
<contactref element="U$5" pad="SWCLOSED"/>
<contactref element="J6" pad="1"/>
</signal>
<signal name="N$2">
<contactref element="U$4" pad="SWCLOSED"/>
<contactref element="J5" pad="1"/>
</signal>
<signal name="N$3">
<contactref element="U$3" pad="SWCLOSED"/>
<contactref element="J4" pad="1"/>
</signal>
<signal name="N$4">
<contactref element="U$6" pad="SWCLOSED"/>
<contactref element="J7" pad="1"/>
</signal>
<signal name="N$5">
<contactref element="J7" pad="3"/>
<contactref element="U$6" pad="SWOPEN"/>
</signal>
<signal name="N$6">
<contactref element="J6" pad="3"/>
<contactref element="U$5" pad="SWOPEN"/>
</signal>
<signal name="N$7">
<contactref element="J5" pad="3"/>
<contactref element="U$4" pad="SWOPEN"/>
</signal>
<signal name="N$8">
<contactref element="J4" pad="3"/>
<contactref element="U$3" pad="SWOPEN"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
