Cov txheej txheem:

Universal USB Keyboard Nrog RGB Hloov: 6 Kauj Ruam
Universal USB Keyboard Nrog RGB Hloov: 6 Kauj Ruam

Video: Universal USB Keyboard Nrog RGB Hloov: 6 Kauj Ruam

Video: Universal USB Keyboard Nrog RGB Hloov: 6 Kauj Ruam
Video: TEST Ntaug nkauj S770 nrog FL Studio - TUB ZOOV YAAJ 2024, Kaum ib hlis
Anonim
Universal USB Keyboard Nrog RGB Hloov
Universal USB Keyboard Nrog RGB Hloov

Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas tsim koj tus kheej kev cai USB keyboard uas coj zoo ib yam li lub khoos phis tawj keyboard ib txwm muaj.

Koj tuaj yeem muab ib qho tseem ceeb ua ke lossis ntu ntawm cov yuam sij kom raug nias thaum nias tsuas yog ib lub khawm.

Koj tuaj yeem siv nws los ua kom zoo dua koj lub khoos phis tawj los ntawm kev muab ntau yam kev sib txuas ua ke rau tsuas yog ib qho tseem ceeb ntawm lub cev, yog li nws ua rau koj lub neej yooj yim dua.

Koj tuaj yeem ua nws lub PC game controller.

Koj tseem tuaj yeem ua haujlwm nws los sau cov ntawv sau los ntawm nias ib qho tseem ceeb:) Lub ntuj yog qhov txwv.

Kuv siv nws los tswj kuv li CNC router phau ntawv taw kev txav, txij li kuv pom siv lub khoos phis tawj keyboard ib yam nkaus thiab hnyav heev thiab siv tau.

Kauj Ruam 1: Cov keyboard hauv Kev Ua

Image
Image

Ntawm no koj tuaj yeem pom luv luv li cas cov keyboard ua tau zoo hauv daim ntawv thov tiag.

Cov keyboard muaj 2 hom - qib theem thiab hom kev txav mus los.

Kauj ruam 2: Sau tag nrho Cov Khoom

Koj yuav xav tau:

- Arduino Pro Micro 32u4 uas tuaj yeem ua tau zoo li USB PC keyboard lossis nas

- Pushbutton keyboards - Kuv siv tus nqi tsis zoo (20 $ ib thooj) NKK KP02 hloov pauv kuv tau txais los ntawm tus phooj ywg. Lawv yog cov khawm khawm nrog RGB LED sab hauv. Tab sis koj tuaj yeem siv txhua lub khawm hloov pauv raws li koj nyiam, yog tias koj tsis xav tau qhov ntxim nyiam LED los. Lossis koj tuaj yeem siv qee qhov hloov pauv uas muaj lub qhov rau ib txwm RGB LED kom xaub hauv lossis nyob ib sab ntawm nws.

- TLC5940 IC (tsuas yog tias koj xav tau cov teebmeem LED). Kuv siv IC nws tus kheej, tab sis koj tuaj yeem siv pawg tswj hwm kev tawg, Yog tias koj tsis npaj yuav ua koj tus kheej PCB.

- 3d tshuab luam ntawv (yeem)

- PCB ua txuj ci (xaiv tau)

- Kev paub txog hluav taws xob yooj yim

- qee lub sijhawm

- thiab lub cev:)

Kauj Ruam 3: Schematics

Schematics
Schematics
Schematics
Schematics

Schematics yog yooj yim heev.

Kuv siv qee qhov RC debouncing Circuit rau cov hloov pauv (saib duab), yog li tsis tas yuav txhawj xeeb txog qhov hloov pauv hauv software. Cov LEDs hauv qhov hloov pauv muaj ib qho anode.

Rau TLC5940 LED tsav tsheb - Kuv ua kuv tus kheej PCB thiab kuv tau muab cov ICs ncaj qha rau ntawm kuv PCB. Tus tiv thaiv los ntawm IREF rau GND teeb tsa tam sim no rau tsav LEDs.

