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-07-01" Rev "2" 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 2750 F 0 "#PWR09" H 6400 2600 50 0001 C CNN F 1 "+5V" H 6415 2923 50 0000 C CNN F 2 "" H 6400 2750 50 0001 C CNN F 3 "" H 6400 2750 50 0001 C CNN 1 6400 2750 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 3100 6300 3100 Wire Wire Line 6400 2750 6400 2800 Wire Wire Line 5600 3100 5600 2800 $Comp L Device:D D2 U 1 1 60DC7F7D P 6000 2800 F 0 "D2" H 5950 2700 50 0000 L CNN F 1 "D" V 6000 2650 50 0001 L CNN F 2 "" H 6000 2800 50 0001 C CNN F 3 "~" H 6000 2800 50 0001 C CNN 1 6000 2800 -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 3500 F 0 "RL1" V 6700 3500 50 0000 C CNN F 1 "NA5W-K" V 6800 3500 50 0000 C CNN F 2 "Relay_THT:Relay_DPDT_Omron_G2RL" H 6650 3450 50 0001 L CNN F 3 "https://omronfs.omron.com/en_US/ecb/products/pdf/en-g2rl.pdf" H 6000 3500 50 0001 C CNN 1 6000 3500 0 1 1 0 $EndComp $Comp L con:USB_A_mine J3 U 1 1 60EDFCAC P 7050 4250 F 0 "J3" H 7050 4717 50 0000 C CNN F 1 "USB Desktop" H 7050 4626 50 0000 C CNN F 2 "" H 6900 4200 50 0001 C CNN F 3 " ~" H 6900 4200 50 0001 C CNN 1 7050 4250 1 0 0 -1 $EndComp $Comp L power:GND #PWR012 U 1 1 60F0029F P 7200 4650 F 0 "#PWR012" H 7200 4400 50 0001 C CNN F 1 "GND" H 7205 4477 50 0000 C CNN F 2 "" H 7200 4650 50 0001 C CNN F 3 "" H 7200 4650 50 0001 C CNN 1 7200 4650 1 0 0 -1 $EndComp $Comp L Device:R R1 U 1 1 60F15B5B P 4600 1800 F 0 "R1" V 4500 1800 50 0000 C CNN F 1 "1.5k" V 4600 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 3650 F 0 "D4" H 7600 3750 50 0000 L CNN F 1 "D" V 7695 3730 50 0001 L CNN F 2 "" H 7650 3650 50 0001 C CNN F 3 "~" H 7650 3650 50 0001 C CNN 1 7650 3650 -1 0 0 1 $EndComp $Comp L con:USB_A_mine J1 U 1 1 60F40C6A P 5600 4800 F 0 "J1" H 5600 5267 50 0000 C CNN F 1 "USB Keyboard" H 5600 5176 50 0000 C CNN F 2 "" H 5450 4750 50 0001 C CNN F 3 " ~" H 5450 4750 50 0001 C CNN 1 5600 4800 1 0 0 -1 $EndComp NoConn ~ 5650 5200 NoConn ~ 7100 4650 NoConn ~ 4200 3000 NoConn ~ 4200 2900 NoConn ~ 4200 2500 Wire Wire Line 5700 3900 5000 3900 Wire Wire Line 5100 3500 5700 3500 $Comp L power:GND #PWR07 U 1 1 60F8EB53 P 5750 5200 F 0 "#PWR07" H 5750 4950 50 0001 C CNN F 1 "GND" H 5850 5200 50 0000 C CNN F 2 "" H 5750 5200 50 0001 C CNN F 3 "" H 5750 5200 50 0001 C CNN 1 5750 5200 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 3450 $Comp L power:GND #PWR010 U 1 1 60EFF2D1 P 7200 3450 F 0 "#PWR010" H 7200 3200 50 0001 C CNN F 1 "GND" H 7205 3277 50 0000 C CNN F 2 "" H 7200 3450 50 0001 C CNN F 3 "" H 7200 3450 50 0001 C CNN 1 7200 3450 1 0 0 -1 $EndComp $Comp L con:USB_A_mine J2 U 1 1 60EDE6D2 P 7050 3050 F 0 "J2" H 7050 3517 50 0000 C CNN F 1 "USB Laptop" H 7050 3426 50 0000 C CNN F 2 "" H 6900 3000 50 0001 C CNN F 3 " ~" H 6900 3000 50 0001 C CNN 1 7050 3050 1 0 0 -1 $EndComp Wire Wire Line 5050 1800 5250 1800 Wire Wire Line 7350 2850 7500 2850 $Comp L power:+5V #PWR011 U 1 1 610A68D3 P 8000 3500 F 0 "#PWR011" H 8000 3350 50 0001 C CNN F 1 "+5V" H 8015 3673 50 0000 C CNN F 2 "" H 8000 3500 50 0001 C CNN F 3 "" H 8000 3500 50 0001 C CNN 1 8000 3500 1 0 0 -1 $EndComp $Comp L power:+5V #PWR08 U 1 1 610CD07F P 6050 4600 F 0 "#PWR08" H 6050 4450 50 0001 C CNN F 1 "+5V" H 6065 4773 50 0000 C CNN F 2 "" H 6050 4600 50 0001 C CNN F 3 "" H 6050 4600 50 0001 C CNN 1 6050 4600 1 0 0 -1 $EndComp Wire Wire Line 5900 4600 6050 4600 Wire Wire Line 6750 3150 6400 3150 Wire Wire Line 6400 3150 6400 3400 Wire Wire Line 6400 3400 6300 3400 Wire Wire Line 6750 3250 6450 3250 Wire Wire Line 6450 3250 6450 3800 Wire Wire Line 6450 3800 6300 3800 Wire Wire Line 6750 4450 6450 4450 Wire Wire Line 6450 4450 6450 4000 Wire Wire Line 6450 4000 6300 4000 Wire Wire Line 6750 4350 6500 4350 Wire Wire Line 6500 4350 6500 3600 Wire Wire Line 6500 3600 6300 3600 Wire Wire Line 7500 4050 7350 4050 Wire Wire Line 7500 4050 7500 3650 Wire Wire Line 7500 3350 7500 2850 Wire Wire Line 7800 3350 7800 3500 Wire Wire Line 8000 3500 7800 3500 Connection ~ 7800 3500 Wire Wire Line 7800 3500 7800 3650 $Comp L Device:R R2 U 1 1 60820C8C P 4700 2800 F 0 "R2" V 4600 2800 50 0000 C CNN F 1 "1k" V 4700 2800 50 0000 C CNN F 2 "" V 4630 2800 50 0001 C CNN F 3 "~" H 4700 2800 50 0001 C CNN 1 4700 2800 0 -1 -1 0 $EndComp $Comp L Device:Q_NPN_BCE Q1 U 1 1 608198CD P 4850 3000 F 0 "Q1" V 5100 2950 50 0000 L CNN F 1 "Q_NPN_BCE" V 5200 2800 50 0000 L CNN F 2 "" H 5050 3100 50 0001 C CNN F 3 "~" H 4850 3000 50 0001 C CNN 1 4850 3000 0 1 1 0 $EndComp $Comp L power:GND #PWR? U 1 1 61146F6E P 4500 3100 F 0 "#PWR?" H 4500 2850 50 0001 C CNN F 1 "GND" H 4505 2927 50 0000 C CNN F 2 "" H 4500 3100 50 0001 C CNN F 3 "" H 4500 3100 50 0001 C CNN 1 4500 3100 1 0 0 -1 $EndComp Wire Wire Line 4650 3100 4500 3100 Connection ~ 5600 3100 Wire Wire Line 5600 3100 5700 3100 Wire Wire Line 5100 4900 5300 4900 Wire Wire Line 5000 5000 5300 5000 Wire Wire Line 4200 2800 4550 2800 Wire Wire Line 5050 3100 5600 3100 Wire Wire Line 6150 2800 6400 2800 Connection ~ 6400 2800 Wire Wire Line 6400 2800 6400 3100 Wire Wire Line 5850 2800 5600 2800 $Comp L Device:D D3 U 1 1 610C166D P 7650 3350 F 0 "D3" H 7600 3450 50 0000 L CNN F 1 "D" V 7695 3430 50 0001 L CNN F 2 "" H 7650 3350 50 0001 C CNN F 3 "~" H 7650 3350 50 0001 C CNN 1 7650 3350 -1 0 0 1 $EndComp Wire Wire Line 5000 3900 5000 5000 Wire Wire Line 5100 3500 5100 4900 $EndSCHEMATC