A quick an easy keyboard switching thingy.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

432 lines
9.0 KiB

  1. EESchema Schematic File Version 4
  2. EELAYER 30 0
  3. EELAYER END
  4. $Descr A4 11693 8268
  5. encoding utf-8
  6. Sheet 1 1
  7. Title "A quick and easy keyboard switch thingy"
  8. Date "2021-07-01"
  9. Rev "2"
  10. Comp ""
  11. Comment1 ""
  12. Comment2 ""
  13. Comment3 ""
  14. Comment4 ""
  15. $EndDescr
  16. $Comp
  17. L MCU_Microchip_ATtiny:ATtiny45-20MU U1
  18. U 1 1 60817B55
  19. P 3600 2800
  20. F 0 "U1" H 4000 3500 50 0000 R CNN
  21. F 1 "ATtiny45-20MU" H 4250 3400 50 0000 R CNN
  22. F 2 "Package_DFN_QFN:QFN-20-1EP_4x4mm_P0.5mm_EP2.6x2.6mm" H 3600 2800 50 0001 C CIN
  23. 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
  24. 1 3600 2800
  25. 1 0 0 -1
  26. $EndComp
  27. $Comp
  28. L Switch:SW_Push SW1
  29. U 1 1 6081DA60
  30. P 5550 2450
  31. F 0 "SW1" H 5550 2735 50 0000 C CNN
  32. F 1 "SW_Push" H 5550 2644 50 0000 C CNN
  33. F 2 "" H 5550 2650 50 0001 C CNN
  34. F 3 "~" H 5550 2650 50 0001 C CNN
  35. 1 5550 2450
  36. 1 0 0 -1
  37. $EndComp
  38. $Comp
  39. L power:+5V #PWR01
  40. U 1 1 6082C7D1
  41. P 3600 2050
  42. F 0 "#PWR01" H 3600 1900 50 0001 C CNN
  43. F 1 "+5V" H 3615 2223 50 0000 C CNN
  44. F 2 "" H 3600 2050 50 0001 C CNN
  45. F 3 "" H 3600 2050 50 0001 C CNN
  46. 1 3600 2050
  47. 1 0 0 -1
  48. $EndComp
  49. Wire Wire Line
  50. 3600 2050 3600 2150
  51. $Comp
  52. L power:GND #PWR02
  53. U 1 1 608351E4
  54. P 3600 3600
  55. F 0 "#PWR02" H 3600 3350 50 0001 C CNN
  56. F 1 "GND" H 3605 3427 50 0000 C CNN
  57. F 2 "" H 3600 3600 50 0001 C CNN
  58. F 3 "" H 3600 3600 50 0001 C CNN
  59. 1 3600 3600
  60. 1 0 0 -1
  61. $EndComp
  62. Wire Wire Line
  63. 3600 3400 3600 3450
  64. $Comp
  65. L power:GND #PWR05
  66. U 1 1 60854B60
  67. P 5250 1800
  68. F 0 "#PWR05" H 5250 1550 50 0001 C CNN
  69. F 1 "GND" H 5255 1627 50 0000 C CNN
  70. F 2 "" H 5250 1800 50 0001 C CNN
  71. F 3 "" H 5250 1800 50 0001 C CNN
  72. 1 5250 1800
  73. 1 0 0 -1
  74. $EndComp
  75. $Comp
  76. L power:+5V #PWR09
  77. U 1 1 6087A4BC
  78. P 6400 2750
  79. F 0 "#PWR09" H 6400 2600 50 0001 C CNN
  80. F 1 "+5V" H 6415 2923 50 0000 C CNN
  81. F 2 "" H 6400 2750 50 0001 C CNN
  82. F 3 "" H 6400 2750 50 0001 C CNN
  83. 1 6400 2750
  84. 1 0 0 -1
  85. $EndComp
  86. $Comp
  87. L Device:C_Small C1
  88. U 1 1 60899F12
  89. P 2950 2800
  90. F 0 "C1" H 2650 2900 50 0000 L CNN
  91. F 1 "100nF" H 2600 2800 50 0000 L CNN
  92. F 2 "" H 2950 2800 50 0001 C CNN
  93. F 3 "~" H 2950 2800 50 0001 C CNN
  94. 1 2950 2800
  95. 1 0 0 -1
  96. $EndComp
  97. Wire Wire Line
  98. 6400 3100 6300 3100
  99. Wire Wire Line
  100. 6400 2750 6400 2800
  101. Wire Wire Line
  102. 5600 3100 5600 2800
  103. $Comp
  104. L Device:D D2
  105. U 1 1 60DC7F7D
  106. P 6000 2800
  107. F 0 "D2" H 5950 2700 50 0000 L CNN
  108. F 1 "D" V 6000 2650 50 0001 L CNN
  109. F 2 "" H 6000 2800 50 0001 C CNN
  110. F 3 "~" H 6000 2800 50 0001 C CNN
  111. 1 6000 2800
  112. -1 0 0 1
  113. $EndComp
  114. Wire Wire Line
  115. 2950 2900 2950 3450
  116. Wire Wire Line
  117. 2950 3450 3600 3450
  118. Connection ~ 3600 3450
  119. Wire Wire Line
  120. 3600 3450 3600 3600
  121. Wire Wire Line
  122. 2950 2700 2950 2150
  123. Wire Wire Line
  124. 2950 2150 3600 2150
  125. Connection ~ 3600 2150
  126. Wire Wire Line
  127. 3600 2150 3600 2200
  128. $Comp
  129. L Relay:G2RL-2-ASI-DC5 RL1
  130. U 1 1 60DB8B13
  131. P 6000 3500
  132. F 0 "RL1" V 6700 3500 50 0000 C CNN
  133. F 1 "NA5W-K" V 6800 3500 50 0000 C CNN
  134. F 2 "Relay_THT:Relay_DPDT_Omron_G2RL" H 6650 3450 50 0001 L CNN
  135. F 3 "https://omronfs.omron.com/en_US/ecb/products/pdf/en-g2rl.pdf" H 6000 3500 50 0001 C CNN
  136. 1 6000 3500
  137. 0 1 1 0
  138. $EndComp
  139. $Comp
  140. L con:USB_A_mine J3
  141. U 1 1 60EDFCAC
  142. P 7050 4250
  143. F 0 "J3" H 7050 4717 50 0000 C CNN
  144. F 1 "USB Desktop" H 7050 4626 50 0000 C CNN
  145. F 2 "" H 6900 4200 50 0001 C CNN
  146. F 3 " ~" H 6900 4200 50 0001 C CNN
  147. 1 7050 4250
  148. 1 0 0 -1
  149. $EndComp
  150. $Comp
  151. L power:GND #PWR012
  152. U 1 1 60F0029F
  153. P 7200 4650
  154. F 0 "#PWR012" H 7200 4400 50 0001 C CNN
  155. F 1 "GND" H 7205 4477 50 0000 C CNN
  156. F 2 "" H 7200 4650 50 0001 C CNN
  157. F 3 "" H 7200 4650 50 0001 C CNN
  158. 1 7200 4650
  159. 1 0 0 -1
  160. $EndComp
  161. $Comp
  162. L Device:R R1
  163. U 1 1 60F15B5B
  164. P 4600 1800
  165. F 0 "R1" V 4500 1800 50 0000 C CNN
  166. F 1 "1.5k" V 4600 1800 50 0000 C CNN
  167. F 2 "" V 4530 1800 50 0001 C CNN
  168. F 3 "~" H 4600 1800 50 0001 C CNN
  169. 1 4600 1800
  170. 0 -1 -1 0
  171. $EndComp
  172. $Comp
  173. L Device:D D4
  174. U 1 1 60F1DBFC
  175. P 7650 3650
  176. F 0 "D4" H 7600 3750 50 0000 L CNN
  177. F 1 "D" V 7695 3730 50 0001 L CNN
  178. F 2 "" H 7650 3650 50 0001 C CNN
  179. F 3 "~" H 7650 3650 50 0001 C CNN
  180. 1 7650 3650
  181. -1 0 0 1
  182. $EndComp
  183. $Comp
  184. L con:USB_A_mine J1
  185. U 1 1 60F40C6A
  186. P 5600 4800
  187. F 0 "J1" H 5600 5267 50 0000 C CNN
  188. F 1 "USB Keyboard" H 5600 5176 50 0000 C CNN
  189. F 2 "" H 5450 4750 50 0001 C CNN
  190. F 3 " ~" H 5450 4750 50 0001 C CNN
  191. 1 5600 4800
  192. 1 0 0 -1
  193. $EndComp
  194. NoConn ~ 5650 5200
  195. NoConn ~ 7100 4650
  196. NoConn ~ 4200 3000
  197. NoConn ~ 4200 2900
  198. NoConn ~ 4200 2500
  199. Wire Wire Line
  200. 5700 3900 5000 3900
  201. Wire Wire Line
  202. 5100 3500 5700 3500
  203. $Comp
  204. L power:GND #PWR07
  205. U 1 1 60F8EB53
  206. P 5750 5200
  207. F 0 "#PWR07" H 5750 4950 50 0001 C CNN
  208. F 1 "GND" H 5850 5200 50 0000 C CNN
  209. F 2 "" H 5750 5200 50 0001 C CNN
  210. F 3 "" H 5750 5200 50 0001 C CNN
  211. 1 5750 5200
  212. 1 0 0 -1
  213. $EndComp
  214. $Comp
  215. L power:GND #PWR06
  216. U 1 1 60FBECFC
  217. P 5850 2450
  218. F 0 "#PWR06" H 5850 2200 50 0001 C CNN
  219. F 1 "GND" H 5855 2277 50 0000 C CNN
  220. F 2 "" H 5850 2450 50 0001 C CNN
  221. F 3 "" H 5850 2450 50 0001 C CNN
  222. 1 5850 2450
  223. 1 0 0 -1
  224. $EndComp
  225. $Comp
  226. L Device:LED D1
  227. U 1 1 60FD185C
  228. P 4900 1800
  229. F 0 "D1" H 4893 2017 50 0000 C CNN
  230. F 1 "LED" H 4893 1926 50 0000 C CNN
  231. F 2 "" H 4900 1800 50 0001 C CNN
  232. F 3 "~" H 4900 1800 50 0001 C CNN
  233. 1 4900 1800
  234. -1 0 0 1
  235. $EndComp
  236. Wire Wire Line
  237. 4200 2600 4450 2600
  238. Wire Wire Line
  239. 5750 2450 5850 2450
  240. Wire Wire Line
  241. 4950 2450 4850 2450
  242. $Comp
  243. L power:+5V #PWR03
  244. U 1 1 60FF8347
  245. P 4850 2450
  246. F 0 "#PWR03" H 4850 2300 50 0001 C CNN
  247. F 1 "+5V" H 4865 2623 50 0000 C CNN
  248. F 2 "" H 4850 2450 50 0001 C CNN
  249. F 3 "" H 4850 2450 50 0001 C CNN
  250. 1 4850 2450
  251. 1 0 0 -1
  252. $EndComp
  253. $Comp
  254. L Device:R R3
  255. U 1 1 60FF4D2B
  256. P 5100 2450
  257. F 0 "R3" V 4893 2450 50 0001 C CNN
  258. F 1 "internal" V 4984 2450 50 0000 C CNN
  259. F 2 "" V 5030 2450 50 0001 C CNN
  260. F 3 "~" H 5100 2450 50 0001 C CNN
  261. 1 5100 2450
  262. 0 -1 -1 0
  263. $EndComp
  264. Wire Wire Line
  265. 5250 2450 5300 2450
  266. Wire Wire Line
  267. 4200 2700 5300 2700
  268. Wire Wire Line
  269. 5300 2700 5300 2450
  270. Connection ~ 5300 2450
  271. Wire Wire Line
  272. 5300 2450 5350 2450
  273. Wire Wire Line
  274. 4450 1800 4450 2600
  275. NoConn ~ 7100 3450
  276. $Comp
  277. L power:GND #PWR010
  278. U 1 1 60EFF2D1
  279. P 7200 3450
  280. F 0 "#PWR010" H 7200 3200 50 0001 C CNN
  281. F 1 "GND" H 7205 3277 50 0000 C CNN
  282. F 2 "" H 7200 3450 50 0001 C CNN
  283. F 3 "" H 7200 3450 50 0001 C CNN
  284. 1 7200 3450
  285. 1 0 0 -1
  286. $EndComp
  287. $Comp
  288. L con:USB_A_mine J2
  289. U 1 1 60EDE6D2
  290. P 7050 3050
  291. F 0 "J2" H 7050 3517 50 0000 C CNN
  292. F 1 "USB Laptop" H 7050 3426 50 0000 C CNN
  293. F 2 "" H 6900 3000 50 0001 C CNN
  294. F 3 " ~" H 6900 3000 50 0001 C CNN
  295. 1 7050 3050
  296. 1 0 0 -1
  297. $EndComp
  298. Wire Wire Line
  299. 5050 1800 5250 1800
  300. Wire Wire Line
  301. 7350 2850 7500 2850
  302. $Comp
  303. L power:+5V #PWR011
  304. U 1 1 610A68D3
  305. P 8000 3500
  306. F 0 "#PWR011" H 8000 3350 50 0001 C CNN
  307. F 1 "+5V" H 8015 3673 50 0000 C CNN
  308. F 2 "" H 8000 3500 50 0001 C CNN
  309. F 3 "" H 8000 3500 50 0001 C CNN
  310. 1 8000 3500
  311. 1 0 0 -1
  312. $EndComp
  313. $Comp
  314. L power:+5V #PWR08
  315. U 1 1 610CD07F
  316. P 6050 4600
  317. F 0 "#PWR08" H 6050 4450 50 0001 C CNN
  318. F 1 "+5V" H 6065 4773 50 0000 C CNN
  319. F 2 "" H 6050 4600 50 0001 C CNN
  320. F 3 "" H 6050 4600 50 0001 C CNN
  321. 1 6050 4600
  322. 1 0 0 -1
  323. $EndComp
  324. Wire Wire Line
  325. 5900 4600 6050 4600
  326. Wire Wire Line
  327. 6750 3150 6400 3150
  328. Wire Wire Line
  329. 6400 3150 6400 3400
  330. Wire Wire Line
  331. 6400 3400 6300 3400
  332. Wire Wire Line
  333. 6750 3250 6450 3250
  334. Wire Wire Line
  335. 6450 3250 6450 3800
  336. Wire Wire Line
  337. 6450 3800 6300 3800
  338. Wire Wire Line
  339. 6750 4450 6450 4450
  340. Wire Wire Line
  341. 6450 4450 6450 4000
  342. Wire Wire Line
  343. 6450 4000 6300 4000
  344. Wire Wire Line
  345. 6750 4350 6500 4350
  346. Wire Wire Line
  347. 6500 4350 6500 3600
  348. Wire Wire Line
  349. 6500 3600 6300 3600
  350. Wire Wire Line
  351. 7500 4050 7350 4050
  352. Wire Wire Line
  353. 7500 4050 7500 3650
  354. Wire Wire Line
  355. 7500 3350 7500 2850
  356. Wire Wire Line
  357. 7800 3350 7800 3500
  358. Wire Wire Line
  359. 8000 3500 7800 3500
  360. Connection ~ 7800 3500
  361. Wire Wire Line
  362. 7800 3500 7800 3650
  363. $Comp
  364. L Device:R R2
  365. U 1 1 60820C8C
  366. P 4700 2800
  367. F 0 "R2" V 4600 2800 50 0000 C CNN
  368. F 1 "1k" V 4700 2800 50 0000 C CNN
  369. F 2 "" V 4630 2800 50 0001 C CNN
  370. F 3 "~" H 4700 2800 50 0001 C CNN
  371. 1 4700 2800
  372. 0 -1 -1 0
  373. $EndComp
  374. $Comp
  375. L Device:Q_NPN_BCE Q1
  376. U 1 1 608198CD
  377. P 4850 3000
  378. F 0 "Q1" V 5100 2950 50 0000 L CNN
  379. F 1 "Q_NPN_BCE" V 5200 2800 50 0000 L CNN
  380. F 2 "" H 5050 3100 50 0001 C CNN
  381. F 3 "~" H 4850 3000 50 0001 C CNN
  382. 1 4850 3000
  383. 0 1 1 0
  384. $EndComp
  385. $Comp
  386. L power:GND #PWR?
  387. U 1 1 61146F6E
  388. P 4500 3100
  389. F 0 "#PWR?" H 4500 2850 50 0001 C CNN
  390. F 1 "GND" H 4505 2927 50 0000 C CNN
  391. F 2 "" H 4500 3100 50 0001 C CNN
  392. F 3 "" H 4500 3100 50 0001 C CNN
  393. 1 4500 3100
  394. 1 0 0 -1
  395. $EndComp
  396. Wire Wire Line
  397. 4650 3100 4500 3100
  398. Connection ~ 5600 3100
  399. Wire Wire Line
  400. 5600 3100 5700 3100
  401. Wire Wire Line
  402. 5100 4900 5300 4900
  403. Wire Wire Line
  404. 5000 5000 5300 5000
  405. Wire Wire Line
  406. 4200 2800 4550 2800
  407. Wire Wire Line
  408. 5050 3100 5600 3100
  409. Wire Wire Line
  410. 6150 2800 6400 2800
  411. Connection ~ 6400 2800
  412. Wire Wire Line
  413. 6400 2800 6400 3100
  414. Wire Wire Line
  415. 5850 2800 5600 2800
  416. $Comp
  417. L Device:D D3
  418. U 1 1 610C166D
  419. P 7650 3350
  420. F 0 "D3" H 7600 3450 50 0000 L CNN
  421. F 1 "D" V 7695 3430 50 0001 L CNN
  422. F 2 "" H 7650 3350 50 0001 C CNN
  423. F 3 "~" H 7650 3350 50 0001 C CNN
  424. 1 7650 3350
  425. -1 0 0 1
  426. $EndComp
  427. Wire Wire Line
  428. 5000 3900 5000 5000
  429. Wire Wire Line
  430. 5100 3500 5100 4900
  431. $EndSCHEMATC