From 412ba87f3e11ce4d024f63cd2340832a2b946307 Mon Sep 17 00:00:00 2001 From: Ollo Date: Tue, 5 Jan 2021 17:17:21 +0100 Subject: [PATCH] Solar charger and lipo protection seperated --- board/PlantCtrlESP32.sch | 374 +++++++++++++++++++++++---------------- 1 file changed, 220 insertions(+), 154 deletions(-) diff --git a/board/PlantCtrlESP32.sch b/board/PlantCtrlESP32.sch index 5f7a504..709eeeb 100644 --- a/board/PlantCtrlESP32.sch +++ b/board/PlantCtrlESP32.sch @@ -92,7 +92,7 @@ Text GLabel 1150 2050 0 50 Input ~ 0 PLANT6_PUMP Text Notes 950 550 0 50 ~ 0 Pump Control -Text Notes 19550 7400 0 50 ~ 0 +Text Notes 19900 8950 0 50 ~ 0 Lipo $Comp L Connector_Generic:Conn_01x03 J6 @@ -374,25 +374,25 @@ Wire Wire Line $Comp L LP38690DT-3.3:LP38690DT-3.3 U3 U 1 1 5F84FA14 -P 19850 7300 -F 0 "U3" H 19850 7665 50 0000 C CNN -F 1 "LP38690DT-3.3" H 19850 7574 50 0000 C CNN -F 2 "ESP32:DPAK457P991X255-3N" H 19850 7300 50 0001 L BNN -F 3 "IPC-7351B" H 19850 7300 50 0001 L BNN -F 4 "Texas Instruments" H 19850 7300 50 0001 L BNN "Field4" -F 5 "M" H 19850 7300 50 0001 L BNN "Field5" -F 6 "2.55mm" H 19850 7300 50 0001 L BNN "Field6" -F 7 "C109045" H 19850 7300 50 0001 C CNN "LCSC_PART_NUMBER" - 1 19850 7300 +P 20200 8850 +F 0 "U3" H 20200 9215 50 0000 C CNN +F 1 "LP38690DT-3.3" H 20200 9124 50 0000 C CNN +F 2 "ESP32:DPAK457P991X255-3N" H 20200 8850 50 0001 L BNN +F 3 "IPC-7351B" H 20200 8850 50 0001 L BNN +F 4 "Texas Instruments" H 20200 8850 50 0001 L BNN "Field4" +F 5 "M" H 20200 8850 50 0001 L BNN "Field5" +F 6 "2.55mm" H 20200 8850 50 0001 L BNN "Field6" +F 7 "C109045" H 20200 8850 50 0001 C CNN "LCSC_PART_NUMBER" + 1 20200 8850 1 0 0 -1 $EndComp -Text GLabel 20550 7400 2 50 Input ~ 0 +Text GLabel 20900 8950 2 50 Input ~ 0 GND -Text GLabel 20550 7200 2 50 Input ~ 0 +Text GLabel 20900 8750 2 50 Input ~ 0 3_3V Text GLabel 4150 5700 0 50 Input ~ 0 3_3V -Text GLabel 19250 7200 0 50 Input ~ 0 +Text GLabel 19600 8750 0 50 Input ~ 0 VCC Wire Wire Line 16150 10000 16300 10000 @@ -589,15 +589,15 @@ CUSTOM_GPIO $Comp L Connector:Conn_01x02_Female J4 U 1 1 5F8D742C -P 21400 4800 -F 0 "J4" H 21428 4776 50 0000 L CNN -F 1 "Conn_01x02_Female" H 20800 4600 50 0000 L CNN -F 2 "misc_footprints:BatteryHolder_Keystone_1042_1x18650" H 21400 4800 50 0001 C CNN -F 3 "~" H 21400 4800 50 0001 C CNN - 1 21400 4800 +P 21700 6200 +F 0 "J4" H 21728 6176 50 0000 L CNN +F 1 "Conn_01x02_Female" H 21100 6000 50 0000 L CNN +F 2 "misc_footprints:BatteryHolder_Keystone_1042_1x18650" H 21700 6200 50 0001 C CNN +F 3 "~" H 21700 6200 50 0001 C CNN + 1 21700 6200 1 0 0 -1 $EndComp -Text Notes 19650 4350 0 50 ~ 0 +Text Notes 19950 5750 0 50 ~ 0 Protection for Lipo Wire Wire Line 16650 10150 16650 10200 @@ -686,31 +686,31 @@ F 4 "C17513" H 15050 10000 50 0001 C CNN "LCSC_PART_NUMBER" $EndComp Wire Wire Line 14850 10000 14900 10000 -Text GLabel 20000 4100 0 50 Input ~ 0 +Text GLabel 20750 4450 2 50 Input ~ 0 SOLAR_IN $Comp L Connector_Generic:Conn_01x04 J2 U 1 1 5F7E5709 -P 20200 3900 -F 0 "J2" H 20280 3892 50 0000 L CNN -F 1 "Conn_01x04" H 20280 3801 50 0000 L CNN -F 2 "Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical" H 20200 3900 50 0001 C CNN -F 3 "~" H 20200 3900 50 0001 C CNN - 1 20200 3900 - 1 0 0 -1 +P 20550 4250 +F 0 "J2" H 20630 4242 50 0000 L CNN +F 1 "Conn_01x04" H 20630 4151 50 0000 L CNN +F 2 "Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical" H 20550 4250 50 0001 C CNN +F 3 "~" H 20550 4250 50 0001 C CNN + 1 20550 4250 + 0 -1 -1 0 $EndComp $Comp L Device:Fuse F1 U 1 1 5F8D8528 -P 19500 3800 -F 0 "F1" V 19550 3750 50 0000 L CNN -F 1 "Fuse" V 19400 3700 50 0000 L CNN -F 2 "Fuse:Fuse_Blade_ATO_directSolder" V 19430 3800 50 0001 C CNN -F 3 "~" H 19500 3800 50 0001 C CNN - 1 19500 3800 +P 19950 4450 +F 0 "F1" V 20000 4400 50 0000 L CNN +F 1 "Fuse" V 19850 4350 50 0000 L CNN +F 2 "Fuse:Fuse_Blade_ATO_directSolder" V 19880 4450 50 0001 C CNN +F 3 "~" H 19950 4450 50 0001 C CNN + 1 19950 4450 0 1 1 0 $EndComp -Text GLabel 19600 3950 0 50 Input ~ 0 +Text GLabel 19400 5000 0 50 Input ~ 0 VCC $Comp L Device:R R46 @@ -779,142 +779,127 @@ PWR_SENSORS $Comp L DW01:DW01 IC1 U 1 1 5FB36987 -P 19450 4700 -F 0 "IC1" H 19950 4967 50 0000 C CNN -F 1 "DW01" H 19950 4876 50 0000 C CNN -F 2 "misc_footprints:SOT95P280X135-6N" H 19450 4700 50 0001 L BNN -F 3 "" H 19450 4700 50 0001 L BNN -F 4 "ic" H 19450 4700 50 0001 L BNN "DESCRIPTION" -F 5 "DW01" H 19450 4700 50 0001 L BNN "MANUFACTURER_PART_NUMBER" -F 6 "C14213" H 19450 4700 50 0001 L BNN "LCSC_PART_NUMBER" - 1 19450 4700 +P 19750 6100 +F 0 "IC1" H 20250 6367 50 0000 C CNN +F 1 "DW01" H 20250 6276 50 0000 C CNN +F 2 "misc_footprints:SOT95P280X135-6N" H 19750 6100 50 0001 L BNN +F 3 "" H 19750 6100 50 0001 L BNN +F 4 "ic" H 19750 6100 50 0001 L BNN "DESCRIPTION" +F 5 "DW01" H 19750 6100 50 0001 L BNN "MANUFACTURER_PART_NUMBER" +F 6 "C14213" H 19750 6100 50 0001 L BNN "LCSC_PART_NUMBER" + 1 19750 6100 1 0 0 -1 $EndComp $Comp L ESP32-DEVKITC-32D:SL2300 Q12 U 1 1 5FB3ECD2 -P 20100 5750 -F 0 "Q12" V 20392 5750 50 0000 C CNN -F 1 "N-channel 30V 5A" V 20301 5750 50 0000 C CNN -F 2 "Package_TO_SOT_SMD:SOT-23_Handsoldering" H 20100 5750 50 0001 C CNN -F 3 "" H 20100 5750 50 0001 C CNN -F 4 "C350314" H 20100 5750 50 0001 C CNN "LCSC_PART_NUMBER" - 1 20100 5750 - 0 -1 -1 0 +P 20650 4750 +F 0 "Q12" V 20942 4750 50 0000 C CNN +F 1 "N-channel 30V 5A" V 20851 4750 50 0000 C CNN +F 2 "Package_TO_SOT_SMD:SOT-23_Handsoldering" H 20650 4750 50 0001 C CNN +F 3 "" H 20650 4750 50 0001 C CNN +F 4 "C350314" H 20650 4750 50 0001 C CNN "LCSC_PART_NUMBER" + 1 20650 4750 + -1 0 0 1 $EndComp -Wire Wire Line - 19900 5700 19750 5700 -Wire Wire Line - 20000 4000 20000 3900 $Comp L Device:R R52 U 1 1 5FC59C43 -P 19300 4800 -F 0 "R52" V 19300 4800 50 0000 C CNN -F 1 "1k" V 19150 4800 50 0000 C CNN -F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" V 19230 4800 50 0001 C CNN -F 3 "~" H 19300 4800 50 0001 C CNN -F 4 "C17513" H 19300 4800 50 0001 C CNN "LCSC_PART_NUMBER" - 1 19300 4800 +P 19600 6200 +F 0 "R52" V 19600 6200 50 0000 C CNN +F 1 "1k" V 19450 6200 50 0000 C CNN +F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" V 19530 6200 50 0001 C CNN +F 3 "~" H 19600 6200 50 0001 C CNN +F 4 "C17513" H 19600 6200 50 0001 C CNN "LCSC_PART_NUMBER" + 1 19600 6200 0 -1 -1 0 $EndComp $Comp L Device:R R53 U 1 1 5FC908BA -P 20900 4800 -F 0 "R53" V 20693 4800 50 0000 C CNN -F 1 "100" V 20784 4800 50 0000 C CNN -F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" V 20830 4800 50 0001 C CNN -F 3 "~" H 20900 4800 50 0001 C CNN -F 4 "C17408" H 20900 4800 50 0001 C CNN "LCSC_PART_NUMBER" - 1 20900 4800 +P 21200 6200 +F 0 "R53" V 20993 6200 50 0000 C CNN +F 1 "100" V 21084 6200 50 0000 C CNN +F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" V 21130 6200 50 0001 C CNN +F 3 "~" H 21200 6200 50 0001 C CNN +F 4 "C17408" H 21200 6200 50 0001 C CNN "LCSC_PART_NUMBER" + 1 21200 6200 0 1 1 0 $EndComp -Wire Wire Line - 20300 5700 20350 5700 $Comp L Device:C C10 U 1 1 5FCD9EFE -P 20600 4650 -F 0 "C10" H 20715 4696 50 0000 L CNN -F 1 "100n" H 20715 4605 50 0000 L CNN -F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 20638 4500 50 0001 C CNN -F 3 "~" H 20600 4650 50 0001 C CNN -F 4 "C49678" H 20600 4650 50 0001 C CNN "LCSC_PART_NUMBER" - 1 20600 4650 +P 20900 6050 +F 0 "C10" H 21015 6096 50 0000 L CNN +F 1 "100n" H 21015 6005 50 0000 L CNN +F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 20938 5900 50 0001 C CNN +F 3 "~" H 20900 6050 50 0001 C CNN +F 4 "C49678" H 20900 6050 50 0001 C CNN "LCSC_PART_NUMBER" + 1 20900 6050 1 0 0 -1 $EndComp -Text GLabel 20000 4000 0 50 Input ~ 0 -GND -Text GLabel 20450 5700 2 50 Input ~ 0 -GND -Text GLabel 21050 4900 0 50 Input ~ 0 +Text GLabel 21350 6300 0 50 Input ~ 0 GND_BATT -Text GLabel 19250 5700 0 50 Input ~ 0 +Text GLabel 19550 7100 0 50 Input ~ 0 GND_BATT -Connection ~ 20350 5700 Wire Wire Line - 20450 4800 20600 4800 -Text GLabel 20650 4500 2 50 Input ~ 0 + 20750 6200 20900 6200 +Text GLabel 20950 5900 2 50 Input ~ 0 GND_BATT -Text GLabel 19150 4800 0 50 Input ~ 0 +Text GLabel 19450 6200 0 50 Input ~ 0 GND -Connection ~ 20600 4800 +Connection ~ 20900 6200 Wire Wire Line - 20600 4800 20750 4800 + 20900 6200 21050 6200 Wire Wire Line - 20450 4700 20450 4500 + 20750 6100 20750 5900 Wire Wire Line - 20450 4500 20600 4500 + 20750 5900 20900 5900 Wire Wire Line - 20600 4500 20650 4500 -Connection ~ 20600 4500 + 20900 5900 20950 5900 +Connection ~ 20900 5900 Wire Wire Line - 21050 4800 21200 4800 + 21350 6200 21500 6200 Wire Wire Line - 21050 4900 21200 4900 -Text GLabel 21150 4800 1 50 Input ~ 0 + 21350 6300 21500 6300 +Text GLabel 21450 6200 1 50 Input ~ 0 VCC_BATT -Text GLabel 19350 3800 0 50 Input ~ 0 +Text GLabel 19800 4450 0 50 Input ~ 0 VCC_BATT Wire Wire Line - 19650 3800 19700 3800 + 20100 4450 20150 4450 +Connection ~ 20150 4450 Wire Wire Line - 19700 3950 19600 3950 -Wire Wire Line - 19700 3800 19700 3950 -Connection ~ 19700 3800 -Wire Wire Line - 19700 3800 20000 3800 -Text GLabel 19200 4700 0 50 Input ~ 0 + 20150 4450 20450 4450 +Text GLabel 19500 6100 0 50 Input ~ 0 LIPO_OD -Text GLabel 19550 5350 1 50 Input ~ 0 +Text GLabel 19850 6750 1 50 Input ~ 0 LIPO_OD -Text GLabel 19200 4900 0 50 Input ~ 0 +Text GLabel 19500 6300 0 50 Input ~ 0 LIPO_OC Wire Wire Line - 19200 4700 19450 4700 + 19500 6100 19750 6100 Wire Wire Line - 19200 4900 19450 4900 -Text GLabel 20100 6100 3 50 Input ~ 0 + 19500 6300 19750 6300 +Text GLabel 21000 4750 2 50 Input ~ 0 LIPO_OC Wire Wire Line - 20100 6100 20100 6000 + 21000 4750 20900 4750 $Comp L ESP32-DEVKITC-32D:SL2300 Q11 U 1 1 5FB813FB -P 19550 5650 -F 0 "Q11" V 19749 5650 50 0000 C CNN -F 1 "N-channel 30V 5A" V 19840 5650 50 0000 C CNN -F 2 "Package_TO_SOT_SMD:SOT-23_Handsoldering" H 19550 5650 50 0001 C CNN -F 3 "" H 19550 5650 50 0001 C CNN -F 4 "C350314" H 19550 5650 50 0001 C CNN "LCSC_PART_NUMBER" - 1 19550 5650 +P 19850 7050 +F 0 "Q11" V 20049 7050 50 0000 C CNN +F 1 "N-channel 30V 5A" V 20140 7050 50 0000 C CNN +F 2 "Package_TO_SOT_SMD:SOT-23_Handsoldering" H 19850 7050 50 0001 C CNN +F 3 "" H 19850 7050 50 0001 C CNN +F 4 "C350314" H 19850 7050 50 0001 C CNN "LCSC_PART_NUMBER" + 1 19850 7050 0 1 1 0 $EndComp Wire Wire Line - 19550 5350 19550 5400 -NoConn ~ 20450 4900 + 19850 6750 19850 6800 +NoConn ~ 20750 6300 Wire Wire Line 5800 5800 5900 5800 $Comp @@ -938,25 +923,16 @@ Wire Wire Line $Comp L Jumper:SolderJumper_2_Open JP1 U 1 1 6011090E -P 19950 5300 -F 0 "JP1" H 19950 5505 50 0000 C CNN -F 1 "SolderJumper_2_Open" H 19950 5414 50 0000 C CNN -F 2 "Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm" H 19950 5300 50 0001 C CNN -F 3 "~" H 19950 5300 50 0001 C CNN - 1 19950 5300 +P 21900 4750 +F 0 "JP1" H 21900 4955 50 0000 C CNN +F 1 "SolderJumper_2_Open" H 21900 4864 50 0000 C CNN +F 2 "Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm" H 21900 4750 50 0001 C CNN +F 3 "~" H 21900 4750 50 0001 C CNN + 1 21900 4750 1 0 0 -1 $EndComp Wire Wire Line - 20350 5700 20350 5300 -Wire Wire Line - 20350 5300 20100 5300 -Wire Wire Line - 19800 5300 19350 5300 -Wire Wire Line - 19350 5300 19350 5700 -Wire Wire Line - 19350 5700 19250 5700 -Connection ~ 19350 5700 + 19650 7100 19550 7100 $Comp L Jumper:SolderJumper_2_Open JP2 U 1 1 60159E6D @@ -990,8 +966,6 @@ F 3 "~" H 16650 10000 50 0001 C CNN 1 16650 10000 0 1 1 0 $EndComp -Wire Wire Line - 20350 5700 20450 5700 $Comp L Jumper:SolderJumper_2_Open JP5 U 1 1 6023651A @@ -1033,25 +1007,25 @@ Wire Wire Line $Comp L Device:C_Small C13 U 1 1 603684C2 -P 20500 7300 -F 0 "C13" H 20588 7346 50 0000 L CNN -F 1 "22uf" H 20588 7255 50 0000 L CNN -F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 20500 7300 50 0001 C CNN -F 3 "~" H 20500 7300 50 0001 C CNN -F 4 "C45783" H 20500 7300 50 0001 C CNN "LCSC_PART_NUMBER" - 1 20500 7300 +P 20850 8850 +F 0 "C13" H 20938 8896 50 0000 L CNN +F 1 "22uf" H 20938 8805 50 0000 L CNN +F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 20850 8850 50 0001 C CNN +F 3 "~" H 20850 8850 50 0001 C CNN +F 4 "C45783" H 20850 8850 50 0001 C CNN "LCSC_PART_NUMBER" + 1 20850 8850 1 0 0 -1 $EndComp Wire Wire Line - 20550 7200 20500 7200 -Connection ~ 20500 7200 + 20900 8750 20850 8750 +Connection ~ 20850 8750 Wire Wire Line - 20500 7200 20450 7200 + 20850 8750 20800 8750 Wire Wire Line - 20450 7400 20500 7400 -Connection ~ 20500 7400 + 20800 8950 20850 8950 +Connection ~ 20850 8950 Wire Wire Line - 20500 7400 20550 7400 + 20850 8950 20900 8950 Text GLabel 5050 1250 2 50 Input ~ 0 GND Wire Wire Line @@ -2765,4 +2739,96 @@ Text GLabel 1550 9050 2 50 Input ~ 0 VCC Text Notes 1200 8700 0 102 ~ 0 Jumper for USB flashing without AMS1117 +$Comp +L Transistor_FET:BSS84 Q_PWR? +U 1 1 5FFD58C5 +P 19400 5300 +F 0 "Q_PWR?" H 19604 5346 50 0000 L CNN +F 1 "P-channel 50v 4A" H 19604 5255 50 0000 L CNN +F 2 "Package_TO_SOT_SMD:SOT-23_Handsoldering" H 19600 5225 50 0001 L CIN +F 3 "" H 19400 5300 50 0001 L CNN +F 4 "C344010" H 19400 5300 50 0001 C CNN "LCSC_PART_NUMBER" + 1 19400 5300 + 1 0 0 -1 +$EndComp +$Comp +L Device:R R? +U 1 1 5FFD69D9 +P 18950 5300 +F 0 "R?" V 18743 5300 50 0000 C CNN +F 1 "10k" V 18834 5300 50 0000 C CNN +F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" V 18880 5300 50 0001 C CNN +F 3 "~" H 18950 5300 50 0001 C CNN +F 4 "C17414" H 18950 5300 50 0001 C CNN "LCSC_PART_NUMBER" + 1 18950 5300 + 0 1 1 0 +$EndComp +$Comp +L Device:R R? +U 1 1 5FFD6F58 +P 19150 5450 +F 0 "R?" H 19220 5496 50 0000 L CNN +F 1 "10k" H 19220 5405 50 0000 L CNN +F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder" V 19080 5450 50 0001 C CNN +F 3 "~" H 19150 5450 50 0001 C CNN +F 4 "C17414" H 19150 5450 50 0001 C CNN "LCSC_PART_NUMBER" + 1 19150 5450 + 1 0 0 -1 +$EndComp +Wire Wire Line + 19100 5300 19150 5300 +Connection ~ 19150 5300 +Wire Wire Line + 19150 5300 19200 5300 +Wire Wire Line + 19400 5000 19500 5000 +Wire Wire Line + 19500 5000 19500 5100 +Wire Wire Line + 19150 5600 19650 5600 +Wire Wire Line + 19650 5600 19650 5500 +Connection ~ 19650 5500 +Wire Wire Line + 19650 5500 19500 5500 +Text GLabel 18600 5300 0 50 Input ~ 0 +enable_all +Wire Wire Line + 18600 5300 18800 5300 +Text GLabel 20100 7150 3 50 Input ~ 0 +enable_all +Wire Wire Line + 20100 7150 20100 7100 +Wire Wire Line + 20100 7100 20050 7100 +Wire Wire Line + 20550 4450 20550 4550 +Wire Wire Line + 20550 4550 20600 4550 +Wire Wire Line + 20600 4550 20650 4550 +Wire Wire Line + 20650 4550 20650 4450 +Connection ~ 20600 4550 +Text GLabel 20600 4950 3 50 Input ~ 0 +GND_BATT +Wire Wire Line + 20650 4550 21600 4550 +Wire Wire Line + 21600 4550 21600 4750 +Wire Wire Line + 21600 4750 21750 4750 +Connection ~ 20650 4550 +Text GLabel 22050 4750 2 50 Input ~ 0 +GND_BATT +Text Notes 21450 4450 0 50 ~ 0 +Overloading protection +Text Notes 18500 4900 0 50 ~ 0 +activate VCC everywhere \nonly when lipo is charged enough +Wire Wire Line + 20150 4450 20150 5500 +Wire Wire Line + 19650 5500 20150 5500 +Text Notes 22050 3800 2 207 ~ 0 +Solar Charger\nLipo Protection $EndSCHEMATC