EESchema Schematic File Version 2  date Fri Sep 30 02:13:49 2011
LIBS:power
LIBS:device
LIBS:conn
LIBS:c8051f320
LIBS:mini_usb_b
LIBS:opto-trans-4
LIBS:spdt-c
LIBS:dual_diode
LIBS:opto-trans-8
LIBS:labsw-cache
EELAYER 24  0
EELAYER END
$Descr A4 11700 8267
Sheet 2 4
Title "Lab Switch (CH1/2)"
Date "30 sep 2011"
Rev "1"
Comp "Werner Almesberger"
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L OPTO-TRANS-4 U7
U 1 1 4E854A18
P 5300 5650
F 0 "U7" H 5150 5850 60  0000 C CNN
F 1 "OPTO-TRANS-4" H 5300 5425 60  0000 C CNN
	1    5300 5650
	-1   0    0    -1  
$EndComp
$Comp
L OPTO-TRANS-4 U6
U 1 1 4E854A0D
P 5300 3150
F 0 "U6" H 5150 3350 60  0000 C CNN
F 1 "OPTO-TRANS-4" H 5300 2925 60  0000 C CNN
	1    5300 3150
	-1   0    0    -1  
$EndComp
Wire Wire Line
	2900 5550 4900 5550
Connection ~ 6000 2750
Wire Wire Line
	6000 2500 6000 2750
Wire Wire Line
	7450 5650 7650 5650
Wire Wire Line
	7450 3150 7650 3150
Wire Wire Line
	5650 5750 6350 5750
Wire Wire Line
	5650 3250 6350 3250
Wire Wire Line
	7150 2750 5500 2750
Wire Wire Line
	5650 3050 6750 3050
Wire Wire Line
	7150 2750 7150 2950
Wire Wire Line
	7150 3350 7150 3550
Wire Wire Line
	6750 5000 6750 5550
Wire Wire Line
	5500 5050 5500 5250
Connection ~ 6600 1750
Wire Wire Line
	6600 1600 6600 1750
Wire Wire Line
	6750 2000 6750 1750
Wire Wire Line
	6750 1750 5500 1750
Wire Wire Line
	5500 1750 5500 1950
Connection ~ 4500 2750
Wire Wire Line
	4900 3250 4500 3250
Wire Wire Line
	4500 3250 4500 2250
Wire Wire Line
	2950 4750 4500 4750
Wire Wire Line
	4500 5250 5300 5250
Wire Wire Line
	5300 5250 5300 5050
Connection ~ 5300 4050
Wire Wire Line
	5300 4450 5300 4050
Connection ~ 5100 4250
Wire Wire Line
	5100 4450 5100 4250
Connection ~ 5100 1750
Wire Wire Line
	5100 1950 5100 1750
Connection ~ 5200 2750
Wire Wire Line
	5200 2550 5200 2750
Connection ~ 5300 1550
Wire Wire Line
	5300 1950 5300 1550
Wire Wire Line
	5400 1950 5400 1550
Wire Wire Line
	5400 1550 4500 1550
Wire Wire Line
	4500 1550 4500 2150
Wire Wire Line
	4500 2150 2950 2150
Wire Wire Line
	5300 2550 5300 2750
Wire Wire Line
	5300 2750 4500 2750
Wire Wire Line
	4500 2250 2950 2250
Wire Wire Line
	2950 2350 4700 2350
Wire Wire Line
	5200 1750 4700 1750
Wire Wire Line
	5200 1750 5200 1950
Wire Wire Line
	5200 4450 5200 4250
Wire Wire Line
	5200 4250 4700 4250
Wire Wire Line
	4700 4250 4700 4850
Wire Wire Line
	4700 4850 2950 4850
Wire Wire Line
	4500 4050 5400 4050
Wire Wire Line
	4500 4050 4500 4650
Wire Wire Line
	4500 4650 2950 4650
Wire Wire Line
	5400 4050 5400 4450
Wire Wire Line
	5200 5050 5200 5250
Connection ~ 5200 5250
Wire Wire Line
	4700 1750 4700 2350
Wire Wire Line
	4500 4750 4500 5750
Wire Wire Line
	4500 5750 4900 5750
Connection ~ 4500 5250
Wire Wire Line
	5500 4450 5500 4250
Wire Wire Line
	5500 4250 6750 4250
Wire Wire Line
	6750 4250 6750 4500
Wire Wire Line
	6600 4100 6600 4250
Connection ~ 6600 4250
Wire Wire Line
	5500 2750 5500 2550
Wire Wire Line
	6750 3050 6750 2500
Wire Wire Line
	7150 6050 7150 5850
Wire Wire Line
	7150 5450 7150 5250
Wire Wire Line
	6750 5550 5650 5550
Wire Wire Line
	7150 5250 5500 5250
Wire Wire Line
	8150 3150 8350 3150
Wire Wire Line
	8150 5650 8350 5650
Wire Wire Line
	6200 2000 6200 1750
Connection ~ 6200 1750
Wire Wire Line
	6200 4250 6200 4500
Connection ~ 6200 4250
Wire Wire Line
	6000 5000 6000 5250
Connection ~ 6000 5250
Wire Wire Line
	2900 3050 4900 3050
$Comp
L CONN_1 P6
U 1 1 4E8089CC
P 2750 5550
F 0 "P6" H 2830 5550 40  0000 L CNN
F 1 "CONN_1" H 2750 5605 30  0001 C CNN
	1    2750 5550
	-1   0    0    1   
$EndComp
$Comp
L CONN_1 P5
U 1 1 4E8089C8
P 2750 3050
F 0 "P5" H 2830 3050 40  0000 L CNN
F 1 "CONN_1" H 2750 3105 30  0001 C CNN
	1    2750 3050
	-1   0    0    1   
