<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="9.2.2">
<drawing>
<schematic>
<libraries>
<library name="fab">
<packages>
<package name="SOIC8">
<description>&lt;B&gt;Wide Plastic Gull Wing Small Outline Package&lt;/B&gt;</description>
</package>
<package name="OP1206">
</package>
<package name="R1206">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;</description>
</package>
<package name="R1206W">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
wave soldering</description>
</package>
<package name="R1206FAB">
</package>
<package name="C1206">
<description>&lt;b&gt;CAPACITOR&lt;/b&gt;</description>
</package>
<package name="C1206FAB">
</package>
<package name="C2220">
<description>&lt;b&gt;CAPACITOR&lt;/b&gt;</description>
</package>
<package name="1X06SMD">
</package>
<package name="2X03SMD">
</package>
</packages>
<symbols>
<symbol name="ATTINY45">
<pin name="GND"/>
<pin name="PB5/PCINT5/-RESET/ADC0/DW"/>
<pin name="PB3/PCINT3/XTAL1/CLKI/-OC1B/ADC3"/>
<pin name="PB4/PCINT4/XTAL2/CLKO/OC1B/ADC2"/>
<pin name="VCC"/>
<pin name="SCK/USCK/SCL/ADC1/T0/INT0/PCINT2/PB2"/>
<pin name="MISO/DO/AIN1/OC0B/OC1A/PCINT1/PB1"/>
<pin name="MOSI/DI/SDA/AIN0/OC0A/-OC1A/AREF/PCINT0/PB0"/>
</symbol>
<symbol name="PHOTOTRANSISTOR">
<pin name="E" direction="pas"/>
<pin name="C" direction="pas"/>
</symbol>
<symbol name="R-US">
<pin name="2" direction="pas"/>
<pin name="1" direction="pas"/>
</symbol>
<symbol name="CAP-NONPOLARIZED">
<description>non-polarized capacitor</description>
<pin name="1" direction="pas"/>
<pin name="2" direction="pas"/>
</symbol>
<symbol name="FTDI">
<pin name="GND"/>
<pin name="CTS"/>
<pin name="VCC"/>
<pin name="TXD"/>
<pin name="RXD"/>
<pin name="RTS"/>
</symbol>
<symbol name="PINH2X3">
<pin name="1" direction="pas" function="dot"/>
<pin name="2" direction="pas" function="dot"/>
<pin name="3" direction="pas" function="dot"/>
<pin name="4" direction="pas" function="dot"/>
<pin name="5" direction="pas" function="dot"/>
<pin name="6" direction="pas" function="dot"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="ATTINY45">
<gates>
<gate name="G$1" symbol="ATTINY45"/>
</gates>
<devices>
<device name="SI" package="SOIC8">
<connects>
<connect gate="G$1" pin="GND" pad="4"/>
<connect gate="G$1" pin="MISO/DO/AIN1/OC0B/OC1A/PCINT1/PB1" pad="6"/>
<connect gate="G$1" pin="MOSI/DI/SDA/AIN0/OC0A/-OC1A/AREF/PCINT0/PB0" pad="5"/>
<connect gate="G$1" pin="PB3/PCINT3/XTAL1/CLKI/-OC1B/ADC3" pad="2"/>
<connect gate="G$1" pin="PB4/PCINT4/XTAL2/CLKO/OC1B/ADC2" pad="3"/>
<connect gate="G$1" pin="PB5/PCINT5/-RESET/ADC0/DW" pad="1"/>
<connect gate="G$1" pin="SCK/USCK/SCL/ADC1/T0/INT0/PCINT2/PB2" pad="7"/>
<connect gate="G$1" pin="VCC" pad="8"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="PHOTOTRANSISTOR-NPN">
<gates>
<gate name="G$1" symbol="PHOTOTRANSISTOR"/>
</gates>
<devices>
<device name="1206" package="OP1206">
<connects>
<connect gate="G$1" pin="C" pad="COLLECTOR"/>
<connect gate="G$1" pin="E" pad="EMITTER"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="RES-US" prefix="R" uservalue="yes">
<description>&lt;b&gt;Resistor (US Symbol)&lt;/b&gt;
&lt;p&gt;
Variants with postfix FAB are widened to allow the routing of internal traces</description>
<gates>
<gate name="G$1" symbol="R-US"/>
</gates>
<devices>
<device name="1206" package="R1206">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="1206W" package="R1206W">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="1206FAB" package="R1206FAB">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="CAP-UNPOLARIZED" prefix="C" uservalue="yes">
<gates>
<gate name="&gt;NAME" symbol="CAP-NONPOLARIZED"/>
</gates>
<devices>
<device name="" package="C1206">
<connects>
<connect gate="&gt;NAME" pin="1" pad="1"/>
<connect gate="&gt;NAME" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="FAB" package="C1206FAB">
<connects>
<connect gate="&gt;NAME" pin="1" pad="1"/>
<connect gate="&gt;NAME" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="2220" package="C2220">
<connects>
<connect gate="&gt;NAME" pin="1" pad="1"/>
<connect gate="&gt;NAME" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="FTDI-SMD-HEADER">
<gates>
<gate name="G$1" symbol="FTDI"/>
</gates>
<devices>
<device name="" package="1X06SMD">
<connects>
<connect gate="G$1" pin="CTS" pad="2"/>
<connect gate="G$1" pin="GND" pad="1"/>
<connect gate="G$1" pin="RTS" pad="6"/>
<connect gate="G$1" pin="RXD" pad="5"/>
<connect gate="G$1" pin="TXD" pad="4"/>
<connect gate="G$1" pin="VCC" pad="3"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="PINHD-2X3-SMD" prefix="JP" uservalue="yes">
<description>&lt;b&gt;PIN HEADER&lt;/b&gt;</description>
<gates>
<gate name="A" symbol="PINH2X3"/>
</gates>
<devices>
<device name="" package="2X03SMD">
<connects>
<connect gate="A" pin="1" pad="1"/>
<connect gate="A" pin="2" pad="2"/>
<connect gate="A" pin="3" pad="3"/>
<connect gate="A" pin="4" pad="4"/>
<connect gate="A" pin="5" pad="5"/>
<connect gate="A" pin="6" pad="6"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="supply1">
<description>&lt;b&gt;Supply Symbols&lt;/b&gt;&lt;p&gt;
 GND, VCC, 0V, +5V, -5V, etc.&lt;p&gt;
 Please keep in mind, that these devices are necessary for the
 automatic wiring of the supply signals.&lt;p&gt;
 The pin name defined in the symbol is identical to the net which is to be wired automatically.&lt;p&gt;
 In this library the device names are the same as the pin names of the symbols, therefore the correct signal names appear next to the supply symbols in the schematic.&lt;p&gt;
 &lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
