1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 10:30:37 +02:00

labsw/: schematics, layout, and header.fpd update (in progress)

This commit is contained in:
Werner Almesberger 2011-08-26 01:34:12 -03:00
parent c34078899e
commit c0bfec4d8e
6 changed files with 4017 additions and 0 deletions

381
labsw/back.sch Normal file
View File

@ -0,0 +1,381 @@
EESchema Schematic File Version 2 date Fri Aug 26 01:18:37 2011
LIBS:power
LIBS:device
LIBS:conn
LIBS:c8051f320
LIBS:mini_usb_b
LIBS:opto-trans-4
LIBS:spdt-c
LIBS:labsw-cache
EELAYER 24 0
EELAYER END
$Descr A4 11700 8267
Sheet 2 3
Title "Lab Switch (Back panel)"
Date "26 aug 2011"
Rev "0"
Comp "Werner Almesberger"
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Text GLabel 3400 6350 0 60 Input ~ 0
OUT_4
Text GLabel 3400 5750 0 60 Input ~ 0
OUT_3
Text GLabel 3400 5150 0 60 Input ~ 0
OUT_2
Text GLabel 3400 4550 0 60 Input ~ 0
OUT_1
Text GLabel 3300 3050 0 60 Output ~ 0
IN_4
Text GLabel 3300 2450 0 60 Output ~ 0
IN_3
Text GLabel 3300 1850 0 60 Output ~ 0
IN_2
Text GLabel 3300 1250 0 60 Output ~ 0
IN_1
Text Notes 7500 5300 0 60 ~ 0
Vmax = 80 V\nImax = 5...50 mA
Text Notes 7500 2050 0 60 ~ 0
Vmin = 1.5 V\nImin = 100 uA\nVmax = 30 V\nImax = 30 mA
$Comp
L OPTO-TRANS-4 U10
U 1 1 4E55BFBE
P 5000 5650
F 0 "U10" H 4850 5850 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 5000 5425 60 0000 C CNN
1 5000 5650
1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U9
U 1 1 4E55BFBD
P 5000 5050
F 0 "U9" H 4850 5250 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 5000 4825 60 0000 C CNN
1 5000 5050
1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U11
U 1 1 4E55BFBC
P 5000 6250
F 0 "U11" H 4850 6450 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 5000 6025 60 0000 C CNN
1 5000 6250
1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U6
U 1 1 4E55BFBB
P 4350 2550
F 0 "U6" H 4200 2750 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 4350 2325 60 0000 C CNN
1 4350 2550
-1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U4
U 1 1 4E55BFBA
P 4350 1350
F 0 "U4" H 4200 1550 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 4350 1125 60 0000 C CNN
1 4350 1350
-1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U5
U 1 1 4E55BFB9
P 4350 1950
F 0 "U5" H 4200 2150 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 4350 1725 60 0000 C CNN
1 4350 1950
-1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U7
U 1 1 4E55BFB8
P 4350 3150
F 0 "U7" H 4200 3350 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 4350 2925 60 0000 C CNN
1 4350 3150
-1 0 0 -1
$EndComp
$Comp
L CONN_4X2 P4
U 1 1 4E55BFB7
P 6400 2150
F 0 "P4" H 6400 2400 50 0000 C CNN
F 1 "CONN_4X2" V 6400 2150 40 0000 C CNN
1 6400 2150
1 0 0 -1
$EndComp
$Comp
L CONN_4X2 P5
U 1 1 4E55BFB6
P 6400 5300
F 0 "P5" H 6400 5550 50 0000 C CNN
F 1 "CONN_4X2" V 6400 5300 40 0000 C CNN
1 6400 5300
1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U8
U 1 1 4E55BFB5
P 5000 4450
F 0 "U8" H 4850 4650 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 5000 4225 60 0000 C CNN
1 5000 4450
1 0 0 -1
$EndComp
$Comp
L +5V #PWR013
U 1 1 4E55BFB4
P 3750 4150
F 0 "#PWR013" H 3750 4240 20 0001 C CNN
F 1 "+5V" H 3750 4240 50 0000 C CNN
1 3750 4150
1 0 0 -1
$EndComp
$Comp
L R R3
U 1 1 4E55BFB3
P 4200 4350
F 0 "R3" V 4280 4350 50 0000 C CNN
F 1 "180" V 4200 4350 50 0000 C CNN
1 4200 4350
0 -1 -1 0
$EndComp
$Comp
L R R4
U 1 1 4E55BFB2
P 4200 4950
F 0 "R4" V 4280 4950 50 0000 C CNN
F 1 "180" V 4200 4950 50 0000 C CNN
1 4200 4950
0 -1 -1 0
$EndComp
$Comp
L R R5
U 1 1 4E55BFB1
P 4200 5550
F 0 "R5" V 4280 5550 50 0000 C CNN
F 1 "180" V 4200 5550 50 0000 C CNN
1 4200 5550
0 -1 -1 0
$EndComp
$Comp
L R R6
U 1 1 4E55BFB0
P 4200 6150
F 0 "R6" V 4280 6150 50 0000 C CNN
F 1 "180" V 4200 6150 50 0000 C CNN
1 4200 6150
0 -1 -1 0
$EndComp
$Comp
L R R7
U 1 1 4E55BFAF
P 5150 1250
F 0 "R7" V 5230 1250 50 0000 C CNN
F 1 "1k" V 5150 1250 50 0000 C CNN
F 4 "1W" V 5050 1250 60 0000 C CNN "Field4"
1 5150 1250
0 -1 -1 0
$EndComp
$Comp
L R R8
U 1 1 4E55BFAE
P 5150 1850
F 0 "R8" V 5230 1850 50 0000 C CNN
F 1 "1k" V 5150 1850 50 0000 C CNN
F 4 "1W" V 5050 1850 60 0000 C CNN "Field4"
1 5150 1850
0 -1 -1 0
$EndComp
$Comp
L R R9
U 1 1 4E55BFAD
P 5150 2450
F 0 "R9" V 5230 2450 50 0000 C CNN
F 1 "1k" V 5150 2450 50 0000 C CNN
F 4 "1W" V 5050 2450 60 0000 C CNN "Field4"
1 5150 2450
0 -1 -1 0
$EndComp
$Comp
L R R10
U 1 1 4E55BFAC
P 5150 3050
F 0 "R10" V 5230 3050 50 0000 C CNN
F 1 "1k" V 5150 3050 50 0000 C CNN
F 4 "1W" V 5050 3050 60 0000 C CNN "Field4"
1 5150 3050
0 -1 -1 0
$EndComp
$Comp
L GND #PWR014
U 1 1 4E55BFAB
P 3750 3400
F 0 "#PWR014" H 3750 3400 30 0001 C CNN
F 1 "GND" H 3750 3330 30 0001 C CNN
1 3750 3400
1 0 0 -1
$EndComp
Wire Wire Line
4650 5750 3400 5750
Wire Wire Line
4650 4550 3400 4550
Wire Wire Line
3950 2450 3300 2450
Wire Wire Line
3950 1250 3300 1250
Connection ~ 3750 2650
Wire Wire Line
3750 2650 3950 2650
Wire Wire Line
3950 1450 3750 1450
Wire Wire Line
3750 1450 3750 3400
Wire Wire Line
4900 3050 4700 3050
Wire Wire Line
4700 1850 4900 1850
Wire Wire Line
4700 2650 5600 2650
Wire Wire Line
5600 2650 5600 2200
Wire Wire Line
5600 2200 6000 2200
Wire Wire Line
4700 1450 5600 1450
Wire Wire Line
5600 1450 5600 2000
Wire Wire Line
5600 2000 6000 2000
Wire Wire Line
6800 2200 7000 2200
Wire Wire Line
7000 2200 7000 2450
Wire Wire Line
7000 2450 5400 2450
Wire Wire Line
6800 2000 7000 2000
Wire Wire Line
7000 2000 7000 1250
Wire Wire Line
7000 1250 5400 1250
Wire Wire Line
4450 5550 4650 5550
Wire Wire Line
4450 4350 4650 4350
Connection ~ 3750 4950
Wire Wire Line
3750 4950 3950 4950
Wire Wire Line
3950 6150 3750 6150
Wire Wire Line
3750 6150 3750 4150
Wire Wire Line
6000 5350 5600 5350
Wire Wire Line
5600 5350 5600 5750
Wire Wire Line
5600 5750 5400 5750
Wire Wire Line
6000 5150 5800 5150
Wire Wire Line
5800 5150 5800 4550
Wire Wire Line
5800 4550 5400 4550
Wire Wire Line
6800 5350 7000 5350
Wire Wire Line
7000 5350 7000 5550
Wire Wire Line
7000 5550 5400 5550
Wire Wire Line
6800 5150 7200 5150
Wire Wire Line
7200 5150 7200 4350
Wire Wire Line
7200 4350 5400 4350
Wire Wire Line
5400 4950 7000 4950
Wire Wire Line
7000 4950 7000 5250
Wire Wire Line
7000 5250 6800 5250
Wire Wire Line
5400 6150 7200 6150
Wire Wire Line
7200 6150 7200 5450
Wire Wire Line
7200 5450 6800 5450
Wire Wire Line
5400 5150 5600 5150
Wire Wire Line
5600 5150 5600 5250
Wire Wire Line
5600 5250 6000 5250
Wire Wire Line
5400 6350 5800 6350
Wire Wire Line
5800 6350 5800 5450
Wire Wire Line
5800 5450 6000 5450
Wire Wire Line
3750 5550 3950 5550
Connection ~ 3750 5550
Wire Wire Line
3950 4350 3750 4350
Connection ~ 3750 4350
Wire Wire Line
4450 4950 4650 4950
Wire Wire Line
4450 6150 4650 6150
Wire Wire Line
5400 1850 7200 1850
Wire Wire Line
7200 1850 7200 2100
Wire Wire Line
7200 2100 6800 2100
Wire Wire Line
5400 3050 7200 3050
Wire Wire Line
7200 3050 7200 2300
Wire Wire Line
7200 2300 6800 2300
Wire Wire Line
6000 2100 5450 2100
Wire Wire Line
5450 2100 5450 2050
Wire Wire Line
5450 2050 4700 2050
Wire Wire Line
4700 1250 4900 1250
Wire Wire Line
4700 2450 4900 2450
Wire Wire Line
6000 2300 5800 2300
Wire Wire Line
5800 2300 5800 3250
Wire Wire Line
5800 3250 4700 3250
Wire Wire Line
3950 2050 3750 2050
Connection ~ 3750 2050
Wire Wire Line
3950 3250 3750 3250
Connection ~ 3750 3250
Wire Wire Line
3950 1850 3300 1850
Wire Wire Line
3950 3050 3300 3050
Wire Wire Line
4650 5150 3400 5150
Wire Wire Line
4650 6350 3400 6350
$EndSCHEMATC

455
labsw/front.sch Normal file
View File

@ -0,0 +1,455 @@
EESchema Schematic File Version 2 date Fri Aug 26 01:32:28 2011
LIBS:power
LIBS:device
LIBS:conn
LIBS:c8051f320
LIBS:mini_usb_b
LIBS:opto-trans-4
LIBS:spdt-c
LIBS:labsw-cache
EELAYER 24 0
EELAYER END
$Descr A4 11700 8267
Sheet 3 3
Title "Lab Switch (Front panel)"
Date "26 aug 2011"
Rev "0"
Comp "Werner Almesberger"
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Wire Wire Line
5600 5850 5800 5850
Wire Wire Line
5600 3350 5800 3350
Wire Wire Line
9850 3500 9850 3300
Wire Wire Line
9450 3500 9450 3300
Wire Wire Line
9650 4000 9650 4300
Wire Wire Line
9650 4300 9250 4300
Connection ~ 3850 5450
Wire Wire Line
4600 5450 3350 5450
Wire Wire Line
3500 5750 4200 5750
Wire Wire Line
4600 5450 4600 5650
Wire Wire Line
4600 6250 4600 6050
Wire Wire Line
8450 4500 8250 4500
Wire Wire Line
7500 4600 8450 4600
Wire Wire Line
7500 4400 8450 4400
Wire Wire Line
7500 4200 8450 4200
Connection ~ 9450 4700
Wire Wire Line
9250 4700 9450 4700
Wire Wire Line
9450 4900 9450 4500
Wire Wire Line
9450 4500 9250 4500
Wire Wire Line
9250 4600 9450 4600
Connection ~ 9450 4600
Wire Wire Line
4200 2700 4200 3250
Wire Wire Line
3350 2950 3350 2750
Wire Wire Line
3850 2650 3850 2950
Connection ~ 3850 1950
Wire Wire Line
3850 2250 3850 1950
Connection ~ 4050 4450
Wire Wire Line
4050 4300 4050 4450
Wire Wire Line
4200 4450 4200 4700
Wire Wire Line
4200 4450 3350 4450
Wire Wire Line
3350 4450 3350 4650
Wire Wire Line
1950 4000 2150 4000
Wire Wire Line
2150 4000 2150 5750
Wire Wire Line
2150 5750 2750 5750
Connection ~ 2350 5450
Wire Wire Line
2350 5950 2750 5950
Wire Wire Line
2350 5950 2350 4950
Wire Wire Line
2550 1950 2550 2550
Connection ~ 3050 5450
Wire Wire Line
3050 5250 3050 5450
Wire Wire Line
3250 4250 3250 4650
Wire Wire Line
1950 4850 2350 4850
Wire Wire Line
2350 4250 2350 4850
Wire Wire Line
3250 4250 2350 4250
Wire Wire Line
1950 5050 2550 5050
Wire Wire Line
2550 4450 2550 5050
Wire Wire Line
2550 4450 3050 4450
Wire Wire Line
3050 4450 3050 4650
Wire Wire Line
3050 1950 3050 2150
Wire Wire Line
2550 1950 3050 1950
Wire Wire Line
2550 2550 1950 2550
Wire Wire Line
2350 2450 1950 2450
Wire Wire Line
3150 2950 2350 2950
Wire Wire Line
3150 2950 3150 2750
Wire Wire Line
1950 2350 2350 2350
Wire Wire Line
2350 1750 2350 2350
Wire Wire Line
2350 1750 3250 1750
Wire Wire Line
3250 1750 3250 2150
Wire Wire Line
3150 2150 3150 1750
Connection ~ 3150 1750
Wire Wire Line
3050 2750 3050 2950
Connection ~ 3050 2950
Wire Wire Line
2950 2150 2950 1950
Connection ~ 2950 1950
Wire Wire Line
2950 4650 2950 4450
Connection ~ 2950 4450
Wire Wire Line
3150 4650 3150 4250
Connection ~ 3150 4250
Wire Wire Line
3150 5450 3150 5250
Wire Wire Line
2350 5450 3150 5450
Wire Wire Line
2350 4950 1950 4950
Wire Wire Line
2350 2450 2350 3450
Wire Wire Line
2350 3450 2750 3450
Connection ~ 2350 2950
Wire Wire Line
2750 3250 2150 3250
Wire Wire Line
2150 3250 2150 3800
Wire Wire Line
2150 3800 1950 3800
Wire Wire Line
3850 4750 3850 4450
Connection ~ 3850 4450
Wire Wire Line
3350 1950 3350 2150
Wire Wire Line
3350 1950 4200 1950
Wire Wire Line
4200 1950 4200 2200
Wire Wire Line
4050 1800 4050 1950
Connection ~ 4050 1950
Wire Wire Line
3350 5450 3350 5250
Wire Wire Line
3850 5150 3850 5450
Wire Wire Line
4200 5750 4200 5200
Wire Wire Line
8450 4300 8250 4300
Wire Wire Line
8450 4700 8250 4700
Wire Wire Line
4600 3550 4600 3750
Wire Wire Line
4600 2950 4600 3150
Wire Wire Line
4200 3250 3500 3250
Wire Wire Line
3350 2950 4600 2950
Connection ~ 3850 2950
Wire Wire Line
9250 4200 9450 4200
Wire Wire Line
9450 4200 9450 4000
Wire Wire Line
9250 4400 9850 4400
Wire Wire Line
9850 4400 9850 4000
Wire Wire Line
9650 3500 9650 3300
Wire Wire Line
3500 3450 3800 3450
Wire Wire Line
3500 5950 3800 5950
Wire Wire Line
4900 3350 5100 3350
Wire Wire Line
4900 5850 5100 5850
$Comp
L R R15
U 1 1 4E571F7D
P 5350 5850
F 0 "R15" V 5430 5850 50 0000 C CNN
F 1 "1k" V 5350 5850 50 0000 C CNN
1 5350 5850
0 -1 -1 0
$EndComp
$Comp
L R R14
U 1 1 4E571F7B
P 5350 3350
F 0 "R14" V 5430 3350 50 0000 C CNN
F 1 "1k" V 5350 3350 50 0000 C CNN
1 5350 3350
0 -1 -1 0
$EndComp
$Comp
L R R13
U 1 1 4E571DEB
P 9850 3750
F 0 "R13" V 9930 3750 50 0000 C CNN
F 1 "100" V 9850 3750 50 0000 C CNN
1 9850 3750
-1 0 0 1
$EndComp
$Comp
L R R12
U 1 1 4E571DE9
P 9650 3750
F 0 "R12" V 9730 3750 50 0000 C CNN
F 1 "100" V 9650 3750 50 0000 C CNN
1 9650 3750
-1 0 0 1
$EndComp
$Comp
L R R11
U 1 1 4E571DE7
P 9450 3750
F 0 "R11" V 9530 3750 50 0000 C CNN
F 1 "100" V 9450 3750 50 0000 C CNN
1 9450 3750
-1 0 0 1
$EndComp
Text GLabel 5800 5850 2 60 Input ~ 0
CH2_RELAY
Text GLabel 5800 3350 2 60 Input ~ 0
CH1_RELAY
$Comp
L GND #PWR015
U 1 1 4E55FF49
P 4600 6250
F 0 "#PWR015" H 4600 6250 30 0001 C CNN
F 1 "GND" H 4600 6180 30 0001 C CNN
1 4600 6250
1 0 0 -1
$EndComp
$Comp
L GND #PWR016
U 1 1 4E55FF3C
P 4600 3750
F 0 "#PWR016" H 4600 3750 30 0001 C CNN
F 1 "GND" H 4600 3680 30 0001 C CNN
1 4600 3750
1 0 0 -1
$EndComp
$Comp
L NPN Q2
U 1 1 4E55FF2E
P 4700 5850
F 0 "Q2" H 4700 5700 50 0000 R CNN
F 1 "NPN" H 4700 6000 50 0000 R CNN
1 4700 5850
-1 0 0 -1
$EndComp
$Comp
L NPN Q1
U 1 1 4E55FF19
P 4700 3350
F 0 "Q1" H 4700 3200 50 0000 R CNN
F 1 "NPN" H 4700 3500 50 0000 R CNN
1 4700 3350
-1 0 0 -1
$EndComp
Text GLabel 9850 3300 1 60 Input ~ 0
LED_MAIN_R
Text GLabel 9650 3300 1 60 Input ~ 0
LED_CH2_R
Text GLabel 9450 3300 1 60 Input ~ 0
LED_CH1_R
Text GLabel 8250 4700 0 60 Input ~ 0
BUT_MAIN
Text GLabel 7500 4600 0 60 Input ~ 0
BUT_CH2
Text GLabel 8250 4500 0 60 Input ~ 0
BUT_CH1
Text GLabel 7500 4400 0 60 Input ~ 0
LED_MAIN_G
Text GLabel 8250 4300 0 60 Input ~ 0
LED_CH2_G
Text GLabel 7500 4200 0 60 Input ~ 0
LED_CH1_G
Text GLabel 3800 5950 2 60 Input ~ 0
CH2_OPT
Text GLabel 3800 3450 2 60 Input ~ 0
CH1_OPT
$Comp
L CONN_6X2 P3
U 1 1 4E55C01D
P 8850 4450
F 0 "P3" H 8850 4800 60 0000 C CNN
F 1 "CONN_6X2" V 8850 4450 60 0000 C CNN
1 8850 4450
1 0 0 -1
$EndComp
$Comp
L GND #PWR017
U 1 1 4E55C01C
P 9450 4900
F 0 "#PWR017" H 9450 4900 30 0001 C CNN
F 1 "GND" H 9450 4830 30 0001 C CNN
1 9450 4900
1 0 0 -1
$EndComp
$Comp
L SPDT-C K3
U 1 1 4E55BFDC
P 3250 2450
F 0 "K3" H 2950 2450 60 0000 C CNN
F 1 "SPDT-C" H 3700 2400 60 0000 C CNN
1 3250 2450
-1 0 0 -1
$EndComp
$Comp
L SPDT-C K4
U 1 1 4E55BFDB
P 3250 4950
F 0 "K4" H 2950 4950 60 0000 C CNN
F 1 "SPDT-C" H 3700 4900 60 0000 C CNN
1 3250 4950
-1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U2
U 1 1 4E55BFDA
P 3150 3350
F 0 "U2" H 3000 3550 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 3150 3125 60 0000 C CNN
1 3150 3350
-1 0 0 -1
$EndComp
$Comp
L OPTO-TRANS-4 U3
U 1 1 4E55BFD9
P 3150 5850
F 0 "U3" H 3000 6050 60 0000 C CNN
F 1 "OPTO-TRANS-4" H 3150 5625 60 0000 C CNN
1 3150 5850
-1 0 0 -1
$EndComp
$Comp
L CONN_3 K1
U 1 1 4E55BFD8
P 1600 2450
F 0 "K1" V 1550 2450 50 0000 C CNN
F 1 "CONN_3" V 1650 2450 40 0000 C CNN
1 1600 2450
-1 0 0 -1
$EndComp
$Comp
L CONN_3 K2
U 1 1 4E55BFD7
P 1600 4950
F 0 "K2" V 1550 4950 50 0000 C CNN
F 1 "CONN_3" V 1650 4950 40 0000 C CNN
1 1600 4950
-1 0 0 1
$EndComp
$Comp
L CONN_2 P2
U 1 1 4E55BFD6
P 1600 3900
F 0 "P2" V 1550 3900 40 0000 C CNN
F 1 "CONN_2" V 1650 3900 40 0000 C CNN
1 1600 3900
-1 0 0 -1
$EndComp
$Comp
L R R2
U 1 1 4E55BFD5
P 4200 4950
F 0 "R2" V 4280 4950 50 0000 C CNN
F 1 "180" V 4200 4950 50 0000 C CNN
1 4200 4950
-1 0 0 1
$EndComp
$Comp
L R R1
U 1 1 4E55BFD4
P 4200 2450
F 0 "R1" V 4280 2450 50 0000 C CNN
F 1 "180" V 4200 2450 50 0000 C CNN
1 4200 2450
-1 0 0 1
$EndComp
$Comp
L DIODE D1
U 1 1 4E55BFD3
P 3850 2450
F 0 "D1" H 3850 2550 40 0000 C CNN
F 1 "DIODE" H 3850 2350 40 0000 C CNN
1 3850 2450
0 -1 -1 0
$EndComp
$Comp
L DIODE D2
U 1 1 4E55BFD2
P 3850 4950
F 0 "D2" H 3850 5050 40 0000 C CNN
F 1 "DIODE" H 3850 4850 40 0000 C CNN
1 3850 4950
0 -1 -1 0
$EndComp
$Comp
L +5V #PWR018
U 1 1 4E55BFD1
P 4050 4300
F 0 "#PWR018" H 4050 4390 20 0001 C CNN
F 1 "+5V" H 4050 4390 50 0000 C CNN
1 4050 4300
1 0 0 -1
$EndComp
$Comp
L +5V #PWR019
U 1 1 4E55BFD0
P 4050 1800
F 0 "#PWR019" H 4050 1890 20 0001 C CNN
F 1 "+5V" H 4050 1890 50 0000 C CNN
1 4050 1800
1 0 0 -1
$EndComp
$EndSCHEMATC

2457
labsw/labsw.brd Normal file

File diff suppressed because it is too large Load Diff

318
labsw/labsw.cmp Normal file
View File

@ -0,0 +1,318 @@
Cmp-Mod V01 Created by CvPCB (2010-12-27 BZR 2685)-unstable date = Fri Aug 26 01:32:40 2011
BeginCmp
TimeStamp = /4E55CAB9;
Reference = C1;
ValeurCmp = 100nF;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55CABB;
Reference = C2;
ValeurCmp = 4.7uF;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E534734;
Reference = CON1;
ValeurCmp = MINI_USB_B;
IdModule = miniUSB_B;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD3;
Reference = D1;
ValeurCmp = DIODE;
IdModule = 0805;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD2;
Reference = D2;
ValeurCmp = DIODE;
IdModule = 0805;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD8;
Reference = K1;
ValeurCmp = CONN_3;
IdModule = HDR-3x1-200mil;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD7;
Reference = K2;
ValeurCmp = CONN_3;
IdModule = HDR-3x1-200mil;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFDC;
Reference = K3;
ValeurCmp = SPDT-C;
IdModule = RELAY;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFDB;
Reference = K4;
ValeurCmp = SPDT-C;
IdModule = RELAY;
EndCmp
BeginCmp
TimeStamp = /4E55CC1E;
Reference = P1;
ValeurCmp = CONN_4;
IdModule = HDR-4x1-100mil;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD6;
Reference = P2;
ValeurCmp = CONN_2;
IdModule = HDR-2x1-100mil;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55C01D;
Reference = P3;
ValeurCmp = CONN_6X2;
IdModule = HDR-6x2-100mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB7;
Reference = P4;
ValeurCmp = CONN_4X2;
IdModule = HDR-4x2-100mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB6;
Reference = P5;
ValeurCmp = CONN_4X2;
IdModule = HDR-4x2-100mil;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55FF19;
Reference = Q1;
ValeurCmp = NPN;
IdModule = SOT-323-CW;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55FF2E;
Reference = Q2;
ValeurCmp = NPN;
IdModule = SOT-323-CW;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD4;
Reference = R1;
ValeurCmp = 180;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD5;
Reference = R2;
ValeurCmp = 180;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB3;
Reference = R3;
ValeurCmp = 180;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB2;
Reference = R4;
ValeurCmp = 180;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB1;
Reference = R5;
ValeurCmp = 180;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB0;
Reference = R6;
ValeurCmp = 180;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFAF;
Reference = R7;
ValeurCmp = 1k;
IdModule = 2512;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFAE;
Reference = R8;
ValeurCmp = 1k;
IdModule = 2512;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFAD;
Reference = R9;
ValeurCmp = 1k;
IdModule = 2512;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFAC;
Reference = R10;
ValeurCmp = 1k;
IdModule = 2512;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E571DE7;
Reference = R11;
ValeurCmp = 100;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E571DE9;
Reference = R12;
ValeurCmp = 100;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E571DEB;
Reference = R13;
ValeurCmp = 100;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E571F7B;
Reference = R14;
ValeurCmp = 1k;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E571F7D;
Reference = R15;
ValeurCmp = 1k;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E5344A0;
Reference = U1;
ValeurCmp = C8051F320;
IdModule = LQFP32;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFDA;
Reference = U2;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BEC4/4E55BFD9;
Reference = U3;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFBA;
Reference = U4;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB9;
Reference = U5;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFBB;
Reference = U6;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB8;
Reference = U7;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFB5;
Reference = U8;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFBD;
Reference = U9;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFBE;
Reference = U10;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55BED6/4E55BFBC;
Reference = U11;
ValeurCmp = OPTO-TRANS-4;
IdModule = DIP-4-300mil;
EndCmp
BeginCmp
TimeStamp = /4E55CA29;
Reference = VR1;
ValeurCmp = VR;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55CA26;
Reference = VR2;
ValeurCmp = VR;
IdModule = 0603;
EndCmp
BeginCmp
TimeStamp = /4E55CA27;
Reference = VR3;
ValeurCmp = VR;
IdModule = 0603;
EndCmp
EndListe

393
labsw/labsw.sch Normal file
View File

@ -0,0 +1,393 @@
EESchema Schematic File Version 2 date Fri Aug 26 01:18:37 2011
LIBS:power
LIBS:device
LIBS:conn
LIBS:c8051f320
LIBS:mini_usb_b
LIBS:opto-trans-4
LIBS:spdt-c
LIBS:labsw-cache
EELAYER 24 0
EELAYER END
$Descr A4 11700 8267
Sheet 1 3
Title "Lab Switch (Overview and CPU)"
Date "26 aug 2011"
Rev "0"
Comp "Werner Almesberger"
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Connection ~ 4250 3750
Wire Wire Line
4250 4550 4250 3750
Connection ~ 3650 4050
Wire Wire Line
3650 3550 3650 4550
Wire Wire Line
7100 5200 7100 5400
Wire Wire Line
7400 5200 7400 5400
Wire Wire Line
7700 5200 7700 5400
Wire Wire Line
8550 4200 8750 4200
Wire Wire Line
8550 3750 8750 3750
Wire Wire Line
8550 3450 8750 3450
Wire Wire Line
7700 2200 7700 2400
Wire Wire Line
7400 2200 7400 2400
Wire Wire Line
7100 2200 7100 2400
Wire Wire Line
6800 2400 6800 2200
Wire Wire Line
5750 3300 5550 3300
Wire Wire Line
5750 3600 5550 3600
Connection ~ 5550 4350
Wire Wire Line
5550 4200 5550 5400
Wire Wire Line
5550 5400 6550 5400
Wire Wire Line
6550 5400 6550 6150
Wire Wire Line
6650 5200 6650 6150
Wire Wire Line
4650 5000 4650 5250
Wire Wire Line
5750 4050 4650 4050
Wire Wire Line
4650 4050 4650 4600
Connection ~ 3950 3900
Wire Wire Line
3950 3900 3950 4550
Connection ~ 5550 4200
Wire Wire Line
5550 4350 5750 4350
Wire Wire Line
3050 3450 3250 3450
Wire Wire Line
5750 3900 3050 3900
Wire Wire Line
3950 5050 3950 5250
Connection ~ 1700 4050
Wire Wire Line
1700 4250 1700 3450
Connection ~ 1700 3600
Wire Wire Line
1900 3600 1700 3600
Wire Wire Line
1700 3450 1900 3450
Wire Wire Line
1700 4050 1900 4050
Wire Wire Line
1700 3900 1900 3900
Connection ~ 1700 3900
Wire Wire Line
4250 5050 4250 5250
Wire Wire Line
3650 5050 3650 5250
Wire Wire Line
5750 3750 3050 3750
Wire Wire Line
3650 4050 3050 4050
Wire Wire Line
5750 4200 3650 4200
Connection ~ 3650 4200
Wire Wire Line
5100 4600 5100 4200
Connection ~ 5100 4200
Wire Wire Line
5100 5000 5100 5250
Wire Wire Line
6800 5200 6800 5400
Wire Wire Line
6800 5400 6750 5400
Wire Wire Line
6750 5400 6750 6150
Wire Wire Line
6450 6150 6450 5600
Wire Wire Line
6450 5600 6300 5600
Wire Wire Line
6300 5600 6300 6150
Wire Wire Line
5750 3450 5550 3450
Wire Wire Line
6650 2400 6650 2200
Wire Wire Line
7250 2200 7250 2400
Wire Wire Line
7550 2200 7550 2400
Wire Wire Line
8550 3300 8750 3300
Wire Wire Line
8550 3600 8750 3600
Wire Wire Line
8550 4350 8750 4350
Wire Wire Line
7550 5200 7550 5400
Wire Wire Line
7250 5200 7250 5400
Wire Wire Line
6950 5200 6950 5400
Wire Wire Line
2450 6050 2450 6250
$Comp
L PWR_FLAG #FLG01
U 1 1 4E5600BD
P 2450 6050
F 0 "#FLG01" H 2450 6320 30 0001 C CNN
F 1 "PWR_FLAG" H 2450 6280 30 0000 C CNN
1 2450 6050
1 0 0 -1
$EndComp
$Comp
L GND #PWR02
U 1 1 4E5600B6
P 2450 6250
F 0 "#PWR02" H 2450 6250 30 0001 C CNN
F 1 "GND" H 2450 6180 30 0001 C CNN
1 2450 6250
1 0 0 -1
$EndComp
$Comp
L +5V #PWR03
U 1 1 4E560053
P 3650 3550
F 0 "#PWR03" H 3650 3640 20 0001 C CNN
F 1 "+5V" H 3650 3640 50 0000 C CNN
1 3650 3550
1 0 0 -1
$EndComp
Text GLabel 6950 5400 3 60 Output ~ 0
OUT_4
Text GLabel 7100 5400 3 60 Output ~ 0
OUT_3
Text GLabel 7250 5400 3 60 Output ~ 0
OUT_2
Text GLabel 7400 5400 3 60 Output ~ 0
OUT_1
Text GLabel 7550 5400 3 60 Output ~ 0
CH2_OPT
Text GLabel 7700 5400 3 60 Output ~ 0
CH2_RELAY
Text GLabel 8750 4350 2 60 Output ~ 0
CH1_OPT
Text GLabel 8750 4200 2 60 Output ~ 0
CH1_RELAY
NoConn ~ 8550 4050
NoConn ~ 8550 3900
Text GLabel 8750 3750 2 60 Output ~ 0
LED_CH2_G
Text GLabel 8750 3600 2 60 Output ~ 0
LED_CH2_R
Text GLabel 8750 3450 2 60 Output ~ 0
LED_CH1_G
Text GLabel 8750 3300 2 60 Output ~ 0
LED_CH1_R
Text GLabel 7700 2200 1 60 Output ~ 0
LED_MAIN_G
Text GLabel 7550 2200 1 60 Output ~ 0
LED_MAIN_R
Text GLabel 6800 2200 1 60 Input ~ 0
IN_4
Text GLabel 7400 2200 1 60 Input ~ 0
BUT_CH2
Text GLabel 7250 2200 1 60 Input ~ 0
BUT_CH1
Text GLabel 7100 2200 1 60 Input ~ 0
BUT_MAIN
NoConn ~ 6950 2400
Text GLabel 6650 2200 1 60 Input ~ 0
IN_3
Text GLabel 5550 3300 0 60 Input ~ 0
IN_2
Text GLabel 5550 3450 0 60 Input ~ 0
IN_1
Text Label 6750 5950 1 60 ~ 0
C2D
Text Label 6650 5950 1 60 ~ 0
C2CK
Text Label 6550 5950 1 60 ~ 0
VBUS
Text Label 6450 5950 1 60 ~ 0
GND
$Comp
L GND #PWR04
U 1 1 4E55CC91
P 6300 6150
F 0 "#PWR04" H 6300 6150 30 0001 C CNN
F 1 "GND" H 6300 6080 30 0001 C CNN
1 6300 6150
1 0 0 -1
$EndComp
$Comp
L CONN_4 P1
U 1 1 4E55CC1E
P 6600 6500
F 0 "P1" V 6550 6500 50 0000 C CNN
F 1 "CONN_4" V 6650 6500 50 0000 C CNN
1 6600 6500
0 -1 1 0
$EndComp
$Comp
L GND #PWR05
U 1 1 4E55CB76
P 5100 5250
F 0 "#PWR05" H 5100 5250 30 0001 C CNN
F 1 "GND" H 5100 5180 30 0001 C CNN
1 5100 5250
1 0 0 -1
$EndComp
$Comp
L GND #PWR06
U 1 1 4E55CB75
P 4650 5250
F 0 "#PWR06" H 4650 5250 30 0001 C CNN
F 1 "GND" H 4650 5180 30 0001 C CNN
1 4650 5250
1 0 0 -1
$EndComp
$Comp
L GND #PWR07
U 1 1 4E55CB70
P 5550 3600
F 0 "#PWR07" H 5550 3600 30 0001 C CNN
F 1 "GND" H 5550 3530 30 0001 C CNN
1 5550 3600
0 1 1 0
$EndComp
NoConn ~ 3050 3600
$Comp
L C C2
U 1 1 4E55CABB
P 5100 4800
F 0 "C2" H 5150 4900 50 0000 L CNN
F 1 "4.7uF" H 5150 4700 50 0000 L CNN
1 5100 4800
1 0 0 -1
$EndComp
$Comp
L C C1
U 1 1 4E55CAB9
P 4650 4800
F 0 "C1" H 4700 4900 50 0000 L CNN
F 1 "100nF" H 4700 4700 50 0000 L CNN
1 4650 4800
1 0 0 -1
$EndComp
$Comp
L GND #PWR08
U 1 1 4E55CA97
P 3650 5250
F 0 "#PWR08" H 3650 5250 30 0001 C CNN
F 1 "GND" H 3650 5180 30 0001 C CNN
1 3650 5250
1 0 0 -1
$EndComp
$Comp
L GND #PWR09
U 1 1 4E55CA95
P 4250 5250
F 0 "#PWR09" H 4250 5250 30 0001 C CNN
F 1 "GND" H 4250 5180 30 0001 C CNN
1 4250 5250
1 0 0 -1
$EndComp
$Comp
L GND #PWR010
U 1 1 4E55CA93
P 3950 5250
F 0 "#PWR010" H 3950 5250 30 0001 C CNN
F 1 "GND" H 3950 5180 30 0001 C CNN
1 3950 5250
1 0 0 -1
$EndComp
$Comp
L GND #PWR011
U 1 1 4E55CA58
P 3250 3450
F 0 "#PWR011" H 3250 3450 30 0001 C CNN
F 1 "GND" H 3250 3380 30 0001 C CNN
1 3250 3450
0 -1 -1 0
$EndComp
$Comp
L GND #PWR012
U 1 1 4E55CA4A
P 1700 4250
F 0 "#PWR012" H 1700 4250 30 0001 C CNN
F 1 "GND" H 1700 4180 30 0001 C CNN
1 1700 4250
1 0 0 -1
$EndComp
$Comp
L VR VR1
U 1 1 4E55CA29
P 3650 4800
F 0 "VR1" V 3730 4800 50 0000 C CNN
F 1 "VR" V 3650 4800 50 0000 C CNN
1 3650 4800
-1 0 0 1
$EndComp
$Comp
L VR VR3
U 1 1 4E55CA27
P 4250 4800
F 0 "VR3" V 4330 4800 50 0000 C CNN
F 1 "VR" V 4250 4800 50 0000 C CNN
1 4250 4800
-1 0 0 1
$EndComp
$Comp
L VR VR2
U 1 1 4E55CA26
P 3950 4800
F 0 "VR2" V 4030 4800 50 0000 C CNN
F 1 "VR" V 3950 4800 50 0000 C CNN
1 3950 4800
-1 0 0 1
$EndComp
Text Notes 3150 1550 0 60 ~ 0
4 Opto In\n4 Opto Out\n(USB)
Text Notes 1600 1550 0 60 ~ 0
2 Relays+2 Opto\n3 R/G LEDs\n3 Buttons
$Sheet
S 2950 1100 1200 1000
U 4E55BED6
F0 "Back" 60
F1 "back.sch" 60
$EndSheet
$Sheet
S 1400 1100 1200 1000
U 4E55BEC4
F0 "Front" 60
F1 "front.sch" 60
$EndSheet
$Comp
L MINI_USB_B CON1
U 1 1 4E534734
P 2450 3750
F 0 "CON1" H 2450 4250 60 0000 C CNN
F 1 "MINI_USB_B" H 2450 3250 60 0000 C CNN
1 2450 3750
-1 0 0 1
$EndComp
$Comp
L C8051F320 U1
U 1 1 4E5344A0
P 7150 3800
F 0 "U1" H 6150 5000 60 0000 C CNN
F 1 "C8051F320" H 7150 3800 60 0000 C CNN
1 7150 3800
1 0 0 -1
$EndComp
$EndSCHEMATC

View File

@ -21,6 +21,18 @@ frame pins {
frame pin . frame pin .
} }
frame marker {
set r = 0.3mm
set clear = 0.2mm
set width = 0.2mm
__0: vec @(-x/2-r-clear-width/2, -P*(R-1)/2)
__1: vec .(0mm, r)
circ __0 . width
}
frame outline { frame outline {
set x = C*P set x = C*P
@ -29,6 +41,7 @@ frame outline {
__0: vec @(x/2, y/2) __0: vec @(x/2, y/2)
__1: vec @(-x/2, -y/2) __1: vec @(-x/2, -y/2)
rect . __0 width rect . __0 width
frame marker @
} }
package "HDR-${C}x${R}-$P" package "HDR-${C}x${R}-$P"