From: Eugene Crosser Date: Mon, 1 Jan 2018 18:13:40 +0000 (+0100) Subject: Make some electrical schematic with KiCad X-Git-Url: http://www.average.org/gitweb/?p=sensor-light.git;a=commitdiff_plain;h=048e784fee1238c46eab85102c87895d6e09ddbd Make some electrical schematic with KiCad --- diff --git a/.gitignore b/.gitignore index 6fd0bd3..c201a98 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ Log *.o *.elf *.hex +*.bak diff --git a/README.md b/README.md index 80819e7..35df7c0 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,5 @@ The project is to drive night lighting of a staircase using PIR motion sensors (two: for the top and bottom of the staircase). Ambiant light sensor to only turn the LED chains when it is dark. Driven by MSP430 MCU, light power controlled via PWM + MOSFET. + +![](hardware/sensor-light.svg) diff --git a/hardware/README b/hardware/README index 71ca68c..300c143 100644 --- a/hardware/README +++ b/hardware/README @@ -6,3 +6,6 @@ MOSFET datasheet: https://www.infineon.com/dgdl/irlml2502.pdf?fileId=5546d462533600a401535667f44d2602 +MCU Power supply datasheet: + +https://www.sparkfun.com/datasheets/Components/LD1117V33.pdf diff --git a/hardware/sensor-light.svg b/hardware/sensor-light.svg new file mode 100644 index 0000000..294f587 --- /dev/null +++ b/hardware/sensor-light.svg @@ -0,0 +1,10592 @@ + + + +SVG Picture created as sensor-light.svg date 2018/01/01 19:12:58 + Picture generated by Eeschema-SVG + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hardware/sensor-light/sensor-light-cache.lib b/hardware/sensor-light/sensor-light-cache.lib new file mode 100644 index 0000000..2d28b91 --- /dev/null +++ b/hardware/sensor-light/sensor-light-cache.lib @@ -0,0 +1,254 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# CONN_01X02_FEMALE +# +DEF CONN_01X02_FEMALE J 0 40 Y N 1 F N +F0 "J" 0 200 50 H V C CNN +F1 "CONN_01X02_FEMALE" 75 -200 50 H V C CNN +F2 "" 0 100 50 H I C CNN +F3 "" 0 100 50 H I C CNN +DRAW +A 150 -100 50 901 -901 0 1 0 N 150 -50 150 -150 +A 150 100 50 901 -901 0 1 0 N 150 150 150 50 +X 1 1 -100 100 200 R 50 50 1 1 P +X 2 2 -100 -100 200 R 50 50 1 1 P +ENDDRAW +ENDDEF +# +# CONN_01X02_MALE +# +DEF CONN_01X02_MALE J 0 40 Y N 1 F N +F0 "J" 0 175 50 H V C CNN +F1 "CONN_01X02_MALE" 0 -200 50 H V C CNN +F2 "" 0 100 50 H I C CNN +F3 "" 0 100 50 H I C CNN +DRAW +S -100 -75 100 -125 0 1 0 F +S -100 125 -100 125 0 1 0 N +S 100 125 -100 75 0 1 0 F +X 1 1 300 100 200 L 50 50 1 1 P +X 2 2 300 -100 200 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# CONN_01X03_MALE +# +DEF CONN_01X03_MALE J 0 40 Y N 1 F N +F0 "J" 0 275 50 H V C CNN +F1 "CONN_01X03_MALE" 25 -275 50 H V C CNN +F2 "" 0 200 50 H I C CNN +F3 "" 0 200 50 H I C CNN +DRAW +S -100 25 100 -25 0 1 0 F +S -100 225 -100 225 0 1 0 N +S 100 -175 -100 -225 0 1 0 F +S 100 225 -100 175 0 1 0 F +X 1 1 300 200 200 L 50 50 1 1 P +X 2 2 300 0 200 L 50 50 1 1 P +X 3 3 300 -200 200 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# CONN_01X04_MALE +# +DEF CONN_01X04_MALE J 0 40 Y N 1 F N +F0 "J" 0 375 50 H V C CNN +F1 "CONN_01X04_MALE" 0 -400 50 H V C CNN +F2 "" 0 300 50 H I C CNN +F3 "" 0 300 50 H I C CNN +DRAW +S -100 125 100 75 0 1 0 F +S -100 325 -100 325 0 1 0 N +S 100 -325 -100 -275 0 1 0 F +S 100 -75 -100 -125 0 1 0 F +S 100 325 -100 275 0 1 0 F +X 1 1 300 300 200 L 50 50 1 1 P +X 2 2 300 100 200 L 50 50 1 1 P +X 3 3 300 -100 200 L 50 50 1 1 P +X 4 4 300 -300 200 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# CP +# +DEF CP C 0 10 N Y 1 F N +F0 "C" 25 100 50 H V L CNN +F1 "CP" 25 -100 50 H V L CNN +F2 "" 38 -150 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + CP_* +$ENDFPLIST +DRAW +S -90 20 -90 40 0 1 0 N +S -90 20 90 20 0 1 0 N +S 90 -20 -90 -40 0 1 0 F +S 90 40 -90 40 0 1 0 N +S 90 40 90 20 0 1 0 N +P 2 0 1 0 -70 90 -30 90 N +P 2 0 1 0 -50 110 -50 70 N +X ~ 1 0 150 110 D 50 50 1 1 P +X ~ 2 0 -150 110 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# GNDREF +# +DEF GNDREF #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -250 50 H I C CNN +F1 "GNDREF" 0 -150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -25 -75 25 -75 N +P 2 0 1 0 -5 -100 5 -100 N +P 2 0 1 0 0 -50 0 0 N +P 2 0 1 0 50 -50 -50 -50 N +X GNDREF 1 0 0 0 D 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# LD1117S33TR +# +DEF LD1117S33TR U 0 30 Y Y 1 F N +F0 "U" 0 250 50 H V C CNN +F1 "LD1117S33TR" 0 200 50 H V C CNN +F2 "TO_SOT_Packages_SMD:SOT-223" 0 100 50 H I C CNN +F3 "" 0 0 50 H I C CNN +ALIAS LD1117S33CTR LD1117S12TR LD1117S12CTR LD1117S18TR LD1117S18CTR LD1117S25TR LD1117S25CTR LD1117S50TR LD1117S50CTR +$FPLIST + SOT223 +$ENDFPLIST +DRAW +S -250 -150 250 150 0 1 10 f +X GND 1 0 -250 100 U 50 50 1 1 W +X VO 2 400 50 150 L 50 50 1 1 w +X VI 3 -400 50 150 R 50 50 1 1 W +ENDDRAW +ENDDEF +# +# LED +# +DEF LED D 0 40 Y N 1 F N +F0 "D" 0 100 50 H V C CNN +F1 "LED" 0 -100 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + LED* +$ENDFPLIST +DRAW +P 2 0 1 8 -50 -50 -50 50 N +P 2 0 1 0 -50 0 50 0 N +P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N +P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N +P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N +X K 1 -150 0 100 R 50 50 1 1 P +X A 2 150 0 100 L 50 50 1 1 P +ENDDRAW +ENDDEF +# +# MSP430G2153IN20 +# +DEF MSP430G2153IN20 U 0 40 Y Y 1 F N +F0 "U" -1500 600 50 H V C CNN +F1 "MSP430G2153IN20" 1250 -550 50 H V C CNN +F2 "20N" -1450 -550 50 H I C CIN +F3 "" -50 0 50 H I C CNN +ALIAS MSP430G2253IN20 MSP430G2353IN20 MSP430G2453IN20 MSP430G2553IN20 +DRAW +S -1550 550 1550 -500 0 1 10 f +X DVCC 1 0 700 150 D 40 40 1 1 W +X TA0CLK/ACLK/CA0/A0/P1.0 2 1700 300 150 L 40 40 1 1 B +X UCA0RXD/UCA0SOMI/TA0.0/CA1/A1/P1.1 3 1700 200 150 L 40 40 1 1 B +X UCA0TXD/UCA0SIMO/TA0.1/CA2/A2/P1.2 4 1700 100 150 L 40 40 1 1 B +X CAOUT/VREF-/VeREF-/CA3/A3/P1.3 5 1700 0 150 L 40 40 1 1 B +X TCK/SMCLK/UCB0STE/UCA0CLK/VREF+/VeREF+/CA4/A4/P1.4 6 1700 -100 150 L 40 40 1 1 B +X TMS/UCB0CLK/UCA0STE/TA0.0/CA5/A5/P1.5 7 1700 -200 150 L 40 40 1 1 B +X P2.0/TA1.0 8 -1700 300 150 R 40 40 1 1 B +X P2.1/TA1.1 9 -1700 200 150 R 40 40 1 1 B +X P2.2/TA1.1 10 -1700 100 150 R 40 40 1 1 B +X DVSS 20 0 -650 150 U 40 40 1 1 W +X P2.3/TA1.0 11 -1700 0 150 R 40 40 1 1 B +X P2.4/TA1.2 12 -1700 -100 150 R 40 40 1 1 B +X P2.5/TA1.2 13 -1700 -200 150 R 40 40 1 1 B +X TDI/TCLK/UCB0SOMI/UCB0SCL/TA0.1/CA6/A6/P1.6 14 1700 -300 150 L 40 40 1 1 B +X TDO/TDI/UCB0SIMO/UCB0SDA/CAOUT/CA7/A7/P1.7 15 1700 -400 150 L 40 40 1 1 B +X ~RST~/NMI/SBWTDIO 16 -1700 450 150 R 40 40 1 1 I +X TEST/SBWTCK 17 1700 450 150 L 40 40 1 1 I +X P2.7/XOUT 18 -1700 -400 150 R 40 40 1 1 B +X P2.6/XIN/TA0.1 19 -1700 -300 150 R 40 40 1 1 B +ENDDRAW +ENDDEF +# +# Q_NMOS_DGS +# +DEF Q_NMOS_DGS Q 0 0 Y N 1 F N +F0 "Q" 200 50 50 H V L CNN +F1 "Q_NMOS_DGS" 200 -50 50 H V L CNN +F2 "" 200 100 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +C 65 0 111 0 1 10 N +C 100 -70 11 0 1 0 F +C 100 70 11 0 1 0 F +P 2 0 1 0 30 -70 100 -70 N +P 2 0 1 10 30 -50 30 -90 N +P 2 0 1 0 30 0 100 0 N +P 2 0 1 10 30 20 30 -20 N +P 2 0 1 0 30 70 100 70 N +P 2 0 1 10 30 90 30 50 N +P 2 0 1 0 100 -70 100 -100 N +P 2 0 1 0 100 -70 100 0 N +P 2 0 1 0 100 100 100 70 N +P 3 0 1 10 10 75 10 -75 10 -75 N +P 4 0 1 0 40 0 80 15 80 -15 40 0 F +P 4 0 1 0 100 -70 130 -70 130 70 100 70 N +P 4 0 1 0 110 20 115 15 145 15 150 10 N +P 4 0 1 0 130 15 115 -10 145 -10 130 15 N +X D 1 100 200 100 D 50 50 1 1 P +X G 2 -200 0 210 R 50 50 1 1 I +X S 3 100 -200 100 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# R +# +DEF R R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "R" 0 0 50 V V C CNN +F2 "" -70 0 50 V I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + R_* + R_* +$ENDFPLIST +DRAW +S -40 -100 40 100 0 1 10 N +X ~ 1 0 150 50 D 50 50 1 1 P +X ~ 2 0 -150 50 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# SW_DIP_x01 +# +DEF SW_DIP_x01 SW 0 0 Y N 1 F N +F0 "SW" 0 150 50 H V C CNN +F1 "SW_DIP_x01" 0 -150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + SW?DIP?x1* +$ENDFPLIST +DRAW +C -80 0 20 0 0 0 N +C 80 0 20 0 0 0 N +P 2 0 0 0 -60 5 93 46 N +S -150 100 150 -100 0 1 10 f +X ~ 1 -300 0 200 R 50 50 1 1 I +X ~ 2 300 0 200 L 50 50 1 1 I +ENDDRAW +ENDDEF +# +#End Library diff --git a/hardware/sensor-light/sensor-light.kicad_pcb b/hardware/sensor-light/sensor-light.kicad_pcb new file mode 100644 index 0000000..02c8ecb --- /dev/null +++ b/hardware/sensor-light/sensor-light.kicad_pcb @@ -0,0 +1 @@ +(kicad_pcb (version 4) (host kicad "dummy file") ) diff --git a/hardware/sensor-light/sensor-light.pro b/hardware/sensor-light/sensor-light.pro new file mode 100644 index 0000000..223713f --- /dev/null +++ b/hardware/sensor-light/sensor-light.pro @@ -0,0 +1,72 @@ +update=Mon 01 Jan 2018 18:56:23 CET +version=1 +last_client=kicad +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[general] +version=1 +[eeschema] +version=1 +LibDir= +[eeschema/libraries] +LibName1=power +LibName2=device +LibName3=transistors +LibName4=conn +LibName5=linear +LibName6=regul +LibName7=74xx +LibName8=cmos4000 +LibName9=adc-dac +LibName10=memory +LibName11=xilinx +LibName12=microcontrollers +LibName13=dsp +LibName14=microchip +LibName15=analog_switches +LibName16=motorola +LibName17=texas +LibName18=intel +LibName19=audio +LibName20=interface +LibName21=digital-audio +LibName22=philips +LibName23=display +LibName24=cypress +LibName25=siliconi +LibName26=opto +LibName27=atmel +LibName28=contrib +LibName29=valves +LibName30=msp430 +LibName31=switches +[schematic_editor] +version=1 +PageLayoutDescrFile= +PlotDirectoryName=../ +SubpartIdSeparator=0 +SubpartFirstId=65 +NetFmtName= +SpiceForceRefPrefix=0 +SpiceUseNetNumbers=0 +LabSize=60 diff --git a/hardware/sensor-light/sensor-light.sch b/hardware/sensor-light/sensor-light.sch new file mode 100644 index 0000000..c9da79b --- /dev/null +++ b/hardware/sensor-light/sensor-light.sch @@ -0,0 +1,345 @@ +EESchema Schematic File Version 2 +LIBS:power +LIBS:device +LIBS:transistors +LIBS:conn +LIBS:linear +LIBS:regul +LIBS:74xx +LIBS:cmos4000 +LIBS:adc-dac +LIBS:memory +LIBS:xilinx +LIBS:microcontrollers +LIBS:dsp +LIBS:microchip +LIBS:analog_switches +LIBS:motorola +LIBS:texas +LIBS:intel +LIBS:audio +LIBS:interface +LIBS:digital-audio +LIBS:philips +LIBS:display +LIBS:cypress +LIBS:siliconi +LIBS:opto +LIBS:atmel +LIBS:contrib +LIBS:valves +LIBS:msp430 +LIBS:switches +LIBS:sensor-light-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L MSP430G2553IN20 U2 +U 1 1 5A4A4B70 +P 5750 4300 +F 0 "U2" H 4250 4900 50 0000 C CNN +F 1 "MSP430G2553IN20" H 7000 3750 50 0000 C CNN +F 2 "20N" H 4300 3750 50 0001 C CIN +F 3 "" H 5700 4300 50 0001 C CNN + 1 5750 4300 + 1 0 0 -1 +$EndComp +$Comp +L CP C1 +U 1 1 5A4A4C0F +P 2200 3900 +F 0 "C1" H 2225 4000 50 0000 L CNN +F 1 "10uF" H 2225 3800 50 0000 L CNN +F 2 "" H 2238 3750 50 0001 C CNN +F 3 "" H 2200 3900 50 0001 C CNN + 1 2200 3900 + 1 0 0 -1 +$EndComp +$Comp +L R R2 +U 1 1 5A4A4D3B +P 9650 4850 +F 0 "R2" V 9730 4850 50 0000 C CNN +F 1 "100 KOhm" V 9650 4850 50 0000 C CNN +F 2 "" V 9580 4850 50 0001 C CNN +F 3 "" H 9650 4850 50 0001 C CNN + 1 9650 4850 + 1 0 0 -1 +$EndComp +$Comp +L R R1 +U 1 1 5A4A4DD8 +P 9300 4200 +F 0 "R1" V 9380 4200 50 0000 C CNN +F 1 "27 Ohm" V 9300 4200 50 0000 C CNN +F 2 "" V 9230 4200 50 0001 C CNN +F 3 "" H 9300 4200 50 0001 C CNN + 1 9300 4200 + 0 1 1 0 +$EndComp +$Comp +L CONN_01X02_MALE J1 +U 1 1 5A4A4E4F +P 1100 5400 +F 0 "J1" H 1100 5575 50 0000 C CNN +F 1 "Power IN 12V" H 1100 5200 50 0000 C CNN +F 2 "" H 1100 5500 50 0001 C CNN +F 3 "" H 1100 5500 50 0001 C CNN + 1 1100 5400 + 1 0 0 -1 +$EndComp +$Comp +L CONN_01X02_FEMALE J6 +U 1 1 5A4A4EAE +P 10050 2850 +F 0 "J6" H 10050 3000 50 0000 C CNN +F 1 "PWM Power OUT 12V" H 10150 2850 50 0000 C BNN +F 2 "" H 10050 2850 50 0001 C CNN +F 3 "" H 10050 2850 50 0001 C CNN + 1 10050 2850 + 1 0 0 -1 +$EndComp +$Comp +L Q_NMOS_DGS Q1 +U 1 1 5A4A4F0F +P 9850 4200 +F 0 "Q1" H 10050 4250 50 0000 L CNN +F 1 "IRLML2502" H 10050 4150 50 0000 L CNN +F 2 "" H 10050 4300 50 0001 C CNN +F 3 "" H 9850 4200 50 0001 C CNN + 1 9850 4200 + 1 0 0 -1 +$EndComp +$Comp +L LD1117S33TR U1 +U 1 1 5A4A4F7A +P 1800 3350 +F 0 "U1" H 1800 3600 50 0000 C CNN +F 1 "Reg 3.3V" H 1800 3550 50 0000 C CNN +F 2 "TO_SOT_Packages_SMD:SOT-223" H 1800 3450 50 0001 C CNN +F 3 "" H 1800 3350 50 0001 C CNN + 1 1800 3350 + 1 0 0 -1 +$EndComp +$Comp +L CONN_01X03_MALE J5 +U 1 1 5A4A4FE3 +P 8950 3500 +F 0 "J5" H 8950 3775 50 0000 C CNN +F 1 "Light Sensor Header" H 8975 3225 50 0000 C CNN +F 2 "" H 8950 3700 50 0001 C CNN +F 3 "" H 8950 3700 50 0001 C CNN + 1 8950 3500 + -1 0 0 1 +$EndComp +$Comp +L CONN_01X03_MALE J3 +U 1 1 5A4A5096 +P 3150 3950 +F 0 "J3" H 3150 4225 50 0000 C CNN +F 1 "PIR Sensor Header 1" H 3175 3675 50 0000 C CNN +F 2 "" H 3150 4150 50 0001 C CNN +F 3 "" H 3150 4150 50 0001 C CNN + 1 3150 3950 + 1 0 0 -1 +$EndComp +$Comp +L CONN_01X03_MALE J2 +U 1 1 5A4A5117 +P 2550 4800 +F 0 "J2" H 2550 5075 50 0000 C CNN +F 1 "PIR Sensor Header 2" H 2575 4525 50 0000 C CNN +F 2 "" H 2550 5000 50 0001 C CNN +F 3 "" H 2550 5000 50 0001 C CNN + 1 2550 4800 + 1 0 0 -1 +$EndComp +$Comp +L SW_DIP_x01 SW1 +U 1 1 5A4A528A +P 8200 5200 +F 0 "SW1" H 8200 5350 50 0000 C CNN +F 1 "Manual ON/OFF" H 8200 5050 50 0000 C CNN +F 2 "" H 8200 5200 50 0001 C CNN +F 3 "" H 8200 5200 50 0001 C CNN + 1 8200 5200 + 0 1 1 0 +$EndComp +$Comp +L LED D2 +U 1 1 5A4A52F3 +P 7800 5050 +F 0 "D2" H 7800 5150 50 0000 C CNN +F 1 "Green LED" H 7800 4950 50 0000 C CNN +F 2 "" H 7800 5050 50 0001 C CNN +F 3 "" H 7800 5050 50 0001 C CNN + 1 7800 5050 + 0 -1 -1 0 +$EndComp +$Comp +L LED D1 +U 1 1 5A4A535C +P 7550 5250 +F 0 "D1" H 7550 5350 50 0000 C CNN +F 1 "Red LED" H 7550 5150 50 0000 C CNN +F 2 "" H 7550 5250 50 0001 C CNN +F 3 "" H 7550 5250 50 0001 C CNN + 1 7550 5250 + 0 -1 -1 0 +$EndComp +$Comp +L CONN_01X04_MALE J4 +U 1 1 5A4A5801 +P 5750 2200 +F 0 "J4" H 5750 2575 50 0000 C CNN +F 1 "PROG Header" H 5750 1800 50 0000 C CNN +F 2 "" H 5750 2500 50 0001 C CNN +F 3 "" H 5750 2500 50 0001 C CNN + 1 5750 2200 + 0 1 1 0 +$EndComp +$Comp +L GNDREF #PWR01 +U 1 1 5A4A62AF +P 5750 5500 +F 0 "#PWR01" H 5750 5250 50 0001 C CNN +F 1 "GNDREF" H 5750 5350 50 0000 C CNN +F 2 "" H 5750 5500 50 0001 C CNN +F 3 "" H 5750 5500 50 0001 C CNN + 1 5750 5500 + 1 0 0 -1 +$EndComp +Wire Wire Line + 1400 5500 9950 5500 +Wire Wire Line + 5750 4950 5750 5500 +Wire Wire Line + 2200 3300 8650 3300 +Wire Wire Line + 5750 3300 5750 3600 +Wire Wire Line + 1800 3600 1800 5500 +Connection ~ 1800 5500 +Wire Wire Line + 1400 2750 1400 5300 +Wire Wire Line + 1400 3300 1950 3300 +Wire Wire Line + 1400 2750 9950 2750 +Connection ~ 1400 3300 +Wire Wire Line + 2200 3300 2200 3750 +Wire Wire Line + 9950 2950 9950 4000 +Wire Wire Line + 9950 5500 9950 4400 +Connection ~ 2200 5500 +Connection ~ 2200 3300 +Wire Wire Line + 9650 4200 9650 4700 +Wire Wire Line + 9650 5000 9650 5500 +Connection ~ 9650 5500 +Connection ~ 9650 4200 +Connection ~ 5750 5500 +Wire Wire Line + 7450 4400 8400 4400 +Wire Wire Line + 8400 4400 8400 3500 +Wire Wire Line + 8400 3500 8650 3500 +Wire Wire Line + 8650 3700 8650 5500 +Connection ~ 8650 5500 +Wire Wire Line + 9450 4200 9650 4200 +Wire Wire Line + 9150 4200 7450 4200 +Connection ~ 8200 5500 +Wire Wire Line + 8200 4300 8200 4900 +Wire Wire Line + 2850 5000 2850 5500 +Connection ~ 2850 5500 +Wire Wire Line + 2850 4600 2850 3300 +Connection ~ 2850 3300 +Wire Wire Line + 3450 3300 3450 3750 +Wire Wire Line + 3450 5500 3450 4150 +Wire Wire Line + 3450 3950 3600 3950 +Wire Wire Line + 3600 3950 3600 4400 +Wire Wire Line + 3600 4400 4050 4400 +Wire Wire Line + 4050 4500 3150 4500 +Wire Wire Line + 3150 4500 3150 4800 +Wire Wire Line + 3150 4800 2850 4800 +Connection ~ 7550 5500 +Wire Wire Line + 7800 5200 7800 5500 +Connection ~ 7800 5500 +Wire Wire Line + 7550 5100 7550 4600 +Wire Wire Line + 7550 4600 7450 4600 +Wire Wire Line + 7800 4900 7800 4000 +Wire Wire Line + 7800 4000 7450 4000 +Wire Wire Line + 7450 4300 8200 4300 +Connection ~ 5750 3300 +Connection ~ 3450 3300 +Connection ~ 3450 5500 +Wire Wire Line + 2200 5500 2200 4050 +Wire Wire Line + 5450 2500 3800 2500 +Wire Wire Line + 3800 2500 3800 5500 +Connection ~ 3800 5500 +Wire Wire Line + 4050 3850 4050 3100 +Wire Wire Line + 4050 3100 5650 3100 +Wire Wire Line + 5650 3100 5650 2500 +Wire Wire Line + 7450 3850 7450 3100 +Wire Wire Line + 7450 3100 5850 3100 +Wire Wire Line + 5850 3100 5850 2500 +Wire Wire Line + 7550 5500 7550 5400 +Wire Wire Line + 6050 2500 6050 3300 +Connection ~ 6050 3300 +NoConn ~ 7450 4100 +NoConn ~ 7450 4500 +NoConn ~ 7450 4700 +NoConn ~ 4050 4000 +NoConn ~ 4050 4100 +NoConn ~ 4050 4200 +NoConn ~ 4050 4300 +NoConn ~ 4050 4600 +NoConn ~ 4050 4700 +$EndSCHEMATC