</packages>
<symbols>
<symbol name="GND">
<pin name="GND" direction="sup"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="GND" prefix="GND">
<description>&lt;b&gt;SUPPLY SYMBOL&lt;/b&gt;</description>
<gates>
<gate name="1" symbol="GND"/>
</gates>
<devices>
<device name="">
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="allegro">
<description>&lt;b&gt;Allegro MicroSystems, Inc&lt;/b&gt;&lt;p&gt;
www.allegromicro.com&lt;br&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="SOT23-W">
<description>&lt;b&gt;3-pin SOT23W&lt;/b&gt; LH&lt;p&gt;
Source: http://www.allegromicro.com/en/Products/Packaging/pkgso2.pdf</description>
</package>
<package name="SIP3-UA">
<description>&lt;b&gt;Type: 3-pin SIP, conventional leadframe&lt;/b&gt;&lt;p&gt;
Source: http://www.allegromicro.com/en/Products/Packaging/pkghall1.pdf</description>
</package>
</packages>
<symbols>
<symbol name="HALL-SENSOR-3">
<pin name="VCC" direction="pwr"/>
<pin name="GND" direction="pwr"/>
<pin name="OUT" direction="out"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="A13*?" prefix="IC">
<description>&lt;b&gt;Linear Hall Effect Sensor ICs&lt;/b&gt;&lt;p&gt;
Continuous-Time Ratiometric&lt;br&gt;
High-Temperature Operation&lt;br&gt;
Programmable Linear with Analog Output&lt;br&gt;
 A1302 -Replacement- UGN3503 &lt;br&gt;