$EndComp
$Comp
L +5V #PWR018
U 1 1 4E6BEEF5
P 6600 1600
F 0 "#PWR018" H 6600 1690 20  0001 C CNN
F 1 "+5V" H 6600 1690 50  0000 C CNN
	1    6600 1600
	1    0    0    -1  
$EndComp
$Comp
L +5V #PWR019
U 1 1 4E6BEEF4
P 6600 4100
F 0 "#PWR019" H 6600 4190 20  0001 C CNN
F 1 "+5V" H 6600 4190 50  0000 C CNN
	1    6600 4100
	1    0    0    -1  
$EndComp
$Comp
L R R19
U 1 1 4E6BEEF3
P 6750 2250
F 0 "R19" V 6830 2250 50  0000 C CNN
F 1 "150" V 6750 2250 50  0000 C CNN
	1    6750 2250
	-1   0    0    1   
$EndComp
$Comp
L R R20
U 1 1 4E6BEEF2
P 6750 4750
F 0 "R20" V 6830 4750 50  0000 C CNN
F 1 "150" V 6750 4750 50  0000 C CNN
	1    6750 4750
	-1   0    0    1   
$EndComp
$Comp
L CONN_3 K2
U 1 1 4E6BEEF0
P 2600 4750
F 0 "K2" V 2550 4750 50  0000 C CNN
F 1 "CONN_3" V 2650 4750 40  0000 C CNN
	1    2600 4750
	-1   0    0    -1  
$EndComp
$Comp
L CONN_3 K1
U 1 1 4E6BEEEF
P 2600 2250
F 0 "K1" V 2550 2250 50  0000 C CNN
F 1 "CONN_3" V 2650 2250 40  0000 C CNN
	1    2600 2250
	-1   0    0    -1  
$EndComp
$Comp
L SPDT-C K4
U 1 1 4E6BEEEE
P 5400 4750
F 0 "K4" H 5100 4750 60  0000 C CNN
F 1 "SPDT-C" H 5850 4700 60  0000 C CNN
	1    5400 4750
	-1   0    0    -1  
$EndComp
$Comp
L SPDT-C K3
U 1 1 4E6BEEED
P 5400 2250
F 0 "K3" H 5100 2250 60  0000 C CNN
F 1 "SPDT-C" H 5850 2200 60  0000 C CNN
	1    5400 2250
	-1   0    0    -1  
$EndComp
Text GLabel 6350 3250 2    60   Input ~ 0
CH1_OPT
Text GLabel 6350 5750 2    60   Input ~ 0
CH2_OPT
$Comp
L NPN Q1
U 1 1 4E6BEEEC
P 7250 3150
F 0 "Q1" H 7250 3000 50  0000 R CNN
F 1 "NPN" H 7250 3300 50  0000 R CNN
	1    7250 3150
	-1   0    0    -1  
$EndComp
$Comp
L NPN Q2
U 1 1 4E6BEEEB
P 7250 5650
F 0 "Q2" H 7250 5500 50  0000 R CNN
F 1 "NPN" H 7250 5800 50  0000 R CNN
	1    7250 5650
	-1   0    0    -1  
$EndComp
$Comp
L GND #PWR020
U 1 1 4E6BEEEA
P 7150 3550
F 0 "#PWR020" H 7150 3550 30  0001 C CNN
F 1 "GND" H 7150 3480 30  0001 C CNN
	1    7150 3550
	1    0    0    -1  
$EndComp
$Comp
L GND #PWR021
U 1 1 4E6BEEE9
P 7150 6050
F 0 "#PWR021" H 7150 6050 30  0001 C CNN
F 1 "GND" H 7150 5980 30  0001 C CNN
	1    7150 6050
	1    0    0    -1  
$EndComp
Text GLabel 8350 3150 2    60   Input ~ 0
CH1_RELAY
Text GLabel 8350 5650 2    60   Input ~ 0
CH2_RELAY
$Comp
L R R21
U 1 1 4E6BEEE8
P 7900 3150
F 0 "R21" V 7980 3150 50  0000 C CNN
F 1 "1k" V 7900 3150 50  0000 C CNN
	1    7900 3150
	0    -1   -1   0   
$EndComp
$Comp
L R R22
U 1 1 4E6BEEE7
P 7900 5650
F 0 "R22" V 7980 5650 50  0000 C CNN
F 1 "1k" V 7900 5650 50  0000 C CNN
	1    7900 5650
	0    -1   -1   0   
$EndComp
Text Label 3150 2150 0    60   ~ 0
EXT_CH1_OFF
Text Label 3150 2250 0    60   ~ 0
EXT_CH1_COM
Text Label 3150 2350 0    60   ~ 0
EXT_CH1_ON
Text Label 3150 4650 0    60   ~ 0
EXT_CH2_OFF
Text Label 3150 4750 0    60   ~ 0
EXT_CH2_COM
Text Label 3150 4850 0    60   ~ 0
EXT_CH2_ON
Text Label 3150 3050 0    60   ~ 0
EXT_CH1_OPT
Text Label 3150 5550 0    60   ~ 0
EXT_CH2_OPT
$Comp
L DS D1
U 1 1 4E6BEEE6
P 6200 2250
F 0 "D1" H 6000 2400 40  0000 C CNN
F 1 "DS" H 6200 2100 40  0000 C CNN
	1    6200 2250
	1    0    0    -1  
$EndComp
$Comp
L DS D2
U 1 1 4E6BEEE5
P 6200 4750
F 0 "D2" H 6000 4900 40  0000 C CNN
F 1 "DS" H 6200 4600 40  0000 C CNN
	1    6200 4750
	1    0    0    -1  
$EndComp
NoConn ~ 6400 2500
NoConn ~ 6400 5000
$EndSCHEMATC