Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Lus Qhia
- Kauj ruam 2: Schematic
- Kauj Ruam 3: Pawg Thawj Coj Tsim
- Kauj Ruam 4: Cov Qauv Tsim thiab Cov Lus Qhia Ua Ke
- Kauj Ruam 5: Txoj Cai V1 (Tshaj Tawm Kho Vajtse)
- Kauj Ruam 6: Txoj Cai V2 (software Debounce Nrog Timers)
- Kauj Ruam 7: Txoj Cai V3 (software Debounce With Vertical Counter) (pom zoo) (tsis muaj LED)
- Kauj Ruam 8: Qhov tshwm sim
Video: Osu! Keyboard: 8 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Kuv nyuam qhuav pib ua si sib dhos ua si hu ua osu! thiab tom qab pom cov vis dis aus ntawm kev lag luam mini keyboard kuv xav tias nws yuav yog qhov kev lom zem los tsim ib qho rau kuv tus kheej. Tsis ntev tom qab ntawd kuv txiav txim siab nws yuav yog lub tswv yim zoo los muab nws qhia rau kuv li kuv thawj qhov haujlwm.
Yog tias koj xav rov ua txoj haujlwm no kom raug rau cov lus qhia zaum kawg yog tus qhua, tab sis qee qhov kev xav tau uas kuv tau ua tsis yog raws tus nqi qis lossis zoo tshaj plaws. Qee lub Cheebtsam tau xaiv yuav luag dawb huv vim tias kuv tau ua rau lawv dag ib ncig. Yog tias koj tuaj yeem daws nws Kuv yuav txhawb koj kom kho koj li haujlwm.
Nco tseg 1: Cov khoom siv SMD (cov khoom siv hluav taws xob me me) tau siv yog li yog tias koj rov ua qhov haujlwm no qhov kev txawj ntse yuav tsum tau ua. tej zaum ib qho yooj yim rau solder version yuav raug ntxiv tab sis cov leds tsis tuaj hauv lub qhov taub pob
Nco tseg 2: Kuv tau hloov kho cov cai ntau zaus thiab kuv mus txog version 3ish tam sim no. Kuv yuav tso tag nrho cov cai hauv online tab sis kuv pom zoo kom koj siv lub xeem version. Tam sim no nws tsis tau coj ua haujlwm tab sis nws yuav tsum yog qhov ua tau zoo tshaj plaws.
Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Lus Qhia
Nyob ntawm seb koj ua koj txoj haujlwm koj yuav xav tau cov khoom sib txawv, tab sis cov khoom siv no yog cov uas kuv tau siv. Yog tias koj muaj sijhawm thiab xav txuag nyiaj, xaj daim ntawv aliexpress thiab tsis txhob xaj PCB.
1 Arduino pro micro + USB cable
3 Kailh BOX liab hloov pauv
3 10k resistor (0805 SMD)
3 100nF capacitor (0805 SMD)
4 APA102 rgb LED (5050 SMD)
3 Keycaps
1 Cov ntawv luam tawm Circuit Board (PCB) muab rau hauv txoj haujlwm no
1 rooj plaub 3D luam tawm tau muab rau hauv txoj haujlwm no
Vim li cas kuv thiaj siv Arduino pro micro?
Feem ntau cov laug cam zoo li Uno (Atmega328) tsis muaj kev txhawb nqa ib txwm rau USB kev sib txuas lus. Yog koj tuaj yeem ua haujlwm rau lawv hla USB tau yooj yim heev thiab kuv xav tias muaj cov kev daws teeb meem, tab sis kuv nyiam ua kom yooj yim thaum nws los txog rau USB kev sib txuas lus thiab kuv tsis paub yog tias qhov kev daws teeb meem zoo li cas. Cov laug cam siv lub nti sab nraud los ua USB kev sib txuas lus tau qhov Arduino pro micro (Atmega32U4) nws tau ua hauv.
Cov keyboards
Muaj ntau yam khoom siv hluav taws xob uas koj tuaj yeem siv. Tawm, kov tau lossis nyem los ntawm Kailh lossis Cherry MX. Xaiv seb koj nyiam qhov twg. Kuv siv Kailh hloov pauv vim tias lawv pheej yig ntawm Ailexpress. Yog tias koj xaiv siv PCB koj yuav xav tau Kailh BOX keyboards. Cov xim txiav txim siab qhov kev xav.
Cov khoom siv hluav taws xob
Tsis ntau los piav qhia txog lawv hauv tshooj no, tab sis yog tias koj tsis siv PCB Kuv yuav pom zoo li ib txwm ua ntu ntu ntu rau kev yooj yim soldering. Hmoov tsis zoo, cov leds siv tsis muaj nyob hauv lub pob qhov taub. Kuv kuj tseem yuav tsis pom zoo kom siv xov hlau ntawm SMD pob tshwj tsis yog koj muaj kev ntseeg siab hauv koj li kev txawj ntse. Txawm hais tias rau SMD ntawm PCB "kev tshaj lij" kev txawj ua haujlwm zoo sib xws.
Vaj tsev
Kuv muab cov vaj tsev nyob hauv txoj haujlwm no, tab sis tam sim no nws yog qhov tsis zoo. Kev hloov kho xav tau kom haum cov ntsia liaj qhov rooj, qhib rau lub leds tsis pom kev zoo, arduino nthuav tawm thiab ib feem yuav tsum tau txiav tawm rau USB kom haum. Yav tom ntej yuav muaj vaj tse tshiab ntxiv. Yog tias koj muaj lub tshuab luam ntawv 3D mus tom ntej thiab luam nws, tab sis thov tsis txhob tawm ntawm koj txoj hauv kev los luam cov ntaub ntawv tsis raug no yog tias koj tsis ua thiab tsuas yog siv qee yam ntawm lub npov qhov project.
Kauj ruam 2: Schematic
Cov txheej txheem rau txoj haujlwm no yog qhov yooj yim dua, tab sis kuv xav piav qhia cov khoom siv rau cov neeg uas txaus siab thiab tsis paub qhov kev siv no.
Hloov kev sib txuas mus rau Arduino
Cov hloov pauv tau txuas nrog Arduino pins 0, 2 thiab 3 vim tias cov pins tuaj yeem siv ua kev cuam tshuam sab nraud. Qhov no tau piav qhia ntxiv hauv tshooj cai.
Kev debounce Circuit
Nyob rau sab laug ntawm lub phiaj xwm yog lub voj voog uas tau theej 3 zaug. Lub voj voog no yog siv los qhia qhov hloov pauv. Txhawm rau paub dab tsi debouncing yog koj yuav tsum nkag siab hloov bouncing thiab nws tsis nyuaj rau nkag siab.
Ua ntej saib ntawm qhov kev sim no los pleev xim thawj daim duab (nyem qhov hloov pauv sai thiab saib lub teeb liab hauv qab no)
Thaum koj nias lossis tso qhov hloov pauv nws rov qab thiab koj lub teeb liab hloov ntawm siab thiab qis ob peb zaug rau ob peb milliseconds. Arduino yog nrawm heev thiab nyeem txhua qhov siab thiab qis hauv lub sijhawm luv no. Qhov kev zov me nyuam yuav xa qhov tseem ceeb nias lossis tso tawm txhua lub sijhawm nyeem ntawv siab lossis qis yog li nrog txhua qhov nias koj lub khoos phis tawj yuav tau txais ntau qhov nias. Tsis zoo tagnrho rau kev ua si sib dhos.
Qhov kev sib cav debounce no yuav ua rau qeeb ntawm qhov poob ntawm lub teeb liab. Lub teeb liab mus rau Arduino yuav tsis tuaj yeem hloov pauv sai li qhov thaws tshwm sim yog li nws yuav raug nyeem raws li nias ib zaug. Tsis txhob txhawj xeeb txog nws ntog kom qeeb rau qhov xovxwm tom ntej tiag vim nws yuav.
Tshaj:
Atmaga32U4 nyeem cov digital qis ntawm 0.2Vcc - 0.1V = 0.9 volt. Qhov hluav taws xob ntawm lub capacitor txhua lub sijhawm hauv nws qhov kev tso tawm yog Vcc * e^(-t/RC). Yog tias koj ntsuas lub sijhawm sib cav sib txawv ntawm koj qhov kev hloov pauv koj tuaj yeem suav koj tus tiv thaiv thiab tus nqi hluav taws xob.
daim ntawv foos
Cov LEDs
Cov rgb LEDs yog APA102 leds uas yog ib tus tuaj yeem hais qhia siv lub moos thiab kab ntawv. Tsis xav tau cov khoom siv sab nraud los ua kom lawv ua haujlwm. Rau ntau LEDs koj yuav tsum siv lub capacitor sib npaug rau 5 volt thiab hauv av tab sis nrog tsuas yog 4 LEDs koj tsis xav tau.
Kauj Ruam 3: Pawg Thawj Coj Tsim
PCB tau tsim hauv JLCPCB. Kuv tsis yog txhawb nqa los ntawm lawv tab sis rau cov qauv pheej yig lawv ua tau zoo PCB's. Rau 2 daus las koj tau txais 10 ntawm tib lub rooj tsavxwm, tab sis kev xa khoom yog kwv yees li 11 duas las rau kuv. Yog tias koj tsis xav tau rgb teeb pom kev zoo thiab npaj yuav ua ib qho xwb, koj yuav tsum txiav txim siab ua koj cov keyboard yam tsis muaj PCB.
Tus tsim ntawm pawg thawj coj saib tau ncaj ncaj rau pem hauv ntej. Kuv tsuas yog xav tau ntxiv ib feem rau cov hloov pauv, tab sis tom qab saib qee cov vis dis aus kuv tau txais qhov dai ntawm nws. Tib qhov tsis zoo uas kuv pom tau yog qhov muab tso rau ntawm lub qhov me ntsis ze rau ntawm cov hloov pauv.
Txhawm rau xaj PCB mus rau https://jlcpcb.com/ thiab xaiv 2 txheej kev xaiv. Nws yuav nug koj txog cov ntaub ntawv Gerber. rub cov ntawv ".zip" thiab rub nws mus rau lub qhov rais. Koj tsis tas yuav unzip nws. Cov teeb tsa yuav tsum zoo thiab koj tuaj yeem mus tom ntej thiab ua tiav qhov kev txiav txim.
Kauj Ruam 4: Cov Qauv Tsim thiab Cov Lus Qhia Ua Ke
Tsim
Raws li tau hais ua ntej, kuv tus qauv tsim muaj qhov tsis zoo tab sis koj tseem tuaj yeem luam nws yog tias koj xav tau. kev tsim qauv tau tsim hauv Fusion 360. Nws yog software dawb 3D qauv thiab nrog kuv cov kev paub dhau los ntawm tus neeg tsim khoom thiab cov khoom ua haujlwm nws yooj yim heev ua haujlwm nrog. Cov voj voos ntawm cov ces kaum ntawm rooj plaub yog txhawm rau tiv thaiv tev tawm ntawm cov ntawv luam tawm.
Yog tias koj ua koj tus kheej tsuas yog ib yam uas tseem ceeb heev. Koj cov keyboards yuav tsum tau muab tso rau khov kho thiab txav tsis tau. Kuv tau muab cov duab ntawm cov xwm txheej txiav nrog qhov ntev yog li koj tuaj yeem siv nws rau koj tus kheej tsim piv txwv tias koj siv Kailh BOX hloov pauv.
Los ua ke
Tam sim no koj muaj txhua yam khoom xav tau los sib sau ua ke. Muaj kev xaj kom sib sau ua ke thawj qhov no vim tias cov hloov pauv tau muag.
1. Muab cov khoom SMD tso rau hauv. cov no yog cov resistors, capacitors thiab LEDs.
2. Solder Arduino pro micro.
3. Muab 3 qhov hloov pauv rau hauv daim ntawv luam tawm 3D npog ua ntej yuav laug. Lub hau npog tsis tuaj yeem raug tshem tawm tom qab siv cov hloov pauv. Desoldering cov hloov pauv tsis tau qhia thiab yuav ua rau lawv puas tsuaj.
4. Tam sim no muab cov hloov pauv tso rau hauv qhov chaw. Ua qhov no sai li sai tau vim tias cov yas hloov pauv tuaj yeem yaj thiab rhuav tshem lawv lossis txo qis lawv cov lej.
5. Muab daim npog npog sib dhos rau hauv rooj plaub luam tawm 3D thiab ruaj ntseg nrog daim kab xev lossis siv cov ntsia hlau yog tias lawv tsis cuam tshuam nrog cov yuam sij.
6. Muab lub keyCaps tso rau ntawm tus tes hloov qhov thiab koj ua tiav.
Cov lus pom zoo
Desolder lossis npog LEDs ntawm arduino tom qab xa koj cov cai. Cov coj yog qhov zoo kom muaj yog tias koj tus lej code tsis tso tawm tab sis tsis zoo saib raws li cov khoom tiav. Kev txawj thiab taw tweezers yuav tsum tau ua.
Kuj qee qhov tuav ko taw hauv qab yog qhov zoo rau kev tiv thaiv plam thiab cia lub rgb lub teeb ci los ntawm.
Kauj Ruam 5: Txoj Cai V1 (Tshaj Tawm Kho Vajtse)
Cov cai rau txoj haujlwm no tsis yog tus pib ua phooj ywg yog li koj tsuas yog pib ua haujlwm hauv arduino ces txoj cai no yuav ua rau koj ntshai me ntsis. Txawm li cas los xij kuv yuav sim piav qhia seb muaj dab tsi tshwm sim raws li qhov kuv ua tau. Qee yam tau piav qhia tom qab hauv kab lus no yog li yog tias koj muaj lus nug thov ua ntej nyeem tag nrho.
Kev xa cov cai
Ua ntej rub tawm tag nrho 3 ".ino" cov ntaub ntawv thiab muab tso rau hauv ib daim nplaub tshev. Yog tias koj tsis muaj Arduino IDE tsuas yog rub tawm nws dawb ntawm qhov chaw ua haujlwm arduino.
Txuas koj Arduino rau koj lub PC thiab qhib "OSU_Keyboard_code_V1.ino". Hauv Pawg Thawj Coj xaiv "Arduino/Genuino Micro". Tsis tas li hauv Cov Cuab Yeej xaiv txoj cai COM chaw nres nkoj. Qhov no qee zaum tuaj yeem hloov pauv. Txhawm rau upload cov cai rau koj Arduino tsuas yog nyem rau ntawm xub xub sab saum toj sab laug ntawm lub vijtsam thiab tos kom txog thaum nws qhia koj nws ua tiav hauv qab sab laug.
OSU_Keyboard_code_V1
Xws li thiab txhais
Ua ntej koj yuav tsum suav nrog Keyboard lub tsev qiv ntawv. Qhov no ua rau nws muaj peev xwm siv Arduino ua cov keyboard.
Tom ntej no kuv txhais qee qhov tseem ceeb. Txhais tau zoo ib yam li qhov sib txawv tab sis lawv tsis tuaj yeem hloov pauv thaum lub program ua haujlwm. Thawj 9 yog rau cov cim keyboard, arduino tus lej tus lej thiab cov khoom chaw nres nkoj.
Tom qab ntawd cov khoom me me ntawm cov ntaub ntawv LED thiab moos.
Tsis tas li cov naj npawb ntawm leds tau piav qhia thiab qhov sib txawv rau lub kaum sab xis ntawm lub log xim.
Teeb
Ib feem ntawm txoj cai no tsuas yog ua tiav ib zaug thaum lub arduino ntsaws rau hauv.
Thawj zaug ntawm lub moos thiab cov ntaub ntawv pins ntawm LEDs tau teeb tsa ua tawm thiab hloov pins raws li kev nkag. Nov yog qhov hloov kho tshiab ntawm pinMode (). Yog tias koj xav tshawb nrhiav "kev tswj chaw nres nkoj ncaj qha".
Keyboard.begin () yooj yim pib usb kev txuas ua cov keyboard.
Tom ntej no 3 kev cuam tshuam tau txuas nrog lub pins hloov. Txhua lub sijhawm ntsuas pom qhov hloov pauv ntawm tus pin hloov qhov program me me yuav ua tiav. Qhov kev pab me me no yuav ua ntxiv rau.
Loop
Qhov no yuav rov ua txuas ntxiv thaum lub arduino tau siv.
Kuv tsuas yog siv nws los hloov thiab hloov kho xim ntawm LEDs.
Cuam tshuam
Nov yog cov haujlwm me me, uas tsuas yog ua tiav thaum pom qhov hloov pauv ntawm tus pin hloov, tau ua. Lawv zoo ib yam tshwj tsis yog tus pin uas lawv ua rau.
Ua ntej nws kuaj xyuas yog tias lub pob nyem lossis tso tawm thiab xa cov keyboard kom raug.
LED (piav qhia hauv qhov kev txiav txim sib txawv)
Yog tias koj xav paub yuav ua li cas tswj cov LEDs koj yuav tsum saib ntawm APA102 cov ntawv teev tseg.
OneBit
Qhov no yog dua qhov chaw nres nkoj ncaj qha hloov kho cov ntawv digital.
Ua ntej nws kuaj xyuas yog tias nws yuav tsum xa 0 lossis 1 thiab feem rub cov ntaub ntawv tus pin qis lossis siab. Tom qab ntawd nws sau lub moos tus pin siab luv heev thiab sau nws qis dua.
OneByte
Qhov no rov ua dua ib zaug 8 zaug nrog "rau" lub voj. Nws nyeem thawj ntsis hauv ib byte thiab dhau nws tus nqi mus rau oneBit muaj nuj nqi thiab ua tib yam rau 7 tom ntej.
LedData
Qhov no rov ua dua OneByte 4 zaug los muab cov ntaub ntawv xav tau rau ib tus coj. Thawj byte pib nrog 111xxxxx thiab tus nqi me ntsis 5 me ntsis ntawm qhov chaw xxxxx. Qhov ci ci tuaj yeem teeb tsa los ntawm 0 txog 31 (2^5 = 32 qib).
3 bytes tom ntej yog rau qhov tseem ceeb xiav, ntsuab thiab liab. Ib byte rau txhua xim.
ColorWheelThisLed
Txoj haujlwm no hu ua ledData muab nws cov xim rgb nyob ntawm lub kaum sab xis hauv lub log xim.
Tus nqi 16 ntsis yog cov faib hauv 6 qhov sib npaug sib npaug ntawm 60 degrees. Saib cov duab yuav pab koj nkag siab zoo dua.
(ib qho 8 ntsis version kuj tau muab tab sis tawm tswv yim vim tias nws yoov heev)
StartEndFrame
Qhov pib thav duab yuav tsum tau siv txhua lub sijhawm koj xav xa cov xim tshiab rau lub leds thiab xav hloov kho qhov tseeb ntawm cov leds
Kuv tsuas yog siv lub thav duab pib vim tias qhov kawg tsis xav tau. Pib thav duab yog 4 bytes ntawm 0. Qhov kawg ncej yog 4 bytes ntawm 255 (11111111).
Kauj Ruam 6: Txoj Cai V2 (software Debounce Nrog Timers)
Tom qab ib pliag ntawm kev ua si Kuv pom qee qhov teeb meem ob npaug nrog kev kho vajtse debounce. Qhov no tuaj yeem kho nrog qee lwm tus nqi tiv thaiv lossis cov khoom siv, tab sis raws li cov nyees khawm thiab lub hau tsis tuaj yeem tshem tawm Kuv xav tias software debouncing yuav yog ib qho kev daws teeb meem zoo. Kev tshaj tawm software yuav tsum ua haujlwm dua li kev kho vajtse debounce tau ua tiav lossis tsis yog. Hauv kuv qhov teeb tsa tam sim no kuv cound tsis tshem lub hau yog li kuv tsuas yog tso cov resistors thiab cov capacitors tso rau hauv qhov chaw.
Kuv yuav tsis piav qhia cov cai kom dav li yav dhau los vim tias nws nyuaj me ntsis los piav.
Yeej feem ntau ntawm cov cai ua haujlwm zoo ib yam thiab cov cai coj ua yog tsis muaj kev cuam tshuam. dab tsi hloov pauv yog kev cuam tshuam sab nraud tsis siv cov haujlwm arduino ntxiv lawm. Tam sim no nws ua haujlwm hauv C dawb huv. Thiab tam sim no dab tsi ntxiv yog software cuam tshuam. Txog qhov no kuv tau siv AVR lub sijhawm tos kom tau qee lub sijhawm kom txog rau thaum lub pob tau nres lawm. Vim tias cov timers cuam tshuam raws li lub sijhawm txiav txim siab tsis cuam tshuam los ntawm txhua yam tshwm sim hauv lub voj.
Tsuas yog qhov poob qis kuv tuaj yeem tuaj nrog yog qhov ua haujlwm qeeb ntawm arduino tsis tuaj yeem siv ntxiv lawm. Vim tias kev ua haujlwm qeeb siv Timer 0 thiab txoj haujlwm no siv Timer 0 los sib cav.
Hauv daim duab koj tuaj yeem pom tias txoj cai ua haujlwm li cas. Mem me ntsis qhia yog lub sijhawm ua haujlwm. Dab tsi tsis tau piav qhia yog rooj plaub uas thaum kawg ntawm lub pob nyem nias lub tswv yim qis. Hauv qhov no tsuas yog nias lub pob kom xa thaum lub pob twb tau tso tawm lawm. Qhov ntawd txhais tau tias tus yuam sij yuav raug tuav kom deb li deb tau ntawm lub computer. Txog qhov kev zam tsis tshua muaj no yuav muaj daim tshev ua ntej thaum lub sijhawm tas sijhawm. Yog tias qhov kawg ntawm lub sijhawm siv lub khawm tsis raug nias, yuav tsum xa cov lus txib tseem ceeb.
Kauj Ruam 7: Txoj Cai V3 (software Debounce With Vertical Counter) (pom zoo) (tsis muaj LED)
Txoj cai no tseem muaj qhov hloov pauv uas koj tsis xav tau rub cov neeg tawm tsam. Nco ntsoov tias koj txuas txhua lub pob rau lub tswv yim thiab GROUND! Kev tsim tawm hauv kev rub tawm yog siv
Kuv kuj tau ntsib qee qhov tsis tau sau npe hauv qhov chaws V2. Kuv xav tias txoj cai nyuam qhuav dhau los ua qhov nyuaj nrog nws lub sijhawm- thiab cuam tshuam sab nraud thiab kuv yuav tsis nco qee qhov tshwj xeeb. Vim li no kuv tau hais los ntawm kos nrog tshawb hauv is taws nem rau software debounce txoj kev.
(ua siab ncaj, tsawg kawg ib nrab ntawm txoj haujlwm no tau dhau los ua pob debouncing ntawm qhov no)
Tom qab qee qhov kev tshawb nrhiav kuv tau hla cov ntawv no:
www.compuphase.com/electronics/debouncing….
Yuav kom ncaj ncees, nws coj kuv qee lub sijhawm kom nkag siab zoo tias nws ua haujlwm zoo li cas. Nws cuam tshuam nrog qee qhov nyuaj me ntsis kev tswj hwm, tab sis kuv yuav sim ua kom yooj yim li sai tau. Txawm li cas los xij kuv cov lus piav qhia tsuas yog ntxiv rau hauv kab ntawv yog li koj yuav tsum tsawg kawg yog nyeem "cov ntawv ntsug", "kev piav qhia qhov ua tiav" thiab "txo qis qis".
Kuv piav qhia
Daim duab qhia sijhawm (ua hauv WaveDrom) Kuv ntxiv yuav tsum ua qhov nyuaj rau nkag siab lej lej tsawg kawg kom nkag siab me ntsis. Nco tseg daim duab muaj 2 qhov khoom me me, tab sis kuv tus lej muaj 3. Qhov no txhais tau tias yog lub sijhawm debounce ntev dua.
Ib ntsis rau tus nqi
Nrog rau kev siv lub txee ntsug nws tuaj yeem nthuav tawm ntau lub khawm tib lub sijhawm, ua ke. Txhua qhov txiaj ntsig yog hom Byte (uint8_t) thiab suav nrog 8 khoom. peb tsis txhawj xeeb txog qhov muaj nqis ntawm cov byte no, tab sis peb xav paub cov khoom ntawm lawv tus kheej. Txhua lub pob kom tau tshaj tawm tsuas yog siv me ntsis ntawm txhua byte. Thawj lub pob tsuas yog siv thawj zaug ntawm txhua byte, khawm thib ob siv qhov thib ob me ntsis thiab lwm yam.
Txhua lub sijhawm
Los ntawm kev siv lej lej nws muaj peev xwm ua tiav cov lej sib tw no ua ke. Thiab, txawm hais tias lej lej yog qhov nyuaj heev, nws muaj txiaj ntsig zoo rau tus txheej txheem.
Nrog 8 ntsis hom ntaub ntawv nws yog qhov ua tau los ua qhov no rau 8 khawm. Siv cov ntaub ntawv loj dua tso cai rau ntau tshaj tawm ntawm ib zaug.
Qhov debounce
Cov kev tawm tsam niaj hnub ua tiav txhua txhua 1 millisecond nrog lub sijhawm cuam tshuam.
thaum lub pob nyem lub pob State, uas yog lub xeev tau tshaj tawm, yuav emedeately mus qis, qhia lub pob nyem. Txhawm rau txheeb xyuas qhov tso tawm lub pob yuav tsum siab rau ntev txaus, qhia tias nws tsis tau thaws rau qee lub sijhawm. Toggle yog siv los qhia lub pob hloov. Cov khoom txee tau siv rau…. suav ntev npaum li cas tsis muaj qhov thaws.
Delta qhia qhov sib txawv ntawm cov tswv yim thiab lub xeev tau tshaj tawm. Tsuas yog thaum muaj qhov sib txawv lub txee yuav suav. lub txee yuav rov pib dua thaum pom qhov thaws (delta yog 0).
Kauj Ruam 8: Qhov tshwm sim
Yog tias txhua yam mus tau zoo koj yuav tsum tam sim no muaj cov keyboard ua haujlwm los ua si Osu! nyob rau Kuv tus kheej tsis tau pom ib qho latency hlo li. Yog koj ua tau thov qhia rau kuv paub. Tsis tas li yog muaj lus nug xav nug dab tsi.
Cov lus hais dhau los txog V2 tsis tau txhais tias yog kev cog lus yog li tsis txhob ncua txoj haujlwm no vim tias koj xav tos V2.
Kuv vam tias koj txaus siab rau koj cov keyboard!
Osu! npe: tzm3
Teeb meem
Yog tias koj xav tias koj muaj teeb meem nrog koj cov keyboard, xub qhib cov ntawv sau thiab nias txhua tus yuam sij ib zaug rau lub sijhawm luv.
Puas yog ib lossis ntau tus yuam sij tsis ua haujlwm?
Nws muaj peev xwm koj rhuav tshem qhov hloov pauv sab hauv thaum siv cov khoom siv. Yog tias koj muaj lub ntsuas ntsuas tso rau qhov txuas ntxiv/beeping, tso nws mus rau qhov hloov pauv thaum Arduino tsis txuas nrog thiab nias tus yuam sij. Nws yuav tsum beep.
Ua cov cim uas koj nyuam qhuav ntaus ntawv sib txuas cov yuam sij uas koj teeb tsa hauv Osu! ?
Hloov cov cim hauv tus lej arduino hauv thawj 3 #Defines ('' yog nessecary!).
Los yog hloov koj Osu! nqis los siv cov yuam sij teeb tsa.
Puas yog ib lossis ntau tus yuam sij rov ua ob peb zaug?
Qhov kev tawm tsam Circuit Court propably tsis ua haujlwm rau koj cov keyboards lossis tsis raug siv kom raug. Txheeb xyuas koj cov laug txuas. Yog tias nws tseem tshwm sim sim tus nqi hluav taws xob ntawm 1uF. Qhov no yuav nyuaj rau cov neeg siv PCB.
Yog tias koj muaj teeb meem nrog koj cov LEDs
Puas yog LEDs flicker?
Ib txoj hlua txuas yuav xoob. Yog tias koj siv PCB lees paub tias cov tshuaj yaj yeeb yaj kiab tau ntws ntawm lub ncoo ntawm daim ntawv luam tawm.
Puas muaj ib lub leds ua haujlwm lossis los ntawm qee tus lej ntawm LEDs tsis ua haujlwm?
Txheeb rau qhov luv ntawm qhov sib txuas ntawm thawj LED (ua raws kab) thiab tshawb xyuas kom zoo sib txuas ntawm cov khoom ntawm Arduino thiab ntxiv thawj LED. Yog tias lees paub qhov tseeb thiab tseem muaj qhov tsis zoo koj yuav xav tau hloov thawj LED.
Yog tias qhov no kho nws rov ua rau LEDs tom ntej yog xav tau.
Pom zoo:
HotKeys Keyboard Nrog Cov Ntawv Cuam Tshuam: 14 Cov Kauj Ruam (nrog Duab)
HotKeys Keyboard Nrog Cov Ntawv Cuam Tshuam: Kuv vam tias koj ua tau zoo thaum kis tus kabmob kis no. Nyob Nyab Xeeb. Ua Kom Muaj Zog. #COVID19Being yog tus tsim qauv tsim khoom, Kuv xav tau nkag mus ntau dua 7-8 software uas suav nrog Solidworks, Photoshop, Illustrator, Keyshot, Indesign, thiab lwm yam
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Keyboard Txhaj/Pib Hom Koj Tus Kheej (Password) Nrog Ib Nyem!: 4 Cov Kauj Ruam (nrog Duab)
Keyboard Txhaj/Pib Hom Koj Tus Kheej (Password) Nrog Ib Nyem!: Lo lus zais nyuaj … Nyob rau sab saum toj ntawm qhov ntawd yog tias koj muaj nrog, sib dhos tus password nws yuav siv sij hawm ntaus ntawv tab sis ntshai tsis yog kuv cov phooj ywg, Kuv muaj qhov kev daws teeb meem rau qhov no! Kuv Tsim lub tshuab ntaus me me me uas yuav ua rau
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv