Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Txheeb Tawm Cov Video
- Kauj ruam 2: Kev thaiv kab
- Kauj Ruam 3: [Tsis teb los tau] Yuav ua li cas Keypad Ua Haujlwm
- Kauj ruam 4: Lob tus Code
- Kauj Ruam 5: Txhim Kho Tsev Qiv Ntawv thiab Tshaj Tawm rau Pawg Thawj Coj
- Kauj Ruam 6: [Tsis teb los tau] Kev piav qhia ntawm Txoj Cai
- Kauj Ruam 7: Siv Nrog OBS
- Kauj Ruam 8: Qhov kawg Stackoverflow Keyboard
- Kauj Ruam 9: Kev Cai Sib Tham Sib Tham Keyboard
- Kauj ruam 10: Xaus
Video: Qhov yooj yim DIY Macro Keypad: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Macro keypad tuaj yeem siv los ua qee yam kev ua lossis lub luag haujlwm ntawm koj lub khoos phis tawj thiab tuaj yeem muaj txiaj ntsig zoo nrog qee yam kev siv, xws li kho video lossis ua si.
Muaj ntau daim ntawv thov muaj cov yuam sij kub rau kev ua sai sai, tab sis qee zaum nws nyuaj rau nco lub khawm ua ke ntawm txhua qhov kev hais kom ua, tab sis qhov ntawd yog qhov uas cov lej khawm loj tuaj. ib qho cuab yeej muaj zog tiag tiag
Kuv lub ntsiab siv rau kuv yog rau kev tswj hwm OBS, software kuv siv rau kaw cov vis dis aus thiab rau streaming. Nws tso cai rau kuv hloov pauv yooj yim ntawm cov xwm txheej lossis ua kom muaj kev cuam tshuam qee yam ntawm cov xwm txheej. Yog tias koj paub qhov yooj yim dua thov txuas nws rau kuv, vim tias kuv tseem tsis tau pom ib qho. Nws siv tsuas yog 2 yam thiab tsis muaj cov laug cam tshwj xeeb yuav tsum tau teeb tsa rau Arduino yog li nws yeej tsis yooj yim dua!
Arduino Pro Micro txhawb kev ua raws li HID (Tib Neeg Cov Khoom Siv Sib Txuas, aka koj cov keyboard nas) yog li nws zoo meej rau hom haujlwm no. Peb tseem yuav siv 4x4 Keypad vim nws pheej yig, muaj 16 khawm thiab yooj yim heev rau xaim nce
Khoom siv
- Arduino Pro Micro los ntawm Aliexpress - ~ $ 3.00*
- 4x4 Matrix Keypad los ntawm Aliexpress - $ 0.50*
*= Koom nrog
Kauj ruam 1: Txheeb Tawm Cov Video
Kuv tau ua cov vis dis aus ntawm cov ncauj lus no yog tias koj xav tshuaj xyuas nws!
Kauj ruam 2: Kev thaiv kab
Qhov no tsis tuaj yeem yooj yim dua!
Keypad Matrix ntsaws ncaj qha rau hauv 8 GPIO nyob rau hauv qab txoj cai ntawm Pro Micro, cov uas tau sau tseg GPIO2 - GPIO 9. Cov xaim nyob sab laug ntawm cov keyboard txuas rau GPIO2
Thiab qhov ntawd, tsis yog kuv qhia koj qhov no yooj yim!
Kauj Ruam 3: [Tsis teb los tau] Yuav ua li cas Keypad Ua Haujlwm
Yog tias koj xav paub yuav ua li cas cov keypad ua haujlwm, Kuv yuav piav qhia sai ntawm nws ntawm no. Yog tias koj tsis txaus siab, tsuas yog hla cov kauj ruam no!
Txhua kab thiab kab ntawv txuas nrog GPIO tus pin ntawm koj tus arduino. 4 kab pins tau teeb tsa raws li qhov tso tawm thiab 4 kab pins tau teeb tsa raws li cov tswv yim. Arduino yuav hloov mus los ntawm kab pins ib kab los ntawm ib qho, teeb tsa txhua tus kom siab, thaum lwm kab qis. Yuav txhua kab tau teeb tsa siab, nws yuav nyeem txhua tus ntawm tus lej kab. Yog tias ib qho ntawm kab pins siab, koj tuaj yeem qhia lub pob twg raug nias raws li koj tam sim no paub kab kab uas raug nias.
Peb yuav tsis tas txhawj txog qhov no vim peb yuav siv lub tsev qiv ntawv los saib xyuas qhov no rau peb!
Kauj ruam 4: Lob tus Code
Thawj qhov koj yuav xav tau yog Arduino IDE, uas koj tuaj yeem tau txais los ntawm no yog tias koj tsis muaj nws. Nws yog qhov zoo nkauj ncaj nraim rau teeb tsa, tab sis yog tias koj xav tau cov lus qhia ntxiv lossis kev qhia, kuv xav kom txheeb xyuas Arduino Class los ntawm Becky Stern
Tom qab ntawd koj yuav xav lob tus lej rau txoj haujlwm no los ntawm kuv Github. Nyem rau clone lossis rub tawm khawm dhau ntawm sab xis ntawm nplooj ntawv thiab nyem rau "Download Zip" khawm.
Tshem tawm zip thiab qhib nws nrog.ino cov ntaub ntawv nrog Arduino IDE.
Kauj Ruam 5: Txhim Kho Tsev Qiv Ntawv thiab Tshaj Tawm rau Pawg Thawj Coj
Ua ntej peb tuaj yeem xa daim duab kos no mus rau lub rooj tsavxwm, thawj zaug peb yuav tsum teeb tsa Lub Tsev Qiv Ntawv Keypad rau cuam tshuam nrog cov lej matrix.
Txhawm rau teeb tsa qhov no, nyem rau Sketch -> suav nrog Tsev Qiv Ntawv -> Tswj cov tsev qiv ntawv
Thaum qhov ntawd thauj khoom, tshawb rau "keypad" thiab nqes mus rau qhov sau los ntawm Mark Stanley thiab Alexander Brevig. Nyem nruab.
Tam sim no koj tau npaj txhij upload cov duab kos! Peb tsuas yog yuav tsum teeb tsa Arduino IDE rau lub rooj tsavxwm raug thiab chaw nres nkoj.
Hauv cov cuab yeej ntawv qhia zaub mov, nqis mus rau Pawg Thawj Coj thiab xaiv Arduino/Genuino Micro
Hauv tib lub cuab yeej ntawv qhia zaub mov, mus rau Chaw Nres Nkoj thiab xaiv qhov chaw nres nkoj com uas muaj (Arduino/Genuino Micro) tom qab nws Koj tam sim no tuaj yeem nyem lub pob upload thiab nws yuav tsum ua haujlwm rau koj lub cuab yeej!
Kauj Ruam 6: [Tsis teb los tau] Kev piav qhia ntawm Txoj Cai
Koj muaj lub luag haujlwm ua haujlwm tseem ceeb ntawm cov keyboard ntawm theem no yog li Yog tias koj tsis quav ntsej txoj cai ua haujlwm li cas, hla cov kauj ruam no.
Keypad Library teeb tsa
Hauv thawj daim duab koj yuav pom kev teeb tsa ntawm lub tsev qiv ntawv keyboard. Yog tias koj cov keypad muaj ntau lossis tsawg dua kab lossis kab koj yuav hloov nws ntawm no. Qhov "cov yuam sij" tso cai rau lub tsev qiv ntawv paub tus cim nws yuav tsum rov los rau koj thaum lub pob raug nias. Yog li yog tias koj lub zeem muag muaj cov tsiaj ntawv ntawm cov tsiaj ntawv hloov pauv ntawm tus lej koj tuaj yeem hloov nws ntawm no kom phim. Nws tsis muaj teeb meem dab tsi yog nyob ntawm no ib zaug koj ua li cas rau lub pob nyem kom tsim nyog (ntau ntxiv txog qhov hauv qab no) Qhov tom ntej no peb muaj yog tus lej tus lej txhais rau kab thiab kab, cov no twb tau teeb tsa kom raug rau cov hlua uas peb Ua ntej thiab thaum kawg muaj tus tsim qhov uas peb pib lub tsev qiv ntawv keyboard nrog txhua qhov teeb tsa.
Nyeem lub pob nyem
Hauv lub voj, daim duab kos tau txais lub pob nyem tawm ntawm lub tsev qiv ntawv keyboard, dab tsi rov qab los yog ib qho ntawm cov cim uas peb tau hais tseg hauv "cov yuam sij" array uas sib raug rau tib txoj haujlwm zoo li lub pob uas tau nias. Yog li yog qhov tseem ceeb muaj tseeb (tau teeb tsa tag nrho) peb siv cov lus hloov pauv txhawm rau txheeb xyuas lub pob twg uas tau nias thiab ua txhua yam peb xav ua nrog nws. Qhov no yog vim li cas nws thiaj li tsis tseem ceeb dab tsi hauv koj cov yuam sij array, thaum koj ua qhov kev txheeb xyuas no.
Thaum lub pob raug txheeb xyuas, nws yuav hu rau SendMacroCommand.
"XaMacroCommand"
SendMacroCommand yog txoj hauv kev uas txhua qhov kev xaiv hu. Nws siv nyob rau hauv ib qho kev ntsuas ua tus yuam sij, los ntawm qhov no yog f1-f12 thiab tom qab ntawd a, b, c thiab d.
- CTRL
- ALT
- Hloov
- thiab tus yuam sij uas tau dhau los ua param
Cov nyees khawm no yuav tsis raug tso tawm kom txog thaum peb hais tshwj xeeb rau nws. Peb ua qhov no thaum kawg ntawm lub voj.
Kauj Ruam 7: Siv Nrog OBS
Kuv cov ntaub ntawv siv tseem ceeb rau lub cuab yeej no yog siv nws nrog cov hotkeys hauv OBS (Qhib Tshaj Tawm Studio, nws yog software uas feem ntau siv los ntawm cov kwj deg, tab sis muaj txiaj ntsig zoo rau kev kaw cov vis dis aus ntawm koj lub PC). Qhov no tuaj yeem muaj txiaj ntsig zoo rau kev hloov pauv lossis ua kom muaj cov ntsiab lus hauv koj qhov kev xaiv.
Hauv OBS, qhib cov ntawv qhia zaub mov thiab tom qab ntawd ntu hotkeys.
Txav mus rau qhov kev xaiv uas koj xav tswj hwm nrog koj cov keyboard loj thiab nyem rau hauv lub thawv dawb. Lub pob tom ntej koj nias yuav yog qhov hais kom ua cuam tshuam nrog qhov kev nqis tes ua no, yog li siv koj lub xov tooj tseem ceeb los nias lub pob twg los xij uas koj xav tswj hwm qhov kev nqis tes ua no.
Kauj Ruam 8: Qhov kawg Stackoverflow Keyboard
Txhawm rau qhia koj li cas koj tuaj yeem siv nws rau ntau cov lus txib dav dav thiab luv luv, koj tuaj yeem yooj yim heev ua qhov kawg stackoverflow keyboard, lossis ib qho uas tuaj yeem luam thiab muab tso. Qhov lus txib rau luam yog CTRL + c thiab cov lus txib rau muab tshuaj yog CTRL + p
Txhawm rau ntxiv qhov no rau cov keyboard, hloov kev hu mus rau SendMacroKeypad txoj hauv kev ntawm ib lub pob nyem ntu thiab hloov nws nrog cov cai hauv daim duab saum toj no. Raws li ua ntej nws yuav zoo li yog ob qho ntawm cov yuam sij no tau tuav cia kom txog thaum tso tawm hu ua qhov kawg ntawm lub voj.
Kauj Ruam 9: Kev Cai Sib Tham Sib Tham Keyboard
Lwm qhov zoo nkauj tshaj plaws uas koj tuaj yeem ua nrog kev teeb tsa no tsis yog tsuas yog nyem cov nyees khawm, koj tuaj yeem sim ntaus ntawv tawm. Cov ntaub ntawv siv tau zoo rau qhov no yuav yog kev cai sib tham ceev keyboard rau kev ua si.
Cov lus txib rau ntaus cov lus yog tog twg los keyboard.print. keyboard.println kuj tseem ua haujlwm, nws zoo ib yam tab sis tsuas yog nrog kab cim tshiab ntawm qhov kawg.
Koj tuaj yeem pom hauv daim duab saum toj no piv txwv ntawm kev siv nws.
Hauv qab qhov kev xaiv 3, nws yuav tsuas yog sau cov lus ncaj qha
Hauv qab qhov kev xaiv 4, nws yuav xub nias lub t khawm (qhov no ua rau sib tham hauv ntau qhov kev ua si) thiab tom qab ntawd ntaus cov lus. Koj yuav pom tias koj yuav tsum tau ntxiv kev ncua sijhawm ntawm kev nias ntawm t thiab ntaus cov lus kom tso cai rau lub sijhawm ua si los nqa lub vijtsam sib tham.
Kauj ruam 10: Xaus
Vam tias koj pom qhov no muaj txiaj ntsig! Kuv xav tias muaj ntau txoj hauv kev nrog cov cuab yeej zoo li no thiab vam tias qhov no muab cov lus qhia zoo rau siv HID cov lus txib ntawm koj Arduino Pro Micro.
Dab tsi koj yuav siv lub pob khawm macro rau?
Koj puas tau pom ib qho yooj yim Macro Keypads !?
Yog tias koj muaj lus nug thov hu dawb!
Brian
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Qhov Yooj Yim Yooj Yim Yooj Yim]: 3 Kauj Ruam
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Ob Qes Yooj Yim Yooj Yim]: Puas yog koj tab tom nrhiav kom ua txoj haujlwm yooj yim thiab nthuav nrog Arduino uas nyob rau tib lub sijhawm tuaj yeem muaj txiaj ntsig tiag tiag thiab muaj peev xwm cawm txoj sia? tej yam tshiab thiab tshiab. Hauv kab ntawv no peb mus
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): 7 Kauj Ruam
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): Xav hloov pauv yam ntawm koj lub laptop lossis PC? Xav tau kev hloov pauv hauv koj qhov chaw? Ua raws cov kauj ruam no yooj yim thiab yooj yim kom ua tiav koj tus kheej lub computer ntsuas phoo
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: 3 Kauj Ruam
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: Qhov haujlwm no yuav pab koj txuas 18 LEDs (6 Liab + 6 Xiav + 6 Daj) rau koj lub Rooj Tswjhwm Saib Arduino thiab txheeb xyuas koj lub khoos phis tawj Lub Suab Suab Lub suab lub sijhawm tiag tiag thiab xa lawv mus rau cov LEDs kom pom lawv raws li qhov cuam tshuam (Snare, High Hat, Kick)
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi