automatic ESP32 download mode added

This commit is contained in:
Ollo 2021-02-09 21:42:55 +01:00
parent 4cd9b35cd2
commit 938f253072

View File

@ -2343,36 +2343,36 @@ Wire Wire Line
20550 6150 20550 6700 20550 6150 20550 6700
Wire Wire Line Wire Wire Line
20650 6150 20650 6400 20650 6150 20650 6400
Text GLabel 750 2700 1 50 Input ~ 0 Text GLabel 1050 6950 1 50 Input ~ 0
PUMP_PWR PUMP_PWR
Text GLabel 750 3000 3 50 Input ~ 0 Text GLabel 1050 7250 3 50 Input ~ 0
GND GND
$Comp $Comp
L Device:C C14 L Device:C C14
U 1 1 60378F84 U 1 1 60378F84
P 750 2850 P 1050 7100
F 0 "C14" H 865 2896 50 0000 L CNN F 0 "C14" H 1165 7146 50 0000 L CNN
F 1 "22uf" H 865 2805 50 0000 L CNN F 1 "22uf" H 1165 7055 50 0000 L CNN
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 788 2700 50 0001 C CNN F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 1088 6950 50 0001 C CNN
F 3 "~" H 750 2850 50 0001 C CNN F 3 "~" H 1050 7100 50 0001 C CNN
F 4 "C45783" H 750 2850 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C45783" H 1050 7100 50 0001 C CNN "LCSC_PART_NUMBER"
1 750 2850 1 1050 7100
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Text GLabel 1150 2700 1 50 Input ~ 0 Text GLabel 1450 6950 1 50 Input ~ 0
PUMP_PWR PUMP_PWR
Text GLabel 1150 3000 3 50 Input ~ 0 Text GLabel 1450 7250 3 50 Input ~ 0
GND GND
$Comp $Comp
L Device:C C16 L Device:C C16
U 1 1 60397250 U 1 1 60397250
P 1150 2850 P 1450 7100
F 0 "C16" H 1265 2896 50 0000 L CNN F 0 "C16" H 1565 7146 50 0000 L CNN
F 1 "22uf" H 1265 2805 50 0000 L CNN F 1 "22uf" H 1565 7055 50 0000 L CNN
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 1188 2700 50 0001 C CNN F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 1488 6950 50 0001 C CNN
F 3 "~" H 1150 2850 50 0001 C CNN F 3 "~" H 1450 7100 50 0001 C CNN
F 4 "C45783" H 1150 2850 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C45783" H 1450 7100 50 0001 C CNN "LCSC_PART_NUMBER"
1 1150 2850 1 1450 7100
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
$Comp $Comp
@ -2418,61 +2418,61 @@ $EndComp
$Comp $Comp
L Switch:SW_Push SW1 L Switch:SW_Push SW1
U 1 1 603DF238 U 1 1 603DF238
P 2950 5300 P 2550 5300
F 0 "SW1" H 2950 5585 50 0000 C CNN F 0 "SW1" H 2550 5585 50 0000 C CNN
F 1 "SW_Push" H 2950 5494 50 0000 C CNN F 1 "SW_Push" H 2550 5494 50 0000 C CNN
F 2 "Button_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2" H 2950 5500 50 0001 C CNN F 2 "Button_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2" H 2550 5500 50 0001 C CNN
F 3 "~" H 2950 5500 50 0001 C CNN F 3 "~" H 2550 5500 50 0001 C CNN
F 4 "C72443" H 2950 5300 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C72443" H 2550 5300 50 0001 C CNN "LCSC_PART_NUMBER"
1 2950 5300 1 2550 5300
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
$Comp $Comp
L Device:R R32 L Device:R R32
U 1 1 603DFA42 U 1 1 603DFA42
P 3600 5300 P 3200 5300
F 0 "R32" V 3393 5300 50 0000 C CNN F 0 "R32" V 2993 5300 50 0000 C CNN
F 1 "1k" V 3484 5300 50 0000 C CNN F 1 "1k" V 3084 5300 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 3530 5300 50 0001 C CNN F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 3130 5300 50 0001 C CNN
F 3 "~" H 3600 5300 50 0001 C CNN F 3 "~" H 3200 5300 50 0001 C CNN
F 4 "C95781" H 3600 5300 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C95781" H 3200 5300 50 0001 C CNN "LCSC_PART_NUMBER"
1 3600 5300 1 3200 5300
0 1 1 0 0 1 1 0
$EndComp $EndComp
$Comp $Comp
L Device:C C18 L Device:C C18
U 1 1 603E007D U 1 1 603E007D
P 2950 5450 P 2550 5450
F 0 "C18" H 2835 5404 50 0000 R CNN F 0 "C18" H 2435 5404 50 0000 R CNN
F 1 "100n" H 2835 5495 50 0000 R CNN F 1 "100n" H 2435 5495 50 0000 R CNN
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 2988 5300 50 0001 C CNN F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 2588 5300 50 0001 C CNN
F 3 "~" H 2950 5450 50 0001 C CNN F 3 "~" H 2550 5450 50 0001 C CNN
F 4 "C49678" H 2950 5450 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C49678" H 2550 5450 50 0001 C CNN "LCSC_PART_NUMBER"
1 2950 5450 1 2550 5450
0 -1 -1 0 0 -1 -1 0
$EndComp $EndComp
Text GLabel 2550 5300 0 50 Input ~ 0 Text GLabel 2150 5300 0 50 Input ~ 0
GND GND
Wire Wire Line Wire Wire Line
4700 5100 4700 4950 4700 5100 4700 4950
Wire Wire Line Wire Wire Line
3150 5300 3250 5300 2750 5300 2850 5300
Wire Wire Line Wire Wire Line
3100 5450 3250 5450 2700 5450 2850 5450
Wire Wire Line Wire Wire Line
3250 5450 3250 5300 2850 5450 2850 5300
Connection ~ 3250 5300 Connection ~ 2850 5300
Wire Wire Line Wire Wire Line
3250 5300 3450 5300 2850 5300 3050 5300
Wire Wire Line Wire Wire Line
2550 5300 2700 5300 2150 5300 2300 5300
Wire Wire Line Wire Wire Line
2800 5450 2700 5450 2400 5450 2300 5450
Wire Wire Line Wire Wire Line
2700 5450 2700 5300 2300 5450 2300 5300
Connection ~ 2700 5300 Connection ~ 2300 5300
Wire Wire Line Wire Wire Line
2700 5300 2750 5300 2300 5300 2350 5300
Text GLabel 4700 8000 3 50 Input ~ 0 Text GLabel 4700 8000 3 50 Input ~ 0
GND GND
Wire Wire Line Wire Wire Line
@ -2492,26 +2492,26 @@ $EndComp
Text GLabel 3800 5600 3 50 Input ~ 0 Text GLabel 3800 5600 3 50 Input ~ 0
GND GND
Wire Wire Line Wire Wire Line
8450 5100 8450 5200 11700 1600 11700 1700
Wire Wire Line Wire Wire Line
8450 5500 8450 5700 11700 2000 11700 2200
Text GLabel 8450 5700 2 50 Input ~ 0 Text GLabel 11700 2200 2 50 Input ~ 0
PWR_SENSORS PWR_SENSORS
$Comp $Comp
L Connector_Generic:Conn_01x04 Hall1 L Connector_Generic:Conn_01x04 Hall1
U 1 1 5F9D6D22 U 1 1 5F9D6D22
P 8650 5300 P 11900 1800
F 0 "Hall1" H 8730 5292 50 0000 L CNN F 0 "Hall1" H 11980 1792 50 0000 L CNN
F 1 "Conn_01x04" H 8450 5000 50 0000 L CNN F 1 "Conn_01x04" H 11700 1500 50 0000 L CNN
F 2 "ESP32:SR04M-2PinHeader_1x04_P2.54mm_Vertical" H 8650 5300 50 0001 C CNN F 2 "ESP32:SR04M-2PinHeader_1x04_P2.54mm_Vertical" H 11900 1800 50 0001 C CNN
F 3 "~" H 8650 5300 50 0001 C CNN F 3 "~" H 11900 1800 50 0001 C CNN
1 8650 5300 1 11900 1800
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Text GLabel 8450 5100 1 50 Input ~ 0 Text GLabel 11700 1600 1 50 Input ~ 0
GND GND
Wire Wire Line Wire Wire Line
8400 5300 8450 5300 11650 1800 11700 1800
$Comp $Comp
L Device:R R33 L Device:R R33
U 1 1 606EF146 U 1 1 606EF146
@ -2524,8 +2524,6 @@ F 4 "C212284" H 3800 5150 50 0001 C CNN "LCSC_PART_NUMBER"
1 3800 5150 1 3800 5150
-1 0 0 1 -1 0 0 1
$EndComp $EndComp
Wire Wire Line
3750 5300 3800 5300
Connection ~ 3800 5300 Connection ~ 3800 5300
Wire Wire Line Wire Wire Line
3800 5300 4100 5300 3800 5300 4100 5300
@ -2589,59 +2587,59 @@ Text GLabel 3800 4900 1 50 Input ~ 0
$Comp $Comp
L Switch:SW_Push SW2 L Switch:SW_Push SW2
U 1 1 60983DAC U 1 1 60983DAC
P 5650 4150 P 5650 3700
F 0 "SW2" H 5650 4435 50 0000 C CNN F 0 "SW2" H 5650 3985 50 0000 C CNN
F 1 "SW_Push" H 5650 4344 50 0000 C CNN F 1 "SW_Push" H 5650 3894 50 0000 C CNN
F 2 "Button_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2" H 5650 4350 50 0001 C CNN F 2 "Button_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2" H 5650 3900 50 0001 C CNN
F 3 "~" H 5650 4350 50 0001 C CNN F 3 "~" H 5650 3900 50 0001 C CNN
F 4 "C72443" H 5650 4150 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C72443" H 5650 3700 50 0001 C CNN "LCSC_PART_NUMBER"
1 5650 4150 1 5650 3700
0 1 1 0 0 1 1 0
$EndComp $EndComp
$Comp $Comp
L Device:R R1 L Device:R R1
U 1 1 60983DB3 U 1 1 60983DB3
P 5650 4800 P 5650 4350
F 0 "R1" V 5443 4800 50 0000 C CNN F 0 "R1" V 5443 4350 50 0000 C CNN
F 1 "1k" V 5534 4800 50 0000 C CNN F 1 "1k" V 5534 4350 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 5580 4800 50 0001 C CNN F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 5580 4350 50 0001 C CNN
F 3 "~" H 5650 4800 50 0001 C CNN F 3 "~" H 5650 4350 50 0001 C CNN
F 4 "C95781" H 5650 4800 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C95781" H 5650 4350 50 0001 C CNN "LCSC_PART_NUMBER"
1 5650 4800 1 5650 4350
-1 0 0 1 -1 0 0 1
$EndComp $EndComp
$Comp $Comp
L Device:C C1 L Device:C C1
U 1 1 60983DBA U 1 1 60983DBA
P 5500 4150 P 5500 3700
F 0 "C1" H 5385 4104 50 0000 R CNN F 0 "C1" H 5385 3654 50 0000 R CNN
F 1 "100n" H 5385 4195 50 0000 R CNN F 1 "100n" H 5385 3745 50 0000 R CNN
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 5538 4000 50 0001 C CNN F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 5538 3550 50 0001 C CNN
F 3 "~" H 5500 4150 50 0001 C CNN F 3 "~" H 5500 3700 50 0001 C CNN
F 4 "C49678" H 5500 4150 50 0001 C CNN "LCSC_PART_NUMBER" F 4 "C49678" H 5500 3700 50 0001 C CNN "LCSC_PART_NUMBER"
1 5500 4150 1 5500 3700
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Text GLabel 5650 3750 1 50 Input ~ 0 Text GLabel 5650 3300 1 50 Input ~ 0
GND GND
Wire Wire Line Wire Wire Line
5650 4350 5650 4450 5650 3900 5650 4000
Wire Wire Line Wire Wire Line
5500 4300 5500 4450 5500 3850 5500 4000
Wire Wire Line Wire Wire Line
5500 4450 5650 4450 5500 4000 5650 4000
Connection ~ 5650 4450 Connection ~ 5650 4000
Wire Wire Line Wire Wire Line
5650 4450 5650 4650 5650 4000 5650 4200
Wire Wire Line Wire Wire Line
5650 3750 5650 3900 5650 3300 5650 3450
Wire Wire Line Wire Wire Line
5500 4000 5500 3900 5500 3550 5500 3450
Wire Wire Line Wire Wire Line
5500 3900 5650 3900 5500 3450 5650 3450
Connection ~ 5650 3900 Connection ~ 5650 3450
Wire Wire Line Wire Wire Line
5650 3900 5650 3950 5650 3450 5650 3500
$Comp $Comp
L Device:C C2 L Device:C C2
U 1 1 60983DCC U 1 1 60983DCC
@ -2668,8 +2666,6 @@ F 4 "C212284" H 5800 5000 50 0001 C CNN "LCSC_PART_NUMBER"
1 5800 5000 1 5800 5000
0 -1 -1 0 0 -1 -1 0
$EndComp $EndComp
Wire Wire Line
5650 4950 5650 5000
Connection ~ 5650 5000 Connection ~ 5650 5000
Wire Wire Line Wire Wire Line
5650 5000 5650 5300 5650 5000 5650 5300
@ -3161,17 +3157,17 @@ F 4 "C503217" H 17000 6300 50 0001 C CNN "LCSC_PART_NUMBER"
$EndComp $EndComp
Text GLabel 5400 6200 2 50 Input ~ 0 Text GLabel 5400 6200 2 50 Input ~ 0
HALL_TX HALL_TX
Text GLabel 8400 5300 0 50 Input ~ 0 Text GLabel 11650 1800 0 50 Input ~ 0
HALL_TX HALL_TX
$Comp $Comp
L Connector:Conn_01x01_Male Debug1 L Connector:Conn_01x01_Male Debug1
U 1 1 6036B766 U 1 1 6036B766
P 8250 5400 P 11500 1900
F 0 "Debug1" H 8200 5200 50 0000 C CNN F 0 "Debug1" H 11450 1700 50 0000 C CNN
F 1 "Conn_01x01_Male" H 8150 5300 50 0000 C CNN F 1 "Conn_01x01_Male" H 11400 1800 50 0000 C CNN
F 2 "" H 8250 5400 50 0001 C CNN F 2 "" H 11500 1900 50 0001 C CNN
F 3 "~" H 8250 5400 50 0001 C CNN F 3 "~" H 11500 1900 50 0001 C CNN
1 8250 5400 1 11500 1900
1 0 0 -1 1 0 0 -1
$EndComp $EndComp
Wire Wire Line Wire Wire Line
@ -3195,8 +3191,160 @@ Wire Wire Line
5300 5400 5400 5400 5300 5400 5400 5400
Wire Wire Line Wire Wire Line
5300 5600 5400 5600 5300 5600 5400 5600
Text GLabel 7450 3300 2 50 Input ~ 0 Text GLabel 1350 3900 0 50 Input ~ 0
ESP_TX ESP_TX
Text GLabel 7450 3400 2 50 Input ~ 0 Text GLabel 1350 4000 0 50 Input ~ 0
ESP_RX ESP_RX
$Comp
L Transistor_BJT:BC337 Q?
U 1 1 602B8D19
P 10250 4300
F 0 "Q?" H 10441 4346 50 0000 L CNN
F 1 "BC337" H 10441 4255 50 0000 L CNN
F 2 "Package_TO_SOT_THT:TO-92_Inline" H 10450 4225 50 0001 L CIN
F 3 "https://diotec.com/tl_files/diotec/files/pdf/datasheets/bc337.pdf" H 10250 4300 50 0001 L CNN
1 10250 4300
-1 0 0 -1
$EndComp
$Comp
L Transistor_BJT:BC337 Q?
U 1 1 6031A86F
P 10250 5100
F 0 "Q?" H 10441 5054 50 0000 L CNN
F 1 "BC337" H 10441 5145 50 0000 L CNN
F 2 "Package_TO_SOT_THT:TO-92_Inline" H 10450 5025 50 0001 L CIN
F 3 "https://diotec.com/tl_files/diotec/files/pdf/datasheets/bc337.pdf" H 10250 5100 50 0001 L CNN
1 10250 5100
-1 0 0 1
$EndComp
$Comp
L Device:R R?
U 1 1 6031B230
P 10700 4300
F 0 "R?" V 10493 4300 50 0000 C CNN
F 1 "10k" V 10584 4300 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 10630 4300 50 0001 C CNN
F 3 "~" H 10700 4300 50 0001 C CNN
F 4 "C212284" H 10700 4300 50 0001 C CNN "LCSC_PART_NUMBER"
1 10700 4300
0 -1 -1 0
$EndComp
$Comp
L Device:R R?
U 1 1 6031B7FB
P 10700 5100
F 0 "R?" V 10493 5100 50 0000 C CNN
F 1 "10k" V 10584 5100 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 10630 5100 50 0001 C CNN
F 3 "~" H 10700 5100 50 0001 C CNN
F 4 "C212284" H 10700 5100 50 0001 C CNN "LCSC_PART_NUMBER"
1 10700 5100
0 -1 -1 0
$EndComp
Text GLabel 11050 4300 2 50 Input ~ 0
DTR
Text GLabel 11000 5100 2 50 Input ~ 0
RTS
Wire Wire Line
10450 4300 10550 4300
Wire Wire Line
10850 4300 10950 4300
Wire Wire Line
10850 5100 10900 5100
Wire Wire Line
10150 4500 10150 4700
Wire Wire Line
10150 4700 10900 4700
Wire Wire Line
10900 4700 10900 5100
Connection ~ 10900 5100
Wire Wire Line
10900 5100 11000 5100
Wire Wire Line
10450 5100 10550 5100
Wire Wire Line
10150 4900 10150 4800
Wire Wire Line
10950 4800 10950 4300
Wire Wire Line
10150 4800 10950 4800
Connection ~ 10950 4300
Wire Wire Line
10950 4300 11050 4300
Wire Wire Line
10150 4100 10150 3950
Wire Wire Line
10150 3950 10000 3950
Wire Wire Line
10150 5300 10150 5400
Wire Wire Line
10150 5400 10050 5400
Text GLabel 10050 5400 0 50 Input ~ 0
IO0
Text GLabel 10000 3950 0 50 Input ~ 0
EN
Text GLabel 6100 4700 2 50 Input ~ 0
IO0
Wire Wire Line
5650 4500 5650 4700
Wire Wire Line
5800 4700 5650 4700
Connection ~ 5650 4700
Wire Wire Line
5650 4700 5650 5000
Wire Wire Line
3350 5300 3500 5300
Text GLabel 3500 5000 1 50 Input ~ 0
EN
$Comp
L Jumper:SolderJumper_2_Bridged EN?
U 1 1 605896D0
P 3500 5150
F 0 "EN?" V 3454 5218 50 0000 L CNN
F 1 "NC" V 3545 5218 50 0000 L CNN
F 2 "Jumper:SolderJumper-2_P1.3mm_Bridged_Pad1.0x1.5mm" H 3500 5150 50 0001 C CNN
F 3 "~" H 3500 5150 50 0001 C CNN
1 3500 5150
0 -1 -1 0
$EndComp
$Comp
L Jumper:SolderJumper_2_Bridged IO0_?
U 1 1 60596D62
P 5950 4700
F 0 "IO0_?" V 5904 4768 50 0000 L CNN
F 1 "NC" V 5995 4768 50 0000 L CNN
F 2 "Jumper:SolderJumper-2_P1.3mm_Bridged_Pad1.0x1.5mm" H 5950 4700 50 0001 C CNN
F 3 "~" H 5950 4700 50 0001 C CNN
1 5950 4700
1 0 0 -1
$EndComp
Connection ~ 3500 5300
Wire Wire Line
3500 5300 3800 5300
Text GLabel 1350 3800 0 50 Input ~ 0
DTR
Text GLabel 1350 4200 0 50 Input ~ 0
RTS
$Comp
L Connector:Conn_01x06_Female J?
U 1 1 6068F329
P 1550 4000
F 0 "J?" H 1578 3976 50 0000 L CNN
F 1 "Conn_01x06_Female" H 1578 3885 50 0000 L CNN
F 2 "" H 1550 4000 50 0001 C CNN
F 3 "~" H 1550 4000 50 0001 C CNN
1 1550 4000
1 0 0 -1
$EndComp
Text GLabel 1350 4300 0 50 Input ~ 0
GND
NoConn ~ 1350 4100
Text Notes 1000 3600 0 105 ~ 0
ESP32 UART
Text Notes 9850 3850 0 105 ~ 0
UART Automatic Download
Text Notes 11300 1250 0 105 ~ 0
Hall Soft UART
Text Notes 10100 6250 0 50 ~ 0
Enable = 0 -> ESP32 is off\nEnable = 1 -> ESP32 is running\nGPIO0 = 0 -> Download mode\nGPIO0 = 1 -> "normal" boot\n\nDTR RTS | EN IO0\n1 1 | 1 1\n1 0 | 0 1\n0 1 | 1 0\n0 0 | 1 1
$EndSCHEMATC $EndSCHEMATC