Cov txheej txheem:

Tsis Makey Makey? Tsis Muaj Teeb Meem! Yuav Ua Li Cas Kom Koj Makey Makey Nyob Hauv Tsev!: 3 Kauj Ruam
Tsis Makey Makey? Tsis Muaj Teeb Meem! Yuav Ua Li Cas Kom Koj Makey Makey Nyob Hauv Tsev!: 3 Kauj Ruam

Video: Tsis Makey Makey? Tsis Muaj Teeb Meem! Yuav Ua Li Cas Kom Koj Makey Makey Nyob Hauv Tsev!: 3 Kauj Ruam

Video: Tsis Makey Makey? Tsis Muaj Teeb Meem! Yuav Ua Li Cas Kom Koj Makey Makey Nyob Hauv Tsev!: 3 Kauj Ruam
Video: Vidcode, Javascript, and Makey Makey 2024, Kaum ib hlis
Anonim
Tsis Makey Makey? Tsis Muaj Teeb Meem! Yuav Ua Li Cas Kom Koj Makey Makey Nyob Hauv Tsev!
Tsis Makey Makey? Tsis Muaj Teeb Meem! Yuav Ua Li Cas Kom Koj Makey Makey Nyob Hauv Tsev!

Koj puas tau xav koom nrog hauv Makey Makey kev sib tw ntawm Cov Lus Qhia tab sis koj tsis tau muaj Makey Makey?!

Tam sim no koj ua tau!

Nrog cov lus qhia hauv qab no, Kuv xav qhia koj yuav tsim koj tus kheej Makey Makey nrog qee yam yooj yim uas koj tuaj yeem yuav tau pheej yig.

Peb yuav xav tau:

· Arduino Pro Micro

· Cov neeg tiv taus

· Diode qhov chaw

· Tinfoil

· Cov kab

· Cov diode

Vim li cas peb tsis tuaj yeem siv Arduino Uno lossis Nano yooj yim, koj yuav xav tsis thoob vim tias Arduino Pro Micro tsuas yog ib qho uas tuaj yeem siv ua HID (Tib Neeg Kev Sib Txuas Ntaus). Piv txwv li, koj nas lossis koj cov keyboard yog HIDs vim ua tsaug rau lawv koj tuaj yeem sau lossis nyem lub cim ntawm koj lub computer. Makey Makey yuav siv koj zoo li hloov pauv thiab thaum twg koj yuav kov ib lub txiv tsawb lossis lwm yam uas yog tus coj ua koj yuav kaw qhov Circuit. Pom tseeb qhov tseeb tam sim no uas ntws los ntawm koj lub cev yog yam tsawg kawg nkaus.

Buuut, hais lus txaus thiab cia peb dhia mus rau qhov haujlwm.

Kauj ruam 1: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Schematic zoo li nyuaj tab sis kuv yuav qhia koj yooj yim npaum li cas.

Kuv tau sau ob tus lej (1, 2) txhawm rau kom paub qhov txawv ntawm ob feem ntawm kev sib tham.

Lawv tau tsim los ntawm cov khoom sib xws, tab sis txhua tus ntawm lawv yuav ua qhov sib txawv thaum peb yuav kaw qhov Circuit Court.

Hauv cov lus yooj yooj yim, lawv zoo li ob tus yuam sij sib txawv ntawm koj cov keyboard: lawv tau tsim los ntawm cov khoom sib xws tab sis txhua tus sau ib tsab ntawv tshwj xeeb.

Cia peb teeb tsa "Txiv tsawb-sab" ntawm txoj haujlwm.

Ua ntej tshaj plaws peb yuav tsum txuas "Txiv tsawb-tus pin" mus rau VCC los ntawm tus tiv thaiv ntawm 1M Ω thiab diode (muab tias diodes yog cov ncov qaumteb qabteb koj yuav tsum txheeb xyuas tias cov qhab dawb yog nyob rau sab nraud piv rau qhov tsis kam) hauv xaj kom tshem qee lub suab nrov.

(Kuv tau sim ua qhov loj dua qhov ua haujlwm zoo yuav yog nyeem ntawv ntawm lub ntsuas, yog li tsis txhob sim sim koj tus kheej.)

Qhov twg diode thiab qhov tsis kam txuas nrog peb yuav tsum txuas cov hlau los ntawm D2 tus pin (ntsuab-ish ib).

Cia peb rov ua cov txheej txheem qub ib yam rau "Apple-side" thiab ntau zaus koj xav tau, nyob ntawm seb muaj pes tsawg tus yuam sij koj xav tau.

Tom qab ntawd peb yuav tsum hnav tus neeg xyuas pib, Kuv tau sim ntau yam, qhov zoo tshaj plaws, hauv kuv lub tswv yim, yog txhawm rau xaim hlau ntawm lub nplhaib hlau thiab hnav lub nplhaib ntawd.

Tab sis koj tseem tuaj yeem tsim koj tus kheej kev coj ua raws li kuv tau ua rau thawj tus qauv.

Tsuas yog nqa ib daim tinfoil thiab qhwv nws nruj ib ncig ntawm koj tus ntiv tes, txuas cov xaim rau hauv tinfoil siv qee cov kab xev thiab kaw nws ua ke.

Kauj ruam 2: Code

Cov cai yog qhov yooj yim heev, tej zaum koj yuav xav tau teeb tsa lub tsev qiv ntawv "Keyboard.h" tab sis online koj yuav pom ntau cov ntaub ntawv uas yuav pab tau koj tiag tiag.

Kauj Ruam 3: Muaj Kev Lom Zem

Yog tias koj muaj lus nug tsis txhob ua siab deb los tawm tswv yim ntawm no lossis hauv qab kuv li youtube video.

Kuv vam tias koj nyiam qhov no thiab cia saib ntawm yav tom ntej Qhia.

Nyob Zoo!

Pom zoo: