Cov txheej txheem:

DIY Makey Makey Nrog Arduino Leonardo: 4 Kauj Ruam
DIY Makey Makey Nrog Arduino Leonardo: 4 Kauj Ruam

Video: DIY Makey Makey Nrog Arduino Leonardo: 4 Kauj Ruam

Video: DIY Makey Makey Nrog Arduino Leonardo: 4 Kauj Ruam
Video: DIY Makey Makey with Arduino leonardo 2024, Hlis ntuj nqeg
Anonim
Image
Image
Thaiv
Thaiv

Hauv qhov kev qhia no koj yuav kawm paub yuav tsim lub ntsej muag zoo li lub cuab yeej nrog Arduino Leonardo li cas.

Koj tuaj yeem saib cov vis dis aus no kom paub koj tus kheej nrog makey-makey.

Cov ntawv qhia no tau tsim los ua ib feem ntawm II TECH txoj haujlwm, sib koom nyiaj txiag los ntawm Erasmus + Program ntawm European Commission.

Project n °: 2017-1-FR02-KA205-012764

Cov ntsiab lus ntawm cov ntawv tshaj tawm no tsis cuam tshuam txog kev pom zoo ntawm EuropeanUnion. Lub luag haujlwm rau cov ntaub ntawv thiab cov lus pom tau hais nyob rau ntawd nrog cov kws sau ntawv.

Yog xav paub ntxiv hu rau peb ntawm [email protected]

Kauj Ruam 1: Qhov Chaw

koj yuav xav tau:

1x Arduino Leonardo + USB cable

6 x 1MOhm resistors

1x daim ntawv loj loj

14x jumper xov

7 x kab zauv

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Cov duab hauv qab no qhia txog cov kab hluav taws xob uas xav tau rau ib qho tseem ceeb ntawm koj lub cuab yeej zoo ib yam. Txhawm rau kom tau txais 6 tus yuam sij ua haujlwm, koj yuav tsum rov ua dua qhov txuas no 6 zaug tag nrho, txhua lub sijhawm siv tus lej sib txawv sib txawv ntawm koj li arduino leonardo.

Kauj Ruam 3: Khoos phis tawj Makey Makey-like Device

Program lub Makey Makey-Like Device
Program lub Makey Makey-Like Device

Txhawm rau kom koj lub ntsej muag zoo li lub cuab yeej ua haujlwm zoo li lub ntsej muag ua kom zoo nkauj, koj yuav tsum tau teeb tsa Arduino pawg thawj coj, yog li thaum twg lub kaw lus kaw, lub khoos phis tawj yuav hnov zoo li yog ib qho tseem ceeb (ex. "A", "Backspace", "space") tau raug nias.

Koj yuav tsum tau siv Arduino IDE rau tus lej thiab xa cov firmware rau koj li Arduino Leonardo pawg thawj coj. Rub tawm lub software los ntawm kev mus xyuas Arduino IDE> Scroll down kom txog thaum koj pom "Rub tawm Arduino IDE" ntu thiab xaiv cov version raws li koj lub operating system (piv txwv li Yog tias koj muaj Windows 7, xaiv "Windows Installer" / yog tias koj muaj Windows 10, xaiv "Windows app")> Ntawm nplooj ntawv tom ntej xaiv "Tsuas yog rub tawm" thiab khiav cov ntaub ntawv teeb tsa.

Ntawm no koj tuaj yeem rub tawm cov cai txhawm rau rub tawm ntawm koj lub Rooj Tswjhwm Saib Arduino.

Tom qab ntawd koj yuav tsum tau khiav.ino cov ntaub ntawv nrog Arduino IDE thiab xyuas kom tseeb tias koj teeb tsa lub tsev qiv ntawv txav mus los ntawm "Sketch" ntawv qhia zaub mov> suav nrog Lub Tsev Qiv Ntawv> Tswj Lub Tsev Qiv Ntawv …> Tshawb nrhiav "movingavg"> Nruab. Tom qab ntawv, xaiv lub rooj tsavxwm raug los ntawm Cov Cuab Yeej> Pawg Thawj Coj: Arduino Leonardo thiab tom qab ntawd kho qhov tseeb los ntawm Cov Cuab Yeej> Chaw Nres Nkoj. Thaum kawg, xa cov cai los ntawm kev siv tus xub xub (→) khawm nyob rau sab xis saum toj ntawm lub qhov rais, los ntawm kev xaiv Sketch> Upload lossis los ntawm nias Ctrl+U ntawm cov keyboard.

Nco tseg tias peb tau teeb tsa tus pin sib piv kom A0 daim duab qhia rau ntawv "d", A1 rau ntawv "s", thiab lwm yam.

Koj tuaj yeem hloov kho daim duab qhia chaw los ntawm kev hloov cov tsiaj ntawv "d", "s", thiab lwm yam.

Kauj ruam 4: Ua si

Image
Image

Ib yam li koj ua nrog lub ntsej muag tiag tiag, nws yog qhov yooj yim los txuas cov kab zawv zawg rau cov xov hlau jumper, thiab txuas cov nab kuab cuav lawv tus kheej mus rau yam twg yam khoom uas koj xav tau.

Pom zoo: