summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Baumann <derflob@derflob.de>2020-06-23 20:10:49 +0200
committerFlorian Baumann <derflob@derflob.de>2020-06-23 20:14:09 +0200
commit882a528a10f6fb48f6454efd446c1280f51ad1f8 (patch)
tree40631e6664106d0bc3ba7d234629fff7366cc7cb
parent976314fc2f990273bb67859cf479102c7532fc9e (diff)
downloadULPSoilMonitor-882a528a10f6fb48f6454efd446c1280f51ad1f8.tar.gz
ULPSoilMonitor-882a528a10f6fb48f6454efd446c1280f51ad1f8.tar.bz2
change USB to Serial chip, support charging
* exchanges FTDI FT231X for SILabs CP2102N * adds MicroChip MCP73123 for LiFePO4 charging
-rw-r--r--ESPReset.sch2
-rw-r--r--ULPSoilMonitor-cache.lib189
-rw-r--r--ULPSoilMonitor.sch620
-rw-r--r--USBtoSerial.sch575
4 files changed, 869 insertions, 517 deletions
diff --git a/ESPReset.sch b/ESPReset.sch
index a9d382a..f361c83 100644
--- a/ESPReset.sch
+++ b/ESPReset.sch
@@ -3,7 +3,7 @@ EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
-Sheet 4 5
+Sheet 3 5
Title ""
Date ""
Rev ""
diff --git a/ULPSoilMonitor-cache.lib b/ULPSoilMonitor-cache.lib
index 1ab77ca..c0b2510 100644
--- a/ULPSoilMonitor-cache.lib
+++ b/ULPSoilMonitor-cache.lib
@@ -149,6 +149,29 @@ X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
+# Device_LED
+#
+DEF Device_LED D 0 40 N N 1 F N
+F0 "D" 0 100 50 H V C CNN
+F1 "Device_LED" 0 -100 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ LED*
+ LED_SMD:*
+ LED_THT:*
+$ENDFPLIST
+DRAW
+P 2 0 1 10 -50 -50 -50 50 N
+P 2 0 1 0 -50 0 50 0 N
+P 4 0 1 10 50 -50 50 50 -50 0 50 -50 N
+P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
+P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
+X K 1 -150 0 100 R 50 50 1 1 P
+X A 2 150 0 100 L 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
# Device_R
#
DEF Device_R R 0 0 N Y 1 F N
@@ -166,60 +189,47 @@ X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
-# Interface_USB_FT231XS
+# Interface_USB_CP2102N-A01-GQFN28
#
-DEF Interface_USB_FT231XS U 0 20 Y Y 1 F N
-F0 "U" -550 800 50 H V L CNN
-F1 "Interface_USB_FT231XS" 300 800 50 H V L CNN
-F2 "Package_SO:SSOP-20_3.9x8.7mm_P0.635mm" 1000 -800 50 H I C CNN
-F3 "" 0 0 50 H I C CNN
+DEF Interface_USB_CP2102N-A01-GQFN28 U 0 20 Y Y 1 F N
+F0 "U" -300 1250 50 H V R CNN
+F1 "Interface_USB_CP2102N-A01-GQFN28" 1050 1250 50 H V R CNN
+F2 "Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.35x3.35mm" 450 -1200 50 H I L CNN
+F3 "" 50 -750 50 H I C CNN
$FPLIST
- *SSOP*3.9x8.7mm*P0.635mm*
+ QFN*1EP*5x5mm*P0.5mm*
$ENDFPLIST
DRAW
-S -550 750 550 -750 0 1 10 f
-X ~DTR 1 700 200 150 L 50 50 1 1 O
-X CBUS2 10 700 -500 150 L 50 50 1 1 B
-X USBDP 11 -700 200 150 R 50 50 1 1 B
-X USBDM 12 -700 300 150 R 50 50 1 1 B
-X 3V3OUT 13 -700 600 150 R 50 50 1 1 w
-X ~RESET 14 -700 0 150 R 50 50 1 1 I
-X VCC 15 -100 900 150 D 50 50 1 1 W
-X GND 16 100 -900 150 U 50 50 1 1 W
-X CBUS1 17 700 -400 150 L 50 50 1 1 B
-X CBUS0 18 700 -300 150 L 50 50 1 1 B
-X CBUS3 19 700 -600 150 L 50 50 1 1 B
-X ~RTS 2 700 400 150 L 50 50 1 1 O
-X TXD 20 700 600 150 L 50 50 1 1 O
-X VCCIO 3 100 900 150 D 50 50 1 1 W
-X RXD 4 700 500 150 L 50 50 1 1 I
-X ~RI 5 700 -100 150 L 50 50 1 1 I
-X GND 6 -100 -900 150 U 50 50 1 1 W
-X ~DSR 7 700 100 150 L 50 50 1 1 I
-X ~DCD 8 700 0 150 L 50 50 1 1 I
-X ~CTS 9 700 300 150 L 50 50 1 1 I
-ENDDRAW
-ENDDEF
-#
-# Jumper_Jumper_3_Bridged12
-#
-DEF Jumper_Jumper_3_Bridged12 JP 0 0 Y N 1 F N
-F0 "JP" -100 -100 50 H V C CNN
-F1 "Jumper_Jumper_3_Bridged12" 0 110 50 H V C CNN
-F2 "" 0 0 50 H I C CNN
-F3 "" 0 0 50 H I C CNN
-$FPLIST
- SolderJumper*Bridged12*
-$ENDFPLIST
-DRAW
-A -65 -50 89 1282 518 0 1 0 N -120 20 -10 20
-C -130 0 20 0 0 0 N
-C 0 0 20 0 0 0 N
-C 130 0 20 0 0 0 N
-P 2 0 1 0 0 -50 0 -20 N
-X A 1 -250 0 100 R 50 50 1 1 P
-X C 2 0 -150 100 U 50 50 1 1 I
-X B 3 250 0 100 L 50 50 1 1 P
+S -400 1200 400 -1200 0 1 10 f
+X ~DCD 1 500 500 100 L 50 50 1 1 I
+X NC 10 -400 -400 100 R 50 50 1 1 N N
+X ~SUSPENDb 11 500 200 100 L 50 50 1 1 O
+X SUSPEND 12 500 100 100 L 50 50 1 1 O
+X CHREN 13 500 -100 100 L 50 50 1 1 O
+X CHR1 14 500 -300 100 L 50 50 1 1 O
+X CHR0 15 500 -200 100 L 50 50 1 1 O
+X ~WAKEUP~/GPIO.3 16 500 -800 100 L 50 50 1 1 B
+X RS485/GPIO.2 17 500 -700 100 L 50 50 1 1 B
+X ~RXT~/GPIO.1 18 500 -600 100 L 50 50 1 1 B
+X ~TXT~/GPIO.0 19 500 -500 100 L 50 50 1 1 B
+X ~RI~/CLK 2 500 400 100 L 50 50 1 1 B
+X GPIO.6 20 500 -1100 100 L 50 50 1 1 B
+X GPIO.5 21 500 -1000 100 L 50 50 1 1 B
+X GPIO.4 22 500 -900 100 L 50 50 1 1 B
+X ~CTS 23 500 1100 100 L 50 50 1 1 I
+X ~RTS 24 500 1000 100 L 50 50 1 1 O
+X RXD 25 500 900 100 L 50 50 1 1 I
+X TXD 26 500 800 100 L 50 50 1 1 O
+X ~DSR 27 500 700 100 L 50 50 1 1 I
+X ~DTR 28 500 600 100 L 50 50 1 1 O
+X GND 29 0 -1300 100 U 50 50 1 1 P N
+X GND 3 0 -1300 100 U 50 50 1 1 W
+X D+ 4 -500 600 100 R 50 50 1 1 B
+X D- 5 -500 500 100 R 50 50 1 1 B
+X VDD 6 0 1300 100 D 50 50 1 1 P
+X REGIN 7 -100 1300 100 D 50 50 1 1 W
+X VBUS 8 -500 700 100 R 50 50 1 1 I
+X ~RSTb 9 -500 900 100 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
@@ -278,25 +288,6 @@ X IO33 9 600 -900 100 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
-# Regulator_Linear_LM2937xMP
-#
-DEF Regulator_Linear_LM2937xMP U 0 10 Y Y 1 F N
-F0 "U" -150 125 50 H V C CNN
-F1 "Regulator_Linear_LM2937xMP" 0 125 50 H V L CNN
-F2 "Package_TO_SOT_SMD:SOT-223-3_TabPin2" 0 225 50 H I C CIN
-F3 "" 0 -50 50 H I C CNN
-ALIAS SPX2920M3-5.0_SOT223 LT1129-3.3_SOT223 LT1129-5.0_SOT223 LM2937xMP AP7361C-10E AP7361C-12E AP7361C-15E AP7361C-18E AP7361C-25E AP7361C-28E AP7361C-33E
-$FPLIST
- SOT?223*
-$ENDFPLIST
-DRAW
-S -200 -200 200 75 0 1 10 f
-X VI 1 -300 0 100 R 50 50 1 1 W
-X GND 2 0 -300 100 U 50 50 1 1 W
-X VO 3 300 0 100 L 50 50 1 1 w
-ENDDRAW
-ENDDEF
-#
# Sensor_BME280
#
DEF Sensor_BME280 U 0 20 Y Y 1 F N
@@ -360,6 +351,29 @@ X C 3 100 200 100 D 50 50 1 1 P
ENDDRAW
ENDDEF
#
+# Transistor_BJT_BC817
+#
+DEF Transistor_BJT_BC817 Q 0 0 Y N 1 F N
+F0 "Q" 200 75 50 H V L CNN
+F1 "Transistor_BJT_BC817" 200 0 50 H V L CNN
+F2 "Package_TO_SOT_SMD:SOT-23" 200 -75 50 H I L CIN
+F3 "" 0 0 50 H I L CNN
+ALIAS BC818 BC846 BC847 BC848 BC849 BC850 MMBT3904 MMBT5550L MMBT5551L
+$FPLIST
+ SOT?23*
+$ENDFPLIST
+DRAW
+C 50 0 111 0 1 10 N
+P 2 0 1 0 25 25 100 100 N
+P 3 0 1 0 25 -25 100 -100 100 -100 N
+P 3 0 1 20 25 75 25 -75 25 -75 N
+P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F
+X B 1 -200 0 225 R 50 50 1 1 I
+X E 2 100 -200 100 U 50 50 1 1 P
+X C 3 100 200 100 D 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
# Transistor_BJT_MMDT3904
#
DEF Transistor_BJT_MMDT3904 Q 0 0 Y N 2 L N
@@ -387,19 +401,29 @@ X B2 5 -200 0 100 R 50 50 2 1 I
ENDDRAW
ENDDEF
#
-# power_+3V3
+# flobs-KiCad-lib_MCP73123
#
-DEF power_+3V3 #PWR 0 0 Y Y 1 F P
-F0 "#PWR" 0 -150 50 H I C CNN
-F1 "power_+3V3" 0 140 50 H V C CNN
-F2 "" 0 0 50 H I C CNN
-F3 "" 0 0 50 H I C CNN
-ALIAS +3.3V
+DEF flobs-KiCad-lib_MCP73123 U 0 40 Y Y 1 F N
+F0 "U" 0 550 50 H V C CNN
+F1 "flobs-KiCad-lib_MCP73123" 0 450 50 H V C CNN
+F2 "Package_DFN_QFN:DFN-10-1EP_3x3mm_P0.5mm_EP1.65x2.38mm_ThermalVias" -350 800 50 H I C CNN
+F3 "" -350 800 50 H I C CNN
DRAW
-P 2 0 1 0 -30 50 0 100 N
-P 2 0 1 0 0 0 0 100 N
-P 2 0 1 0 0 100 30 50 N
-X +3V3 1 0 0 0 U 50 50 1 1 W N
+S -300 350 -300 -550 0 1 0 N
+S -300 350 300 350 0 1 0 N
+S 300 -550 -300 -550 0 1 0 N
+S 300 -550 300 350 0 1 0 N
+X PROG 10 500 250 200 L 50 50 0 0 I
+X EP 11 0 -750 200 U 50 50 0 0 U X
+X VDD 2 -500 100 200 R 50 50 0 0 W
+X VBAT 4 -500 -200 200 R 50 50 0 0 w
+X NC 5 -500 -350 200 R 50 50 0 0 N
+X NC 6 500 -350 200 L 50 50 0 0 N
+X STAT 7 500 -200 200 L 50 50 0 0 T
+X VSS 8 500 -50 200 L 50 50 0 0 w
+X VSS 9 500 100 200 L 50 50 0 0 w
+X VDD 1 -500 250 200 R 50 50 1 1 W
+X VBAT 3 -500 -50 200 R 50 50 1 1 w
ENDDRAW
ENDDEF
#
@@ -468,8 +492,9 @@ F1 "power_VCC" 0 150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
-C 0 75 25 0 1 0 N
-P 2 0 1 0 0 0 0 50 N
+P 2 0 1 0 -30 50 0 100 N
+P 2 0 1 0 0 0 0 100 N
+P 2 0 1 0 0 100 30 50 N
X VCC 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
diff --git a/ULPSoilMonitor.sch b/ULPSoilMonitor.sch
index 7e982df..cca9167 100644
--- a/ULPSoilMonitor.sch
+++ b/ULPSoilMonitor.sch
@@ -58,23 +58,23 @@ Wire Wire Line
5700 1350 5850 1350
Wire Wire Line
5850 1550 5700 1550
-Text GLabel 4000 5600 2 50 Input ~ 0
+Text GLabel 5800 5450 2 50 Input ~ 0
ESPTX
-Text GLabel 4000 5500 2 50 Input ~ 0
+Text GLabel 5800 5350 2 50 Input ~ 0
ESPRX
-Text GLabel 4800 6250 0 50 Input ~ 0
+Text GLabel 3000 6250 0 50 Input ~ 0
EN
Text GLabel 4300 1250 0 50 Input ~ 0
EN
Wire Wire Line
4300 1250 4500 1250
-Text GLabel 5550 6600 2 50 Input ~ 0
+Text GLabel 3750 6600 2 50 Input ~ 0
RTS
-Text GLabel 5550 6500 2 50 Input ~ 0
+Text GLabel 3750 6500 2 50 Input ~ 0
DTR
-Text GLabel 4000 5750 2 50 Input ~ 0
+Text GLabel 5800 5600 2 50 Input ~ 0
RTS
-Text GLabel 4000 5850 2 50 Input ~ 0
+Text GLabel 5800 5700 2 50 Input ~ 0
DTR
Wire Wire Line
5700 3050 5850 3050
@@ -145,39 +145,6 @@ IO0
Wire Wire Line
5700 1250 5850 1250
Wire Wire Line
- 2900 2750 2900 2850
-Wire Wire Line
- 2550 2400 2550 2600
-Wire Wire Line
- 1600 2900 1600 2800
-Wire Wire Line
- 1600 2800 1500 2800
-Wire Wire Line
- 900 2800 800 2800
-Wire Wire Line
- 800 2800 800 2900
-Wire Wire Line
- 1600 2800 1600 2700
-Connection ~ 1600 2800
-Wire Wire Line
- 800 2700 800 2800
-Connection ~ 800 2800
-Wire Wire Line
- 800 3200 800 3250
-Wire Wire Line
- 800 3250 1200 3250
-Wire Wire Line
- 1200 3250 1200 3100
-Wire Wire Line
- 1200 3250 1600 3250
-Wire Wire Line
- 1600 3250 1600 3200
-Connection ~ 1200 3250
-Wire Wire Line
- 1200 3350 1200 3250
-Wire Wire Line
- 2200 2850 2200 2750
-Wire Wire Line
1950 1050 1500 1050
Wire Wire Line
1500 1050 1500 1150
@@ -243,70 +210,46 @@ Wire Wire Line
1750 6600 1850 6600
Wire Wire Line
1850 6600 1850 6850
-$Sheet
-S 3100 5250 800 1450
-U 5EFCE977
-F0 "USBtoSerial" 50
-F1 "USBtoSerial.sch" 50
-F2 "GND" I R 3900 6600 50
-F3 "VBUS" O R 3900 5350 50
-F4 "TXD" O R 3900 5500 50
-F5 "RXD" I R 3900 5600 50
-F6 "CTS" I R 3900 6050 50
-F7 "DSR" I R 3900 6150 50
-F8 "RI" I R 3900 6250 50
-F9 "DCD" I R 3900 6350 50
-F10 "CBUS0" B L 3100 6050 50
-F11 "CBUS1" B L 3100 6150 50
-F12 "CBUS2" B L 3100 6250 50
-F13 "CBUS3" B L 3100 6350 50
-F14 "RTS" O R 3900 5750 50
-F15 "DTR" O R 3900 5850 50
-$EndSheet
Wire Wire Line
- 3900 5350 4000 5350
+ 5700 5100 5800 5100
Wire Wire Line
- 4000 5350 4000 5150
+ 5800 5100 5800 4900
Wire Wire Line
- 4000 6850 4000 6600
+ 5800 6700 5800 6450
Wire Wire Line
- 3900 6600 4000 6600
+ 5700 6450 5800 6450
Wire Wire Line
- 3900 5500 4000 5500
+ 5700 5350 5800 5350
Wire Wire Line
- 4000 5600 3900 5600
+ 5800 5450 5700 5450
Wire Wire Line
- 3900 5750 4000 5750
+ 5700 5600 5800 5600
Wire Wire Line
- 4000 5850 3900 5850
+ 5800 5700 5700 5700
$Sheet
-S 4900 6150 550 550
+S 3100 6150 550 550
U 5F0560DE
F0 "ESPReset" 50
F1 "ESPReset.sch" 50
-F2 "RESET" U L 4900 6250 50
-F3 "PROGRAM" U L 4900 6350 50
-F4 "DTR" I R 5450 6500 50
-F5 "RTS" I R 5450 6600 50
+F2 "RESET" U L 3100 6250 50
+F3 "PROGRAM" U L 3100 6350 50
+F4 "DTR" I R 3650 6500 50
+F5 "RTS" I R 3650 6600 50
$EndSheet
-Text GLabel 4800 6350 0 50 Input ~ 0
+Text GLabel 3000 6350 0 50 Input ~ 0
IO0
Wire Wire Line
- 4800 6250 4900 6250
+ 3000 6250 3100 6250
Wire Wire Line
- 4900 6350 4800 6350
+ 3100 6350 3000 6350
Wire Wire Line
- 5450 6500 5550 6500
+ 3650 6500 3750 6500
Wire Wire Line
- 5450 6600 5550 6600
-NoConn ~ 3900 6050
-NoConn ~ 3900 6150
-NoConn ~ 3900 6250
-NoConn ~ 3900 6350
-NoConn ~ 3100 6350
-NoConn ~ 3100 6250
-NoConn ~ 3100 6150
-NoConn ~ 3100 6050
+ 3650 6600 3750 6600
+NoConn ~ 5700 5850
+NoConn ~ 5700 5950
+NoConn ~ 5700 6050
+NoConn ~ 5700 6150
Text GLabel 5850 1650 2 50 Input ~ 0
SDA
Text GLabel 5850 1750 2 50 Input ~ 0
@@ -316,13 +259,13 @@ Wire Wire Line
Wire Wire Line
5850 1750 5700 1750
Wire Wire Line
- 5450 5550 5550 5550
+ 3650 5550 3750 5550
Wire Wire Line
- 5550 5550 5550 5650
+ 3750 5550 3750 5650
Wire Wire Line
- 5450 5150 5550 5150
+ 3650 5150 3750 5150
Wire Wire Line
- 5550 5150 5550 5050
+ 3750 5150 3750 5050
Connection ~ 3350 2750
Wire Wire Line
3350 2650 3350 2750
@@ -340,14 +283,14 @@ Text GLabel 3850 2750 2 50 Input ~ 0
SCL
Text GLabel 3850 2950 2 50 Input ~ 0
SDA
-Text GLabel 5550 5400 2 50 Input ~ 0
+Text GLabel 3750 5400 2 50 Input ~ 0
SCL
-Text GLabel 5550 5300 2 50 Input ~ 0
+Text GLabel 3750 5300 2 50 Input ~ 0
SDA
Wire Wire Line
- 5450 5300 5550 5300
+ 3650 5300 3750 5300
Wire Wire Line
- 5550 5400 5450 5400
+ 3750 5400 3650 5400
$Comp
L Device:R R2
U 1 1 5EEDA479
@@ -384,45 +327,45 @@ $EndComp
$Comp
L power:VCC #PWR019
U 1 1 5F10AB46
-P 5550 5050
-F 0 "#PWR019" H 5550 4900 50 0001 C CNN
-F 1 "VCC" H 5567 5223 50 0000 C CNN
-F 2 "" H 5550 5050 50 0001 C CNN
-F 3 "" H 5550 5050 50 0001 C CNN
- 1 5550 5050
+P 3750 5050
+F 0 "#PWR019" H 3750 4900 50 0001 C CNN
+F 1 "VCC" H 3767 5223 50 0000 C CNN
+F 2 "" H 3750 5050 50 0001 C CNN
+F 3 "" H 3750 5050 50 0001 C CNN
+ 1 3750 5050
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR020
U 1 1 5F10A5F7
-P 5550 5650
-F 0 "#PWR020" H 5550 5400 50 0001 C CNN
-F 1 "GND" H 5555 5477 50 0000 C CNN
-F 2 "" H 5550 5650 50 0001 C CNN
-F 3 "" H 5550 5650 50 0001 C CNN
- 1 5550 5650
+P 3750 5650
+F 0 "#PWR020" H 3750 5400 50 0001 C CNN
+F 1 "GND" H 3755 5477 50 0000 C CNN
+F 2 "" H 3750 5650 50 0001 C CNN
+F 3 "" H 3750 5650 50 0001 C CNN
+ 1 3750 5650
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR022
U 1 1 5F0039A2
-P 4000 6850
-F 0 "#PWR022" H 4000 6600 50 0001 C CNN
-F 1 "GND" H 4005 6677 50 0000 C CNN
-F 2 "" H 4000 6850 50 0001 C CNN
-F 3 "" H 4000 6850 50 0001 C CNN
- 1 4000 6850
+P 5800 6700
+F 0 "#PWR022" H 5800 6450 50 0001 C CNN
+F 1 "GND" H 5805 6527 50 0000 C CNN
+F 2 "" H 5800 6700 50 0001 C CNN
+F 3 "" H 5800 6700 50 0001 C CNN
+ 1 5800 6700
1 0 0 -1
$EndComp
$Comp
L power:VBUS #PWR018
U 1 1 5EFFC248
-P 4000 5150
-F 0 "#PWR018" H 4000 5000 50 0001 C CNN
-F 1 "VBUS" H 4015 5323 50 0000 C CNN
-F 2 "" H 4000 5150 50 0001 C CNN
-F 3 "" H 4000 5150 50 0001 C CNN
- 1 4000 5150
+P 5800 4900
+F 0 "#PWR018" H 5800 4750 50 0001 C CNN
+F 1 "VBUS" H 5815 5073 50 0000 C CNN
+F 2 "" H 5800 4900 50 0001 C CNN
+F 3 "" H 5800 4900 50 0001 C CNN
+ 1 5800 4900
1 0 0 -1
$EndComp
$Comp
@@ -492,105 +435,6 @@ F 3 "" H 2150 900 50 0001 C CNN
1 0 0 -1
$EndComp
$Comp
-L power:+3V3 #PWR012
-U 1 1 5ED33617
-P 2200 2850
-F 0 "#PWR012" H 2200 2700 50 0001 C CNN
-F 1 "+3V3" H 2215 3023 50 0000 C CNN
-F 2 "" H 2200 2850 50 0001 C CNN
-F 3 "" H 2200 2850 50 0001 C CNN
- 1 2200 2850
- -1 0 0 1
-$EndComp
-$Comp
-L power:+3V3 #PWR011
-U 1 1 5ED33564
-P 1600 2700
-F 0 "#PWR011" H 1600 2550 50 0001 C CNN
-F 1 "+3V3" H 1615 2873 50 0000 C CNN
-F 2 "" H 1600 2700 50 0001 C CNN
-F 3 "" H 1600 2700 50 0001 C CNN
- 1 1600 2700
- 1 0 0 -1
-$EndComp
-$Comp
-L power:GND #PWR014
-U 1 1 5ED2C25C
-P 1200 3350
-F 0 "#PWR014" H 1200 3100 50 0001 C CNN
-F 1 "GND" H 1205 3177 50 0000 C CNN
-F 2 "" H 1200 3350 50 0001 C CNN
-F 3 "" H 1200 3350 50 0001 C CNN
- 1 1200 3350
- 1 0 0 -1
-$EndComp
-$Comp
-L power:VBUS #PWR010
-U 1 1 5ED1758E
-P 800 2700
-F 0 "#PWR010" H 800 2550 50 0001 C CNN
-F 1 "VBUS" H 815 2873 50 0000 C CNN
-F 2 "" H 800 2700 50 0001 C CNN
-F 3 "" H 800 2700 50 0001 C CNN
- 1 800 2700
- 1 0 0 -1
-$EndComp
-$Comp
-L Device:C C6
-U 1 1 5ED045BF
-P 1600 3050
-F 0 "C6" H 1715 3096 50 0000 L CNN
-F 1 "100nF" H 1715 3005 50 0000 L CNN
-F 2 "Capacitor_SMD:C_0805_2012Metric" H 1638 2900 50 0001 C CNN
-F 3 "~" H 1600 3050 50 0001 C CNN
- 1 1600 3050
- 1 0 0 -1
-$EndComp
-$Comp
-L Device:C C5
-U 1 1 5ED040BA
-P 800 3050
-F 0 "C5" H 915 3096 50 0000 L CNN
-F 1 "330nF" H 915 3005 50 0000 L CNN
-F 2 "Capacitor_SMD:C_0805_2012Metric" H 838 2900 50 0001 C CNN
-F 3 "~" H 800 3050 50 0001 C CNN
- 1 800 3050
- 1 0 0 -1
-$EndComp
-$Comp
-L Regulator_Linear:LM2937xMP U2
-U 1 1 5ED02E73
-P 1200 2800
-F 0 "U2" H 1200 3042 50 0000 C CNN
-F 1 "UA7BM33" H 1200 2951 50 0000 C CNN
-F 2 "Package_TO_SOT_SMD:SOT-223-3_TabPin2" H 1200 3025 50 0001 C CIN
-F 3 "http://www.ti.com/lit/ds/symlink/lm2937.pdf" H 1200 2750 50 0001 C CNN
- 1 1200 2800
- 1 0 0 -1
-$EndComp
-$Comp
-L power:VCC #PWR08
-U 1 1 5ECFAE16
-P 2550 2400
-F 0 "#PWR08" H 2550 2250 50 0001 C CNN
-F 1 "VCC" H 2567 2573 50 0000 C CNN
-F 2 "" H 2550 2400 50 0001 C CNN
-F 3 "" H 2550 2400 50 0001 C CNN
- 1 2550 2400
- 1 0 0 -1
-$EndComp
-$Comp
-L power:+BATT #PWR013
-U 1 1 5ECF3B65
-P 2900 2850
-F 0 "#PWR013" H 2900 2700 50 0001 C CNN
-F 1 "+BATT" H 2915 3023 50 0000 C CNN
-F 2 "" H 2900 2850 50 0001 C CNN
-F 3 "" H 2900 2850 50 0001 C CNN
- 1 2900 2850
- -1 0 0 1
-$EndComp
-$Comp
L power:GND #PWR07
U 1 1 5EBF65B6
P 3000 1800
@@ -723,31 +567,16 @@ F 3 "https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_
1 0 0 -1
$EndComp
$Sheet
-S 4900 5050 550 600
+S 3100 5050 550 600
U 5F0FC7B0
F0 "BME280" 50
F1 "BME280.sch" 50
-F2 "GND" I R 5450 5550 50
-F3 "VCC" O R 5450 5150 50
-F4 "SDA" B R 5450 5300 50
-F5 "SCL" I R 5450 5400 50
+F2 "GND" I R 3650 5550 50
+F3 "VCC" O R 3650 5150 50
+F4 "SDA" B R 3650 5300 50
+F5 "SCL" I R 3650 5400 50
$EndSheet
$Comp
-L Jumper:Jumper_3_Bridged12 JP1
-U 1 1 5EC69E7C
-P 2550 2750
-F 0 "JP1" H 2550 2861 50 0000 C CNN
-F 1 "Jumper_3_Bridged12" H 2550 2952 50 0000 C CNN
-F 2 "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" H 2550 2750 50 0001 C CNN
-F 3 "~" H 2550 2750 50 0001 C CNN
- 1 2550 2750
- -1 0 0 1
-$EndComp
-Wire Wire Line
- 2200 2750 2300 2750
-Wire Wire Line
- 2800 2750 2900 2750
-$Comp
L Switch:SW_Push SW1
U 1 1 5ECDD581
P 6650 1300
@@ -775,4 +604,321 @@ F 3 "" H 6650 1600 50 0001 C CNN
$EndComp
Wire Wire Line
6650 1000 6650 1100
+$Sheet
+S 4600 5000 1100 1550
+U 5EFCE977
+F0 "USBtoSerial" 50
+F1 "USBtoSerial.sch" 50
+F2 "GND" I R 5700 6450 50
+F3 "VBUS" O R 5700 5100 50
+F4 "TXD" O R 5700 5350 50
+F5 "RXD" I R 5700 5450 50
+F6 "~RTS" O R 5700 5600 50
+F7 "~DTR" O R 5700 5700 50
+F8 "~CTS" I R 5700 5850 50
+F9 "~DSR" I R 5700 5950 50
+F10 "~RI" I R 5700 6050 50
+F11 "~DCD" I R 5700 6150 50
+F12 "CHREN" B L 4600 5100 50
+F13 "CHR0" B L 4600 5200 50
+F14 "CHR1" B L 4600 5300 50
+F15 "~TXT" B L 4600 5450 50
+F16 "~RXT" B L 4600 5550 50
+F17 "VDD" B R 5700 5200 50
+F18 "RS485_GPIO2" B L 4600 5700 50
+F19 "~WAKEUP_GPIO3" B L 4600 5800 50
+F20 "GPIO4" B L 4600 5900 50
+F21 "~RSTb" B L 4600 6250 50
+F22 "~SUSPENDb" B L 4600 6350 50
+F23 "SUSPEND" B L 4600 6450 50
+F24 "GPIO5" B L 4600 6000 50
+F25 "GPIO6" B L 4600 6100 50
+$EndSheet
+NoConn ~ 4600 6450
+NoConn ~ 4600 6350
+NoConn ~ 4600 6250
+NoConn ~ 4600 6100
+NoConn ~ 4600 6000
+NoConn ~ 4600 5900
+NoConn ~ 4600 5800
+NoConn ~ 4600 5700
+NoConn ~ 4600 5550
+NoConn ~ 4600 5450
+NoConn ~ 5700 5200
+Text GLabel 4500 5100 0 50 Input ~ 0
+CHREN
+Text GLabel 4500 5200 0 50 Input ~ 0
+CHR0
+Text GLabel 4500 5300 0 50 Input ~ 0
+CHR1
+Wire Wire Line
+ 4500 5100 4600 5100
+Wire Wire Line
+ 4600 5200 4500 5200
+Wire Wire Line
+ 4500 5300 4600 5300
+$Comp
+L flobs-KiCad-lib:MCP73123 U?
+U 1 1 5EFBF713
+P 7400 5400
+F 0 "U?" H 7400 5915 50 0000 C CNN
+F 1 "MCP73123" H 7400 5824 50 0000 C CNN
+F 2 "Package_DFN_QFN:DFN-10-1EP_3x3mm_P0.5mm_EP1.65x2.38mm_ThermalVias" H 7050 6200 50 0001 C CNN
+F 3 "" H 7050 6200 50 0001 C CNN
+ 1 7400 5400
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5EFC114A
+P 7400 6250
+F 0 "#PWR?" H 7400 6000 50 0001 C CNN
+F 1 "GND" H 7405 6077 50 0000 C CNN
+F 2 "" H 7400 6250 50 0001 C CNN
+F 3 "" H 7400 6250 50 0001 C CNN
+ 1 7400 6250
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:GND #PWR?
+U 1 1 5EFC14F0
+P 8050 5800
+F 0 "#PWR?" H 8050 5550 50 0001 C CNN
+F 1 "GND" H 8055 5627 50 0000 C CNN
+F 2 "" H 8050 5800 50 0001 C CNN
+F 3 "" H 8050 5800 50 0001 C CNN
+ 1 8050 5800
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 8050 5450 8050 5800
+Wire Wire Line
+ 8050 5300 8050 5450
+Connection ~ 8050 5450
+$Comp
+L power:+BATT #PWR?
+U 1 1 5EFC7B48
+P 6550 5000
+F 0 "#PWR?" H 6550 4850 50 0001 C CNN
+F 1 "+BATT" H 6565 5173 50 0000 C CNN
+F 2 "" H 6550 5000 50 0001 C CNN
+F 3 "" H 6550 5000 50 0001 C CNN
+ 1 6550 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:VBUS #PWR?
+U 1 1 5EFC869F
+P 6750 4900
+F 0 "#PWR?" H 6750 4750 50 0001 C CNN
+F 1 "VBUS" H 6765 5073 50 0000 C CNN
+F 2 "" H 6750 4900 50 0001 C CNN
+F 3 "" H 6750 4900 50 0001 C CNN
+ 1 6750 4900
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6750 4900 6750 5150
+Wire Wire Line
+ 6750 5300 6900 5300
+Wire Wire Line
+ 6900 5150 6750 5150
+Connection ~ 6750 5150
+Wire Wire Line
+ 6750 5150 6750 5300
+Wire Wire Line
+ 6550 5000 6550 5450
+Wire Wire Line
+ 6550 5450 6900 5450
+Wire Wire Line
+ 6900 5600 6550 5600
+Wire Wire Line
+ 6550 5600 6550 5450
+Connection ~ 6550 5450
+Wire Wire Line
+ 7400 6150 7400 6250
+Wire Wire Line
+ 7900 5300 8050 5300
+Wire Wire Line
+ 7900 5450 8050 5450
+$Comp
+L Device:LED D?
+U 1 1 5EFE3865
+P 8300 5350
+F 0 "D?" V 8339 5232 50 0000 R CNN
+F 1 "CHARGING" V 8248 5232 50 0000 R CNN
+F 2 "" H 8300 5350 50 0001 C CNN
+F 3 "~" H 8300 5350 50 0001 C CNN
+ 1 8300 5350
+ 0 -1 -1 0
+$EndComp
+$Comp
+L Device:R R?
+U 1 1 5EFE4E96
+P 8300 4900
+F 0 "R?" H 8370 4946 50 0000 L CNN
+F 1 "1k" H 8370 4855 50 0000 L CNN
+F 2 "" V 8230 4900 50 0001 C CNN
+F 3 "~" H 8300 4900 50 0001 C CNN
+ 1 8300 4900
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 7900 5600 8300 5600
+Wire Wire Line
+ 8300 5600 8300 5500
+Wire Wire Line
+ 8300 5200 8300 5050
+$Comp
+L power:VBUS #PWR?
+U 1 1 5EFEC5B1
+P 8300 4650
+F 0 "#PWR?" H 8300 4500 50 0001 C CNN
+F 1 "VBUS" H 8315 4823 50 0000 C CNN
+F 2 "" H 8300 4650 50 0001 C CNN
+F 3 "" H 8300 4650 50 0001 C CNN
+ 1 8300 4650
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 8300 4750 8300 4650
+$Comp
+L Device:C C?
+U 1 1 5EFF0D8F
+P 6550 5900
+F 0 "C?" H 6665 5946 50 0000 L CNN
+F 1 "4.7μF" H 6665 5855 50 0000 L CNN
+F 2 "" H 6588 5750 50 0001 C CNN
+F 3 "~" H 6550 5900 50 0001 C CNN
+ 1 6550 5900
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 6550 5600 6550 5750
+Connection ~ 6550 5600
+Wire Wire Line
+ 6550 6050 6550 6250
+$Comp
+L power:GND #PWR?
+U 1 1 5EFF8A21
+P 6550 6250
+F 0 "#PWR?" H 6550 6000 50 0001 C CNN
+F 1 "GND" H 6555 6077 50 0000 C CNN
+F 2 "" H 6550 6250 50 0001 C CNN
+F 3 "" H 6550 6250 50 0001 C CNN
+ 1 6550 6250
+ 1 0 0 -1
+$EndComp
+Text GLabel 8000 5150 2 50 Input ~ 0
+PROG
+Wire Wire Line
+ 7900 5150 8000 5150
+$Comp
+L Device:R R?
+U 1 1 5F015CC3
+P 9900 5350
+F 0 "R?" H 9970 5396 50 0000 L CNN
+F 1 "2k37" H 9970 5305 50 0000 L CNN
+F 2 "" V 9830 5350 50 0001 C CNN
+F 3 "~" H 9900 5350 50 0001 C CNN
+ 1 9900 5350
+ 1 0 0 -1
+$EndComp
+$Comp
+L Transistor_BJT:MMDT3904 Q?
+U 1 1 5F018C0F
+P 9500 5600
+F 0 "Q?" H 9691 5646 50 0000 L CNN
+F 1 "MMDT3904" H 9691 5555 50 0000 L CNN
+F 2 "Package_TO_SOT_SMD:SOT-363_SC-70-6" H 9700 5700 50 0001 C CNN
+F 3 "http://www.diodes.com/_files/datasheets/ds30088.pdf" H 9500 5600 50 0001 C CNN
+ 1 9500 5600
+ -1 0 0 -1
+$EndComp
+$Comp
+L Transistor_BJT:MMDT3904 Q?
+U 2 1 5F019AA5
+P 10000 5900
+F 0 "Q?" H 10191 5946 50 0000 L CNN
+F 1 "MMDT3904" H 10191 5855 50 0000 L CNN
+F 2 "Package_TO_SOT_SMD:SOT-363_SC-70-6" H 10200 6000 50 0001 C CNN
+F 3 "http://www.diodes.com/_files/datasheets/ds30088.pdf" H 10000 5900 50 0001 C CNN
+ 2 10000 5900
+ -1 0 0 -1
+$EndComp
+Text GLabel 10300 5600 2 50 Input ~ 0
+CHR0
+$Comp
+L Device:R R?
+U 1 1 5F02346F
+P 9400 5150
+F 0 "R?" H 9470 5196 50 0000 L CNN
+F 1 "3k9" H 9470 5105 50 0000 L CNN
+F 2 "" V 9330 5150 50 0001 C CNN
+F 3 "~" H 9400 5150 50 0001 C CNN
+ 1 9400 5150
+ 1 0 0 -1
+$EndComp
+Text GLabel 10300 5900 2 50 Input ~ 0
+CHR1
+$Comp
+L power:GND #PWR?
+U 1 1 5F02E788
+P 9650 6300
+F 0 "#PWR?" H 9650 6050 50 0001 C CNN
+F 1 "GND" H 9655 6127 50 0000 C CNN
+F 2 "" H 9650 6300 50 0001 C CNN
+F 3 "" H 9650 6300 50 0001 C CNN
+ 1 9650 6300
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 9400 5800 9400 6200
+Wire Wire Line
+ 9400 6200 9650 6200
+Wire Wire Line
+ 9650 6200 9650 6300
+Wire Wire Line
+ 9900 6100 9900 6200
+Wire Wire Line
+ 9900 6200 9650 6200
+Connection ~ 9650 6200
+Wire Wire Line
+ 9400 5400 9400 5300
+Wire Wire Line
+ 9900 5200 9900 4900
+Wire Wire Line
+ 9900 4900 9650 4900
+Wire Wire Line
+ 9400 4900 9400 5000
+Wire Wire Line
+ 9650 4900 9650 4800
+Connection ~ 9650 4900
+Wire Wire Line
+ 9650 4900 9400 4900
+Text GLabel 9650 4300 1 50 Input ~ 0
+PROG
+Wire Wire Line
+ 9900 5700 9900 5500
+Wire Wire Line
+ 10200 5900 10300 5900
+Wire Wire Line
+ 9700 5600 10300 5600
+$Comp
+L Transistor_BJT:BC817 Q?
+U 1 1 5F0D63E8
+P 9750 4600
+F 0 "Q?" H 9941 4646 50 0000 L CNN
+F 1 "BC817" H 9941 4555 50 0000 L CNN
+F 2 "Package_TO_SOT_SMD:SOT-23" H 9950 4525 50 0001 L CIN
+F 3 "http://www.fairchildsemi.com/ds/BC/BC817.pdf" H 9750 4600 50 0001 L CNN
+ 1 9750 4600
+ -1 0 0 -1
+$EndComp
+Wire Wire Line
+ 9650 4300 9650 4400
+Text GLabel 10050 4600 2 50 Input ~ 0
+CHREN
+Wire Wire Line
+ 9950 4600 10050 4600
$EndSCHEMATC
diff --git a/USBtoSerial.sch b/USBtoSerial.sch
index 5560162..74a163e 100644
--- a/USBtoSerial.sch
+++ b/USBtoSerial.sch
@@ -3,7 +3,7 @@ EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
-Sheet 3 5
+Sheet 5 5
Title ""
Date ""
Rev ""
@@ -16,152 +16,152 @@ $EndDescr
$Comp
L Connector:USB_B_Micro J?
U 1 1 5EFD2D90
-P 2500 1800
+P 2850 1800
AR Path="/5EFD2D90" Ref="J?" Part="1"
AR Path="/5EFCE977/5EFD2D90" Ref="J7" Part="1"
-F 0 "J7" H 2557 2267 50 0000 C CNN
-F 1 "USB_B_Micro" H 2557 2176 50 0000 C CNN
-F 2 "Connector_USB:USB_Micro-B_Amphenol_10103594-0001LF_Horizontal" H 2650 1750 50 0001 C CNN
-F 3 "~" H 2650 1750 50 0001 C CNN
- 1 2500 1800
+F 0 "J7" H 2907 2267 50 0000 C CNN
+F 1 "USB_B_Micro" H 2907 2176 50 0000 C CNN
+F 2 "Connector_USB:USB_Micro-B_Amphenol_10103594-0001LF_Horizontal" H 3000 1750 50 0001 C CNN
+F 3 "~" H 3000 1750 50 0001 C CNN
+ 1 2850 1800
1 0 0 -1
$EndComp
$Comp
L power:VBUS #PWR?
U 1 1 5EFD2D96
-P 2900 1500
+P 3250 1500
AR Path="/5EFD2D96" Ref="#PWR?" Part="1"
AR Path="/5EFCE977/5EFD2D96" Ref="#PWR040" Part="1"
-F 0 "#PWR040" H 2900 1350 50 0001 C CNN
-F 1 "VBUS" H 2915 1673 50 0000 C CNN
-F 2 "" H 2900 1500 50 0001 C CNN
-F 3 "" H 2900 1500 50 0001 C CNN
- 1 2900 1500
+F 0 "#PWR040" H 3250 1350 50 0001 C CNN
+F 1 "VBUS" H 3265 1673 50 0000 C CNN
+F 2 "" H 3250 1500 50 0001 C CNN
+F 3 "" H 3250 1500 50 0001 C CNN
+ 1 3250 1500
1 0 0 -1
$EndComp
Wire Wire Line
- 2800 1600 2900 1600
+ 3150 1600 3250 1600
Wire Wire Line
- 2900 1600 2900 1500
+ 3250 1600 3250 1500
Wire Wire Line
- 2400 2200 2400 2300
+ 2750 2200 2750 2300
Wire Wire Line
- 2400 2300 2450 2300
+ 2750 2300 2800 2300
Wire Wire Line
- 2500 2300 2500 2200
+ 2850 2300 2850 2200
$Comp
L power:GND #PWR?
U 1 1 5EFD2DA3
-P 2450 2400
+P 2800 2400
AR Path="/5EFD2DA3" Ref="#PWR?" Part="1"
AR Path="/5EFCE977/5EFD2DA3" Ref="#PWR045" Part="1"
-F 0 "#PWR045" H 2450 2150 50 0001 C CNN
-F 1 "GND" H 2455 2227 50 0000 C CNN
-F 2 "" H 2450 2400 50 0001 C CNN
-F 3 "" H 2450 2400 50 0001 C CNN
- 1 2450 2400
+F 0 "#PWR045" H 2800 2150 50 0001 C CNN
+F 1 "GND" H 2805 2227 50 0000 C CNN
+F 2 "" H 2800 2400 50 0001 C CNN
+F 3 "" H 2800 2400 50 0001 C CNN
+ 1 2800 2400
1 0 0 -1
$EndComp
Wire Wire Line
- 2450 2400 2450 2300
-Connection ~ 2450 2300
+ 2800 2400 2800 2300
+Connection ~ 2800 2300
Wire Wire Line
- 2450 2300 2500 2300
+ 2800 2300 2850 2300
$Comp
L Device:R R?
U 1 1 5EFD2DAC
-P 3650 1900
+P 4000 1900
AR Path="/5EFD2DAC" Ref="R?" Part="1"
AR Path="/5EFCE977/5EFD2DAC" Ref="R20" Part="1"
-F 0 "R20" V 3857 1900 50 0000 C CNN
-F 1 "27R" V 3766 1900 50 0000 C CNN
-F 2 "Resistor_SMD:R_0805_2012Metric" V 3580 1900 50 0001 C CNN
-F 3 "~" H 3650 1900 50 0001 C CNN
- 1 3650 1900
+F 0 "R20" V 4207 1900 50 0000 C CNN
+F 1 "27R" V 4116 1900 50 0000 C CNN
+F 2 "Resistor_SMD:R_0805_2012Metric" V 3930 1900 50 0001 C CNN
+F 3 "~" H 4000 1900 50 0001 C CNN
+ 1 4000 1900
0 1 1 0
$EndComp
$Comp
L Device:R R?
U 1 1 5EFD2DB2
-P 3650 1800
+P 4000 1800
AR Path="/5EFD2DB2" Ref="R?" Part="1"
AR Path="/5EFCE977/5EFD2DB2" Ref="R19" Part="1"
-F 0 "R19" V 3857 1800 50 0000 C CNN
-F 1 "27R" V 3766 1800 50 0000 C CNN
-F 2 "Resistor_SMD:R_0805_2012Metric" V 3580 1800 50 0001 C CNN
-F 3 "~" H 3650 1800 50 0001 C CNN
- 1 3650 1800
+F 0 "R19" V 4207 1800 50 0000 C CNN
+F 1 "27R" V 4116 1800 50 0000 C CNN
+F 2 "Resistor_SMD:R_0805_2012Metric" V 3930 1800 50 0001 C CNN
+F 3 "~" H 4000 1800 50 0001 C CNN
+ 1 4000 1800
0 -1 -1 0
$EndComp
Wire Wire Line
- 2800 1800 3000 1800
+ 3150 1800 3350 1800
Wire Wire Line
- 3500 1900 3300 1900
+ 3850 1900 3650 1900
Wire Wire Line
- 3800 1800 3900 1800
+ 4150 1800 4250 1800
Wire Wire Line
- 3900 1900 3800 1900
-NoConn ~ 2800 2000
+ 4250 1900 4150 1900
+NoConn ~ 3150 2000
$Comp
L Device:C C?
U 1 1 5EFD2DBD
-P 3300 2250
+P 3650 2250
AR Path="/5EFD2DBD" Ref="C?" Part="1"
AR Path="/5EFCE977/5EFD2DBD" Ref="C9" Part="1"
-F 0 "C9" H 3415 2296 50 0000 L CNN
-F 1 "47pF" H 3415 2205 50 0000 L CNN
-F 2 "Capacitor_SMD:C_0805_2012Metric" H 3338 2100 50 0001 C CNN
-F 3 "~" H 3300 2250 50 0001 C CNN
- 1 3300 2250
+F 0 "C9" H 3765 2296 50 0000 L CNN
+F 1 "47pF" H 3765 2205 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric" H 3688 2100 50 0001 C CNN
+F 3 "~" H 3650 2250 50 0001 C CNN
+ 1 3650 2250
1 0 0 -1
$EndComp
Wire Wire Line
- 3000 1800 3000 2100
-Connection ~ 3000 1800
+ 3350 1800 3350 2100
+Connection ~ 3350 1800
Wire Wire Line
- 3000 1800 3500 1800
+ 3350 1800 3850 1800
Wire Wire Line
- 3300 1900 3300 2100
-Connection ~ 3300 1900
+ 3650 1900 3650 2100
+Connection ~ 3650 1900
Wire Wire Line
- 3300 1900 2800 1900
+ 3650 1900 3150 1900
$Comp
L Device:C C?
U 1 1 5EFD2DC9
-P 3000 2250
+P 3350 2250
AR Path="/5EFD2DC9" Ref="C?" Part="1"
AR Path="/5EFCE977/5EFD2DC9" Ref="C8" Part="1"
-F 0 "C8" H 2800 2300 50 0000 L CNN
-F 1 "47pF" H 2700 2200 50 0000 L CNN
-F 2 "Capacitor_SMD:C_0805_2012Metric" H 3038 2100 50 0001 C CNN
-F 3 "~" H 3000 2250 50 0001 C CNN
- 1 3000 2250
+F 0 "C8" H 3150 2300 50 0000 L CNN
+F 1 "47pF" H 3050 2200 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric" H 3388 2100 50 0001 C CNN
+F 3 "~" H 3350 2250 50 0001 C CNN
+ 1 3350 2250
1 0 0 -1
$EndComp
Wire Wire Line
- 3000 2400 3000 2500
+ 3350 2400 3350 2500
Wire Wire Line
- 3000 2500 3150 2500
+ 3350 2500 3500 2500
Wire Wire Line
- 3300 2500 3300 2400
+ 3650 2500 3650 2400
$Comp
L power:GND #PWR?
U 1 1 5EFD2DD2
-P 3150 2600
+P 3500 2600
AR Path="/5EFD2DD2" Ref="#PWR?" Part="1"
AR Path="/5EFCE977/5EFD2DD2" Ref="#PWR046" Part="1"
-F 0 "#PWR046" H 3150 2350 50 0001 C CNN
-F 1 "GND" H 3155 2427 50 0000 C CNN
-F 2 "" H 3150 2600 50 0001 C CNN
-F 3 "" H 3150 2600 50 0001 C CNN
- 1 3150 2600
+F 0 "#PWR046" H 3500 2350 50 0001 C CNN
+F 1 "GND" H 3505 2427 50 0000 C CNN
+F 2 "" H 3500 2600 50 0001 C CNN
+F 3 "" H 3500 2600 50 0001 C CNN
+ 1 3500 2600
1 0 0 -1
$EndComp
Wire Wire Line
- 3150 2500 3150 2600
-Connection ~ 3150 2500
+ 3500 2500 3500 2600
+Connection ~ 3500 2500
Wire Wire Line
- 3150 2500 3300 2500
+ 3500 2500 3650 2500
$Comp
L Device:C C?
U 1 1 5EFD2DDB
@@ -169,7 +169,7 @@ P 1900 1850
AR Path="/5EFD2DDB" Ref="C?" Part="1"
AR Path="/5EFCE977/5EFD2DDB" Ref="C7" Part="1"
F 0 "C7" H 2015 1896 50 0000 L CNN
-F 1 "10nF" H 2015 1805 50 0000 L CNN
+F 1 "100nF" H 2015 1805 50 0000 L CNN
F 2 "Capacitor_SMD:C_0805_2012Metric" H 1938 1700 50 0001 C CNN
F 3 "~" H 1900 1850 50 0001 C CNN
1 1900 1850
@@ -205,190 +205,371 @@ Wire Wire Line
1900 1600 1900 1700
Wire Wire Line
1900 2000 1900 2100
-Text GLabel 3900 1900 2 50 Input ~ 0
+Text GLabel 4250 1900 2 50 Input ~ 0
D-
-Text GLabel 3900 1800 2 50 Input ~ 0
+Text GLabel 4250 1800 2 50 Input ~ 0
D+
$Comp
L power:VBUS #PWR042
U 1 1 5EFD3899
-P 1200 1900
-F 0 "#PWR042" H 1200 1750 50 0001 C CNN
-F 1 "VBUS" H 1215 2073 50 0000 C CNN
-F 2 "" H 1200 1900 50 0001 C CNN
-F 3 "" H 1200 1900 50 0001 C CNN
- 1 1200 1900
+P 850 1900
+F 0 "#PWR042" H 850 1750 50 0001 C CNN
+F 1 "VBUS" H 865 2073 50 0000 C CNN
+F 2 "" H 850 1900 50 0001 C CNN
+F 3 "" H 850 1900 50 0001 C CNN
+ 1 850 1900
-1 0 0 1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5EFD3BDC
-P 1400 1900
+P 1050 1900
AR Path="/5EFD3BDC" Ref="#PWR?" Part="1"
AR Path="/5EFCE977/5EFD3BDC" Ref="#PWR043" Part="1"
-F 0 "#PWR043" H 1400 1650 50 0001 C CNN
-F 1 "GND" H 1405 1727 50 0000 C CNN
-F 2 "" H 1400 1900 50 0001 C CNN
-F 3 "" H 1400 1900 50 0001 C CNN
- 1 1400 1900
+F 0 "#PWR043" H 1050 1650 50 0001 C CNN
+F 1 "GND" H 1055 1727 50 0000 C CNN
+F 2 "" H 1050 1900 50 0001 C CNN
+F 3 "" H 1050 1900 50 0001 C CNN
+ 1 1050 1900
1 0 0 -1
$EndComp
-Text HLabel 1400 1800 1 50 Input ~ 0
+Text HLabel 1050 1800 1 50 Input ~ 0
GND
-Text HLabel 1200 1800 1 50 Output ~ 0
+Text HLabel 850 1800 1 50 Output ~ 0
VBUS
Wire Wire Line
- 1200 1800 1200 1900
+ 850 1800 850 1900
Wire Wire Line
- 1400 1800 1400 1900
+ 1050 1800 1050 1900
Wire Wire Line
- 5750 950 5750 1100
+ 6900 2050 7100 2050
Wire Wire Line
- 4600 2000 4600 1400
+ 7100 1950 6900 1950
+Wire Wire Line
+ 6900 1850 7100 1850
+Wire Wire Line
+ 5800 2350 5900 2350
+Wire Wire Line
+ 5900 2250 5800 2250
+$Comp
+L power:VBUS #PWR?
+U 1 1 5EFDB991
+P 5150 1500
+AR Path="/5EFDB991" Ref="#PWR?" Part="1"
+AR Path="/5EFCE977/5EFDB991" Ref="#PWR039" Part="1"
+F 0 "#PWR039" H 5150 1350 50 0001 C CNN
+F 1 "VBUS" H 5165 1673 50 0000 C CNN
+F 2 "" H 5150 1500 50 0001 C CNN
+F 3 "" H 5150 1500 50 0001 C CNN
+ 1 5150 1500
+ 1 0 0 -1
+$EndComp
$Comp
L power:GND #PWR?
-U 1 1 5EFDB96D
-P 4600 2750
-AR Path="/5EFDB96D" Ref="#PWR?" Part="1"
-AR Path="/5EFCE977/5EFDB96D" Ref="#PWR047" Part="1"
-F 0 "#PWR047" H 4600 2500 50 0001 C CNN
-F 1 "GND" H 4605 2577 50 0000 C CNN
-F 2 "" H 4600 2750 50 0001 C CNN
-F 3 "" H 4600 2750 50 0001 C CNN
- 1 4600 2750
+U 1 1 5EFDB998
+P 6400 4350
+AR Path="/5EFDB998" Ref="#PWR?" Part="1"
+AR Path="/5EFCE977/5EFDB998" Ref="#PWR048" Part="1"
+F 0 "#PWR048" H 6400 4100 50 0001 C CNN
+F 1 "GND" H 6405 4177 50 0000 C CNN
+F 2 "" H 6400 4350 50 0001 C CNN
+F 3 "" H 6400 4350 50 0001 C CNN
+ 1 6400 4350
1 0 0 -1
$EndComp
+Wire Wire Line
+ 6900 2250 7100 2250
+Text HLabel 7100 2050 2 50 Output ~ 0
+TXD
+Text HLabel 7100 1950 2 50 Input ~ 0
+RXD
+Text HLabel 7100 1850 2 50 Output ~ 0
+~RTS
+Text HLabel 7100 2250 2 50 Output ~ 0
+~DTR
+Text HLabel 7100 1750 2 50 Input ~ 0
+~CTS
+Text HLabel 7100 2150 2 50 Input ~ 0
+~DSR
+Text HLabel 7100 2450 2 50 Input ~ 0
+~RI
+Text HLabel 7100 2350 2 50 Input ~ 0
+~DCD
+Text HLabel 7100 2950 2 50 BiDi ~ 0
+CHREN
+Text HLabel 7100 3050 2 50 BiDi ~ 0
+CHR0
+Text HLabel 7100 3150 2 50 BiDi ~ 0
+CHR1
+Text HLabel 7100 3350 2 50 BiDi ~ 0
+~TXT
$Comp
-L Device:C C?
-U 1 1 5EFDB973
-P 4600 2400
-AR Path="/5EFDB973" Ref="C?" Part="1"
-AR Path="/5EFCE977/5EFDB973" Ref="C10" Part="1"
-F 0 "C10" H 4715 2446 50 0000 L CNN
-F 1 "100nF" H 4715 2355 50 0000 L CNN
-F 2 "Capacitor_SMD:C_0805_2012Metric" H 4638 2250 50 0001 C CNN
-F 3 "~" H 4600 2400 50 0001 C CNN
- 1 4600 2400
+L Interface_USB:CP2102N-A01-GQFN28 U?
+U 1 1 5EFDB981
+P 6400 2850
+AR Path="/5EFDB981" Ref="U?" Part="1"
+AR Path="/5EFCE977/5EFDB981" Ref="U3" Part="1"
+F 0 "U3" H 6400 1461 50 0000 C CNN
+F 1 "CP2102N-A01-GQFN28" H 6400 1370 50 0000 C CNN
+F 2 "Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.35x3.35mm" H 6850 1650 50 0001 L CNN
+F 3 "https://www.silabs.com/documents/public/data-sheets/cp2102n-datasheet.pdf" H 6450 2100 50 0001 C CNN
+ 1 6400 2850
1 0 0 -1
$EndComp
Wire Wire Line
- 4600 2000 4600 2250
-Connection ~ 4600 2000
+ 6900 1750 7100 1750
+Wire Wire Line
+ 6900 2150 7100 2150
Wire Wire Line
- 6350 1400 6550 1400
+ 6900 2350 7100 2350
Wire Wire Line
- 6550 1500 6350 1500
+ 6900 2450 7100 2450
Wire Wire Line
- 6350 1600 6550 1600
+ 6900 2950 7100 2950
Wire Wire Line
- 4600 2550 4600 2750
-Text GLabel 4850 1800 0 50 Input ~ 0
+ 6900 3050 7100 3050
+Wire Wire Line
+ 6900 3150 7100 3150
+Wire Wire Line
+ 6900 3350 7100 3350
+Text GLabel 5800 2250 0 50 Input ~ 0
D+
-Text GLabel 4850 1700 0 50 Input ~ 0
+Text GLabel 5800 2350 0 50 Input ~ 0
D-
Wire Wire Line
- 4850 1700 4950 1700
+ 6400 4150 6400 4350
+Text HLabel 7100 3450 2 50 BiDi ~ 0
+~RXT
+Wire Wire Line
+ 6900 3450 7100 3450
+$Comp
+L Device:R R?
+U 1 1 5EF23249
+P 5150 2450
+F 0 "R?" H 5220 2496 50 0000 L CNN
+F 1 "47k5" H 5220 2405 50 0000 L CNN
+F 2 "" V 5080 2450 50 0001 C CNN
+F 3 "~" H 5150 2450 50 0001 C CNN
+ 1 5150 2450
+ 1 0 0 -1
+$EndComp
+$Comp
+L Device:R R?
+U 1 1 5EF23E1A
+P 5150 1850
+F 0 "R?" H 5220 1896 50 0000 L CNN
+F 1 "22k1" H 5220 1805 50 0000 L CNN
+F 2 "" V 5080 1850 50 0001 C CNN
+F 3 "~" H 5150 1850 50 0001 C CNN
+ 1 5150 1850
+ 1 0 0 -1
+$EndComp
Wire Wire Line
- 4950 1800 4850 1800
-Connection ~ 4600 1400
+ 5150 2000 5150 2150
Wire Wire Line
- 4600 2000 4950 2000
+ 5150 2150 5900 2150
Wire Wire Line
- 4600 1400 4600 950
+ 5150 2150 5150 2300
+Connection ~ 5150 2150
Wire Wire Line
- 4600 1400 4950 1400
+ 5150 2600 5150 2800
+$Comp
+L power:GND #PWR?
+U 1 1 5EF27218
+P 5150 2800
+AR Path="/5EF27218" Ref="#PWR?" Part="1"
+AR Path="/5EFCE977/5EF27218" Ref="#PWR?" Part="1"
+F 0 "#PWR?" H 5150 2550 50 0001 C CNN
+F 1 "GND" H 5155 2627 50 0000 C CNN
+F 2 "" H 5150 2800 50 0001 C CNN
+F 3 "" H 5150 2800 50 0001 C CNN
+ 1 5150 2800
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 5150 1500 5150 1700
+$Comp
+L Device:R R?
+U 1 1 5EF2AEF8
+P 5800 1600
+F 0 "R?" H 5870 1646 50 0000 L CNN
+F 1 "1k" H 5870 1555 50 0000 L CNN
+F 2 "" V 5730 1600 50 0001 C CNN
+F 3 "~" H 5800 1600 50 0001 C CNN
+ 1 5800 1600
+ 1 0 0 -1
+$EndComp
+Wire Wire Line
+ 5900 1950 5800 1950
+Wire Wire Line
+ 5800 1950 5800 1750
+Wire Wire Line
+ 5800 1450 5800 1350
+Text HLabel 6400 1250 1 50 BiDi ~ 0
+VDD
$Comp
L power:VBUS #PWR?
-U 1 1 5EFDB991
-P 5550 850
-AR Path="/5EFDB991" Ref="#PWR?" Part="1"
-AR Path="/5EFCE977/5EFDB991" Ref="#PWR039" Part="1"
-F 0 "#PWR039" H 5550 700 50 0001 C CNN
-F 1 "VBUS" H 5565 1023 50 0000 C CNN
-F 2 "" H 5550 850 50 0001 C CNN
-F 3 "" H 5550 850 50 0001 C CNN
- 1 5550 850
+U 1 1 5EF2E274
+P 6300 1050
+AR Path="/5EF2E274" Ref="#PWR?" Part="1"
+AR Path="/5EFCE977/5EF2E274" Ref="#PWR?" Part="1"
+F 0 "#PWR?" H 6300 900 50 0001 C CNN
+F 1 "VBUS" H 6315 1223 50 0000 C CNN
+F 2 "" H 6300 1050 50 0001 C CNN
+F 3 "" H 6300 1050 50 0001 C CNN
+ 1 6300 1050
1 0 0 -1
$EndComp
Wire Wire Line
- 5550 850 5550 1100
+ 6300 1050 6300 1550
+$Comp
+L Device:C C?
+U 1 1 5EF314AF
+P 1450 1850
+AR Path="/5EF314AF" Ref="C?" Part="1"
+AR Path="/5EFCE977/5EF314AF" Ref="C?" Part="1"
+F 0 "C?" H 1565 1896 50 0000 L CNN
+F 1 "4.7μF" H 1565 1805 50 0000 L CNN
+F 2 "Capacitor_SMD:C_0805_2012Metric" H 1488 1700 50 0001 C CNN
+F 3 "~" H 1450 1850 50 0001 C CNN
+ 1 1450 1850
+ 1 0 0 -1
+$EndComp
+$Comp
+L power:VBUS #PWR?
+U 1 1 5EF314B9
+P 1450 1600
+AR Path="/5EF314B9" Ref="#PWR?" Part="1"
+AR Path="/5EFCE977/5EF314B9" Ref="#PWR?" Part="1"
+F 0 "#PWR?" H 1450 1450 50 0001 C CNN
+F 1 "VBUS" H 1465 1773 50 0000 C CNN
+F 2 "" H 1450 1600 50 0001 C CNN
+F 3 "" H 1450 1600 50 0001 C CNN
+ 1 1450 1600
+ 1 0 0 -1
+$EndComp
$Comp
L power:GND #PWR?
-U 1 1 5EFDB998
-P 5750 3100
-AR Path="/5EFDB998" Ref="#PWR?" Part="1"
-AR Path="/5EFCE977/5EFDB998" Ref="#PWR048" Part="1"
-F 0 "#PWR048" H 5750 2850 50 0001 C CNN
-F 1 "GND" H 5755 2927 50 0000 C CNN
-F 2 "" H 5750 3100 50 0001 C CNN
-F 3 "" H 5750 3100 50 0001 C CNN
- 1 5750 3100
+U 1 1 5EF314C3
+P 1450 2100
+AR Path="/5EF314C3" Ref="#PWR?" Part="1"
+AR Path="/5EFCE977/5EF314C3" Ref="#PWR?" Part="1"
+F 0 "#PWR?" H 1450 1850 50 0001 C CNN
+F 1 "GND" H 1455 1927 50 0000 C CNN
+F 2 "" H 1450 2100 50 0001 C CNN
+F 3 "" H 1450 2100 50 0001 C CNN
+ 1 1450 2100
1 0 0 -1
$EndComp
Wire Wire Line
- 5550 2900 5550 3000
+ 1450 1600 1450 1700
Wire Wire Line
- 5550 3000 5750 3000
+ 1450 2000 1450 2100
Wire Wire Line
- 5750 3000 5750 2900
+ 6400 1250 6400 1350
Wire Wire Line
- 5750 3000 5750 3100
-Connection ~ 5750 3000
+ 6400 1350 6400 1550
+Connection ~ 6400 1350
Wire Wire Line
- 6350 1800 6550 1800
-Text HLabel 6550 1400 2 50 Output ~ 0
-TXD
-Text HLabel 6550 1500 2 50 Input ~ 0
-RXD
-Text HLabel 6550 1600 2 50 Output ~ 0
-RTS
-Text HLabel 6550 1800 2 50 Output ~ 0
-DTR
-Text HLabel 6550 1700 2 50 Input ~ 0
-CTS
-Text HLabel 6550 1900 2 50 Input ~ 0
-DSR
-Text HLabel 6550 2100 2 50 Input ~ 0
-RI
-Text HLabel 6550 2000 2 50 Input ~ 0
-DCD
-Text HLabel 6550 2300 2 50 BiDi ~ 0
-CBUS0
-Text HLabel 6550 2400 2 50 BiDi ~ 0
-CBUS1
-Text HLabel 6550 2500 2 50 BiDi ~ 0
-CBUS2
-Text HLabel 6550 2600 2 50 BiDi ~ 0
-CBUS3
+ 5800 1350 6400 1350
+Text HLabel 7100 3550 2 50 BiDi ~ 0
+RS485_GPIO2
+Text HLabel 7100 3650 2 50 BiDi ~ 0
+~WAKEUP_GPIO3
+Text HLabel 7100 3750 2 50 BiDi ~ 0
+GPIO4
+Text HLabel 7100 3850 2 50 BiDi ~ 0
+GPIO5
+Text HLabel 7100 3950 2 50 BiDi ~ 0
+GPIO6
+Wire Wire Line
+ 6900 3950 7100 3950
+Wire Wire Line
+ 7100 3850 6900 3850
+Wire Wire Line
+ 6900 3750 7100 3750
+Wire Wire Line
+ 7100 3650 6900 3650
+Wire Wire Line
+ 6900 3550 7100 3550
+Text HLabel 5700 1950 0 50 BiDi ~ 0
+~RSTb
+Wire Wire Line
+ 5700 1950 5800 1950
+Connection ~ 5800 1950
+Text HLabel 7100 2650 2 50 BiDi ~ 0
+~SUSPENDb
+Text HLabel 7100 2750 2 50 BiDi ~ 0
+SUSPEND
+Wire Wire Line
+ 6900 2650 7100 2650
+Wire Wire Line
+ 6900 2750 7100 2750
$Comp
-L Interface_USB:FT231XS U?
-U 1 1 5EFDB981
-P 5650 2000
-AR Path="/5EFDB981" Ref="U?" Part="1"
-AR Path="/5EFCE977/5EFDB981" Ref="U3" Part="1"
-F 0 "U3" H 5650 3081 50 0000 C CNN
-F 1 "FT231XS" H 5650 2990 50 0000 C CNN
-F 2 "Package_SO:QSOP-20_3.9x8.7mm_P0.635mm" H 6650 1200 50 0001 C CNN
-F 3 "https://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT231X.pdf" H 5650 2000 50 0001 C CNN
- 1 5650 2000
+L Device:LED D?
+U 1 1 5EF67E52
+P 1450 3050
+F 0 "D?" H 1443 3267 50 0000 C CNN
+F 1 "TX" H 1443 3176 50 0000 C CNN
+F 2 "" H 1450 3050 50 0001 C CNN
+F 3 "~" H 1450 3050 50 0001 C CNN
+ 1 1450 3050
1 0 0 -1
$EndComp
+Text HLabel 1150 3050 0 50 BiDi ~ 0
+~TXT
+$Comp
+L Device:LED D?
+U 1 1 5EF69A52
+P 1450 3300
+F 0 "D?" H 1443 3137 50 0000 C CNN
+F 1 "RX" H 1443 3046 50 0000 C CNN
+F 2 "" H 1450 3300 50 0001 C CNN
+F 3 "~" H 1450 3300 50 0001 C CNN
+ 1 1450 3300
+ 1 0 0 -1
+$EndComp
+Text HLabel 1150 3300 0 50 BiDi ~ 0
+~RXT
Wire Wire Line
- 4600 950 5750 950
-Wire Wire Line
- 6350 1700 6550 1700
+ 1150 3050 1300 3050
Wire Wire Line
- 6350 1900 6550 1900
+ 1150 3300 1300 3300
+$Comp
+L Device:R R?
+U 1 1 5EF6C431
+P 1900 3050
+F 0 "R?" V 1693 3050 50 0000 C CNN
+F 1 "R" V 1784 3050 50 0000 C CNN
+F 2 "" V 1830 3050 50 0001 C CNN
+F 3 "~" H 1900 3050 50 0001 C CNN
+ 1 1900 3050
+ 0 1 1 0
+$EndComp
+$Comp
+L Device:R R?
+U 1 1 5EF6CF1D
+P 1900 3300
+F 0 "R?" V 2015 3300 50 0000 C CNN
+F 1 "R" V 2106 3300 50 0000 C CNN
+F 2 "" V 1830 3300 50 0001 C CNN
+F 3 "~" H 1900 3300 50 0001 C CNN
+ 1 1900 3300
+ 0 1 1 0
+$EndComp
Wire Wire Line
- 6350 2000 6550 2000
+ 1600 3050 1750 3050
Wire Wire Line
- 6350 2100 6550 2100
+ 1750 3300 1600 3300
Wire Wire Line
- 6350 2300 6550 2300
+ 2050 3300 2200 3300
Wire Wire Line
- 6350 2400 6550 2400
+ 2200 3300 2200 3050
Wire Wire Line
- 6350 2500 6550 2500
+ 2050 3050 2200 3050
+Text HLabel 2200 2900 1 50 BiDi ~ 0
+VDD
Wire Wire Line
- 6350 2600 6550 2600
+ 2200 3050 2200 2900
+Connection ~ 2200 3050
$EndSCHEMATC