Added voltage sensing

This commit is contained in:
Markus Koch 2016-02-15 17:04:54 +01:00
parent d74c522c82
commit 058188a11c
3 changed files with 234 additions and 26 deletions

View File

@ -524,4 +524,24 @@ X VUSB 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# ZENERsmall
#
DEF ZENERsmall D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "ZENERsmall" 0 -100 50 H V C CNN
F2 "" 0 0 50 H V C CNN
F3 "" 0 0 50 H V C CNN
$FPLIST
D?
SO*
SM*
$ENDFPLIST
DRAW
P 4 0 1 8 -60 40 -40 20 -40 -20 -20 -40 N
P 4 0 1 0 40 40 -40 0 40 -40 40 40 F
X K 1 -100 0 60 R 40 40 1 1 P
X A 2 100 0 60 L 40 40 1 1 P
ENDDRAW
ENDDEF
#
#End Library

View File

@ -54,7 +54,7 @@ F0 "powersupply" 60
F1 "power.sch" 60
$EndSheet
$Sheet
S 5600 2300 2250 1800
S 4450 1100 2250 1800
U 56337D98
F0 "debug" 60
F1 "debug.sch" 60

238
power.sch
View File

@ -930,7 +930,13 @@ $EndComp
Text Notes 1550 900 0 60 ~ 0
TODO: Redo as SMPS!
Wire Wire Line
1150 3500 1150 3850
1150 3500 1150 3550
Wire Wire Line
1150 3550 1150 3650
Wire Wire Line
1150 3650 1150 3750
Wire Wire Line
1150 3750 1150 3850
Wire Wire Line
1150 3550 1200 3550
Wire Wire Line
@ -945,7 +951,15 @@ Connection ~ 1150 3750
Wire Wire Line
1150 4750 1200 4750
Wire Wire Line
1150 4050 1150 4750
1150 4050 1150 4150
Wire Wire Line
1150 4150 1150 4250
Wire Wire Line
1150 4250 1150 4350
Wire Wire Line
1150 4350 1150 4550
Wire Wire Line
1150 4550 1150 4750
Wire Wire Line
1150 4550 1200 4550
Wire Wire Line
@ -958,7 +972,9 @@ Wire Wire Line
1150 4150 1200 4150
Connection ~ 1150 4250
Wire Wire Line
900 4050 1200 4050
900 4050 1150 4050
Wire Wire Line
1150 4050 1200 4050
Connection ~ 1150 4150
Wire Wire Line
900 3500 900 4050
@ -966,7 +982,9 @@ Connection ~ 1150 4050
Wire Wire Line
1200 4650 1100 4650
Wire Wire Line
1100 4650 1100 4900
1100 4650 1100 4850
Wire Wire Line
1100 4850 1100 4900
Wire Wire Line
1100 4850 1200 4850
Connection ~ 1100 4850
@ -975,7 +993,9 @@ Wire Wire Line
Wire Wire Line
2550 3550 2550 3600
Wire Wire Line
2750 3500 2750 3650
2750 3500 2750 3600
Wire Wire Line
2750 3600 2750 3650
Wire Wire Line
2900 3650 2900 3600
Wire Wire Line
@ -990,7 +1010,9 @@ Wire Wire Line
Wire Wire Line
2750 4150 2500 4150
Wire Wire Line
1450 1400 1450 1550
1450 1400 1450 1500
Wire Wire Line
1450 1500 1450 1550
Wire Wire Line
900 1500 900 1450
Wire Wire Line
@ -1006,9 +1028,15 @@ Wire Wire Line
Wire Wire Line
2200 1100 2200 1150
Wire Wire Line
900 1000 900 1150
900 1000 900 1100
Wire Wire Line
900 1500 2200 1500
900 1100 900 1150
Wire Wire Line
900 1500 1450 1500
Wire Wire Line
1450 1500 1900 1500
Wire Wire Line
1900 1500 2200 1500
Wire Wire Line
900 1100 1050 1100
Connection ~ 2200 1100
@ -1017,7 +1045,9 @@ Wire Wire Line
Wire Wire Line
3000 1100 2900 1100
Wire Wire Line
1450 2400 1450 2550
1450 2400 1450 2500
Wire Wire Line
1450 2500 1450 2550
Wire Wire Line
900 2500 900 2450
Wire Wire Line
@ -1033,9 +1063,15 @@ Wire Wire Line
Wire Wire Line
2200 2100 2200 2150
Wire Wire Line
900 2000 900 2150
900 2000 900 2100
Wire Wire Line
900 2500 2200 2500
900 2100 900 2150
Wire Wire Line
900 2500 1450 2500
Wire Wire Line
1450 2500 1900 2500
Wire Wire Line
1900 2500 2200 2500
Wire Wire Line
900 2100 1050 2100
Connection ~ 2200 2100
@ -1044,11 +1080,29 @@ Wire Wire Line
Wire Wire Line
3000 2100 2900 2100
Wire Wire Line
1850 1100 2300 1100
1850 1100 1900 1100
Wire Wire Line
1850 2100 2300 2100
1900 1100 2200 1100
Wire Wire Line
3450 2150 4950 2150
2200 1100 2300 1100
Wire Wire Line
1850 2100 1900 2100
Wire Wire Line
1900 2100 2200 2100
Wire Wire Line
2200 2100 2300 2100
Wire Wire Line
3450 2150 3700 2150
Wire Wire Line
3700 2150 3950 2150
Wire Wire Line
3950 2150 4200 2150
Wire Wire Line
4200 2150 4450 2150
Wire Wire Line
4450 2150 4700 2150
Wire Wire Line
4700 2150 4950 2150
Connection ~ 3700 2150
Connection ~ 3950 2150
Connection ~ 4200 2150
@ -1060,13 +1114,37 @@ Connection ~ 4200 2450
Connection ~ 3950 2450
Connection ~ 3700 2450
Wire Wire Line
3450 2450 4950 2450
3450 2450 3700 2450
Wire Wire Line
3700 2450 3950 2450
Wire Wire Line
3950 2450 4200 2450
Wire Wire Line
4200 2450 4450 2450
Wire Wire Line
4450 2450 4700 2450
Wire Wire Line
4700 2450 4950 2450
Wire Wire Line
4200 2050 4200 2150
Wire Wire Line
4200 2550 4200 2450
Wire Wire Line
3450 1150 5450 1150
3450 1150 3700 1150
Wire Wire Line
3700 1150 3950 1150
Wire Wire Line
3950 1150 4200 1150
Wire Wire Line
4200 1150 4450 1150
Wire Wire Line
4450 1150 4700 1150
Wire Wire Line
4700 1150 4950 1150
Wire Wire Line
4950 1150 5200 1150
Wire Wire Line
5200 1150 5450 1150
Connection ~ 3700 1150
Connection ~ 3950 1150
Connection ~ 4200 1150
@ -1078,7 +1156,21 @@ Connection ~ 4200 1450
Connection ~ 3950 1450
Connection ~ 3700 1450
Wire Wire Line
3450 1450 5450 1450
3450 1450 3700 1450
Wire Wire Line
3700 1450 3950 1450
Wire Wire Line
3950 1450 4200 1450
Wire Wire Line
4200 1450 4450 1450
Wire Wire Line
4450 1450 4700 1450
Wire Wire Line
4700 1450 4950 1450
Wire Wire Line
4950 1450 5200 1450
Wire Wire Line
5200 1450 5450 1450
Wire Wire Line
4200 1050 4200 1150
Wire Wire Line
@ -1104,7 +1196,9 @@ Wire Wire Line
Wire Wire Line
3650 5300 3650 5350
Wire Wire Line
3400 5350 3900 5350
3400 5350 3650 5350
Wire Wire Line
3650 5350 3900 5350
Wire Wire Line
3900 5350 3900 4900
Wire Wire Line
@ -1116,14 +1210,18 @@ Wire Wire Line
3400 4700 3650 4700
Connection ~ 3650 4700
Wire Wire Line
8700 950 8700 1200
8700 950 8700 1100
Wire Wire Line
8700 1100 8700 1200
Wire Wire Line
8700 1100 8650 1100
Wire Wire Line
8700 1200 8650 1200
Connection ~ 8700 1100
Wire Wire Line
7600 950 7600 1200
7600 950 7600 1100
Wire Wire Line
7600 1100 7600 1200
Wire Wire Line
7600 1200 7650 1200
Connection ~ 7600 1100
@ -1148,13 +1246,17 @@ Wire Wire Line
Wire Wire Line
8800 3300 9100 3300
Wire Wire Line
9300 3600 9300 3700
9300 3600 9300 3650
Wire Wire Line
9300 3650 9300 3700
Wire Wire Line
9300 4050 9300 4000
Wire Wire Line
8800 2850 8800 3300
Wire Wire Line
9500 3300 9750 3300
9500 3300 9550 3300
Wire Wire Line
9550 3300 9750 3300
Wire Wire Line
9550 3300 9550 2950
Wire Wire Line
@ -1162,7 +1264,9 @@ Wire Wire Line
Wire Wire Line
9200 2950 9000 2950
Wire Wire Line
9000 2850 9000 3650
9000 2850 9000 2950
Wire Wire Line
9000 2950 9000 3650
Wire Wire Line
9000 3650 9300 3650
Connection ~ 9000 2950
@ -1195,7 +1299,9 @@ Wire Wire Line
9300 1950 9300 2150
Connection ~ 9300 1550
Wire Wire Line
9600 1750 9950 1750
9600 1750 9650 1750
Wire Wire Line
9650 1750 9950 1750
Wire Wire Line
9650 2100 9650 2150
Wire Wire Line
@ -1207,7 +1313,89 @@ Wire Wire Line
8950 1150 9950 1150
Connection ~ 8950 1350
Wire Wire Line
7300 1350 7650 1350
7300 1350 7350 1350
Wire Wire Line
7350 1350 7650 1350
Wire Wire Line
7300 1550 7650 1550
$Comp
L R R?
U 1 1 56C1FB0E
P 7400 3100
F 0 "R?" V 7480 3100 50 0000 C CNN
F 1 "10k" V 7400 3100 50 0000 C CNN
F 2 "" V 7330 3100 30 0000 C CNN
F 3 "" H 7400 3100 30 0000 C CNN
1 7400 3100
1 0 0 -1
$EndComp
$Comp
L R R?
U 1 1 56C20160
P 7400 3500
F 0 "R?" V 7480 3500 50 0000 C CNN
F 1 "10k" V 7400 3500 50 0000 C CNN
F 2 "" V 7330 3500 30 0000 C CNN
F 3 "" H 7400 3500 30 0000 C CNN
1 7400 3500
1 0 0 -1
$EndComp
Wire Wire Line
7400 3250 7400 3300
Wire Wire Line
7400 3300 7400 3350
$Comp
L VSYS #PWR?
U 1 1 56C208D6
P 7400 2900
F 0 "#PWR?" H 7400 2750 50 0001 C CNN
F 1 "VSYS" H 7400 3040 50 0000 C CNN
F 2 "" H 7400 2900 50 0000 C CNN
F 3 "" H 7400 2900 50 0000 C CNN
1 7400 2900
1 0 0 -1
$EndComp
$Comp
L GNDD #PWR?
U 1 1 56C20CEB
P 7400 3750
F 0 "#PWR?" H 7400 3500 50 0001 C CNN
F 1 "GNDD" H 7400 3600 50 0000 C CNN
F 2 "" H 7400 3750 60 0000 C CNN
F 3 "" H 7400 3750 60 0000 C CNN
1 7400 3750
1 0 0 -1
$EndComp
Wire Wire Line
7400 3650 7400 3700
Wire Wire Line
7400 3700 7400 3750
Wire Wire Line
7400 2900 7400 2950
Wire Wire Line
7400 3300 7600 3300
Wire Wire Line
7600 3300 7800 3300
Connection ~ 7400 3300
$Comp
L ZENERsmall D?
U 1 1 56C21EC8
P 7600 3500
F 0 "D?" V 7554 3569 50 0000 L CNN
F 1 "3.3V" V 7646 3569 50 0000 L CNN
F 2 "" H 7600 3500 50 0000 C CNN
F 3 "" H 7600 3500 50 0000 C CNN
1 7600 3500
0 1 1 0
$EndComp
Wire Wire Line
7600 3600 7600 3700
Wire Wire Line
7600 3700 7400 3700
Connection ~ 7400 3700
Wire Wire Line
7600 3400 7600 3300
Connection ~ 7600 3300
Text HLabel 7800 3300 2 60 Input ~ 0
SYS_VOLTAGE
$EndSCHEMATC