A quick an easy keyboard switching thingy.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

kbdswitch.sch 9.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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-04-23"
  9. Rev ""
  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 2950
  79. F 0 "#PWR09" H 6400 2800 50 0001 C CNN
  80. F 1 "+5V" H 6415 3123 50 0000 C CNN
  81. F 2 "" H 6400 2950 50 0001 C CNN
  82. F 3 "" H 6400 2950 50 0001 C CNN
  83. 1 6400 2950
  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 3300 6300 3300
  99. Wire Wire Line
  100. 6400 2950 6400 3000
  101. Wire Wire Line
  102. 5600 3300 5600 3000
  103. $Comp
  104. L Device:D D2
  105. U 1 1 60DC7F7D
  106. P 6000 3000
  107. F 0 "D2" V 6000 2800 50 0000 L CNN
  108. F 1 "D" V 6000 2850 50 0001 L CNN
  109. F 2 "" H 6000 3000 50 0001 C CNN
  110. F 3 "~" H 6000 3000 50 0001 C CNN
  111. 1 6000 3000
  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 3700
  132. F 0 "RL1" V 6700 3700 50 0000 C CNN
  133. F 1 "NA5W-K" V 6800 3700 50 0000 C CNN
  134. F 2 "Relay_THT:Relay_DPDT_Omron_G2RL" H 6650 3650 50 0001 L CNN
  135. F 3 "https://omronfs.omron.com/en_US/ecb/products/pdf/en-g2rl.pdf" H 6000 3700 50 0001 C CNN
  136. 1 6000 3700
  137. 0 1 1 0
  138. $EndComp
  139. $Comp
  140. L con:USB_A_mine J3
  141. U 1 1 60EDFCAC
  142. P 7050 4450
  143. F 0 "J3" H 7050 4917 50 0000 C CNN
  144. F 1 "USB Desktop" H 7050 4826 50 0000 C CNN
  145. F 2 "" H 6900 4400 50 0001 C CNN
  146. F 3 " ~" H 6900 4400 50 0001 C CNN
  147. 1 7050 4450
  148. 1 0 0 -1
  149. $EndComp
  150. $Comp
  151. L power:GND #PWR012
  152. U 1 1 60F0029F
  153. P 7200 4850
  154. F 0 "#PWR012" H 7200 4600 50 0001 C CNN
  155. F 1 "GND" H 7205 4677 50 0000 C CNN
  156. F 2 "" H 7200 4850 50 0001 C CNN
  157. F 3 "" H 7200 4850 50 0001 C CNN
  158. 1 7200 4850
  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 4393 1800 50 0000 C CNN
  166. F 1 "1.5k" V 4484 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 3850
  176. F 0 "D4" V 7604 3930 50 0000 L CNN
  177. F 1 "D" V 7695 3930 50 0000 L CNN
  178. F 2 "" H 7650 3850 50 0001 C CNN
  179. F 3 "~" H 7650 3850 50 0001 C CNN
  180. 1 7650 3850
  181. -1 0 0 1
  182. $EndComp
  183. $Comp
  184. L con:USB_A_mine J1
  185. U 1 1 60F40C6A
  186. P 5600 5100
  187. F 0 "J1" H 5600 5567 50 0000 C CNN
  188. F 1 "USB Keyboard" H 5600 5476 50 0000 C CNN
  189. F 2 "" H 5450 5050 50 0001 C CNN
  190. F 3 " ~" H 5450 5050 50 0001 C CNN
  191. 1 5600 5100
  192. 1 0 0 -1
  193. $EndComp
  194. NoConn ~ 5650 5500
  195. NoConn ~ 7100 4850
  196. NoConn ~ 4200 2800
  197. NoConn ~ 4200 2900
  198. NoConn ~ 4200 2500
  199. Wire Wire Line
  200. 5700 4100 5000 4100
  201. Wire Wire Line
  202. 5100 3700 5700 3700
  203. $Comp
  204. L power:GND #PWR07
  205. U 1 1 60F8EB53
  206. P 5750 5500
  207. F 0 "#PWR07" H 5750 5250 50 0001 C CNN
  208. F 1 "GND" H 5755 5327 50 0000 C CNN
  209. F 2 "" H 5750 5500 50 0001 C CNN
  210. F 3 "" H 5750 5500 50 0001 C CNN
  211. 1 5750 5500
  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 3650
  276. $Comp
  277. L power:GND #PWR010
  278. U 1 1 60EFF2D1
  279. P 7200 3650
  280. F 0 "#PWR010" H 7200 3400 50 0001 C CNN
  281. F 1 "GND" H 7205 3477 50 0000 C CNN
  282. F 2 "" H 7200 3650 50 0001 C CNN
  283. F 3 "" H 7200 3650 50 0001 C CNN
  284. 1 7200 3650
  285. 1 0 0 -1
  286. $EndComp
  287. $Comp
  288. L con:USB_A_mine J2
  289. U 1 1 60EDE6D2
  290. P 7050 3250
  291. F 0 "J2" H 7050 3717 50 0000 C CNN
  292. F 1 "USB Laptop" H 7050 3626 50 0000 C CNN
  293. F 2 "" H 6900 3200 50 0001 C CNN
  294. F 3 " ~" H 6900 3200 50 0001 C CNN
  295. 1 7050 3250
  296. 1 0 0 -1
  297. $EndComp
  298. Wire Wire Line
  299. 5050 1800 5250 1800
  300. Wire Wire Line
  301. 7350 3050 7500 3050
  302. $Comp
  303. L power:+5V #PWR011
  304. U 1 1 610A68D3
  305. P 8000 3700
  306. F 0 "#PWR011" H 8000 3550 50 0001 C CNN
  307. F 1 "+5V" H 8015 3873 50 0000 C CNN
  308. F 2 "" H 8000 3700 50 0001 C CNN
  309. F 3 "" H 8000 3700 50 0001 C CNN
  310. 1 8000 3700
  311. 1 0 0 -1
  312. $EndComp
  313. $Comp
  314. L Device:D D3
  315. U 1 1 610C166D
  316. P 7650 3550
  317. F 0 "D3" V 7604 3630 50 0000 L CNN
  318. F 1 "D" V 7695 3630 50 0000 L CNN
  319. F 2 "" H 7650 3550 50 0001 C CNN
  320. F 3 "~" H 7650 3550 50 0001 C CNN
  321. 1 7650 3550
  322. -1 0 0 1
  323. $EndComp
  324. $Comp
  325. L power:+5V #PWR08
  326. U 1 1 610CD07F
  327. P 6050 4900
  328. F 0 "#PWR08" H 6050 4750 50 0001 C CNN
  329. F 1 "+5V" H 6065 5073 50 0000 C CNN
  330. F 2 "" H 6050 4900 50 0001 C CNN
  331. F 3 "" H 6050 4900 50 0001 C CNN
  332. 1 6050 4900
  333. 1 0 0 -1
  334. $EndComp
  335. Wire Wire Line
  336. 5900 4900 6050 4900
  337. Wire Wire Line
  338. 6750 3350 6400 3350
  339. Wire Wire Line
  340. 6400 3350 6400 3600
  341. Wire Wire Line
  342. 6400 3600 6300 3600
  343. Wire Wire Line
  344. 6750 3450 6450 3450
  345. Wire Wire Line
  346. 6450 3450 6450 4000
  347. Wire Wire Line
  348. 6450 4000 6300 4000
  349. Wire Wire Line
  350. 6750 4650 6450 4650
  351. Wire Wire Line
  352. 6450 4650 6450 4200
  353. Wire Wire Line
  354. 6450 4200 6300 4200
  355. Wire Wire Line
  356. 6750 4550 6500 4550
  357. Wire Wire Line
  358. 6500 4550 6500 3800
  359. Wire Wire Line
  360. 6500 3800 6300 3800
  361. Wire Wire Line
  362. 7500 4250 7350 4250
  363. Wire Wire Line
  364. 7500 4250 7500 3850
  365. Wire Wire Line
  366. 7500 3550 7500 3050
  367. Wire Wire Line
  368. 7800 3550 7800 3700
  369. Wire Wire Line
  370. 8000 3700 7800 3700
  371. Connection ~ 7800 3700
  372. Wire Wire Line
  373. 7800 3700 7800 3850
  374. $Comp
  375. L Device:R R2
  376. U 1 1 60820C8C
  377. P 4700 3000
  378. F 0 "R2" V 4900 3000 50 0000 C CNN
  379. F 1 "1k" V 4800 3000 50 0000 C CNN
  380. F 2 "" V 4630 3000 50 0001 C CNN
  381. F 3 "~" H 4700 3000 50 0001 C CNN
  382. 1 4700 3000
  383. 0 -1 -1 0
  384. $EndComp
  385. $Comp
  386. L Device:Q_NPN_BCE Q1
  387. U 1 1 608198CD
  388. P 4850 3200
  389. F 0 "Q1" V 5100 3150 50 0000 L CNN
  390. F 1 "Q_NPN_BCE" V 5200 3000 50 0000 L CNN
  391. F 2 "" H 5050 3300 50 0001 C CNN
  392. F 3 "~" H 4850 3200 50 0001 C CNN
  393. 1 4850 3200
  394. 0 1 1 0
  395. $EndComp
  396. $Comp
  397. L power:GND #PWR?
  398. U 1 1 61146F6E
  399. P 4500 3300
  400. F 0 "#PWR?" H 4500 3050 50 0001 C CNN
  401. F 1 "GND" H 4505 3127 50 0000 C CNN
  402. F 2 "" H 4500 3300 50 0001 C CNN
  403. F 3 "" H 4500 3300 50 0001 C CNN
  404. 1 4500 3300
  405. 1 0 0 -1
  406. $EndComp
  407. Wire Wire Line
  408. 4650 3300 4500 3300
  409. Connection ~ 5600 3300
  410. Wire Wire Line
  411. 5600 3300 5700 3300
  412. Wire Wire Line
  413. 5100 5200 5300 5200
  414. Wire Wire Line
  415. 5000 5300 5300 5300
  416. Wire Wire Line
  417. 4200 3000 4550 3000
  418. Wire Wire Line
  419. 5050 3300 5600 3300
  420. Wire Wire Line
  421. 5100 3700 5100 5200
  422. Wire Wire Line
  423. 5000 4100 5000 5300
  424. Wire Wire Line
  425. 6150 3000 6400 3000
  426. Connection ~ 6400 3000
  427. Wire Wire Line
  428. 6400 3000 6400 3300
  429. Wire Wire Line
  430. 5850 3000 5600 3000
  431. $EndSCHEMATC