diff --git a/README.md b/README.md index 17a8ed9..33fe943 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # PlantCtrl ## Documentation of Power-Modes https://lastminuteengineers.com/esp32-sleep-modes-power-consumption/#esp32-deep-sleep + + +gpio 17 only out no hold +gpio 16 only out no hold + + +solar charger 2A? +https://www.aliexpress.com/item/4000238259949.html?spm=a2g0o.productlist.0.0.7e50231cCWGu0Z&algo_pvid=9ab7b0d3-5026-438b-972b-1d4a81d4dc56&algo_expid=9ab7b0d3-5026-438b-972b-1d4a81d4dc56-11&btsid=0b0a0ac215999246489888249e72a9&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_ + +MT3608 boost für pumpe +https://www.aliexpress.com/item/32925951391.html?spm=a2g0o.productlist.0.0.39e21087nAzH9q&algo_pvid=7db0a849-62f7-4403-88e3-615ee4d99339&algo_expid=7db0a849-62f7-4403-88e3-615ee4d99339-0&btsid=0b0a0ac215999252934777876e7253&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_ + +DS18B20 one wire temp sensor diff --git a/board/PlantCtrlESP32.sch b/board/PlantCtrlESP32.sch index 4fd995d..9c27603 100644 --- a/board/PlantCtrlESP32.sch +++ b/board/PlantCtrlESP32.sch @@ -14,17 +14,6 @@ Comment3 "" Comment4 "" $EndDescr $Comp -L power:+3V3 #PWR016 -U 1 1 5EDC2A6D -P 4450 3600 -F 0 "#PWR016" H 4450 3450 50 0001 C CNN -F 1 "+3V3" V 4465 3728 50 0000 L CNN -F 2 "" H 4450 3600 50 0001 C CNN -F 3 "" H 4450 3600 50 0001 C CNN - 1 4450 3600 - 0 -1 -1 0 -$EndComp -$Comp L power:GND #PWR017 U 1 1 5EDC304E P 4450 4900 @@ -35,19 +24,8 @@ F 3 "" H 4450 4900 50 0001 C CNN 1 4450 4900 0 1 1 0 $EndComp -$Comp -L power:+5V #PWR018 -U 1 1 5EDC466D -P 4450 5400 -F 0 "#PWR018" H 4450 5250 50 0001 C CNN -F 1 "+5V" V 4465 5528 50 0000 L CNN -F 2 "" H 4450 5400 50 0001 C CNN -F 3 "" H 4450 5400 50 0001 C CNN - 1 4450 5400 - 0 -1 -1 0 -$EndComp -Text GLabel 4350 5000 0 50 Input ~ 0 -GPIO13 +Text GLabel 6200 5000 2 50 Input ~ 0 +Temp $Comp L Device:R R1 U 1 1 5EDC87BD @@ -70,7 +48,6 @@ F 3 "~" H 1000 4250 50 0001 C CNN 1 1000 4250 1 0 0 -1 $EndComp -Connection ~ 1000 4100 $Comp L power:GND #PWR02 U 1 1 5EDCD257 @@ -82,10 +59,6 @@ F 3 "" H 1000 4400 50 0001 C CNN 1 1000 4400 1 0 0 -1 $EndComp -Text Notes 800 3550 0 50 ~ 0 -Solar Panel -Wire Wire Line - 1000 4100 4450 4100 $Comp L Device:R R4 U 1 1 5EDD7349 @@ -119,206 +92,12 @@ F 3 "" H 1550 3800 50 0001 C CNN 1 1550 3800 1 0 0 -1 $EndComp -Wire Wire Line - 4450 4000 2000 4000 Wire Wire Line 2000 4000 2000 3500 Wire Wire Line 2000 3500 1550 3500 Connection ~ 1550 3500 $Comp -L Transistor_BJT:BC558 Q7 -U 1 1 5EDF27DC -P 9000 5350 -F 0 "Q7" H 9191 5396 50 0000 L CNN -F 1 "BC558" H 9191 5305 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-92_Inline" H 9200 5275 50 0001 L CIN -F 3 "http://www.fairchildsemi.com/ds/BC/BC557.pdf" H 9000 5350 50 0001 L CNN - 1 9000 5350 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR026 -U 1 1 5EDF53C1 -P 8050 5850 -F 0 "#PWR026" H 8050 5600 50 0001 C CNN -F 1 "GND" H 8055 5677 50 0000 C CNN -F 2 "" H 8050 5850 50 0001 C CNN -F 3 "" H 8050 5850 50 0001 C CNN - 1 8050 5850 - 1 0 0 -1 -$EndComp -Wire Wire Line - 8350 5750 8350 5850 -$Comp -L Device:R R23 -U 1 1 5EE020DF -P 7700 5700 -F 0 "R23" H 7770 5746 50 0000 L CNN -F 1 "10k" H 7770 5655 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 7630 5700 50 0001 C CNN -F 3 "~" H 7700 5700 50 0001 C CNN - 1 7700 5700 - 1 0 0 -1 -$EndComp -Wire Wire Line - 7700 5850 8050 5850 -Wire Wire Line - 8050 5550 7700 5550 -Connection ~ 8050 5850 -Wire Wire Line - 8050 5850 8350 5850 -$Comp -L power:+5V #PWR029 -U 1 1 5EE0D1BB -P 9100 5650 -F 0 "#PWR029" H 9100 5500 50 0001 C CNN -F 1 "+5V" H 9115 5823 50 0000 C CNN -F 2 "" H 9100 5650 50 0001 C CNN -F 3 "" H 9100 5650 50 0001 C CNN - 1 9100 5650 - -1 0 0 1 -$EndComp -$Comp -L power:+9V #PWR01 -U 1 1 5EE168F4 -P 1000 3800 -F 0 "#PWR01" H 1000 3650 50 0001 C CNN -F 1 "+9V" H 1015 3973 50 0000 C CNN -F 2 "" H 1000 3800 50 0001 C CNN -F 3 "" H 1000 3800 50 0001 C CNN - 1 1000 3800 - 1 0 0 -1 -$EndComp -$Comp -L power:+9V #PWR03 -U 1 1 5EE1870B -P 1500 900 -F 0 "#PWR03" H 1500 750 50 0001 C CNN -F 1 "+9V" V 1515 1073 50 0000 C CNN -F 2 "" H 1500 900 50 0001 C CNN -F 3 "" H 1500 900 50 0001 C CNN - 1 1500 900 - 0 -1 -1 0 -$EndComp -Text GLabel 9100 5150 1 50 Input ~ 0 -5V_SENSORS -Wire Wire Line - 9100 5650 9100 5550 -Text GLabel 4250 4200 0 50 Input ~ 0 -PLANT1_MOIST -Text GLabel 4250 4300 0 50 Input ~ 0 -PLANT2_MOIST -Text GLabel 4250 4400 0 50 Input ~ 0 -PLANT3_MOIST -Text GLabel 4250 4500 0 50 Input ~ 0 -PLANT4_MOIST -Text GLabel 4250 4600 0 50 Input ~ 0 -PLANT5_MOIST -Text GLabel 4250 4700 0 50 Input ~ 0 -PLANT6_MOIST -Text GLabel 6450 5000 2 50 Input ~ 0 -WATER_LOW -Text GLabel 6450 5100 2 50 Input ~ 0 -WATER_EMPTY -$Comp -L Transistor_FET:IRLZ34N Q3 -U 1 1 5EE25042 -P 7600 2650 -F 0 "Q3" H 7806 2696 50 0000 L CNN -F 1 "IRLZ34N" H 7806 2605 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-220-3_Vertical" H 7850 2575 50 0001 L CIN -F 3 "http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720" H 7600 2650 50 0001 L CNN - 1 7600 2650 - 1 0 0 -1 -$EndComp -Text Notes 7500 1700 0 50 ~ 0 -Pump control -$Comp -L Transistor_FET:IRLZ34N Q2 -U 1 1 5EE49580 -P 7100 2300 -F 0 "Q2" H 7306 2346 50 0000 L CNN -F 1 "IRLZ34N" H 7306 2255 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-220-3_Vertical" H 7350 2225 50 0001 L CIN -F 3 "http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720" H 7100 2300 50 0001 L CNN - 1 7100 2300 - 1 0 0 -1 -$EndComp -$Comp -L Transistor_FET:BS170 Q5 -U 1 1 5EDEF939 -P 8250 5550 -F 0 "Q5" H 8456 5596 50 0000 L CNN -F 1 "BS170" H 8456 5505 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-92_Inline" H 8450 5475 50 0001 L CIN -F 3 "http://www.fairchildsemi.com/ds/BS/BS170.pdf" H 8250 5550 50 0001 L CNN - 1 8250 5550 - 1 0 0 -1 -$EndComp -$Comp -L Transistor_FET:IRLZ34N Q4 -U 1 1 5EE79BF8 -P 8100 3050 -F 0 "Q4" H 8306 3096 50 0000 L CNN -F 1 "IRLZ34N" H 8306 3005 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-220-3_Vertical" H 8350 2975 50 0001 L CIN -F 3 "http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720" H 8100 3050 50 0001 L CNN - 1 8100 3050 - 1 0 0 -1 -$EndComp -$Comp -L Transistor_FET:IRLZ34N Q6 -U 1 1 5EE7A2B9 -P 8650 3450 -F 0 "Q6" H 8856 3496 50 0000 L CNN -F 1 "IRLZ34N" H 8856 3405 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-220-3_Vertical" H 8900 3375 50 0001 L CIN -F 3 "http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720" H 8650 3450 50 0001 L CNN - 1 8650 3450 - 1 0 0 -1 -$EndComp -$Comp -L Transistor_FET:IRLZ34N Q8 -U 1 1 5EE7AA19 -P 9150 3800 -F 0 "Q8" H 9356 3846 50 0000 L CNN -F 1 "IRLZ34N" H 9356 3755 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-220-3_Vertical" H 9400 3725 50 0001 L CIN -F 3 "http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720" H 9150 3800 50 0001 L CNN - 1 9150 3800 - 1 0 0 -1 -$EndComp -$Comp -L Transistor_FET:IRLZ34N Q1 -U 1 1 5EE7B36C -P 6650 1900 -F 0 "Q1" H 6856 1946 50 0000 L CNN -F 1 "IRLZ34N" H 6856 1855 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-220-3_Vertical" H 6900 1825 50 0001 L CIN -F 3 "http://www.infineon.com/dgdl/irlz34npbf.pdf?fileId=5546d462533600a40153567206892720" H 6650 1900 50 0001 L CNN - 1 6650 1900 - 1 0 0 -1 -$EndComp -Wire Wire Line - 7150 3800 7150 3450 -Wire Wire Line - 7150 3450 6500 3450 -Wire Wire Line - 6500 3450 6500 3700 -Wire Wire Line - 6450 3800 6450 3400 -Wire Wire Line - 6450 3400 7200 3400 -Wire Wire Line - 7200 3400 7200 3450 -Wire Wire Line - 7200 3450 8450 3450 -Wire Wire Line - 6400 4100 6400 3050 -Wire Wire Line - 6400 3050 7900 3050 -$Comp L power:GND #PWR023 U 1 1 5EE874ED P 6050 4200 @@ -329,94 +108,19 @@ F 3 "" H 6050 4200 50 0001 C CNN 1 6050 4200 0 -1 -1 0 $EndComp -Wire Wire Line - 6350 2650 7400 2650 $Comp L power:GND #PWR021 U 1 1 5EE99319 -P 6750 2100 -F 0 "#PWR021" H 6750 1850 50 0001 C CNN -F 1 "GND" H 6650 2050 50 0000 R CNN -F 2 "" H 6750 2100 50 0001 C CNN -F 3 "" H 6750 2100 50 0001 C CNN - 1 6750 2100 +P 5750 1650 +F 0 "#PWR021" H 5750 1400 50 0001 C CNN +F 1 "GND" H 5650 1600 50 0000 R CNN +F 2 "" H 5750 1650 50 0001 C CNN +F 3 "" H 5750 1650 50 0001 C CNN + 1 5750 1650 1 0 0 -1 $EndComp -$Comp -L power:GND #PWR030 -U 1 1 5EE9DD45 -P 9250 4000 -F 0 "#PWR030" H 9250 3750 50 0001 C CNN -F 1 "GND" H 9100 3950 50 0000 R CNN -F 2 "" H 9250 4000 50 0001 C CNN -F 3 "" H 9250 4000 50 0001 C CNN - 1 9250 4000 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR028 -U 1 1 5EE9E3C0 -P 8750 3650 -F 0 "#PWR028" H 8750 3400 50 0001 C CNN -F 1 "GND" H 8650 3600 50 0000 R CNN -F 2 "" H 8750 3650 50 0001 C CNN -F 3 "" H 8750 3650 50 0001 C CNN - 1 8750 3650 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR027 -U 1 1 5EE9E8A2 -P 8200 3250 -F 0 "#PWR027" H 8200 3000 50 0001 C CNN -F 1 "GND" H 8150 3200 50 0000 R CNN -F 2 "" H 8200 3250 50 0001 C CNN -F 3 "" H 8200 3250 50 0001 C CNN - 1 8200 3250 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR025 -U 1 1 5EE9EE0D -P 7700 2850 -F 0 "#PWR025" H 7700 2600 50 0001 C CNN -F 1 "GND" H 7650 2800 50 0000 R CNN -F 2 "" H 7700 2850 50 0001 C CNN -F 3 "" H 7700 2850 50 0001 C CNN - 1 7700 2850 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR024 -U 1 1 5EEA28ED -P 7200 2500 -F 0 "#PWR024" H 7200 2250 50 0001 C CNN -F 1 "GND" H 7100 2450 50 0000 R CNN -F 2 "" H 7200 2500 50 0001 C CNN -F 3 "" H 7200 2500 50 0001 C CNN - 1 7200 2500 - 1 0 0 -1 -$EndComp -Wire Wire Line - 8950 3800 7150 3800 -Wire Wire Line - 6450 1900 6250 1900 -Wire Wire Line - 6300 2300 6300 4400 -Wire Wire Line - 6300 2300 6900 2300 -Text GLabel 9250 3600 1 50 Input ~ 0 -PLANT1_PUMP -Text GLabel 8750 3250 1 50 Input ~ 0 -PLANT2_PUMP -Text GLabel 8200 2850 1 50 Input ~ 0 -PLANT3_PUMP -Text GLabel 7700 2450 1 50 Input ~ 0 +Text GLabel 5750 1250 1 50 Input ~ 0 PLANT4_PUMP -Text GLabel 7200 2100 1 50 Input ~ 0 -PLANT5_PUMP -Text GLabel 6750 1700 1 50 Input ~ 0 -PLANT6_PUMP NoConn ~ 4450 5300 NoConn ~ 4450 3700 NoConn ~ 4450 3800 @@ -424,225 +128,56 @@ NoConn ~ 4450 3900 NoConn ~ 6050 5400 NoConn ~ 6050 5300 NoConn ~ 6050 5200 -NoConn ~ 6050 4700 NoConn ~ 4450 5200 NoConn ~ 4450 5100 NoConn ~ 6050 4900 -$Comp -L Device:R R18 -U 1 1 5EF42F29 -P 4150 7150 -F 0 "R18" H 4220 7196 50 0000 L CNN -F 1 "47k8" H 4220 7105 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 4080 7150 50 0001 C CNN -F 3 "~" H 4150 7150 50 0001 C CNN - 1 4150 7150 - 1 0 0 -1 -$EndComp -$Comp -L Device:R R17 -U 1 1 5EF433DE -P 4150 6800 -F 0 "R17" H 4220 6846 50 0000 L CNN -F 1 "33k" H 4220 6755 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 4080 6800 50 0001 C CNN -F 3 "~" H 4150 6800 50 0001 C CNN - 1 4150 6800 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR014 -U 1 1 5EF437E4 -P 4150 7300 -F 0 "#PWR014" H 4150 7050 50 0001 C CNN -F 1 "GND" H 4155 7127 50 0000 C CNN -F 2 "" H 4150 7300 50 0001 C CNN -F 3 "" H 4150 7300 50 0001 C CNN - 1 4150 7300 - 1 0 0 -1 -$EndComp -Wire Wire Line - 4450 4800 4400 4800 -Wire Wire Line - 4400 4800 4400 6950 -Wire Wire Line - 4400 6950 4150 6950 -Wire Wire Line - 4150 6950 4150 7000 -Connection ~ 4150 6950 -Text GLabel 4150 6650 1 50 Input ~ 0 -OVERFLOW_WATER Text Notes 4800 3500 0 105 ~ 0 ESP32 DISCOVERY \nBOARD $Comp -L Connector_Generic:Conn_01x12 J1 +L Connector_Generic:Conn_01x14 J1 U 1 1 5EF84EAD -P 1700 1400 -F 0 "J1" H 1780 1392 50 0000 L CNN -F 1 "Conn_01x12" H 1780 1301 50 0000 L CNN -F 2 "Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_12-G-5.08_1x12_P5.08mm_Horizontal" H 1700 1400 50 0001 C CNN -F 3 "~" H 1700 1400 50 0001 C CNN - 1 1700 1400 +P 1700 1500 +F 0 "J1" H 1780 1492 50 0000 L CNN +F 1 "Conn_01x14" H 1780 1401 50 0000 L CNN +F 2 "Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_14-G-5.08_1x14_P5.08mm_Horizontal" H 1700 1500 50 0001 C CNN +F 3 "~" H 1700 1500 50 0001 C CNN + 1 1700 1500 1 0 0 -1 $EndComp -Text GLabel 1500 1000 0 50 Input ~ 0 -PLANT1_PUMP Text GLabel 1500 1200 0 50 Input ~ 0 -PLANT2_PUMP +PLANT1_PUMP Text GLabel 1500 1400 0 50 Input ~ 0 -PLANT3_PUMP +PLANT2_PUMP Text GLabel 1500 1600 0 50 Input ~ 0 -PLANT4_PUMP +PLANT3_PUMP Text GLabel 1500 1800 0 50 Input ~ 0 -PLANT5_PUMP +PLANT4_PUMP Text GLabel 1500 2000 0 50 Input ~ 0 +PLANT5_PUMP +Text GLabel 1500 2200 0 50 Input ~ 0 PLANT6_PUMP -$Comp -L power:+9V #PWR04 -U 1 1 5EFB414E -P 1500 1100 -F 0 "#PWR04" H 1500 950 50 0001 C CNN -F 1 "+9V" V 1515 1273 50 0000 C CNN -F 2 "" H 1500 1100 50 0001 C CNN -F 3 "" H 1500 1100 50 0001 C CNN - 1 1500 1100 - 0 -1 -1 0 -$EndComp -$Comp -L power:+9V #PWR05 -U 1 1 5EFB43DA -P 1500 1300 -F 0 "#PWR05" H 1500 1150 50 0001 C CNN -F 1 "+9V" V 1515 1473 50 0000 C CNN -F 2 "" H 1500 1300 50 0001 C CNN -F 3 "" H 1500 1300 50 0001 C CNN - 1 1500 1300 - 0 -1 -1 0 -$EndComp -$Comp -L power:+9V #PWR06 -U 1 1 5EFB46D6 -P 1500 1500 -F 0 "#PWR06" H 1500 1350 50 0001 C CNN -F 1 "+9V" V 1515 1673 50 0000 C CNN -F 2 "" H 1500 1500 50 0001 C CNN -F 3 "" H 1500 1500 50 0001 C CNN - 1 1500 1500 - 0 -1 -1 0 -$EndComp -$Comp -L power:+9V #PWR07 -U 1 1 5EFB4931 -P 1500 1700 -F 0 "#PWR07" H 1500 1550 50 0001 C CNN -F 1 "+9V" V 1515 1873 50 0000 C CNN -F 2 "" H 1500 1700 50 0001 C CNN -F 3 "" H 1500 1700 50 0001 C CNN - 1 1500 1700 - 0 -1 -1 0 -$EndComp -$Comp -L power:+9V #PWR08 -U 1 1 5EFB53E2 -P 1500 1900 -F 0 "#PWR08" H 1500 1750 50 0001 C CNN -F 1 "+9V" V 1515 2073 50 0000 C CNN -F 2 "" H 1500 1900 50 0001 C CNN -F 3 "" H 1500 1900 50 0001 C CNN - 1 1500 1900 - 0 -1 -1 0 -$EndComp -$Comp -L Connector_Generic:Conn_01x04 J2 -U 1 1 5EFB649F -P 2650 1100 -F 0 "J2" H 2730 1092 50 0000 L CNN -F 1 "Conn_01x04" H 2730 1001 50 0000 L CNN -F 2 "Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_4-G-5.08_1x04_P5.08mm_Horizontal" H 2650 1100 50 0001 C CNN -F 3 "~" H 2650 1100 50 0001 C CNN - 1 2650 1100 - 1 0 0 -1 -$EndComp Text Notes 1300 700 0 50 ~ 0 Pump Control -Text Notes 2300 850 0 50 ~ 0 -Power Input -Wire Wire Line - 2450 1200 2350 1200 -Wire Wire Line - 2350 1200 2350 3200 -Wire Wire Line - 2350 3200 1550 3200 -$Comp -L power:+9V #PWR010 -U 1 1 5EFBDB08 -P 2450 1000 -F 0 "#PWR010" H 2450 850 50 0001 C CNN -F 1 "+9V" V 2465 1173 50 0000 C CNN -F 2 "" H 2450 1000 50 0001 C CNN -F 3 "" H 2450 1000 50 0001 C CNN - 1 2450 1000 - 0 -1 -1 0 -$EndComp -$Comp -L power:+5V #PWR011 -U 1 1 5EFC2507 -P 2450 1100 -F 0 "#PWR011" H 2450 950 50 0001 C CNN -F 1 "+5V" V 2465 1228 50 0000 L CNN -F 2 "" H 2450 1100 50 0001 C CNN -F 3 "" H 2450 1100 50 0001 C CNN - 1 2450 1100 - 0 -1 -1 0 -$EndComp -$Comp -L power:GND #PWR012 -U 1 1 5EFC7DEC -P 2450 1300 -F 0 "#PWR012" H 2450 1050 50 0001 C CNN -F 1 "GND" V 2455 1172 50 0000 R CNN -F 2 "" H 2450 1300 50 0001 C CNN -F 3 "" H 2450 1300 50 0001 C CNN - 1 2450 1300 - 1 0 0 -1 -$EndComp Text Notes 1850 3150 0 50 ~ 0 Lipo Text Notes 4150 750 0 50 ~ 0 Sensors -Text GLabel 4350 1000 0 50 Input ~ 0 +Text GLabel 4350 1100 0 50 Input ~ 0 PLANT1_MOIST Text GLabel 4050 900 0 50 Input ~ 0 -5V_SENSORS +PWR_SENSORS Wire Wire Line 4050 900 4350 900 -Text GLabel 4350 1100 0 50 Input ~ 0 -PLANT2_MOIST Text GLabel 4350 1200 0 50 Input ~ 0 -PLANT3_MOIST +PLANT2_MOIST Text GLabel 4350 1300 0 50 Input ~ 0 -PLANT4_MOIST +PLANT3_MOIST Text GLabel 4350 1400 0 50 Input ~ 0 -PLANT5_MOIST +PLANT4_MOIST Text GLabel 4350 1500 0 50 Input ~ 0 +PLANT5_MOIST +Text GLabel 4350 1600 0 50 Input ~ 0 PLANT6_MOIST -Text GLabel 4350 2050 0 50 Input ~ 0 -WATER_LOW -Text GLabel 4350 2150 0 50 Input ~ 0 -WATER_EMPTY -Text GLabel 4350 2250 0 50 Input ~ 0 -OVERFLOW_WATER -$Comp -L power:GND #PWR015 -U 1 1 5F01A8DF -P 4350 2350 -F 0 "#PWR015" H 4350 2100 50 0001 C CNN -F 1 "GND" V 4355 2222 50 0000 R CNN -F 2 "" H 4350 2350 50 0001 C CNN -F 3 "" H 4350 2350 50 0001 C CNN - 1 4350 2350 - 1 0 0 -1 -$EndComp $Comp L Sensor_Temperature:DS18B20 U1 U 1 1 5F02FBC0 @@ -666,22 +201,9 @@ F 3 "" H 10250 1750 50 0001 C CNN 1 0 0 -1 $EndComp Text GLabel 10800 1450 2 50 Input ~ 0 -GPIO13 -$Comp -L power:+3V3 #PWR031 -U 1 1 5F03E5CD -P 10250 1100 -F 0 "#PWR031" H 10250 950 50 0001 C CNN -F 1 "+3V3" V 10265 1228 50 0000 L CNN -F 2 "" H 10250 1100 50 0001 C CNN -F 3 "" H 10250 1100 50 0001 C CNN - 1 10250 1100 - 1 0 0 -1 -$EndComp +Temp Text Notes 10200 750 0 50 ~ 0 Temp Sensor -Wire Wire Line - 4050 1950 4350 1950 $Comp L Connector_Generic:Conn_01x03 J6 U 1 1 5F109CD6 @@ -694,7 +216,7 @@ F 3 "~" H 10250 2300 50 0001 C CNN -1 0 0 1 $EndComp Text GLabel 10450 2300 2 50 Input ~ 0 -GPIO13 +Temp $Comp L power:GND #PWR033 U 1 1 5F10D99F @@ -707,133 +229,27 @@ F 3 "" H 10450 2400 50 0001 C CNN 1 0 0 -1 $EndComp $Comp -L power:+3V3 #PWR034 -U 1 1 5F10E031 -P 10700 2200 -F 0 "#PWR034" H 10700 2050 50 0001 C CNN -F 1 "+3V3" V 10715 2328 50 0000 L CNN -F 2 "" H 10700 2200 50 0001 C CNN -F 3 "" H 10700 2200 50 0001 C CNN - 1 10700 2200 - 1 0 0 -1 -$EndComp -Wire Wire Line - 10450 2200 10700 2200 -$Comp -L Connector_Generic:Conn_01x08 J3 +L Connector_Generic:Conn_01x09 J3 U 1 1 5EDD9BA2 -P 4550 1200 -F 0 "J3" H 4630 1192 50 0000 L CNN -F 1 "Conn_01x08" H 4630 1101 50 0000 L CNN -F 2 "Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_8-G-5.08_1x08_P5.08mm_Horizontal" H 4550 1200 50 0001 C CNN -F 3 "~" H 4550 1200 50 0001 C CNN - 1 4550 1200 - 1 0 0 -1 -$EndComp -$Comp -L Connector_Generic:Conn_01x05 J7 -U 1 1 5EDDA7EB -P 4550 2150 -F 0 "J7" H 4630 2192 50 0000 L CNN -F 1 "Conn_01x05" H 4630 2101 50 0000 L CNN -F 2 "Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_5-G-5.08_1x05_P5.08mm_Horizontal" H 4550 2150 50 0001 C CNN -F 3 "~" H 4550 2150 50 0001 C CNN - 1 4550 2150 +P 4550 1300 +F 0 "J3" H 4630 1292 50 0000 L CNN +F 1 "Conn_01x08" H 4630 1201 50 0000 L CNN +F 2 "Connector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_9-G-5.08_1x09_P5.08mm_Horizontal" H 4550 1300 50 0001 C CNN +F 3 "~" H 4550 1300 50 0001 C CNN + 1 4550 1300 1 0 0 -1 $EndComp $Comp L power:GND #PWR0101 U 1 1 5EDF08D6 -P 4350 1600 -F 0 "#PWR0101" H 4350 1350 50 0001 C CNN -F 1 "GND" V 4355 1472 50 0000 R CNN -F 2 "" H 4350 1600 50 0001 C CNN -F 3 "" H 4350 1600 50 0001 C CNN - 1 4350 1600 - 1 0 0 -1 -$EndComp -$Comp -L Transistor_BJT:BC558 Q9 -U 1 1 5EE82DFD -P 10750 5350 -F 0 "Q9" H 10941 5396 50 0000 L CNN -F 1 "BC558" H 10941 5305 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-92_Inline" H 10950 5275 50 0001 L CIN -F 3 "http://www.fairchildsemi.com/ds/BC/BC557.pdf" H 10750 5350 50 0001 L CNN - 1 10750 5350 - 1 0 0 -1 -$EndComp -Text GLabel 10850 5100 1 50 Input ~ 0 -9V_SENSORS -Text GLabel 4050 1950 0 50 Input ~ 0 -9V_SENSORS -Wire Wire Line - 10850 5150 10850 5100 -$Comp -L Device:R R24 -U 1 1 5EE05BA7 -P 8650 5350 -F 0 "R24" H 8720 5396 50 0000 L CNN -F 1 "100" H 8720 5305 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 8580 5350 50 0001 C CNN -F 3 "~" H 8650 5350 50 0001 C CNN - 1 8650 5350 +P 4350 1700 +F 0 "#PWR0101" H 4350 1450 50 0001 C CNN +F 1 "GND" V 4355 1572 50 0000 R CNN +F 2 "" H 4350 1700 50 0001 C CNN +F 3 "" H 4350 1700 50 0001 C CNN + 1 4350 1700 0 1 1 0 $EndComp -Wire Wire Line - 8350 5350 8500 5350 -$Comp -L Device:R R25 -U 1 1 5EE08B34 -P 10400 5350 -F 0 "R25" H 10470 5396 50 0000 L CNN -F 1 "100" H 10470 5305 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 10330 5350 50 0001 C CNN -F 3 "~" H 10400 5350 50 0001 C CNN - 1 10400 5350 - 0 1 1 0 -$EndComp -$Comp -L power:+9V #PWR035 -U 1 1 5EE92EF6 -P 10850 5700 -F 0 "#PWR035" H 10850 5550 50 0001 C CNN -F 1 "+9V" V 10865 5873 50 0000 C CNN -F 2 "" H 10850 5700 50 0001 C CNN -F 3 "" H 10850 5700 50 0001 C CNN - 1 10850 5700 - -1 0 0 1 -$EndComp -Wire Wire Line - 10850 5700 10850 5550 -$Comp -L Transistor_FET:BS170 Q10 -U 1 1 5EE178BC -P 10050 5550 -F 0 "Q10" H 10256 5596 50 0000 L CNN -F 1 "BS170" H 10256 5505 50 0000 L CNN -F 2 "Package_TO_SOT_THT:TO-92_Inline" H 10250 5475 50 0001 L CIN -F 3 "http://www.fairchildsemi.com/ds/BS/BS170.pdf" H 10050 5550 50 0001 L CNN - 1 10050 5550 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR036 -U 1 1 5EE18226 -P 10150 5850 -F 0 "#PWR036" H 10150 5600 50 0001 C CNN -F 1 "GND" H 10155 5677 50 0000 C CNN -F 2 "" H 10150 5850 50 0001 C CNN -F 3 "" H 10150 5850 50 0001 C CNN - 1 10150 5850 - 1 0 0 -1 -$EndComp -Wire Wire Line - 10150 5350 10250 5350 -Wire Wire Line - 9850 5550 9850 4550 -Wire Wire Line - 10150 5850 10150 5750 $Comp L Device:R R26 U 1 1 5EE03137 @@ -858,62 +274,6 @@ Connection ~ 10250 1150 Text Notes 2100 3650 0 50 ~ 0 replaced 47k8 by 39k\nand 33k by 27k\n\ndue to availabilty of parts $Comp -L Device:R R27 -U 1 1 5EEE4884 -P 7250 5550 -F 0 "R27" H 7320 5596 50 0000 L CNN -F 1 "100" H 7320 5505 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal" V 7180 5550 50 0001 C CNN -F 3 "~" H 7250 5550 50 0001 C CNN - 1 7250 5550 - 0 1 1 0 -$EndComp -$Comp -L Device:R R28 -U 1 1 5EEE4DBD -P 9600 4550 -F 0 "R28" H 9670 4596 50 0000 L CNN -F 1 "100" H 9670 4505 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 9530 4550 50 0001 C CNN -F 3 "~" H 9600 4550 50 0001 C CNN - 1 9600 4550 - 0 1 1 0 -$EndComp -$Comp -L Device:R R29 -U 1 1 5EEE555F -P 9800 5700 -F 0 "R29" H 9870 5746 50 0000 L CNN -F 1 "10k" H 9870 5655 50 0000 L CNN -F 2 "Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P20.32mm_Horizontal" V 9730 5700 50 0001 C CNN -F 3 "~" H 9800 5700 50 0001 C CNN - 1 9800 5700 - 1 0 0 -1 -$EndComp -$Comp -L power:GND #PWR037 -U 1 1 5EEE5C5E -P 9800 5850 -F 0 "#PWR037" H 9800 5600 50 0001 C CNN -F 1 "GND" H 9805 5677 50 0000 C CNN -F 2 "" H 9800 5850 50 0001 C CNN -F 3 "" H 9800 5850 50 0001 C CNN - 1 9800 5850 - 1 0 0 -1 -$EndComp -Wire Wire Line - 9750 4550 9850 4550 -Wire Wire Line - 9800 5550 9850 5550 -Connection ~ 9850 5550 -Wire Wire Line - 7100 5550 7100 4800 -Wire Wire Line - 7100 4550 9450 4550 -Wire Wire Line - 7400 5550 7700 5550 -Connection ~ 7700 5550 -$Comp L power:GND #PWR022 U 1 1 5EE48202 P 6050 3600 @@ -924,8 +284,6 @@ F 3 "" H 6050 3600 50 0001 C CNN 1 6050 3600 0 -1 -1 0 $EndComp -Wire Wire Line - 6350 4300 6350 2650 $Comp L ESP32-DEVKITC-32D:ESP32-DEVKITC-32D U2 U 1 1 5F5A25C2 @@ -939,40 +297,677 @@ F 4 "Espressif Systems" H 5250 4500 50 0001 L BNN "Field4" 1 0 0 -1 $EndComp Wire Wire Line - 6250 4500 6050 4500 + 6200 5000 6050 5000 +Text GLabel 4350 1000 0 50 Input ~ 0 +PLANT0_MOIST +Connection ~ 1000 4100 +NoConn ~ 6050 3900 +NoConn ~ 6050 4000 +Text GLabel 5450 1350 1 50 Input ~ 0 +PLANT_CTRL_PUMP_4 Wire Wire Line - 6250 1900 6250 4500 + 5450 1350 5450 1450 +$Comp +L power:GND #PWR? +U 1 1 5F69D991 +P 6550 1650 +F 0 "#PWR?" H 6550 1400 50 0001 C CNN +F 1 "GND" H 6450 1600 50 0000 R CNN +F 2 "" H 6550 1650 50 0001 C CNN +F 3 "" H 6550 1650 50 0001 C CNN + 1 6550 1650 + 1 0 0 -1 +$EndComp +Text GLabel 6550 1250 1 50 Input ~ 0 +PLANT5_PUMP +Text GLabel 6250 1350 1 50 Input ~ 0 +PLANT_CTRL_PUMP_5 Wire Wire Line - 6300 4400 6050 4400 + 6250 1350 6250 1450 +$Comp +L power:GND #PWR? +U 1 1 5F69F2EC +P 7350 1650 +F 0 "#PWR?" H 7350 1400 50 0001 C CNN +F 1 "GND" H 7250 1600 50 0000 R CNN +F 2 "" H 7350 1650 50 0001 C CNN +F 3 "" H 7350 1650 50 0001 C CNN + 1 7350 1650 + 1 0 0 -1 +$EndComp +Text GLabel 7350 1250 1 50 Input ~ 0 +PLANT6_PUMP +Text GLabel 7050 1350 1 50 Input ~ 0 +PLANT_CTRL_PUMP_6 Wire Wire Line - 6050 4300 6350 4300 + 7050 1350 7050 1450 +$Comp +L power:GND #PWR? +U 1 1 5F6AD39E +P 5750 3000 +F 0 "#PWR?" H 5750 2750 50 0001 C CNN +F 1 "GND" H 5650 2950 50 0000 R CNN +F 2 "" H 5750 3000 50 0001 C CNN +F 3 "" H 5750 3000 50 0001 C CNN + 1 5750 3000 + 1 0 0 -1 +$EndComp +Text GLabel 5750 2600 1 50 Input ~ 0 +PLANT0_PUMP +Text GLabel 5450 2700 1 50 Input ~ 0 +PLANT_CTRL_PUMP_0 Wire Wire Line - 6400 4100 6050 4100 + 5450 2700 5450 2800 +$Comp +L power:GND #PWR? +U 1 1 5F6AF956 +P 6550 3050 +F 0 "#PWR?" H 6550 2800 50 0001 C CNN +F 1 "GND" H 6450 3000 50 0000 R CNN +F 2 "" H 6550 3050 50 0001 C CNN +F 3 "" H 6550 3050 50 0001 C CNN + 1 6550 3050 + 1 0 0 -1 +$EndComp +Text GLabel 6550 2650 1 50 Input ~ 0 +PLANT1_PUMP +Text GLabel 6250 2750 1 50 Input ~ 0 +PLANT_CTRL_PUMP_1 Wire Wire Line - 6450 3800 6050 3800 + 6250 2750 6250 2850 +$Comp +L power:GND #PWR? +U 1 1 5F6B1644 +P 7350 3000 +F 0 "#PWR?" H 7350 2750 50 0001 C CNN +F 1 "GND" H 7250 2950 50 0000 R CNN +F 2 "" H 7350 3000 50 0001 C CNN +F 3 "" H 7350 3000 50 0001 C CNN + 1 7350 3000 + 1 0 0 -1 +$EndComp +Text GLabel 7350 2600 1 50 Input ~ 0 +PLANT2_PUMP +Text GLabel 7050 2700 1 50 Input ~ 0 +PLANT_CTRL_PUMP_2 Wire Wire Line - 6500 3700 6050 3700 + 7050 2700 7050 2800 +$Comp +L power:GND #PWR? +U 1 1 5F6B314A +P 8100 3050 +F 0 "#PWR?" H 8100 2800 50 0001 C CNN +F 1 "GND" H 8000 3000 50 0000 R CNN +F 2 "" H 8100 3050 50 0001 C CNN +F 3 "" H 8100 3050 50 0001 C CNN + 1 8100 3050 + 1 0 0 -1 +$EndComp +Text GLabel 8100 2650 1 50 Input ~ 0 +PLANT3_PUMP +Text GLabel 7800 2750 1 50 Input ~ 0 +PLANT_CTRL_PUMP_3 Wire Wire Line - 6050 5000 6450 5000 + 7800 2750 7800 2850 +Text GLabel 6150 5100 2 50 Input ~ 0 +PLANT_CTRL_PUMP_0 +Text GLabel 6150 3800 2 50 Input ~ 0 +PLANT_CTRL_PUMP_1 +Text GLabel 6150 4100 2 50 Input ~ 0 +PLANT_CTRL_PUMP_2 +Text GLabel 6150 4300 2 50 Input ~ 0 +PLANT_CTRL_PUMP_3 +Text GLabel 6150 4400 2 50 Input ~ 0 +PLANT_CTRL_PUMP_4 +Text GLabel 6150 4500 2 50 Input ~ 0 +PLANT_CTRL_PUMP_5 Wire Wire Line - 6450 5100 6050 5100 -Connection ~ 7100 4800 + 6050 3800 6150 3800 Wire Wire Line - 7100 4800 7100 4550 + 6150 4300 6050 4300 Wire Wire Line - 6050 4800 7100 4800 + 6050 4100 6150 4100 Wire Wire Line - 4450 5000 4350 5000 + 6150 4400 6050 4400 +Wire Wire Line + 6050 4500 6150 4500 +Text GLabel 6150 4800 2 50 Input ~ 0 +PLANT_CTRL_PUMP_6 +Wire Wire Line + 6050 5100 6150 5100 +Wire Wire Line + 6050 4800 6150 4800 +Text GLabel 6150 4700 2 50 Input ~ 0 +TANK_TRIGGER +Wire Wire Line + 6050 4600 6150 4600 +Text GLabel 6150 4600 2 50 Input ~ 0 +TANK_ECHO +Wire Wire Line + 6050 4700 6150 4700 +Wire Wire Line + 4450 4300 4250 4300 Wire Wire Line 4250 4200 4450 4200 +Text GLabel 4250 4800 0 50 Input ~ 0 +PLANT7_MOIST Wire Wire Line - 4250 4400 4450 4400 -Wire Wire Line - 4450 4500 4250 4500 -Wire Wire Line - 4250 4600 4450 4600 + 4250 4500 4450 4500 Wire Wire Line 4450 4700 4250 4700 Wire Wire Line - 4250 4300 4450 4300 + 4250 4600 4450 4600 +Wire Wire Line + 4250 4400 4450 4400 +Text GLabel 4250 4700 0 50 Input ~ 0 +PLANT6_MOIST +Text GLabel 4250 4600 0 50 Input ~ 0 +PLANT5_MOIST +Text GLabel 4250 4500 0 50 Input ~ 0 +PLANT4_MOIST +Text GLabel 4250 4400 0 50 Input ~ 0 +PLANT3_MOIST +Text GLabel 4250 4300 0 50 Input ~ 0 +PLANT2_MOIST +Text GLabel 4250 4200 0 50 Input ~ 0 +PLANT1_MOIST +Wire Wire Line + 4250 4800 4450 4800 +Wire Wire Line + 2000 4000 4450 4000 +Wire Wire Line + 1000 4100 4450 4100 +Text GLabel 4250 5000 0 50 Input ~ 0 +PUMP_VCC_ENABLE +Wire Wire Line + 4450 5000 4250 5000 +$Comp +L Transistor_FET:BSS84 Q? +U 1 1 5F765B13 +P 9100 3750 +F 0 "Q?" H 9304 3796 50 0000 L CNN +F 1 "BSS84" H 9304 3705 50 0000 L CNN +F 2 "Package_TO_SOT_SMD:SOT-23" H 9300 3675 50 0001 L CIN +F 3 "http://assets.nexperia.com/documents/data-sheet/BSS84.pdf" H 9100 3750 50 0001 L CNN + 1 9100 3750 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F7702AA +P 8050 2850 +F 0 "Q?" H 8205 2896 50 0000 L CNN +F 1 "SL2300" H 8205 2805 50 0000 L CNN +F 2 "" H 8050 2850 50 0001 C CNN +F 3 "" H 8050 2850 50 0001 C CNN + 1 8050 2850 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F779588 +P 7300 2800 +F 0 "Q?" H 7455 2846 50 0000 L CNN +F 1 "SL2300" H 7455 2755 50 0000 L CNN +F 2 "" H 7300 2800 50 0001 C CNN +F 3 "" H 7300 2800 50 0001 C CNN + 1 7300 2800 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F77A216 +P 6500 2850 +F 0 "Q?" H 6655 2896 50 0000 L CNN +F 1 "SL2300" H 6655 2805 50 0000 L CNN +F 2 "" H 6500 2850 50 0001 C CNN +F 3 "" H 6500 2850 50 0001 C CNN + 1 6500 2850 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F77AFC2 +P 5700 2800 +F 0 "Q?" H 5855 2846 50 0000 L CNN +F 1 "SL2300" H 5855 2755 50 0000 L CNN +F 2 "" H 5700 2800 50 0001 C CNN +F 3 "" H 5700 2800 50 0001 C CNN + 1 5700 2800 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F77DFF6 +P 6500 1450 +F 0 "Q?" H 6655 1496 50 0000 L CNN +F 1 "SL2300" H 6655 1405 50 0000 L CNN +F 2 "" H 6500 1450 50 0001 C CNN +F 3 "" H 6500 1450 50 0001 C CNN + 1 6500 1450 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F77EC00 +P 7300 1450 +F 0 "Q?" H 7455 1496 50 0000 L CNN +F 1 "SL2300" H 7455 1405 50 0000 L CNN +F 2 "" H 7300 1450 50 0001 C CNN +F 3 "" H 7300 1450 50 0001 C CNN + 1 7300 1450 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F781665 +P 8450 3950 +F 0 "Q?" H 8605 3996 50 0000 L CNN +F 1 "SL2300" H 8605 3905 50 0000 L CNN +F 2 "" H 8450 3950 50 0001 C CNN +F 3 "" H 8450 3950 50 0001 C CNN + 1 8450 3950 + 1 0 0 -1 +$EndComp +$Comp +L Device:R R? +U 1 1 5F791D01 +P 6250 3000 +F 0 "R?" H 6180 2954 50 0000 R CNN +F 1 "R" H 6180 3045 50 0000 R CNN +F 2 "" V 6180 3000 50 0001 C CNN +F 3 "~" H 6250 3000 50 0001 C CNN + 1 6250 3000 + -1 0 0 1 +$EndComp +Connection ~ 6250 2850 +Wire Wire Line + 6550 3050 6400 3050 +Wire Wire Line + 6400 3050 6400 3150 +Wire Wire Line + 6400 3150 6250 3150 +Connection ~ 6550 3050 +$Comp +L Device:R R? +U 1 1 5F795254 +P 5450 2950 +F 0 "R?" H 5520 2996 50 0000 L CNN +F 1 "R" H 5520 2905 50 0000 L CNN +F 2 "" V 5380 2950 50 0001 C CNN +F 3 "~" H 5450 2950 50 0001 C CNN + 1 5450 2950 + 1 0 0 -1 +$EndComp +Connection ~ 5450 2800 +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F77CB3F +P 5700 1450 +F 0 "Q?" H 5855 1496 50 0000 L CNN +F 1 "SL2300" H 5855 1405 50 0000 L CNN +F 2 "" H 5700 1450 50 0001 C CNN +F 3 "" H 5700 1450 50 0001 C CNN + 1 5700 1450 + 1 0 0 -1 +$EndComp +$Comp +L Device:R R? +U 1 1 5F79593C +P 7050 2950 +F 0 "R?" H 7120 2996 50 0000 L CNN +F 1 "R" H 7120 2905 50 0000 L CNN +F 2 "" V 6980 2950 50 0001 C CNN +F 3 "~" H 7050 2950 50 0001 C CNN + 1 7050 2950 + 1 0 0 -1 +$EndComp +Connection ~ 7050 2800 +$Comp +L Device:R R? +U 1 1 5F7960A3 +P 7800 3000 +F 0 "R?" H 7870 3046 50 0000 L CNN +F 1 "R" H 7870 2955 50 0000 L CNN +F 2 "" V 7730 3000 50 0001 C CNN +F 3 "~" H 7800 3000 50 0001 C CNN + 1 7800 3000 + 1 0 0 -1 +$EndComp +Connection ~ 7800 2850 +$Comp +L Device:R R? +U 1 1 5F79A87D +P 5450 1600 +F 0 "R?" H 5520 1646 50 0000 L CNN +F 1 "R" H 5520 1555 50 0000 L CNN +F 2 "" V 5380 1600 50 0001 C CNN +F 3 "~" H 5450 1600 50 0001 C CNN + 1 5450 1600 + 1 0 0 -1 +$EndComp +$Comp +L Device:R R? +U 1 1 5F79ABE6 +P 6250 1600 +F 0 "R?" H 6320 1646 50 0000 L CNN +F 1 "R" H 6320 1555 50 0000 L CNN +F 2 "" V 6180 1600 50 0001 C CNN +F 3 "~" H 6250 1600 50 0001 C CNN + 1 6250 1600 + 1 0 0 -1 +$EndComp +Connection ~ 6250 1450 +$Comp +L Device:R R? +U 1 1 5F79B18E +P 7050 1600 +F 0 "R?" H 7120 1646 50 0000 L CNN +F 1 "R" H 7120 1555 50 0000 L CNN +F 2 "" V 6980 1600 50 0001 C CNN +F 3 "~" H 7050 1600 50 0001 C CNN + 1 7050 1600 + 1 0 0 -1 +$EndComp +Connection ~ 7050 1450 +Connection ~ 5450 1450 +Wire Wire Line + 5750 1650 5650 1650 +Wire Wire Line + 5650 1650 5650 1750 +Wire Wire Line + 5650 1750 5450 1750 +Connection ~ 5750 1650 +Wire Wire Line + 6550 1650 6450 1650 +Wire Wire Line + 6450 1650 6450 1750 +Wire Wire Line + 6450 1750 6250 1750 +Connection ~ 6550 1650 +Wire Wire Line + 7350 1650 7250 1650 +Wire Wire Line + 7250 1650 7250 1750 +Wire Wire Line + 7250 1750 7050 1750 +Connection ~ 7350 1650 +Wire Wire Line + 5750 3000 5650 3000 +Wire Wire Line + 5650 3000 5650 3100 +Wire Wire Line + 5650 3100 5450 3100 +Connection ~ 5750 3000 +Wire Wire Line + 7350 3000 7250 3000 +Wire Wire Line + 7250 3000 7250 3100 +Wire Wire Line + 7250 3100 7050 3100 +Connection ~ 7350 3000 +Wire Wire Line + 8100 3050 8000 3050 +Wire Wire Line + 8000 3050 8000 3150 +Wire Wire Line + 8000 3150 7800 3150 +Connection ~ 8100 3050 +$Comp +L Device:R R? +U 1 1 5F7A8C30 +P 8200 4100 +F 0 "R?" H 8270 4146 50 0000 L CNN +F 1 "R" H 8270 4055 50 0000 L CNN +F 2 "" V 8130 4100 50 0001 C CNN +F 3 "~" H 8200 4100 50 0001 C CNN + 1 8200 4100 + 1 0 0 -1 +$EndComp +$Comp +L power:GND #PWR? +U 1 1 5F7B1E8E +P 8500 4150 +F 0 "#PWR?" H 8500 3900 50 0001 C CNN +F 1 "GND" H 8505 3977 50 0000 C CNN +F 2 "" H 8500 4150 50 0001 C CNN +F 3 "" H 8500 4150 50 0001 C CNN + 1 8500 4150 + 1 0 0 -1 +$EndComp +Wire Wire Line + 8500 4150 8350 4150 +Wire Wire Line + 8350 4150 8350 4250 +Wire Wire Line + 8350 4250 8200 4250 +Connection ~ 8500 4150 +$Comp +L Device:R R? +U 1 1 5F7B97DA +P 8700 3750 +F 0 "R?" V 8493 3750 50 0000 C CNN +F 1 "R" V 8584 3750 50 0000 C CNN +F 2 "" V 8630 3750 50 0001 C CNN +F 3 "~" H 8700 3750 50 0001 C CNN + 1 8700 3750 + 0 1 1 0 +$EndComp +Wire Wire Line + 8850 3750 8900 3750 +Wire Wire Line + 8550 3750 8500 3750 +Text GLabel 9200 3550 1 50 Input ~ 0 +PWR_PUMP_CONVERTER +$Comp +L Device:R R? +U 1 1 5F7BEED8 +P 8900 3900 +F 0 "R?" H 8970 3946 50 0000 L CNN +F 1 "R" H 8970 3855 50 0000 L CNN +F 2 "" V 8830 3900 50 0001 C CNN +F 3 "~" H 8900 3900 50 0001 C CNN + 1 8900 3900 + 1 0 0 -1 +$EndComp +Connection ~ 8900 3750 +Text GLabel 9200 4000 3 50 Input ~ 0 +LIPO+ +Wire Wire Line + 9200 4000 9200 3950 +Text GLabel 8100 3950 0 50 Input ~ 0 +PUMP_VSS_ENABLE +Wire Wire Line + 8100 3950 8200 3950 +Connection ~ 8200 3950 +Text GLabel 1550 3150 1 50 Input ~ 0 +LIPO+ +Wire Wire Line + 1550 3150 1550 3200 +$Comp +L Connector_Generic:Conn_01x04 J? +U 1 1 5F7E5709 +P 2700 2400 +F 0 "J?" H 2780 2392 50 0000 L CNN +F 1 "Conn_01x04" H 2780 2301 50 0000 L CNN +F 2 "misc_footprints:MT3608_module_SMT" H 2700 2400 50 0001 C CNN +F 3 "~" H 2700 2400 50 0001 C CNN + 1 2700 2400 + 1 0 0 -1 +$EndComp +Text GLabel 2500 2600 0 50 Input ~ 0 +LIPO+ +Text GLabel 2500 2500 0 50 Input ~ 0 +GND +Text GLabel 2500 2400 0 50 Input ~ 0 +GND +Text GLabel 1000 3800 1 50 Input ~ 0 +SOLAR_IN +Text GLabel 2500 2300 0 50 Input ~ 0 +SOLAR_IN +Text GLabel 1500 1000 0 50 Input ~ 0 +PLANT0_PUMP +Text GLabel 1500 900 0 50 Input ~ 0 +PUMP_PWR +Text GLabel 1500 1100 0 50 Input ~ 0 +PUMP_PWR +Text GLabel 1500 1300 0 50 Input ~ 0 +PUMP_PWR +Text GLabel 1500 1500 0 50 Input ~ 0 +PUMP_PWR +Text GLabel 1500 1700 0 50 Input ~ 0 +PUMP_PWR +Text GLabel 1500 1900 0 50 Input ~ 0 +PUMP_PWR +Text GLabel 1500 2100 0 50 Input ~ 0 +PUMP_PWR +$Comp +L Transistor_FET:BSS84 Q? +U 1 1 5F819B36 +P 9100 5500 +F 0 "Q?" H 9304 5546 50 0000 L CNN +F 1 "BSS84" H 9304 5455 50 0000 L CNN +F 2 "Package_TO_SOT_SMD:SOT-23" H 9300 5425 50 0001 L CIN +F 3 "http://assets.nexperia.com/documents/data-sheet/BSS84.pdf" H 9100 5500 50 0001 L CNN + 1 9100 5500 + 1 0 0 -1 +$EndComp +$Comp +L ESP32-DEVKITC-32D:SL2300 Q? +U 1 1 5F819B3C +P 8450 5700 +F 0 "Q?" H 8605 5746 50 0000 L CNN +F 1 "SL2300" H 8605 5655 50 0000 L CNN +F 2 "" H 8450 5700 50 0001 C CNN +F 3 "" H 8450 5700 50 0001 C CNN + 1 8450 5700 + 1 0 0 -1 +$EndComp +$Comp +L Device:R R? +U 1 1 5F819B42 +P 8200 5850 +F 0 "R?" H 8270 5896 50 0000 L CNN +F 1 "R" H 8270 5805 50 0000 L CNN +F 2 "" V 8130 5850 50 0001 C CNN +F 3 "~" H 8200 5850 50 0001 C CNN + 1 8200 5850 + 1 0 0 -1 +$EndComp +$Comp +L power:GND #PWR? +U 1 1 5F819B48 +P 8500 5900 +F 0 "#PWR?" H 8500 5650 50 0001 C CNN +F 1 "GND" H 8505 5727 50 0000 C CNN +F 2 "" H 8500 5900 50 0001 C CNN +F 3 "" H 8500 5900 50 0001 C CNN + 1 8500 5900 + 1 0 0 -1 +$EndComp +Wire Wire Line + 8500 5900 8350 5900 +Wire Wire Line + 8350 5900 8350 6000 +Wire Wire Line + 8350 6000 8200 6000 +Connection ~ 8500 5900 +$Comp +L Device:R R? +U 1 1 5F819B52 +P 8700 5500 +F 0 "R?" V 8493 5500 50 0000 C CNN +F 1 "R" V 8584 5500 50 0000 C CNN +F 2 "" V 8630 5500 50 0001 C CNN +F 3 "~" H 8700 5500 50 0001 C CNN + 1 8700 5500 + 0 1 1 0 +$EndComp +Wire Wire Line + 8850 5500 8900 5500 +Wire Wire Line + 8550 5500 8500 5500 +Text GLabel 9200 5300 1 50 Input ~ 0 +PWR_SENSORS +$Comp +L Device:R R? +U 1 1 5F819B5B +P 8900 5650 +F 0 "R?" H 8970 5696 50 0000 L CNN +F 1 "R" H 8970 5605 50 0000 L CNN +F 2 "" V 8830 5650 50 0001 C CNN +F 3 "~" H 8900 5650 50 0001 C CNN + 1 8900 5650 + 1 0 0 -1 +$EndComp +Connection ~ 8900 5500 +Text GLabel 9200 5750 3 50 Input ~ 0 +LIPO+ +Wire Wire Line + 9200 5750 9200 5700 +Text GLabel 8100 5700 0 50 Input ~ 0 +PUMP_VSS_ENABLE +Wire Wire Line + 8100 5700 8200 5700 +Connection ~ 8200 5700 +Wire Wire Line + 9050 3950 9050 4050 +Wire Wire Line + 9050 4050 8900 4050 +Wire Wire Line + 9050 3950 9200 3950 +Connection ~ 9200 3950 +Wire Wire Line + 9050 5800 8900 5800 +$Comp +L Connector_Generic:Conn_01x04 J? +U 1 1 5F837F50 +P 4550 2350 +F 0 "J?" H 4630 2342 50 0000 L CNN +F 1 "Conn_01x04" H 4630 2251 50 0000 L CNN +F 2 "" H 4550 2350 50 0001 C CNN +F 3 "~" H 4550 2350 50 0001 C CNN + 1 4550 2350 + 1 0 0 -1 +$EndComp +Text GLabel 4350 2250 0 50 Input ~ 0 +PWR_PUMP_CONVERTER +Text GLabel 4350 2350 0 50 Input ~ 0 +GND +Text GLabel 4350 2450 0 50 Input ~ 0 +GND +Text GLabel 4350 2550 0 50 Input ~ 0 +PUMP_PWR +$Comp +L LP38690DT-3.3:LP38690DT-3.3 U? +U 1 1 5F84FA14 +P 3600 3050 +F 0 "U?" H 3600 3415 50 0000 C CNN +F 1 "LP38690DT-3.3" H 3600 3324 50 0000 C CNN +F 2 "DPAK457P991X255-3N" H 3600 3050 50 0001 L BNN +F 3 "IPC-7351B" H 3600 3050 50 0001 L BNN +F 4 "Texas Instruments" H 3600 3050 50 0001 L BNN "Field4" +F 5 "M" H 3600 3050 50 0001 L BNN "Field5" +F 6 "2.55mm" H 3600 3050 50 0001 L BNN "Field6" + 1 3600 3050 + 1 0 0 -1 +$EndComp +Text GLabel 4200 3150 2 50 Input ~ 0 +GND +Text GLabel 4200 2950 2 50 Input ~ 0 +3_3V +Text GLabel 4450 3600 0 50 Input ~ 0 +3_3V +Text GLabel 10450 2200 2 50 Input ~ 0 +3_3V +Text GLabel 10250 1150 1 50 Input ~ 0 +3_3V +NoConn ~ 4450 5400 +Text GLabel 3000 2950 0 50 Input ~ 0 +LIPO+ +Wire Wire Line + 9050 5700 9200 5700 +Wire Wire Line + 9050 5700 9050 5800 +Connection ~ 9200 5700 $EndSCHEMATC diff --git a/board/fp-lib-table b/board/fp-lib-table index e07366e..6958c99 100644 --- a/board/fp-lib-table +++ b/board/fp-lib-table @@ -1,3 +1,4 @@ (fp_lib_table (lib (name kicad-stuff)(type KiCad)(uri ${KIPRJMOD}/kicad-stuff)(options "")(descr "")) + (lib (name misc_footprints)(type KiCad)(uri ${KIPRJMOD}/kicad-stuff/misc_footprints-master/misc_footprints.pretty)(options "")(descr "")) ) diff --git a/board/kicad-stuff/DPAK457P991X255-3N.kicad_mod b/board/kicad-stuff/DPAK457P991X255-3N.kicad_mod new file mode 100644 index 0000000..8e5c62a --- /dev/null +++ b/board/kicad-stuff/DPAK457P991X255-3N.kicad_mod @@ -0,0 +1,154 @@ + +(module DPAK457P991X255-3N (layer F.Cu) (tedit 5F5CEF39) + (descr "") + (fp_text reference REF** (at -2.825 -4.635 0) (layer F.SilkS) + (effects (font (size 1.0 1.0) (thickness 0.015))) + ) + (fp_text value DPAK457P991X255-3N (at 5.43 5.365 0) (layer F.Fab) + (effects (font (size 1.0 1.0) (thickness 0.015))) + ) + (fp_poly + (pts + (xy -0.265 -2.555) + (xy 0.855 -2.555) + (xy 0.855 -1.405) + (xy -0.265 -1.405) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 1.085 -2.555) + (xy 2.205 -2.555) + (xy 2.205 -1.405) + (xy 1.085 -1.405) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 2.435 -2.555) + (xy 3.555 -2.555) + (xy 3.555 -1.405) + (xy 2.435 -1.405) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 3.785 -2.555) + (xy 4.905 -2.555) + (xy 4.905 -1.405) + (xy 3.785 -1.405) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 3.785 -1.235) + (xy 4.905 -1.235) + (xy 4.905 -0.085) + (xy 3.785 -0.085) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 3.785 0.085) + (xy 4.905 0.085) + (xy 4.905 1.235) + (xy 3.785 1.235) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 3.785 1.405) + (xy 4.905 1.405) + (xy 4.905 2.555) + (xy 3.785 2.555) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 2.435 -1.235) + (xy 3.555 -1.235) + (xy 3.555 -0.085) + (xy 2.435 -0.085) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 2.435 0.085) + (xy 3.555 0.085) + (xy 3.555 1.235) + (xy 2.435 1.235) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 2.435 1.405) + (xy 3.555 1.405) + (xy 3.555 2.555) + (xy 2.435 2.555) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 1.085 -1.235) + (xy 2.205 -1.235) + (xy 2.205 -0.085) + (xy 1.085 -0.085) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 1.085 0.085) + (xy 2.205 0.085) + (xy 2.205 1.235) + (xy 1.085 1.235) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy 1.085 1.405) + (xy 2.205 1.405) + (xy 2.205 2.555) + (xy 1.085 2.555) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy -0.265 -1.235) + (xy 0.855 -1.235) + (xy 0.855 -0.085) + (xy -0.265 -0.085) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy -0.265 0.085) + (xy 0.855 0.085) + (xy 0.855 1.235) + (xy -0.265 1.235) + ) (layer F.Paste) (width 0.01) + ) + (fp_poly + (pts + (xy -0.265 1.405) + (xy 0.855 1.405) + (xy 0.855 2.555) + (xy -0.265 2.555) + ) (layer F.Paste) (width 0.01) + ) + (fp_line (start 3.875 -3.365) (end -2.345 -3.365) (layer F.SilkS) (width 0.127)) + (fp_line (start -2.345 -3.365) (end -2.345 3.365) (layer F.SilkS) (width 0.127)) + (fp_line (start -2.345 3.365) (end 3.875 3.365) (layer F.SilkS) (width 0.127)) + (fp_line (start 3.875 3.365) (end 3.875 -3.365) (layer F.Fab) (width 0.127)) + (fp_line (start 3.875 -3.365) (end -2.345 -3.365) (layer F.Fab) (width 0.127)) + (fp_line (start -2.345 -3.365) (end -2.345 3.365) (layer F.Fab) (width 0.127)) + (fp_line (start -2.345 3.365) (end 3.875 3.365) (layer F.Fab) (width 0.127)) + (fp_circle (center -6.015 -2.285) (end -5.915 -2.285) (layer F.SilkS) (width 0.2)) + (fp_circle (center -6.015 -2.285) (end -5.915 -2.285) (layer F.Fab) (width 0.2)) + (fp_line (start -5.815 -3.615) (end 5.815 -3.615) (layer F.CrtYd) (width 0.05)) + (fp_line (start 5.815 -3.615) (end 5.815 3.615) (layer F.CrtYd) (width 0.05)) + (fp_line (start 5.815 3.615) (end -5.815 3.615) (layer F.CrtYd) (width 0.05)) + (fp_line (start -5.815 3.615) (end -5.815 -3.615) (layer F.CrtYd) (width 0.05)) + (pad 1 smd rect (at -4.45 -2.285) (size 2.22 0.96) (layers F.Cu F.Mask F.Paste)) + (pad 3 smd rect (at -4.45 2.285) (size 2.22 0.96) (layers F.Cu F.Mask F.Paste)) + (pad 4 smd rect (at 2.32 0.0) (size 6.49 5.63) (layers F.Cu F.Mask)) +) \ No newline at end of file diff --git a/board/kicad-stuff/ESP32-DEVKITC-32D.dcm b/board/kicad-stuff/ESP32-DEVKITC-32D.dcm new file mode 100644 index 0000000..5f3ed79 --- /dev/null +++ b/board/kicad-stuff/ESP32-DEVKITC-32D.dcm @@ -0,0 +1,3 @@ +EESchema-DOCLIB Version 2.0 +# +#End Doc Library diff --git a/board/kicad-stuff/ESP32-DEVKITC-32D.lib b/board/kicad-stuff/ESP32-DEVKITC-32D.lib index e28b73c..7b9eff1 100644 --- a/board/kicad-stuff/ESP32-DEVKITC-32D.lib +++ b/board/kicad-stuff/ESP32-DEVKITC-32D.lib @@ -1,7 +1,5 @@ -EESchema-LIBRARY Version 2.3 +EESchema-LIBRARY Version 2.4 #encoding utf-8 -#(c) SnapEDA 2016 (snapeda.com) -#This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA) with Design Exception 1.0 # # ESP32-DEVKITC-32D # @@ -12,49 +10,77 @@ F2 "MODULE_ESP32-DEVKITC-32D" 0 0 50 H I L BNN F3 "4" 0 0 50 H I L BNN F4 "Espressif Systems" 0 0 50 H I L BNN DRAW -P 2 0 0 10 -600 1000 600 1000 N -P 2 0 0 10 600 1000 600 -1000 N -P 2 0 0 10 600 -1000 -600 -1000 N P 2 0 0 10 -600 -1000 -600 1000 N -X 3V3 1 -800 900 200 R 40 40 0 0 W -X EN 2 -800 800 200 R 40 40 0 0 I -X SENSOR_VP 3 -800 700 200 R 40 40 0 0 I -X SENSOR_VN 4 -800 600 200 R 40 40 0 0 I -X IO34 5 -800 500 200 R 40 40 0 0 B -X IO35 6 -800 400 200 R 40 40 0 0 B -X IO32 7 -800 300 200 R 40 40 0 0 B -X IO33 8 -800 200 200 R 40 40 0 0 B -X IO25 9 -800 100 200 R 40 40 0 0 B -X IO26 10 -800 0 200 R 40 40 0 0 B -X IO27 11 -800 -100 200 R 40 40 0 0 B -X IO14 12 -800 -200 200 R 40 40 0 0 B -X IO12 13 -800 -300 200 R 40 40 0 0 B -X GND1 14 -800 -400 200 R 40 40 0 0 W -X IO13 15 -800 -500 200 R 40 40 0 0 B -X SD2 16 -800 -600 200 R 40 40 0 0 B -X SD3 17 -800 -700 200 R 40 40 0 0 B -X CMD 18 -800 -800 200 R 40 40 0 0 B -X EXT_5V 19 -800 -900 200 R 40 40 0 0 W +P 2 0 0 10 -600 1000 600 1000 N +P 2 0 0 10 600 -1000 -600 -1000 N +P 2 0 0 10 600 1000 600 -1000 N +X 3V3 1 -800 900 200 R 40 40 0 0 W +X IO26 10 -800 0 200 R 40 40 0 0 B +X IO27 11 -800 -100 200 R 40 40 0 0 B +X IO14 12 -800 -200 200 R 40 40 0 0 B +X IO12 13 -800 -300 200 R 40 40 0 0 B +X GND1 14 -800 -400 200 R 40 40 0 0 W +X IO13 15 -800 -500 200 R 40 40 0 0 B +X SD2 16 -800 -600 200 R 40 40 0 0 B +X SD3 17 -800 -700 200 R 40 40 0 0 B +X CMD 18 -800 -800 200 R 40 40 0 0 B +X EXT_5V 19 -800 -900 200 R 40 40 0 0 W +X EN 2 -800 800 200 R 40 40 0 0 I +X GND3 20 800 900 200 L 40 40 0 0 W +X IO23 21 800 800 200 L 40 40 0 0 B +X IO22 22 800 700 200 L 40 40 0 0 B +X TXD0 23 800 600 200 L 40 40 0 0 O +X RXD0 24 800 500 200 L 40 40 0 0 I +X IO21 25 800 400 200 L 40 40 0 0 B +X GND2 26 800 300 200 L 40 40 0 0 W +X IO19 27 800 200 200 L 40 40 0 0 B +X IO18 28 800 100 200 L 40 40 0 0 B +X IO5 29 800 0 200 L 40 40 0 0 B +X SENSOR_VP 3 -800 700 200 R 40 40 0 0 I +X IO17 30 800 -100 200 L 40 40 0 0 B +X IO16 31 800 -200 200 L 40 40 0 0 B +X IO4 32 800 -300 200 L 40 40 0 0 B +X IO0 33 800 -400 200 L 40 40 0 0 B +X IO2 34 800 -500 200 L 40 40 0 0 B +X IO15 35 800 -600 200 L 40 40 0 0 B +X SD1 36 800 -700 200 L 40 40 0 0 B +X SD0 37 800 -800 200 L 40 40 0 0 B X CLK 38 800 -900 200 L 40 40 0 0 I C -X SD0 37 800 -800 200 L 40 40 0 0 B -X SD1 36 800 -700 200 L 40 40 0 0 B -X IO15 35 800 -600 200 L 40 40 0 0 B -X IO2 34 800 -500 200 L 40 40 0 0 B -X IO0 33 800 -400 200 L 40 40 0 0 B -X IO4 32 800 -300 200 L 40 40 0 0 B -X IO16 31 800 -200 200 L 40 40 0 0 B -X IO17 30 800 -100 200 L 40 40 0 0 B -X IO5 29 800 0 200 L 40 40 0 0 B -X IO18 28 800 100 200 L 40 40 0 0 B -X IO19 27 800 200 200 L 40 40 0 0 B -X GND2 26 800 300 200 L 40 40 0 0 W -X IO21 25 800 400 200 L 40 40 0 0 B -X RXD0 24 800 500 200 L 40 40 0 0 I -X TXD0 23 800 600 200 L 40 40 0 0 O -X IO22 22 800 700 200 L 40 40 0 0 B -X IO23 21 800 800 200 L 40 40 0 0 B -X GND3 20 800 900 200 L 40 40 0 0 W +X SENSOR_VN 4 -800 600 200 R 40 40 0 0 I +X IO34 5 -800 500 200 R 40 40 0 0 B +X IO35 6 -800 400 200 R 40 40 0 0 B +X IO32 7 -800 300 200 R 40 40 0 0 B +X IO33 8 -800 200 200 R 40 40 0 0 B +X IO25 9 -800 100 200 R 40 40 0 0 B ENDDRAW ENDDEF # -# End Library \ No newline at end of file +# SL2300 +# +DEF SL2300 Q 0 40 Y Y 1 F N +F0 "Q" 0 0 50 H V C CNN +F1 "SL2300" 300 0 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +C 15 0 110 1 1 10 N +C 50 -70 10 1 1 0 F +C 50 70 10 1 1 0 F +P 2 1 1 0 -40 0 -150 0 N +P 2 1 1 10 -40 75 -40 -75 N +P 2 1 1 10 -20 -50 -20 -90 N +P 2 1 1 10 -20 20 -20 -20 N +P 2 1 1 10 -20 90 -20 50 N +P 2 1 1 0 50 100 50 70 N +P 3 1 1 0 50 -100 50 0 -20 0 N +P 4 1 1 0 -20 -70 80 -70 80 70 -20 70 N +P 4 1 1 0 -10 0 30 15 30 -15 -10 0 F +P 4 1 1 0 60 20 65 15 95 15 100 10 N +P 4 1 1 0 80 15 65 -10 95 -10 80 15 N +X G 1 -250 0 100 R 50 50 1 1 I +X S 2 50 -200 100 U 50 50 1 1 P +X D 3 50 200 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +#End Library diff --git a/board/kicad-stuff/LP38690DT-3.3.lib b/board/kicad-stuff/LP38690DT-3.3.lib new file mode 100644 index 0000000..b9d542a --- /dev/null +++ b/board/kicad-stuff/LP38690DT-3.3.lib @@ -0,0 +1,27 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +#(c) SnapEDA 2016 (snapeda.com) +#This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA) with Design Exception 1.0 +# +# LP38690DT-3.3 +# +DEF LP38690DT-3.3 U 0 40 Y Y 1 L N +F0 "U" -400 200 50 H V L BNN +F1 "LP38690DT-3.3" -400 -300 50 H V L BNN +F2 "DPAK457P991X255-3N" 0 0 50 H I L BNN +F3 "IPC-7351B" 0 0 50 H I L BNN +F4 "Texas Instruments" 0 0 50 H I L BNN +F5 "M" 0 0 50 H I L BNN +F6 "2.55mm" 0 0 50 H I L BNN +DRAW +P 2 0 0 6 -400 200 -400 -200 N +P 2 0 0 6 -400 -200 400 -200 N +P 2 0 0 6 400 -200 400 200 N +P 2 0 0 6 400 200 -400 200 N +X IN 3 -600 100 200 R 40 40 0 0 I +X OUT 1 600 100 200 L 40 40 0 0 O +X GND 4 600 -100 200 L 40 40 0 0 W +ENDDRAW +ENDDEF +# +# End Library \ No newline at end of file diff --git a/board/kicad-stuff/how-to-import.htm b/board/kicad-stuff/how-to-import.htm new file mode 100644 index 0000000..19e484d --- /dev/null +++ b/board/kicad-stuff/how-to-import.htm @@ -0,0 +1 @@ + Page Redirection If you are not redirected automatically, follow this link to the import guide. \ No newline at end of file diff --git a/board/kicad-stuff/misc_footprints-master/.gitignore b/board/kicad-stuff/misc_footprints-master/.gitignore new file mode 100644 index 0000000..a9e50ba --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/.gitignore @@ -0,0 +1,13 @@ +# For PCBs designed using KiCAD: http://www.kicad-pcb.org/ + +# Temporary files +*.000 +*.bak +*.bck +*.kicad_pcb-bak + +# Netlist files (exported from Eeschema) +*.net + +# Autorouter files (exported from Pcbnew) +.dsn diff --git a/board/kicad-stuff/misc_footprints-master/LICENSE b/board/kicad-stuff/misc_footprints-master/LICENSE new file mode 100644 index 0000000..f595c94 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 kubabu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/board/kicad-stuff/misc_footprints-master/README.md b/board/kicad-stuff/misc_footprints-master/README.md new file mode 100644 index 0000000..635c678 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/README.md @@ -0,0 +1,12 @@ +# misc_footprints +Library of KiCad footprints with various parts +============================================== +Modules: +* TP4056 Li-Ion cell charger module with BMS: DW01 + 8205S for protection +* XL6009 DC-DC step-up (boost) voltage converter +* MT3608 DC-DC step-up (boost) voltage converter +* MP1584 DC-DC step-down (buck) voltage converter + +Parts: +* 18650 one-cell casket +* Nokia N95 battery connector diff --git a/board/kicad-stuff/misc_footprints-master/eaglize.py b/board/kicad-stuff/misc_footprints-master/eaglize.py new file mode 100644 index 0000000..d722e5a --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/eaglize.py @@ -0,0 +1,43 @@ +import os +import sys + +dir_path = None + +# Gerber files generated by Kicad are content- compatible with those +# made in EAGLE but naming convention is different, which can be problematic +# Renaming GERBERS to EAGLE convention eg. enables OSHPark to parse them + +# Remember to megre PTH and NPTH drillings to one .drl file + +EAGLE_counterparts = { + "-F.Cu.gbr": ".GTL", # Top Layer + "-B.Cu.gbr": ".GBL", # Bottom Layer + "-F.Mask.gbr": ".GTS", # Top Soldermask + "-B.Mask.gbr": ".GBS", # Bottom Soldermask + "-F.SilkS.gbr": ".GTO", # Top Silkscreen + "-B.SilkS.gbr": ".GBO", # Bottom Silkscreen + # "": ".G2L", + # "": ".G3L", + "-Edge.Cuts.gbr": ".GKO", # Board Outline + ".drl": ".XLN" # Drills +} + + +def eaglize_file(filename): + for k_format in EAGLE_counterparts.keys(): + if filename.endswith(k_format): + k = filename.rfind(k_format) + new_filename = filename[:k] + EAGLE_counterparts[k_format] + os.rename(filename, new_filename) + return new_filename + + +if __name__ == "__main__": + try: + dir_path = sys.argv[1] + except IndexError: + dir_path = '.' + +for root, dirs, files in os.walk(dir_path): + for file_name in files: + eaglize_file(file_name) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/16850_cell_casket.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/16850_cell_casket.kicad_mod new file mode 100644 index 0000000..7512d21 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/16850_cell_casket.kicad_mod @@ -0,0 +1,37 @@ +(module 16850_cell_casket (layer F.Cu) (tedit 55D20D10) + (fp_text reference REF** (at 38.7 -6.45) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value 16850_cell_casket (at 19.812 -11.684) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 49.5 -3) (end 44.5 0) (layer F.SilkS) (width 0.15)) + (fp_line (start 49.5 -3) (end 55.5 0) (layer F.SilkS) (width 0.15)) + (fp_line (start 76.5 -3.5) (end 76.5 3.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 76.5 3.5) (end 1.5 3.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 1.5 3.5) (end 1.5 -3.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 1.5 -3.5) (end 76.5 -3.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 55.5 0) (end 49.5 3) (layer F.SilkS) (width 0.15)) + (fp_line (start 49.5 3) (end 44.5 0) (layer F.SilkS) (width 0.15)) + (fp_text user BLM (at 49.9 0.1) (layer F.SilkS) + (effects (font (size 3 2) (thickness 0.15))) + ) + (fp_text user 18650 (at 27.5 0) (layer F.SilkS) + (effects (font (size 2 2) (thickness 0.15))) + ) + (fp_line (start 60.5 0) (end 62.5 0) (layer F.SilkS) (width 0.15)) + (fp_circle (center 61.5 0) (end 63 -0.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 18 -1) (end 18 1) (layer F.SilkS) (width 0.15)) + (fp_line (start 17 0) (end 19 0) (layer F.SilkS) (width 0.15)) + (fp_circle (center 18 0) (end 19 -1) (layer F.SilkS) (width 0.15)) + (fp_circle (center 67 0) (end 67 -2) (layer F.SilkS) (width 0.15)) + (fp_circle (center 11 0) (end 11 -2) (layer F.SilkS) (width 0.15)) + (fp_circle (center 67 0) (end 66.8 -1.5) (layer F.SilkS) (width 0.15)) + (fp_circle (center 11 0) (end 10.8 -1.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 0 10.45) (end 0 -10.45) (layer F.SilkS) (width 0.15)) + (fp_line (start 78 10.45) (end 0 10.45) (layer F.SilkS) (width 0.15)) + (fp_line (start 78 -10.45) (end 78 10.45) (layer F.SilkS) (width 0.15)) + (fp_line (start 0 -10.45) (end 78 -10.45) (layer F.SilkS) (width 0.15)) + (pad 2 thru_hole rect (at 77.474 0) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask F.SilkS)) + (pad 1 thru_hole rect (at 0.504 0) (size 1.524 1.524) (drill 0.762) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader.kicad_mod new file mode 100644 index 0000000..11646d3 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader.kicad_mod @@ -0,0 +1,48 @@ +(module 4056E_LiIon_loader (layer F.Cu) (tedit 569E29C6) + (fp_text reference M1 (at -1.266 1.13) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value 4056E_Loader_prot (at 0.66 -3.46) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.29 8.5) (end 12.7 8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.3 -8.5) (end 12.7 -8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.77 3.36) (end -13.77 -3.19) (layer F.SilkS) (width 0.15)) + (fp_text user microUSB (at -9.438 0.086 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.756 3.388) (end -13.248 3.388) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.248 3.388) (end -12.994 2.88) (layer F.SilkS) (width 0.15)) + (fp_line (start -12.994 2.88) (end -12.74 2.88) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.756 -3.216) (end -13.248 -3.216) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.248 -3.216) (end -12.994 -2.708) (layer F.SilkS) (width 0.15)) + (fp_line (start -12.994 -2.708) (end -8.168 -2.708) (layer F.SilkS) (width 0.15)) + (fp_line (start -8.168 -2.708) (end -8.168 2.88) (layer F.SilkS) (width 0.15)) + (fp_line (start -8.168 2.88) (end -12.74 2.88) (layer F.SilkS) (width 0.15)) + (fp_text user B- (at 10.674 1.29) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user B+ (at 10.674 -2.012) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user OUT- (at 7.19 6.556) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user OUT+ (at 6.87 -6.348) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user IN- (at -6.9 6.76) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user IN+ (at -7.43 -6.13) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.296 8.5) (end -13.296 -8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 12.706 -8.5) (end 12.706 8.5) (layer F.SilkS) (width 0.15)) + (pad 1 thru_hole rect (at -11 -6.5) (size 3 3) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 2 thru_hole rect (at -11 6.5) (size 3 3) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 6 thru_hole rect (at 11 7) (size 2.5 2.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 5 thru_hole rect (at 11 -7) (size 2.5 2.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 3 thru_hole rect (at 11 -3.75) (size 2.5 2.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 4 thru_hole rect (at 11 3.75) (size 2.5 2.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader_SMT.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader_SMT.kicad_mod new file mode 100644 index 0000000..e06379a --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader_SMT.kicad_mod @@ -0,0 +1,48 @@ +(module 4056E_LiIon_loader_SMT (layer F.Cu) (tedit 569E2953) + (fp_text reference M1 (at -1.266 1.13) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value 4056E_Loader_prot (at 0.66 -3.46) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.29 8.5) (end 12.7 8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.3 -8.5) (end 12.7 -8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.87 3.26) (end -13.87 -3.29) (layer F.SilkS) (width 0.15)) + (fp_text user microUSB (at -9.538 -0.014 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.856 3.288) (end -13.348 3.288) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.348 3.288) (end -13.094 2.78) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.094 2.78) (end -12.84 2.78) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.856 -3.316) (end -13.348 -3.316) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.348 -3.316) (end -13.094 -2.808) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.094 -2.808) (end -8.268 -2.808) (layer F.SilkS) (width 0.15)) + (fp_line (start -8.268 -2.808) (end -8.268 2.78) (layer F.SilkS) (width 0.15)) + (fp_line (start -8.268 2.78) (end -12.84 2.78) (layer F.SilkS) (width 0.15)) + (fp_text user B- (at 10.674 1.29) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user B+ (at 10.674 -2.012) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user OUT- (at 7.19 6.556) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user OUT+ (at 6.87 -6.348) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user IN- (at -6.9 6.76) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user IN+ (at -7.43 -6.13) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.296 8.5) (end -13.296 -8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 12.706 -8.5) (end 12.706 8.5) (layer F.SilkS) (width 0.15)) + (pad 1 smd rect (at -11 -6.75) (size 3 3) (layers F.Cu F.Paste F.Mask)) + (pad 2 smd rect (at -11 6.75) (size 3 3) (layers F.Cu F.Paste F.Mask)) + (pad 6 smd rect (at 11 7) (size 3 2.5) (layers F.Cu F.Paste F.Mask)) + (pad 5 smd rect (at 11 -7) (size 3 2.5) (layers F.Cu F.Paste F.Mask)) + (pad 3 smd rect (at 11 -3.75) (size 3 2.5) (layers F.Cu F.Paste F.Mask)) + (pad 4 smd rect (at 11 3.75) (size 3 2.5) (layers F.Cu F.Paste F.Mask)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader_prot.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader_prot.kicad_mod new file mode 100644 index 0000000..33dc1b9 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/4056E_LiIon_loader_prot.kicad_mod @@ -0,0 +1,48 @@ +(module 4056E_LiIon_loader_prot (layer F.Cu) (tedit 55D73003) + (fp_text reference M1 (at -1.266 1.13) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value 4056E_Loader_prot (at 0.66 -3.46) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.29 8.27) (end 12.7 8.27) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.3 -8.88) (end 12.7 -8.87) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.87 2.96) (end -13.87 -3.59) (layer F.SilkS) (width 0.15)) + (fp_text user microUSB (at -9.538 -0.314 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.856 2.988) (end -13.348 2.988) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.348 2.988) (end -13.094 2.48) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.094 2.48) (end -12.84 2.48) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.856 -3.616) (end -13.348 -3.616) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.348 -3.616) (end -13.094 -3.108) (layer F.SilkS) (width 0.15)) + (fp_line (start -13.094 -3.108) (end -8.268 -3.108) (layer F.SilkS) (width 0.15)) + (fp_line (start -8.268 -3.108) (end -8.268 2.48) (layer F.SilkS) (width 0.15)) + (fp_line (start -8.268 2.48) (end -12.84 2.48) (layer F.SilkS) (width 0.15)) + (fp_text user B- (at 10.674 1.29) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user B+ (at 10.674 -2.012) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user OUT- (at 7.19 6.556) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user OUT+ (at 6.87 -6.348) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user IN- (at -6.9 6.76) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user IN+ (at -7.43 -6.13) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -13.296 8.275) (end -13.296 -8.87) (layer F.SilkS) (width 0.15)) + (fp_line (start 12.706 -8.87) (end 12.706 8.275) (layer F.SilkS) (width 0.15)) + (pad 1 thru_hole rect (at -10.76 -6.51) (size 2.1 2.1) (drill 1) (layers *.Cu *.Mask F.SilkS)) + (pad 2 thru_hole rect (at -10.76 6.37) (size 2.1 2.1) (drill 1) (layers *.Cu *.Mask F.SilkS)) + (pad 6 thru_hole rect (at 10.7 6.37) (size 2.1 2.1) (drill 1.2) (layers *.Cu *.Mask F.SilkS)) + (pad 5 thru_hole rect (at 10.7 -6.33) (size 2.1 2.1) (drill 1.2) (layers *.Cu *.Mask F.SilkS)) + (pad 3 thru_hole rect (at 10.7 -3.79) (size 2.1 2.1) (drill 1.2) (layers *.Cu *.Mask F.SilkS)) + (pad 4 thru_hole rect (at 10.7 3.83) (size 2.1 2.1) (drill 0.762) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MP1584_buck_module.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MP1584_buck_module.kicad_mod new file mode 100644 index 0000000..98f3748 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MP1584_buck_module.kicad_mod @@ -0,0 +1,89 @@ +(module MP1584_buck_module (layer F.Cu) (tedit 55D1F7A1) + (fp_text reference REF** (at 5.08 0.762) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value MP1584_buck_module (at 0.635 9.144) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 3.302 4.318) (end 1.016 6.096) (layer F.SilkS) (width 0.15)) + (fp_line (start -6.096 4.318) (end 3.302 4.318) (layer F.SilkS) (width 0.15)) + (fp_line (start 3.302 4.318) (end 1.016 2.54) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.524 -1.778) (end -1.016 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.016 -1.778) (end -1.016 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.016 2.286) (end -1.524 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.524 2.286) (end -1.524 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.524 2.794) (end -1.778 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.778 2.794) (end -1.778 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.778 2.286) (end -2.794 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.794 2.286) (end -2.794 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.794 2.794) (end -3.048 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -3.048 2.794) (end -3.048 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -3.048 2.286) (end -4.064 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.064 2.286) (end -4.064 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.064 2.794) (end -4.318 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.318 2.794) (end -4.318 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.318 2.286) (end -5.334 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.334 2.286) (end -5.334 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.334 2.794) (end -5.588 2.794) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.588 2.794) (end -5.588 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.588 2.286) (end -6.096 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -6.096 2.286) (end -6.096 2.032) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.794 -1.778) (end -1.778 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.064 -1.778) (end -3.048 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.334 -1.778) (end -4.318 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.778 -1.778) (end -1.778 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.778 -2.286) (end -1.524 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -3.048 -1.778) (end -3.048 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -3.048 -2.286) (end -2.794 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.318 -1.778) (end -4.318 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.318 -2.286) (end -4.064 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -6.096 2.032) (end -6.096 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -6.096 -1.778) (end -5.842 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.842 -1.778) (end -5.588 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.588 -1.778) (end -5.588 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.588 -2.286) (end -5.334 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -1.524 -1.778) (end -1.524 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.794 -2.286) (end -2.794 -1.778) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.064 -1.778) (end -4.064 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.334 -1.778) (end -5.334 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start 10.033 0.508) (end 8.509 0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start 8.509 0.508) (end 9.271 0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start 9.271 0.508) (end 9.271 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start 9.271 -2.286) (end 9.271 -0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start 9.271 -0.508) (end 8.509 -0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start 8.509 -0.508) (end 10.033 -0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.159 -7.62) (end -2.159 -5.334) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.191 -7.62) (end -4.191 -5.334) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.191 -5.334) (end -2.159 -6.604) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.159 -6.604) (end -4.191 -7.62) (layer F.SilkS) (width 0.15)) + (fp_line (start 6.223 -6.604) (end 1.397 -6.604) (layer F.SilkS) (width 0.15)) + (fp_line (start 1.397 -6.604) (end 1.397 -0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start 1.397 -0.508) (end 6.985 -0.508) (layer F.SilkS) (width 0.15)) + (fp_line (start 6.985 -0.508) (end 6.985 -6.604) (layer F.SilkS) (width 0.15)) + (fp_line (start 6.985 -6.604) (end 6.223 -6.604) (layer F.SilkS) (width 0.15)) + (fp_line (start 6.223 -7.62) (end 7.239 -7.62) (layer F.SilkS) (width 0.15)) + (fp_circle (center 6.731 -7.62) (end 7.239 -7.874) (layer F.SilkS) (width 0.15)) + (fp_line (start 6.731 7.112) (end 6.731 8.128) (layer F.SilkS) (width 0.15)) + (fp_line (start 6.223 7.62) (end 7.239 7.62) (layer F.SilkS) (width 0.15)) + (fp_circle (center 6.731 7.62) (end 7.239 7.874) (layer F.SilkS) (width 0.15)) + (fp_line (start 7.493 8.382) (end 7.493 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start 7.493 2.286) (end 11.049 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start 11.049 -2.286) (end 7.493 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start 7.493 -2.286) (end 7.493 -8.382) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.049 2.286) (end -7.493 2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.493 2.286) (end -7.493 8.382) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.493 -8.382) (end -7.493 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.493 -2.286) (end -11.049 -2.286) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.049 -8.382) (end 11.049 -8.382) (layer F.SilkS) (width 0.15)) + (fp_line (start 11.049 -8.382) (end 11.049 8.382) (layer F.SilkS) (width 0.15)) + (fp_line (start 11.049 8.382) (end -11.049 8.382) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.049 8.382) (end -11.049 -8.382) (layer F.SilkS) (width 0.15)) + (pad 2 thru_hole circle (at -9.271 -6.604) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 1 thru_hole rect (at -9.271 6.604) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 3 thru_hole circle (at 9.271 -6.604) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 4 thru_hole rect (at 9.271 6.604) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 3 thru_hole rect (at 9.271 -4.064) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 2 thru_hole rect (at -9.271 -4.064) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 1 thru_hole circle (at -9.271 4.064) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) + (pad 4 thru_hole circle (at 9.271 4.064) (size 1.524 1.524) (drill 0.7) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MT3608_module.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MT3608_module.kicad_mod new file mode 100644 index 0000000..a2f9952 --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MT3608_module.kicad_mod @@ -0,0 +1,36 @@ +(module MT3608_module (layer F.Cu) (tedit 569D6CFB) + (fp_text reference M2 (at 0.25 6 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value DC_DC_boost_module (at 0 -1 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VOUT- (at -16 6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VIN+ (at 14 -6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VIN- (at 14 6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VOUT+ (at -16 -6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -8 -7) (end -8 -4) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.5 -7) (end -4.5 -4) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.5 -4) (end -8 -5.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -8 -5.5) (end -4.5 -7) (layer F.SilkS) (width 0.15)) + (fp_arc (start -17 -6) (end -19.5 -6) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_arc (start 14 -6) (end 14 -8.5) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_arc (start 14 6) (end 16.5 6) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_arc (start -17 6) (end -17 8.5) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_line (start -17 8.5) (end 14 8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 14 -8.5) (end -17 -8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 16.5 6) (end 16.5 -6) (layer F.SilkS) (width 0.15)) + (fp_line (start -19.5 -6) (end -19.5 6) (layer F.SilkS) (width 0.15)) + (pad 1 thru_hole rect (at 14 -3.2 180) (size 5 3.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 2 thru_hole rect (at 14 3.25 180) (size 5 3.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 3 thru_hole rect (at -17 3.25 180) (size 5 3.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 4 thru_hole rect (at -17 -3.25 180) (size 5 3.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MT3608_module_SMT.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MT3608_module_SMT.kicad_mod new file mode 100644 index 0000000..49d030d --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/MT3608_module_SMT.kicad_mod @@ -0,0 +1,39 @@ +(module MT3608_module_SMT (layer F.Cu) (tedit 569D6C5F) + (fp_text reference M2 (at 0.25 6 180) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value DC_DC_boost_module (at 0 -1 180) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VOUT- (at -16 6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VIN+ (at 14 -6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VIN- (at 14 6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text user VOUT+ (at -16 -6.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start -8 -7) (end -8 -4) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.5 -7) (end -4.5 -4) (layer F.SilkS) (width 0.15)) + (fp_line (start -4.5 -4) (end -8 -5.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -8 -5.5) (end -4.5 -7) (layer F.SilkS) (width 0.15)) + (fp_arc (start -17 -6) (end -19.5 -6) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_arc (start 14 -6) (end 14 -8.5) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_arc (start 14 6) (end 16.5 6) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_arc (start -17 6) (end -17 8.5) (angle 90) (layer F.SilkS) (width 0.15)) + (fp_line (start -17 8.5) (end 14 8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 14 -8.5) (end -17 -8.5) (layer F.SilkS) (width 0.15)) + (fp_line (start 16.5 6) (end 16.5 -6) (layer F.SilkS) (width 0.15)) + (fp_line (start -19.5 -6) (end -19.5 6) (layer F.SilkS) (width 0.15)) + (pad "" thru_hole circle (at -7.75 5) (size 2.1 2.1) (drill 2) (layers *.Cu *.Mask F.SilkS)) + (pad "" thru_hole circle (at -5.5 2.5) (size 2.1 2.1) (drill 2) (layers *.Cu *.Mask F.SilkS)) + (pad "" thru_hole circle (at -10.5 2.5) (size 2.1 2.1) (drill 2) (layers *.Cu *.Mask F.SilkS)) + (pad 1 smd rect (at 14 -3.2 180) (size 5 3.5) (layers F.Cu F.Paste F.Mask)) + (pad 2 smd rect (at 14 3.25 180) (size 5 3.5) (layers F.Cu F.Paste F.Mask)) + (pad 3 smd rect (at -17 3.25 180) (size 5 3.5) (layers F.Cu F.Paste F.Mask)) + (pad 4 smd rect (at -17 -3.25 180) (size 5 3.5) (layers F.Cu F.Paste F.Mask)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/N95_battery_connector.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/N95_battery_connector.kicad_mod new file mode 100644 index 0000000..44286fd --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/N95_battery_connector.kicad_mod @@ -0,0 +1,14 @@ +(module N95_battery_connector (layer F.Cu) (tedit 569FD4EC) + (fp_text reference CON** (at -0.5 6) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value N95_battery_connector (at 0.5 -6) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 2.5 -4.5) (end -3 -4.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -3 -4.5) (end -3 4.5) (layer F.SilkS) (width 0.15)) + (fp_line (start -3 4.5) (end 2.5 4.5) (layer F.SilkS) (width 0.15)) + (pad 2 smd rect (at 0 0) (size 5.5 1.5) (layers F.Cu F.Paste F.Mask)) + (pad 3 smd rect (at 0 -3.5) (size 5.5 1.5) (layers F.Cu F.Paste F.Mask)) + (pad 1 smd rect (at 0 3.5) (size 5.5 1.5) (layers F.Cu F.Paste F.Mask)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/XL6009_module.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/XL6009_module.kicad_mod new file mode 100644 index 0000000..044cf2b --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/XL6009_module.kicad_mod @@ -0,0 +1,55 @@ +(module XL6009_module (layer F.Cu) (tedit 56419D18) + (fp_text reference M2 (at -38.375 -16.125) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value DC_DC_boost_module (at -22.9 -7.075) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_circle (center -6.604 -2.54) (end -5.842 -0.508) (layer F.SilkS) (width 0.15)) + (fp_circle (center -6.604 -2.54) (end -6.604 -1.016) (layer F.SilkS) (width 0.15)) + (fp_circle (center -36.576 -18.542) (end -37.084 -20.574) (layer F.SilkS) (width 0.15)) + (fp_circle (center -36.576 -18.542) (end -36.576 -20.066) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.176 -19.05) (end -11.176 -14.986) (layer F.SilkS) (width 0.15)) + (fp_line (start -15.24 -19.05) (end -15.24 -14.986) (layer F.SilkS) (width 0.15)) + (fp_line (start -15.24 -14.986) (end -11.176 -17.018) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.176 -17.018) (end -15.24 -19.05) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -17.526) (end -29.972 -18.542) (layer F.SilkS) (width 0.15)) + (fp_circle (center -30.48 -18.034) (end -29.972 -18.542) (layer F.SilkS) (width 0.15)) + (fp_line (start -31.496 -19.558) (end -31.496 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -31.496 -16.002) (end -30.988 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -16.002) (end -30.988 -16.51) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -16.51) (end -22.86 -16.51) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -16.51) (end -22.86 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -16.002) (end -22.352 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.352 -16.002) (end -22.352 -19.558) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.352 -19.558) (end -31.496 -19.558) (layer F.SilkS) (width 0.15)) + (fp_line (start -41.148 -7.874) (end -35.052 -7.874) (layer F.SilkS) (width 0.15)) + (fp_line (start -35.052 -7.874) (end -35.052 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -35.052 -12.446) (end -36.576 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -36.576 -13.97) (end -39.624 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -39.624 -13.97) (end -41.148 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -41.148 -12.446) (end -41.148 -7.874) (layer F.SilkS) (width 0.15)) + (fp_line (start -0.508 -12.446) (end -0.508 -6.858) (layer F.SilkS) (width 0.15)) + (fp_line (start -0.508 -6.858) (end -7.62 -6.858) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.62 -6.858) (end -7.62 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.62 -12.446) (end -5.588 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.588 -13.97) (end -2.54 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.54 -13.97) (end -0.508 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -0.762) (end -33.02 -0.762) (layer F.SilkS) (width 0.15)) + (fp_line (start -33.02 -0.762) (end -34.036 -0.762) (layer F.SilkS) (width 0.15)) + (fp_line (start -34.036 -0.762) (end -34.036 -11.938) (layer F.SilkS) (width 0.15)) + (fp_line (start -34.036 -11.938) (end -22.86 -11.938) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -11.938) (end -22.86 -10.414) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -10.922) (end -22.86 -0.762) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -0.762) (end -30.988 -0.762) (layer F.SilkS) (width 0.15)) + (fp_circle (center -38.1 -10.922) (end -35.56 -12.446) (layer F.SilkS) (width 0.15)) + (fp_circle (center -4.064 -10.414) (end -1.016 -11.938) (layer F.SilkS) (width 0.15)) + (fp_line (start 0 0) (end -43.18 0) (layer F.SilkS) (width 0.15)) + (fp_line (start -43.18 0) (end -43.18 -21.082) (layer F.SilkS) (width 0.15)) + (fp_line (start 0 0) (end 0 -21.082) (layer F.SilkS) (width 0.15)) + (fp_line (start -43.18 -21.082) (end 0 -21.082) (layer F.SilkS) (width 0.15)) + (pad 1 thru_hole rect (at -41.3258 -19.1516) (size 1.524 1.524) (drill 1) (layers *.Cu *.Mask F.SilkS)) + (pad 2 thru_hole rect (at -41.3258 -1.9812) (size 1.524 1.524) (drill 1) (layers *.Cu *.Mask F.SilkS)) + (pad 3 thru_hole rect (at -1.8542 -1.9812) (size 1.524 1.524) (drill 1) (layers *.Cu *.Mask F.SilkS)) + (pad 4 thru_hole rect (at -1.8542 -19.1262) (size 1.524 1.524) (drill 1) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/XL6009_module_SMT.kicad_mod b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/XL6009_module_SMT.kicad_mod new file mode 100644 index 0000000..7845dad --- /dev/null +++ b/board/kicad-stuff/misc_footprints-master/misc_footprints.pretty/XL6009_module_SMT.kicad_mod @@ -0,0 +1,58 @@ +(module XL6009_module_SMT (layer F.Cu) (tedit 569E2A66) + (fp_text reference M2 (at -38.375 -16.125) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value DC_DC_boost_module (at -22.9 -7.075) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_circle (center -6.604 -2.54) (end -5.842 -0.508) (layer F.SilkS) (width 0.15)) + (fp_circle (center -6.604 -2.54) (end -6.604 -1.016) (layer F.SilkS) (width 0.15)) + (fp_circle (center -36.576 -18.542) (end -37.084 -20.574) (layer F.SilkS) (width 0.15)) + (fp_circle (center -36.576 -18.542) (end -36.576 -20.066) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.176 -19.05) (end -11.176 -14.986) (layer F.SilkS) (width 0.15)) + (fp_line (start -15.24 -19.05) (end -15.24 -14.986) (layer F.SilkS) (width 0.15)) + (fp_line (start -15.24 -14.986) (end -11.176 -17.018) (layer F.SilkS) (width 0.15)) + (fp_line (start -11.176 -17.018) (end -15.24 -19.05) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -17.526) (end -29.972 -18.542) (layer F.SilkS) (width 0.15)) + (fp_circle (center -30.48 -18.034) (end -29.972 -18.542) (layer F.SilkS) (width 0.15)) + (fp_line (start -31.496 -19.558) (end -31.496 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -31.496 -16.002) (end -30.988 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -16.002) (end -30.988 -16.51) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -16.51) (end -22.86 -16.51) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -16.51) (end -22.86 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -16.002) (end -22.352 -16.002) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.352 -16.002) (end -22.352 -19.558) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.352 -19.558) (end -31.496 -19.558) (layer F.SilkS) (width 0.15)) + (fp_line (start -41.148 -7.874) (end -35.052 -7.874) (layer F.SilkS) (width 0.15)) + (fp_line (start -35.052 -7.874) (end -35.052 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -35.052 -12.446) (end -36.576 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -36.576 -13.97) (end -39.624 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -39.624 -13.97) (end -41.148 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -41.148 -12.446) (end -41.148 -7.874) (layer F.SilkS) (width 0.15)) + (fp_line (start -0.508 -12.446) (end -0.508 -6.858) (layer F.SilkS) (width 0.15)) + (fp_line (start -0.508 -6.858) (end -7.62 -6.858) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.62 -6.858) (end -7.62 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -7.62 -12.446) (end -5.588 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -5.588 -13.97) (end -2.54 -13.97) (layer F.SilkS) (width 0.15)) + (fp_line (start -2.54 -13.97) (end -0.508 -12.446) (layer F.SilkS) (width 0.15)) + (fp_line (start -30.988 -0.762) (end -33.02 -0.762) (layer F.SilkS) (width 0.15)) + (fp_line (start -33.02 -0.762) (end -34.036 -0.762) (layer F.SilkS) (width 0.15)) + (fp_line (start -34.036 -0.762) (end -34.036 -11.938) (layer F.SilkS) (width 0.15)) + (fp_line (start -34.036 -11.938) (end -22.86 -11.938) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -11.938) (end -22.86 -10.414) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -10.922) (end -22.86 -0.762) (layer F.SilkS) (width 0.15)) + (fp_line (start -22.86 -0.762) (end -30.988 -0.762) (layer F.SilkS) (width 0.15)) + (fp_circle (center -38.1 -10.922) (end -35.56 -12.446) (layer F.SilkS) (width 0.15)) + (fp_circle (center -4.064 -10.414) (end -1.016 -11.938) (layer F.SilkS) (width 0.15)) + (fp_line (start 0 0) (end -43.18 0) (layer F.SilkS) (width 0.15)) + (fp_line (start -43.18 0) (end -43.18 -21.082) (layer F.SilkS) (width 0.15)) + (fp_line (start 0 0) (end 0 -21.082) (layer F.SilkS) (width 0.15)) + (fp_line (start -43.18 -21.082) (end 0 -21.082) (layer F.SilkS) (width 0.15)) + (pad "" thru_hole circle (at -25.2 -18) (size 1.5 1.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad "" thru_hole circle (at -27.8 -18) (size 1.5 1.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) + (pad 1 smd rect (at -41.3258 -19.1516) (size 3.8 4) (layers F.Cu F.Paste F.Mask)) + (pad 2 smd rect (at -41.3258 -1.9812) (size 3.8 4) (layers F.Cu F.Paste F.Mask)) + (pad 3 smd rect (at -1.8542 -1.9812) (size 3.8 4) (layers F.Cu F.Paste F.Mask)) + (pad 4 smd rect (at -1.8542 -19.1262) (size 3.8 4) (layers F.Cu F.Paste F.Mask)) + (pad "" thru_hole circle (at -30.3 -18) (size 1.5 1.5) (drill 1.25) (layers *.Cu *.Mask F.SilkS)) +) diff --git a/board/sym-lib-table b/board/sym-lib-table index cfdd571..02cc90e 100644 --- a/board/sym-lib-table +++ b/board/sym-lib-table @@ -1,3 +1,4 @@ (sym_lib_table (lib (name ESP32-DEVKITC-32D)(type Legacy)(uri ${KIPRJMOD}/kicad-stuff/ESP32-DEVKITC-32D.lib)(options "")(descr "")) + (lib (name LP38690DT-3.3)(type Legacy)(uri ${KIPRJMOD}/kicad-stuff/LP38690DT-3.3.lib)(options "")(descr "")) ) diff --git a/esp32/host/config-example.json b/esp32/host/config-example.json index fb15e35..a4e4b2b 100644 --- a/esp32/host/config-example.json +++ b/esp32/host/config-example.json @@ -19,9 +19,16 @@ }, "settings": { "deepsleep": 60000, + "pumpdeepsleep": 1000, "plants" : 3, "moist1" : 2000, "moist2" : 2000, - "moist3" : 2000 + "moist3" : 2000, + "plant1MaxPumpTime": 1000, + "plant2MaxPumpTime": 1000, + "plant3MaxPumpTime": 1000, + "plant1MinPumpIdle": 10000, + "plant2MinPumpIdle": 10000, + "plant3MinPumpIdle": 10000 } } diff --git a/esp32test/Esp32DeepSleepTest/.gitignore b/esp32test/Esp32DeepSleepTest/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/.gitignore @@ -0,0 +1,5 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch diff --git a/esp32test/Esp32DeepSleepTest/.vscode/extensions.json b/esp32test/Esp32DeepSleepTest/.vscode/extensions.json new file mode 100644 index 0000000..0f0d740 --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ] +} diff --git a/esp32test/Esp32DeepSleepTest/include/README b/esp32test/Esp32DeepSleepTest/include/README new file mode 100644 index 0000000..194dcd4 --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/include/README @@ -0,0 +1,39 @@ + +This directory is intended for project header files. + +A header file is a file containing C declarations and macro definitions +to be shared between several project source files. You request the use of a +header file in your project source file (C, C++, etc) located in `src` folder +by including it, with the C preprocessing directive `#include'. + +```src/main.c + +#include "header.h" + +int main (void) +{ + ... +} +``` + +Including a header file produces the same results as copying the header file +into each source file that needs it. Such copying would be time-consuming +and error-prone. With a header file, the related declarations appear +in only one place. If they need to be changed, they can be changed in one +place, and programs that include the header file will automatically use the +new version when next recompiled. The header file eliminates the labor of +finding and changing all the copies as well as the risk that a failure to +find one copy will result in inconsistencies within a program. + +In C, the usual convention is to give header files names that end with `.h'. +It is most portable to use only letters, digits, dashes, and underscores in +header file names, and at most one dot. + +Read more about using header files in official GCC documentation: + +* Include Syntax +* Include Operation +* Once-Only Headers +* Computed Includes + +https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/esp32test/Esp32DeepSleepTest/lib/README b/esp32test/Esp32DeepSleepTest/lib/README new file mode 100644 index 0000000..6debab1 --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/lib/README @@ -0,0 +1,46 @@ + +This directory is intended for project specific (private) libraries. +PlatformIO will compile them to static libraries and link into executable file. + +The source code of each library should be placed in a an own separate directory +("lib/your_library_name/[here are source files]"). + +For example, see a structure of the following two libraries `Foo` and `Bar`: + +|--lib +| | +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html +| | +| |--Foo +| | |- Foo.c +| | |- Foo.h +| | +| |- README --> THIS FILE +| +|- platformio.ini +|--src + |- main.c + +and a contents of `src/main.c`: +``` +#include +#include + +int main (void) +{ + ... +} + +``` + +PlatformIO Library Dependency Finder will find automatically dependent +libraries scanning project source files. + +More information about PlatformIO Library Dependency Finder +- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/esp32test/Esp32DeepSleepTest/platformio.ini b/esp32test/Esp32DeepSleepTest/platformio.ini new file mode 100644 index 0000000..e0a6037 --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/platformio.ini @@ -0,0 +1,15 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env:esp32doit-devkit-v1] +platform = espressif32 +board = esp32doit-devkit-v1 +framework = arduino +build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY \ No newline at end of file diff --git a/esp32test/Esp32DeepSleepTest/src/main.cpp b/esp32test/Esp32DeepSleepTest/src/main.cpp new file mode 100644 index 0000000..fd5ee8b --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/src/main.cpp @@ -0,0 +1,108 @@ +#include +#include "esp_sleep.h" + +#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */ +#define TIME_TO_SLEEP 2 /* Time ESP32 will go to sleep (in seconds) */ + +RTC_DATA_ATTR int bootCount = 0; +int secondBootCount = 0; + +void print_wakeup_reason(){ + esp_sleep_wakeup_cause_t wakeup_reason; + + wakeup_reason = esp_sleep_get_wakeup_cause(); + + switch(wakeup_reason){ + case ESP_SLEEP_WAKEUP_EXT0 : Serial.println("Wakeup caused by external signal using RTC_IO"); break; + case ESP_SLEEP_WAKEUP_EXT1 : Serial.println("Wakeup caused by external signal using RTC_CNTL"); break; + case ESP_SLEEP_WAKEUP_TIMER : Serial.println("Wakeup caused by timer"); break; + case ESP_SLEEP_WAKEUP_TOUCHPAD : Serial.println("Wakeup caused by touchpad"); break; + case ESP_SLEEP_WAKEUP_ULP : Serial.println("Wakeup caused by ULP program"); break; + default : Serial.printf("Wakeup was not caused by deep sleep: %d\n",wakeup_reason); break; + } +} + +void setup() { + pinMode(GPIO_NUM_23, OUTPUT); + pinMode(GPIO_NUM_22, OUTPUT); + pinMode(GPIO_NUM_21, OUTPUT); + pinMode(GPIO_NUM_19, OUTPUT); + pinMode(GPIO_NUM_18, OUTPUT); + pinMode(GPIO_NUM_5, OUTPUT); + pinMode(GPIO_NUM_4, OUTPUT); + pinMode(GPIO_NUM_15, OUTPUT); + pinMode(GPIO_NUM_13, OUTPUT); + digitalWrite(GPIO_NUM_23, HIGH); + digitalWrite(GPIO_NUM_22, HIGH); + digitalWrite(GPIO_NUM_21, HIGH); + digitalWrite(GPIO_NUM_19, HIGH); + digitalWrite(GPIO_NUM_18, HIGH); + digitalWrite(GPIO_NUM_5, HIGH); + digitalWrite(GPIO_NUM_4, HIGH); + digitalWrite(GPIO_NUM_15, HIGH); + digitalWrite(GPIO_NUM_13, HIGH); + Serial.begin(115200); + + //Increment boot number and print it every reboot + ++bootCount; + ++secondBootCount; + Serial.println("Boot number: " + String(bootCount) + " " + String(secondBootCount)); + + //Print the wakeup reason for ESP32 + print_wakeup_reason(); + + /* + First we configure the wake up source + We set our ESP32 to wake up every 5 seconds + */ + esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); + Serial.println("Setup ESP32 to sleep for every " + String(TIME_TO_SLEEP) + + " Seconds"); + esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF); + esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_ON); + esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF); + esp_sleep_pd_config(ESP_PD_DOMAIN_XTAL,ESP_PD_OPTION_ON); + + + + pinMode(GPIO_NUM_32, ANALOG); + digitalWrite(GPIO_NUM_32, HIGH); + pinMode(GPIO_NUM_33, INPUT_PULLUP); + digitalWrite(GPIO_NUM_33, HIGH); + pinMode(GPIO_NUM_25, INPUT_PULLUP); + digitalWrite(GPIO_NUM_25, HIGH); + pinMode(GPIO_NUM_26, INPUT_PULLUP); + pinMode(GPIO_NUM_27, INPUT_PULLUP); + pinMode(GPIO_NUM_14, INPUT_PULLUP); + pinMode(GPIO_NUM_12, INPUT_PULLUP); +} + +void loop() { + Serial.println("------------"); + Serial.flush(); + delay(1000); + digitalWrite(GPIO_NUM_23, analogRead(GPIO_NUM_34) > 3500); + + Serial.println(analogRead(GPIO_NUM_34)); + + Serial.println(analogRead(GPIO_NUM_35)); + + Serial.println(analogRead(GPIO_NUM_32)); + + Serial.println(analogRead(GPIO_NUM_33)); + + Serial.println(analogRead(GPIO_NUM_25)); + + Serial.println(analogRead(GPIO_NUM_26)); + + Serial.println(analogRead(GPIO_NUM_27)); + Serial.println(analogRead(GPIO_NUM_14)); + Serial.println(analogRead(GPIO_NUM_12)); + + gpio_hold_en(GPIO_NUM_4); + gpio_hold_en(GPIO_NUM_13); + gpio_hold_en(GPIO_NUM_15); + gpio_deep_sleep_hold_en(); + + esp_deep_sleep_start(); +} \ No newline at end of file diff --git a/esp32test/Esp32DeepSleepTest/test/README b/esp32test/Esp32DeepSleepTest/test/README new file mode 100644 index 0000000..b94d089 --- /dev/null +++ b/esp32test/Esp32DeepSleepTest/test/README @@ -0,0 +1,11 @@ + +This directory is intended for PlatformIO Unit Testing and project tests. + +Unit Testing is a software testing method by which individual units of +source code, sets of one or more MCU program modules together with associated +control data, usage procedures, and operating procedures, are tested to +determine whether they are fit for use. Unit testing finds problems early +in the development cycle. + +More information about PlatformIO Unit Testing: +- https://docs.platformio.org/page/plus/unit-testing.html diff --git a/sheets/1808280225_Texas-Instruments-LP38690DTX-3-3-NOPB_C109045.pdf b/sheets/1808280225_Texas-Instruments-LP38690DTX-3-3-NOPB_C109045.pdf new file mode 100644 index 0000000..5da36d1 Binary files /dev/null and b/sheets/1808280225_Texas-Instruments-LP38690DTX-3-3-NOPB_C109045.pdf differ diff --git a/sheets/1912111437_Slkor-SLKORMICRO-Elec-SL2300_C350314.pdf b/sheets/1912111437_Slkor-SLKORMICRO-Elec-SL2300_C350314.pdf new file mode 100644 index 0000000..87fa976 Binary files /dev/null and b/sheets/1912111437_Slkor-SLKORMICRO-Elec-SL2300_C350314.pdf differ diff --git a/sheets/2008111605_Yangzhou-Yangjie-Elec-Tech-BSS84_C699295.pdf b/sheets/2008111605_Yangzhou-Yangjie-Elec-Tech-BSS84_C699295.pdf new file mode 100644 index 0000000..de6fff8 Binary files /dev/null and b/sheets/2008111605_Yangzhou-Yangjie-Elec-Tech-BSS84_C699295.pdf differ diff --git a/sheets/esp32-wroom-32_datasheet_en.pdf b/sheets/esp32-wroom-32_datasheet_en.pdf new file mode 100644 index 0000000..68e3b61 Binary files /dev/null and b/sheets/esp32-wroom-32_datasheet_en.pdf differ diff --git a/sheets/esp32_datasheet_en.pdf b/sheets/esp32_datasheet_en.pdf new file mode 100644 index 0000000..040173a Binary files /dev/null and b/sheets/esp32_datasheet_en.pdf differ