<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.2.0">
<drawing>
<board>
<plain>
<wire x1="8" y1="4" x2="48" y2="4" width="0" layer="20"/>
<wire x1="48" y1="4" x2="48" y2="69" width="0" layer="20"/>
<wire x1="48" y1="69" x2="8" y2="69" width="0" layer="20"/>
<wire x1="8" y1="69" x2="8" y2="4" width="0" layer="20"/>
<hole x="12" y="65" drill="3.2"/>
<hole x="44" y="65" drill="3.2"/>
<hole x="14" y="10" drill="3.2"/>
<hole x="42" y="10" drill="3.2"/>
<wire x1="9" y1="68" x2="45" y2="68" width="0.4064" layer="20"/>
<wire x1="45" y1="68" x2="47" y2="66" width="0.4064" layer="20" curve="-90"/>
<wire x1="47" y1="66" x2="47" y2="5" width="0.4064" layer="20"/>
<wire x1="47" y1="5" x2="11" y2="5" width="0.4064" layer="20"/>
<wire x1="11" y1="5" x2="9" y2="7" width="0.4064" layer="20" curve="-90"/>
<wire x1="9" y1="7" x2="9" y2="68" width="0.4064" layer="20"/>
</plain>
<libraries>
<library name="con-lsta">
<description>&lt;b&gt;Female Headers etc.&lt;/b&gt;&lt;p&gt;
Naming:&lt;p&gt;
FE = female&lt;p&gt;
# contacts - # rows&lt;p&gt;
W = angled&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="FE08">
<description>&lt;b&gt;FEMALE HEADER&lt;/b&gt;</description>
</package>
<package name="FE06">
<description>&lt;b&gt;FEMALE HEADER&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="con-lstb">
<description>&lt;b&gt;Pin Headers&lt;/b&gt;&lt;p&gt;
Naming:&lt;p&gt;
MA = male&lt;p&gt;
# contacts - # rows&lt;p&gt;
W = angled&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="MA04-1">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SparkFun-Sensors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find sensors- accelerometers, gyros, compasses, magnetometers, light sensors, imagers, temp sensors, 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="SOT23-3">
</package>
</packages>
</library>
<library name="adafruit">
<packages>
<package name="R1206">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
chip</description>
</package>
<package name="C1206">
<description>&lt;b&gt;CAPACITOR&lt;/b&gt;&lt;p&gt;
chip</description>
</package>
<package name="EVQ-Q2">
</package>
<package name="B3F-31XX">
<description>&lt;b&gt;OMRON SWITCH&lt;/b&gt;</description>
</package>
<package name="JST-PH-2-SMT-RA">
<description>2-Pin JST PH Series Right-Angle Connector (+/- for batteries)</description>
</package>
</packages>
</library>
<library name="PIC16F1789">
<description>28-Pin 8-Bit Advanced Analog Flash Microcontroller

High-Performance RISC CPU:
Ã¢ÂÂ¢ Only 49 Instructions
Ã¢ÂÂ¢ Operating Speed:
- DC Ã¢ÂÂ 32 MHz clock input
- DC Ã¢ÂÂ 125 ns instruction cycle
Ã¢ÂÂ¢ Interrupt Capability with Automatic Context
Saving
Ã¢ÂÂ¢ 16-Level Deep Hardware Stack with optional
Overflow/Underflow Reset
Ã¢ÂÂ¢ Direct, Indirect and Relative Addressing modes:
Ã¢ÂÂ¢ Two full 16-bit File Select Registers (FSRs)
- FSRs can read program and data memory
Memory Features:
Ã¢ÂÂ¢ Up to 16 KW Flash Program Memory:
- Self-programmable under software control
- Programmable code protection
- Programmable write protection
Ã¢ÂÂ¢ 256 Bytes of Data EEPROM
Ã¢ÂÂ¢ Up to 2048 Bytes of RAM
High-Performance PWM Controller:
Ã¢ÂÂ¢ Four Programmable Switch Mode Controller
(PSMC) modules:
- Digital and/or analog feedback control of
PWM frequency and pulse begin/end times
- 16-bit Period, Duty Cycle and Phase
- 16 ns clock resolution
- Supports Single PWM, Complementary,
Push-Pull and 3-phase modes of operation
- Dead-band control with 8-bit counter
- Auto-shutdown and restart
- Leading and falling edge blanking
- Burst mode
Extreme Low-Power Management
PIC16LF1788/9 with XLP:
Ã¢ÂÂ¢ Sleep mode: 50 nA @ 1.8V, typical
Ã¢ÂÂ¢ Watchdog Timer: 500 nA @ 1.8V, typical
Ã¢ÂÂ¢ Timer1 Oscillator: 500 nA @ 32 kHz
Ã¢ÂÂ¢ Operating Current:
- 8Ã¯ÂÂ­A @ 32 kHz, 1.8V, typical
- 32Ã¯ÂÂ­A/MHz @ 1.8V, typical
Analog Peripheral Features:
Ã¢ÂÂ¢ Analog-to-Digital Converter (ADC):
- Fully differential 12-bit converter
- Up to 75 ksps conversion rate
- 11 single-ended channels
- 5 differential channels
- Positive and negative reference selection
Ã¢ÂÂ¢ One 8-Bit and Three 5-Bit Digital-to-Analog
Converters (DAC):
- Output available externally
- Positive and negative reference selection
- Internal connections to comparators, op amps,
Fixed Voltage Reference (FVR) and ADC
Ã¢ÂÂ¢ Four High-Speed Comparators:
- 50 ns response time @ VDD = 5V
- Rail-to-rail inputs
- Software selectable hysteresis
- Internal connection to op amps, FVR and DAC
Ã¢ÂÂ¢ Up to Three Operational Amplifiers:
- Rail-to-rail inputs/outputs
- High/Low selectable Gain Bandwidth Product
- Internal connection to DAC and FVR
Ã¢ÂÂ¢ Fixed Voltage Reference (FVR):
- 1.024V, 2.048V and 4.096V output levels
- Internal connection to ADC, comparators and
DAC
I/O Features:
Ã¢ÂÂ¢ Up to 36 I/O Pins and 1 Input-only Pin:
Ã¢ÂÂ¢ High Current Sink/Source for LED Drivers
Ã¢ÂÂ¢ Individually Programmable Interrupt-on-Change
Pins
Ã¢ÂÂ¢ Individually Programmable Weak Pull-Ups
Ã¢ÂÂ¢ Individual Input Level Selection
Ã¢ÂÂ¢ Individually Programmable Slew Rate Control
Ã¢ÂÂ¢ Individually Programmable Open-Drain Outputs</description>
<packages>
<package name="TQFP44">
<description>&lt;b&gt;44-lead Thin Quad Flat Package&lt;/b&gt;</description>
</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="SOT23-3">
</package>
</packages>
</library>
<library name="ATMEL-EEPROM">
<packages>
<package name="SOIC8">
<description>&lt;b&gt;Small Outline IC&lt;/b&gt;</description>
</package>
</packages>
</library>
<library name="SparkFun-Aesthetics">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find non-functional items- supply symbols, logos, notations, frame blocks, 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="CREATIVE_COMMONS">
</package>
</packages>
</library>
<library name="SparkFun-FreqCtrl">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find crystals and oscillators and other things that go "tick".&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="RESONATOR-SMD">
</package>
</packages>
</library>
<library name="mylibrary">
<packages>
<package name="SOT23-3">
<description>SOT23-3 package, surface mount, 3 terminal</description>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="LCDCONN" library="con-lsta" package="FE08" value="LCD1">
<attribute name="OC_NEWARK" value="unknown"/>
<attribute name="MPN" value=""/>
<attribute name="MF" value=""/>
<attribute name="OC_FARNELL" value="unknown"/>
</element>
<element name="PROGCABLE" library="con-lsta" package="FE06" value="Connector">
<attribute name="OC_NEWARK" value="unknown"/>
<attribute name="MPN" value=""/>
<attribute name="MF" value=""/>
<attribute name="OC_FARNELL" value="unknown"/>
</element>
<element name="STRIPCONN" library="con-lstb" package="MA04-1" value="StripReceiver">
<attribute name="OC_NEWARK" value="unknown"/>
<attribute name="MPN" value=""/>
<attribute name="MF" value=""/>
<attribute name="OC_FARNELL" value="unknown"/>
</element>
<element name="U2" library="SparkFun-Sensors" package="SOT23-3" value="MCP9700SMD">
<attribute name="PROD_ID" value="IC-08917"/>
</element>
<element name="R1" library="adafruit" package="R1206" value="100k"/>
<element name="R2" library="adafruit" package="R1206" value="100"/>
<element name="R3" library="adafruit" package="R1206" value="100k"/>
<element name="R7" library="adafruit" package="R1206" value="4.7k"/>
<element name="R5" library="adafruit" package="R1206" value="4.7k"/>
<element name="R6" library="adafruit" package="R1206" value="4.7k"/>
<element name="C6" library="adafruit" package="C1206" value="0.1uF"/>
<element name="C5" library="adafruit" package="C1206" value="0.1uF"/>
<element name="C2" library="adafruit" package="C1206" value="1uF"/>
<element name="C7" library="adafruit" package="C1206" value="0.1uF"/>
<element name="C4" library="adafruit" package="C1206" value="0.1uF"/>
<element name="C1" library="adafruit" package="C1206" value="100pF"/>
<element name="IC2" library="ATMEL-EEPROM" package="SOIC8" value="AT24C"/>
<element name="SW1" library="adafruit" package="EVQ-Q2" value="SPST_TACT-EVQQ2"/>
<element name="SW3" library="adafruit" package="EVQ-Q2" value="SPST_TACT-EVQQ2"/>
<element name="IC1" library="PIC16F1789" package="TQFP44" value="PIC16F1789"/>
<element name="R8" library="adafruit" package="R1206" value="2.2k"/>
<element name="R9" library="adafruit" package="R1206" value="68"/>
<element name="Q1" library="SparkFun-DiscreteSemi" package="SOT23-3" value="MMBT2222A">
<attribute name="PROD_ID" value="TRANS-08049"/>
</element>
<element name="R10" library="adafruit" package="R1206" value="4.7k"/>
<element name="C3" library="adafruit" package="C1206" value="0.1uF"/>
<element name="SW4" library="adafruit" package="EVQ-Q2" value="SPST_TACT-EVQQ2"/>
<element name="FRAME1" library="SparkFun-Aesthetics" package="CREATIVE_COMMONS" value="FRAME-LETTER"/>
<element name="Y1" library="SparkFun-FreqCtrl" package="RESONATOR-SMD" value="8MHZ">
<attribute name="PROD_ID" value="XTAL-08895"/>
</element>
<element name="SW2" library="adafruit" package="B3F-31XX" value=""/>
<element name="CN1" library="adafruit" package="JST-PH-2-SMT-RA" value=""/>
<element name="C8" library="adafruit" package="C1206" value="1uF"/>
<element name="C9" library="adafruit" package="C1206" value="1uF"/>
<element name="VREG1" library="mylibrary" package="SOT23-3" value=""/>
</elements>
<signals>
<signal name="GND">
<contactref element="C4" pad="1"/>
<contactref element="C2" pad="2"/>
<contactref element="IC2" pad="4"/>
<contactref element="IC2" pad="1"/>
<contactref element="IC2" pad="3"/>
<contactref element="IC2" pad="2"/>
<contactref element="C6" pad="2"/>
<contactref element="SW1" pad="B'"/>
<contactref element="SW1" pad="B"/>
<contactref element="C5" pad="2"/>
<contactref element="SW3" pad="B"/>
<contactref element="SW3" pad="B'"/>
<contactref element="C7" pad="2"/>
<contactref element="IC1" pad="29"/>
<contactref element="IC1" pad="6"/>
<contactref element="STRIPCONN" pad="1"/>
<contactref element="U2" pad="3"/>
<contactref element="LCDCONN" pad="8"/>
<contactref element="Q1" pad="2"/>
<contactref element="PROGCABLE" pad="3"/>
<contactref element="IC2" pad="7"/>
<contactref element="C3" pad="2"/>
<contactref element="SW4" pad="B'"/>
<contactref element="SW4" pad="B"/>
<contactref element="Y1" pad="2"/>
<contactref element="SW2" pad="2"/>
<contactref element="CN1" pad="2"/>
<contactref element="VREG1" pad="1"/>
<contactref element="C8" pad="2"/>
<contactref element="C9" pad="2"/>
</signal>
<signal name="N$14">
<contactref element="R2" pad="2"/>
<contactref element="C2" pad="1"/>
<contactref element="IC1" pad="19"/>
</signal>
<signal name="+3V3">
<contactref element="R3" pad="2"/>
<contactref element="C4" pad="2"/>
<contactref element="R5" pad="1"/>
<contactref element="R6" pad="1"/>
<contactref element="R7" pad="1"/>
<contactref element="IC2" pad="8"/>
<contactref element="IC1" pad="28"/>
<contactref element="IC1" pad="7"/>
<contactref element="PROGCABLE" pad="2"/>
<contactref element="R10" pad="1"/>
<contactref element="VREG1" pad="2"/>
<contactref element="C9" pad="1"/>
</signal>
<signal name="N$1">
<contactref element="R7" pad="2"/>
<contactref element="C6" pad="1"/>
<contactref element="IC1" pad="18"/>
<contactref element="PROGCABLE" pad="1"/>
<contactref element="SW2" pad="1"/>
</signal>
<signal name="N$5">
<contactref element="R6" pad="2"/>
<contactref element="SW1" pad="A"/>
<contactref element="SW1" pad="A'"/>
<contactref element="C5" pad="1"/>
<contactref element="IC1" pad="14"/>
</signal>
<signal name="N$7">
<contactref element="R5" pad="2"/>
<contactref element="SW3" pad="A"/>
<contactref element="SW3" pad="A'"/>
<contactref element="C7" pad="1"/>
<contactref element="IC1" pad="11"/>
</signal>
<signal name="N$6">
<contactref element="IC1" pad="8"/>
<contactref element="STRIPCONN" pad="2"/>
<contactref element="R3" pad="1"/>
</signal>
<signal name="N$8">
<contactref element="C1" pad="1"/>
<contactref element="R1" pad="1"/>
<contactref element="IC1" pad="24"/>
<contactref element="STRIPCONN" pad="4"/>
</signal>
<signal name="N$2">
<contactref element="IC1" pad="9"/>
<contactref element="U2" pad="1"/>
</signal>
<signal name="N$4">
<contactref element="U2" pad="2"/>
<contactref element="IC1" pad="10"/>
</signal>
<signal name="N$3">
<contactref element="IC1" pad="15"/>
<contactref element="STRIPCONN" pad="3"/>
</signal>
<signal name="CLK">
<contactref element="LCDCONN" pad="5"/>
<contactref element="IC1" pad="3"/>
</signal>
<signal name="DIN">
<contactref element="LCDCONN" pad="4"/>
<contactref element="IC1" pad="2"/>
</signal>
<signal name="DC">
<contactref element="LCDCONN" pad="3"/>
<contactref element="IC1" pad="41"/>
</signal>
<signal name="CE">
<contactref element="LCDCONN" pad="2"/>
<contactref element="IC1" pad="4"/>
</signal>
<signal name="RST">
<contactref element="LCDCONN" pad="1"/>
<contactref element="IC1" pad="5"/>
</signal>
<signal name="N$10">
<contactref element="IC1" pad="37"/>
<contactref element="IC2" pad="6"/>
</signal>
<signal name="N$11">
<contactref element="IC1" pad="42"/>
<contactref element="IC2" pad="5"/>
</signal>
<signal name="N$19">
<contactref element="R8" pad="2"/>
<contactref element="Q1" pad="1"/>
</signal>
<signal name="BKGND">
<contactref element="LCDCONN" pad="7"/>
<contactref element="R9" pad="1"/>
</signal>
<signal name="N$21">
<contactref element="R9" pad="2"/>
<contactref element="Q1" pad="3"/>
</signal>
<signal name="N$22">
<contactref element="IC1" pad="40"/>
<contactref element="R8" pad="1"/>
</signal>
<signal name="N$25">
<contactref element="IC1" pad="17"/>
<contactref element="PROGCABLE" pad="4"/>
</signal>
<signal name="N$26">
<contactref element="PROGCABLE" pad="5"/>
<contactref element="IC1" pad="16"/>
</signal>
<signal name="N$18">
<contactref element="R10" pad="2"/>
<contactref element="SW4" pad="A"/>
<contactref element="SW4" pad="A'"/>
<contactref element="C3" pad="1"/>
<contactref element="IC1" pad="30"/>
</signal>
<signal name="N$23">
<contactref element="R1" pad="2"/>
<contactref element="R2" pad="1"/>
<contactref element="C1" pad="2"/>
<contactref element="IC1" pad="20"/>
</signal>
<signal name="VCC">
<contactref element="LCDCONN" pad="6"/>
</signal>
<signal name="N$9">
<contactref element="Y1" pad="3"/>
<contactref element="IC1" pad="35"/>
</signal>
<signal name="N$12">
<contactref element="Y1" pad="1"/>
<contactref element="IC1" pad="32"/>
</signal>
<signal name="+5V/4">
<contactref element="CN1" pad="1"/>
<contactref element="VREG1" pad="3"/>
<contactref element="C8" pad="1"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
