Browse Source

Initial commit

master
Lukas 3 years ago
commit
36a1b71f87
4 changed files with 436 additions and 0 deletions
  1. +5
    -0
      README.md
  2. BIN
      case.jpg
  3. BIN
      kbdswitch.pdf
  4. +431
    -0
      kbdswitch.sch

+ 5
- 0
README.md View File

@@ -0,0 +1,5 @@
Design files for a DIY keyboard (USB) switching thing to use one peripheral between two devices.

<img src="https://git.lukasschwarz.org/lukas/kbdswitch/media/branch/master/case.jpg" width="40%" alt="Picture of the USB switcher inside its case">

[Link to the more detailed article](https://lukasschwarz.org/projects/kbdswitch/)

BIN
case.jpg View File

Before After
Width: 2331  |  Height: 1455  |  Size: 440 KiB

BIN
kbdswitch.pdf View File


+ 431
- 0
kbdswitch.sch View File

@@ -0,0 +1,431 @@
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title "A quick and easy keyboard switch thingy"
Date "2021-04-23"
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L MCU_Microchip_ATtiny:ATtiny45-20MU U1
U 1 1 60817B55
P 3600 2800
F 0 "U1" H 4000 3500 50 0000 R CNN
F 1 "ATtiny45-20MU" H 4250 3400 50 0000 R CNN
F 2 "Package_DFN_QFN:QFN-20-1EP_4x4mm_P0.5mm_EP2.6x2.6mm" H 3600 2800 50 0001 C CIN
F 3 "http://ww1.microchip.com/downloads/en/DeviceDoc/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf" H 3600 2800 50 0001 C CNN
1 3600 2800
1 0 0 -1
$EndComp
$Comp
L Switch:SW_Push SW1
U 1 1 6081DA60
P 5550 2450
F 0 "SW1" H 5550 2735 50 0000 C CNN
F 1 "SW_Push" H 5550 2644 50 0000 C CNN
F 2 "" H 5550 2650 50 0001 C CNN
F 3 "~" H 5550 2650 50 0001 C CNN
1 5550 2450
1 0 0 -1
$EndComp
$Comp
L power:+5V #PWR01
U 1 1 6082C7D1
P 3600 2050
F 0 "#PWR01" H 3600 1900 50 0001 C CNN
F 1 "+5V" H 3615 2223 50 0000 C CNN
F 2 "" H 3600 2050 50 0001 C CNN
F 3 "" H 3600 2050 50 0001 C CNN
1 3600 2050
1 0 0 -1
$EndComp
Wire Wire Line
3600 2050 3600 2150
$Comp
L power:GND #PWR02
U 1 1 608351E4
P 3600 3600
F 0 "#PWR02" H 3600 3350 50 0001 C CNN
F 1 "GND" H 3605 3427 50 0000 C CNN
F 2 "" H 3600 3600 50 0001 C CNN
F 3 "" H 3600 3600 50 0001 C CNN
1 3600 3600
1 0 0 -1
$EndComp
Wire Wire Line
3600 3400 3600 3450
$Comp
L power:GND #PWR05
U 1 1 60854B60
P 5250 1800
F 0 "#PWR05" H 5250 1550 50 0001 C CNN
F 1 "GND" H 5255 1627 50 0000 C CNN
F 2 "" H 5250 1800 50 0001 C CNN
F 3 "" H 5250 1800 50 0001 C CNN
1 5250 1800
1 0 0 -1
$EndComp
$Comp
L power:+5V #PWR09
U 1 1 6087A4BC
P 6400 2950
F 0 "#PWR09" H 6400 2800 50 0001 C CNN
F 1 "+5V" H 6415 3123 50 0000 C CNN
F 2 "" H 6400 2950 50 0001 C CNN
F 3 "" H 6400 2950 50 0001 C CNN
1 6400 2950
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C1
U 1 1 60899F12
P 2950 2800
F 0 "C1" H 2650 2900 50 0000 L CNN
F 1 "100nF" H 2600 2800 50 0000 L CNN
F 2 "" H 2950 2800 50 0001 C CNN
F 3 "~" H 2950 2800 50 0001 C CNN
1 2950 2800
1 0 0 -1
$EndComp
Wire Wire Line
6400 3300 6300 3300
Wire Wire Line
6400 2950 6400 3000
Wire Wire Line
5600 3300 5600 3000
$Comp
L Device:D D2
U 1 1 60DC7F7D
P 6000 3000
F 0 "D2" V 6000 2800 50 0000 L CNN
F 1 "D" V 6000 2850 50 0001 L CNN
F 2 "" H 6000 3000 50 0001 C CNN
F 3 "~" H 6000 3000 50 0001 C CNN
1 6000 3000
-1 0 0 1
$EndComp
Wire Wire Line
2950 2900 2950 3450
Wire Wire Line
2950 3450 3600 3450
Connection ~ 3600 3450
Wire Wire Line
3600 3450 3600 3600
Wire Wire Line
2950 2700 2950 2150
Wire Wire Line
2950 2150 3600 2150
Connection ~ 3600 2150
Wire Wire Line
3600 2150 3600 2200
$Comp
L Relay:G2RL-2-ASI-DC5 RL1
U 1 1 60DB8B13
P 6000 3700
F 0 "RL1" V 6700 3700 50 0000 C CNN
F 1 "NA5W-K" V 6800 3700 50 0000 C CNN
F 2 "Relay_THT:Relay_DPDT_Omron_G2RL" H 6650 3650 50 0001 L CNN
F 3 "https://omronfs.omron.com/en_US/ecb/products/pdf/en-g2rl.pdf" H 6000 3700 50 0001 C CNN
1 6000 3700
0 1 1 0
$EndComp
$Comp
L con:USB_A_mine J3
U 1 1 60EDFCAC
P 7050 4450
F 0 "J3" H 7050 4917 50 0000 C CNN
F 1 "USB Desktop" H 7050 4826 50 0000 C CNN
F 2 "" H 6900 4400 50 0001 C CNN
F 3 " ~" H 6900 4400 50 0001 C CNN
1 7050 4450
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR012
U 1 1 60F0029F
P 7200 4850
F 0 "#PWR012" H 7200 4600 50 0001 C CNN
F 1 "GND" H 7205 4677 50 0000 C CNN
F 2 "" H 7200 4850 50 0001 C CNN
F 3 "" H 7200 4850 50 0001 C CNN
1 7200 4850
1 0 0 -1
$EndComp
$Comp
L Device:R R1
U 1 1 60F15B5B
P 4600 1800
F 0 "R1" V 4393 1800 50 0000 C CNN
F 1 "1.5k" V 4484 1800 50 0000 C CNN
F 2 "" V 4530 1800 50 0001 C CNN
F 3 "~" H 4600 1800 50 0001 C CNN
1 4600 1800
0 -1 -1 0
$EndComp
$Comp
L Device:D D4
U 1 1 60F1DBFC
P 7650 3850
F 0 "D4" V 7604 3930 50 0000 L CNN
F 1 "D" V 7695 3930 50 0000 L CNN
F 2 "" H 7650 3850 50 0001 C CNN
F 3 "~" H 7650 3850 50 0001 C CNN
1 7650 3850
-1 0 0 1
$EndComp
$Comp
L con:USB_A_mine J1
U 1 1 60F40C6A
P 5600 5100
F 0 "J1" H 5600 5567 50 0000 C CNN
F 1 "USB Keyboard" H 5600 5476 50 0000 C CNN
F 2 "" H 5450 5050 50 0001 C CNN
F 3 " ~" H 5450 5050 50 0001 C CNN
1 5600 5100
1 0 0 -1
$EndComp
NoConn ~ 5650 5500
NoConn ~ 7100 4850
NoConn ~ 4200 2800
NoConn ~ 4200 2900
NoConn ~ 4200 2500
Wire Wire Line
5700 4100 5000 4100
Wire Wire Line
5100 3700 5700 3700
$Comp
L power:GND #PWR07
U 1 1 60F8EB53
P 5750 5500
F 0 "#PWR07" H 5750 5250 50 0001 C CNN
F 1 "GND" H 5755 5327 50 0000 C CNN
F 2 "" H 5750 5500 50 0001 C CNN
F 3 "" H 5750 5500 50 0001 C CNN
1 5750 5500
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR06
U 1 1 60FBECFC
P 5850 2450
F 0 "#PWR06" H 5850 2200 50 0001 C CNN
F 1 "GND" H 5855 2277 50 0000 C CNN
F 2 "" H 5850 2450 50 0001 C CNN
F 3 "" H 5850 2450 50 0001 C CNN
1 5850 2450
1 0 0 -1
$EndComp
$Comp
L Device:LED D1
U 1 1 60FD185C
P 4900 1800
F 0 "D1" H 4893 2017 50 0000 C CNN
F 1 "LED" H 4893 1926 50 0000 C CNN
F 2 "" H 4900 1800 50 0001 C CNN
F 3 "~" H 4900 1800 50 0001 C CNN
1 4900 1800
-1 0 0 1
$EndComp
Wire Wire Line
4200 2600 4450 2600
Wire Wire Line
5750 2450 5850 2450
Wire Wire Line
4950 2450 4850 2450
$Comp
L power:+5V #PWR03
U 1 1 60FF8347
P 4850 2450
F 0 "#PWR03" H 4850 2300 50 0001 C CNN
F 1 "+5V" H 4865 2623 50 0000 C CNN
F 2 "" H 4850 2450 50 0001 C CNN
F 3 "" H 4850 2450 50 0001 C CNN
1 4850 2450
1 0 0 -1
$EndComp
$Comp
L Device:R R3
U 1 1 60FF4D2B
P 5100 2450
F 0 "R3" V 4893 2450 50 0001 C CNN
F 1 "internal" V 4984 2450 50 0000 C CNN
F 2 "" V 5030 2450 50 0001 C CNN
F 3 "~" H 5100 2450 50 0001 C CNN
1 5100 2450
0 -1 -1 0
$EndComp
Wire Wire Line
5250 2450 5300 2450
Wire Wire Line
4200 2700 5300 2700
Wire Wire Line
5300 2700 5300 2450
Connection ~ 5300 2450
Wire Wire Line
5300 2450 5350 2450
Wire Wire Line
4450 1800 4450 2600
NoConn ~ 7100 3650
$Comp
L power:GND #PWR010
U 1 1 60EFF2D1
P 7200 3650
F 0 "#PWR010" H 7200 3400 50 0001 C CNN
F 1 "GND" H 7205 3477 50 0000 C CNN
F 2 "" H 7200 3650 50 0001 C CNN
F 3 "" H 7200 3650 50 0001 C CNN
1 7200 3650
1 0 0 -1
$EndComp
$Comp
L con:USB_A_mine J2
U 1 1 60EDE6D2
P 7050 3250
F 0 "J2" H 7050 3717 50 0000 C CNN
F 1 "USB Laptop" H 7050 3626 50 0000 C CNN
F 2 "" H 6900 3200 50 0001 C CNN
F 3 " ~" H 6900 3200 50 0001 C CNN
1 7050 3250
1 0 0 -1
$EndComp
Wire Wire Line
5050 1800 5250 1800
Wire Wire Line
7350 3050 7500 3050
$Comp
L power:+5V #PWR011
U 1 1 610A68D3
P 8000 3700
F 0 "#PWR011" H 8000 3550 50 0001 C CNN
F 1 "+5V" H 8015 3873 50 0000 C CNN
F 2 "" H 8000 3700 50 0001 C CNN
F 3 "" H 8000 3700 50 0001 C CNN
1 8000 3700
1 0 0 -1
$EndComp
$Comp
L Device:D D3
U 1 1 610C166D
P 7650 3550
F 0 "D3" V 7604 3630 50 0000 L CNN
F 1 "D" V 7695 3630 50 0000 L CNN
F 2 "" H 7650 3550 50 0001 C CNN
F 3 "~" H 7650 3550 50 0001 C CNN
1 7650 3550
-1 0 0 1
$EndComp
$Comp
L power:+5V #PWR08
U 1 1 610CD07F
P 6050 4900
F 0 "#PWR08" H 6050 4750 50 0001 C CNN
F 1 "+5V" H 6065 5073 50 0000 C CNN
F 2 "" H 6050 4900 50 0001 C CNN
F 3 "" H 6050 4900 50 0001 C CNN
1 6050 4900
1 0 0 -1
$EndComp
Wire Wire Line
5900 4900 6050 4900
Wire Wire Line
6750 3350 6400 3350
Wire Wire Line
6400 3350 6400 3600
Wire Wire Line
6400 3600 6300 3600
Wire Wire Line
6750 3450 6450 3450
Wire Wire Line
6450 3450 6450 4000
Wire Wire Line
6450 4000 6300 4000
Wire Wire Line
6750 4650 6450 4650
Wire Wire Line
6450 4650 6450 4200
Wire Wire Line
6450 4200 6300 4200
Wire Wire Line
6750 4550 6500 4550
Wire Wire Line
6500 4550 6500 3800
Wire Wire Line
6500 3800 6300 3800
Wire Wire Line
7500 4250 7350 4250
Wire Wire Line
7500 4250 7500 3850
Wire Wire Line
7500 3550 7500 3050
Wire Wire Line
7800 3550 7800 3700
Wire Wire Line
8000 3700 7800 3700
Connection ~ 7800 3700
Wire Wire Line
7800 3700 7800 3850
$Comp
L Device:R R2
U 1 1 60820C8C
P 4700 3000
F 0 "R2" V 4900 3000 50 0000 C CNN
F 1 "1k" V 4800 3000 50 0000 C CNN
F 2 "" V 4630 3000 50 0001 C CNN
F 3 "~" H 4700 3000 50 0001 C CNN
1 4700 3000
0 -1 -1 0
$EndComp
$Comp
L Device:Q_NPN_BCE Q1
U 1 1 608198CD
P 4850 3200
F 0 "Q1" V 5100 3150 50 0000 L CNN
F 1 "Q_NPN_BCE" V 5200 3000 50 0000 L CNN
F 2 "" H 5050 3300 50 0001 C CNN
F 3 "~" H 4850 3200 50 0001 C CNN
1 4850 3200
0 1 1 0
$EndComp
$Comp
L power:GND #PWR?
U 1 1 61146F6E
P 4500 3300
F 0 "#PWR?" H 4500 3050 50 0001 C CNN
F 1 "GND" H 4505 3127 50 0000 C CNN
F 2 "" H 4500 3300 50 0001 C CNN
F 3 "" H 4500 3300 50 0001 C CNN
1 4500 3300
1 0 0 -1
$EndComp
Wire Wire Line
4650 3300 4500 3300
Connection ~ 5600 3300
Wire Wire Line
5600 3300 5700 3300
Wire Wire Line
5100 5200 5300 5200
Wire Wire Line
5000 5300 5300 5300
Wire Wire Line
4200 3000 4550 3000
Wire Wire Line
5050 3300 5600 3300
Wire Wire Line
5100 3700 5100 5200
Wire Wire Line
5000 4100 5000 5300
Wire Wire Line
6150 3000 6400 3000
Connection ~ 6400 3000
Wire Wire Line
6400 3000 6400 3300
Wire Wire Line
5850 3000 5600 3000
$EndSCHEMATC

Loading…
Cancel
Save