Source: http://www.allegromicro.com/en/Products/Part_Numbers/1301/1301.pdf&lt;br&gt;
http://www.allegromicro.com/en/Products/Part_Numbers/1321/1321.pdf&lt;br&gt;
http://www.allegromicro.com/en/Products/Part_Numbers/1381/1381.pdf</description>
<gates>
<gate name="G$1" symbol="HALL-SENSOR-3"/>
</gates>
<devices>
<device name="LH" package="SOT23-W">
<connects>
<connect gate="G$1" pin="GND" pad="3"/>
<connect gate="G$1" pin="OUT" pad="2"/>
<connect gate="G$1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name="01">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1301ELHLT-T"/>
<attribute name="OC_FARNELL" value="1198084"/>
<attribute name="OC_NEWARK" value="31K6634"/>
</technology>
<technology name="02">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1302ELHLT-T"/>
<attribute name="OC_FARNELL" value="1457209"/>
<attribute name="OC_NEWARK" value="31K6638"/>
</technology>
<technology name="21">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1321LLHLT-T"/>
<attribute name="OC_FARNELL" value="1457116"/>
<attribute name="OC_NEWARK" value="65K5146"/>
</technology>
<technology name="22">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1322LLHLT-T"/>
<attribute name="OC_FARNELL" value="1323278"/>
<attribute name="OC_NEWARK" value="65K5149"/>
</technology>
<technology name="23">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1323LLHLT-T"/>
<attribute name="OC_FARNELL" value="1651968"/>
<attribute name="OC_NEWARK" value="65K5152"/>
</technology>
<technology name="81">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1381LLHLT-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9948"/>
</technology>
<technology name="82">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1382LLHLT-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9952"/>
</technology>
<technology name="83">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1383LLHLT-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9956"/>
</technology>
<technology name="84">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1384LLHLT-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9960"/>
</technology>
</technologies>
</device>
<device name="UA" package="SIP3-UA">
<connects>
<connect gate="G$1" pin="GND" pad="2"/>
<connect gate="G$1" pin="OUT" pad="3"/>
<connect gate="G$1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name="01">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1301EUA-T"/>
<attribute name="OC_FARNELL" value="1198085"/>
<attribute name="OC_NEWARK" value="31K6635"/>
</technology>
<technology name="02">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1302EUA-T"/>
<attribute name="OC_FARNELL" value="1521708"/>
<attribute name="OC_NEWARK" value="31K6639"/>
</technology>
<technology name="21">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1321EUA-T"/>
<attribute name="OC_FARNELL" value="1521678"/>
<attribute name="OC_NEWARK" value="43K8768"/>
</technology>
<technology name="22">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1322LUA-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="65K5150"/>
</technology>
<technology name="23">
<attribute name="MF" value="ALLEGRO MICROSYSTEMS, INC."/>
<attribute name="MPN" value="A1323LUA-T"/>
<attribute name="OC_FARNELL" value="1651969"/>
<attribute name="OC_NEWARK" value="65K5153"/>
</technology>
<technology name="81">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1381LUA-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9949"/>
</technology>
<technology name="82">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1382LUA-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9953"/>
</technology>
<technology name="83">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1383LUA-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9957"/>
</technology>
<technology name="84">
<attribute name="MF" value=""/>
<attribute name="MPN" value="A1384LUA-T"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="30M9961"/>
</technology>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<parts>
<part name="U$1" library="fab" deviceset="ATTINY45" device="SI"/>
<part name="U$2" library="fab" deviceset="PHOTOTRANSISTOR-NPN" device="1206" value="PH"/>
<part name="R1" library="fab" deviceset="RES-US" device="1206FAB" value="10K"/>
<part name="R2" library="fab" deviceset="RES-US" device="1206FAB" value="10K"/>
<part name="C1" library="fab" deviceset="CAP-UNPOLARIZED" device="FAB" value="1uF"/>
<part name="U$3" library="fab" deviceset="FTDI-SMD-HEADER" device=""/>
<part name="J1" library="fab" deviceset="PINHD-2X3-SMD" device="" value="ISP"/>
<part name="GND1" library="supply1" deviceset="GND" device=""/>
<part name="IC1" library="allegro" deviceset="A13*?" device="LH" technology="23"/>
<part name="R3" library="fab" deviceset="RES-US" device="1206FAB" value="0ohm"/>
</parts>
<sheets>
<sheet>
<plain>
</plain>
<busses>
</busses>
<nets>
<net name="VCC">
<segment>
<pinref part="U$3" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="J1" gate="A" pin="5"/>
</segment>
<segment>
<pinref part="U$1" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="C1" gate="&gt;NAME" pin="1"/>
</segment>
<segment>
<pinref part="R1" gate="G$1" pin="1"/>
</segment>
<segment>
<pinref part="R2" gate="G$1" pin="1"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="VCC"/>
</segment>
</net>
<net name="GND">
<segment>
<pinref part="U$3" gate="G$1" pin="GND"/>
<pinref part="GND1" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="J1" gate="A" pin="1"/>
</segment>
<segment>
<pinref part="U$1" gate="G$1" pin="GND"/>
</segment>
<segment>
<pinref part="C1" gate="&gt;NAME" pin="2"/>
</segment>
<segment>
<pinref part="U$2" gate="G$1" pin="E"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="GND"/>
</segment>
</net>
<net name="MOSI">
<segment>
<pinref part="J1" gate="A" pin="3"/>
</segment>
<segment>
<pinref part="U$1" gate="G$1" pin="MOSI/DI/SDA/AIN0/OC0A/-OC1A/AREF/PCINT0/PB0"/>
</segment>
</net>
<net name="RST">
<segment>
<pinref part="J1" gate="A" pin="2"/>
</segment>
<segment>
<pinref part="U$1" gate="G$1" pin="PB5/PCINT5/-RESET/ADC0/DW"/>
</segment>
<segment>
<pinref part="R1" gate="G$1" pin="2"/>
</segment>
</net>
<net name="SCK">
<segment>
<pinref part="J1" gate="A" pin="4"/>
</segment>
<segment>
<pinref part="U$1" gate="G$1" pin="SCK/USCK/SCL/ADC1/T0/INT0/PCINT2/PB2"/>
</segment>
<segment>
<pinref part="U$3" gate="G$1" pin="RXD"/>
</segment>
</net>
<net name="MISO">
<segment>
<pinref part="J1" gate="A" pin="6"/>
</segment>
<segment>
<pinref part="U$1" gate="G$1" pin="MISO/DO/AIN1/OC0B/OC1A/PCINT1/PB1"/>
</segment>
</net>
<net name="PB3">
<segment>
<pinref part="U$1" gate="G$1" pin="PB3/PCINT3/XTAL1/CLKI/-OC1B/ADC3"/>
</segment>
<segment>
<pinref part="R2" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="U$2" gate="G$1" pin="C"/>
</segment>
</net>
<net name="PB4">
<segment>
<pinref part="U$1" gate="G$1" pin="PB4/PCINT4/XTAL2/CLKO/OC1B/ADC2"/>
</segment>
<segment>
<pinref part="R3" gate="G$1" pin="2"/>
</segment>
</net>
<net name="HALLOUT">
<segment>
<pinref part="IC1" gate="G$1" pin="OUT"/>
</segment>
<segment>
<pinref part="R3" gate="G$1" pin="1"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
</schematic>
</drawing>
</eagle>