Yog tias koj yuav siv pawg tswj hwm pawg tawm tsam, txheeb xyuas pawg tswj hwm pawg tawm tsam. Nws yuav tsum ncaj nraim kom txuas cov xov hlau.

Tej zaum koj tsis tas yuav siv 7 lub peev xwm sib cais yog tias koj yuav siv lub rooj sib cais rau LED tsav tsheb.

Kauj Ruam 4: PCB thiab Cov Ntaub Ntawv

PCB thiab Enclosure
PCB thiab Enclosure
PCB thiab Enclosure
PCB thiab Enclosure
PCB thiab Enclosure
PCB thiab Enclosure

PCB tsis tas yuav nqis tes ua hauv cov lus qhia no, vim tias kuv siv cov haujlwm uas tsis yog nyiam ua haujlwm thiab kuv cov hloov pauv tau kim heev los yuav, yog li kuv ntseeg tias tsis muaj coob leej ntawm koj yuav ua qhov PCB uas kuv tau ua.

Kuv txhawb koj kom xaim txoj haujlwm siv cov laug cam tawg thiab thaiv kab thaiv, lossis koj tuaj yeem tsim koj tus kheej PCB uas yuav haum rau qhov hloov pauv tau yooj yim dua thiab LEDs.

Kuv tsim pcb nrawm hauv Altium Designer. Kuv siv txoj haujlwm no vim tias kuv muaj daim ntawv tso cai, txij li kuv siv nws rau kev ua haujlwm txhua hnub. Kuv paub txoj haujlwm no tsis muaj ib qhov chaw nyob ze qhov nyiam nyiam tus nqi zoo.

Yog leej twg xav tau Altium lossis PCB gerber cov ntaub ntawv hais nws hauv cov lus thiab kuv yuav xa lawv mus rau koj.

Lub thawv tau kos rau hauv Autodesk Inventor (tseem tsis yog txoj haujlwm nyiam ua haujlwm, tab sis kuv siv qhov ntawd ntawm kev ua haujlwm ib yam thiab kuv tau siv rau nws). Yog leej twg xav tau.stl cov ntaub ntawv rau 3D luam, thov tawm tswv yim thiab kuv yuav xa lawv tuaj rau koj.

Kauj ruam 5: Software

Lub Software
Lub Software

Txoj cai tau ua hauv ib puag ncig arduino.

Kuv siv lub tsev qiv ntawv khawm rau kev tswj hwm txhua lub khawm. Nws muaj cov yam ntxwv zoo rau nyeem cov nyees khawm zoo li key.uniquePress () thiab key.isPressed () kom ua rau peb lub neej yooj yim dua.

Kev koom ua ke arduino Keyboard lub tsev qiv ntawv rau ua rau pawg thawj coj coj zoo li PC keyboard.

TLC5940 lub tsev qiv ntawv rau kev tswj cov coj dimming thiab ua txhua qhov zoo fade ins thiab outs.

Kuv txuas qhov kawg arduino code. Cov yuam sij tau teeb tsa zoo ib yam li cov keyboard PC niaj zaus hauv tus lej raws li cov duab txuas rau kev yooj yim tuav.

Cov cai tuaj yeem hloov kho tau yooj yim rau txhua yam kev siv.

Kauj ruam 6: Ua tiav

Image
Image

Cov keyboard ua haujlwm zoo li ntxim nyiam.

Kuv siv nws los tswj kuv tus CNC router, tab sis cov ntawv thov tau yog qhov txwv.

Qhia koj lub tswv yim rau kuv!

Koj tuaj yeem ua raws kuv ntawm Facebook thiab Instagram

www.instagram.com/jt_makes_it nws

rau spoilers ntawm qhov kuv tab tom ua haujlwm tam sim no, tom qab qhov xwm txheej thiab lwm yam ntxiv!

Pom zoo: