Cov txheej txheem:

Tswj lub LED Nrog Koj Lub Smartphone: 6 Kauj Ruam
Tswj lub LED Nrog Koj Lub Smartphone: 6 Kauj Ruam

Video: Tswj lub LED Nrog Koj Lub Smartphone: 6 Kauj Ruam

Video: Tswj lub LED Nrog Koj Lub Smartphone: 6 Kauj Ruam
Video: yuav coj li cas kom luag nyiam 2024, Kaum ib hlis
Anonim
Tswj lub LED nrog Koj Lub Smartphone
Tswj lub LED nrog Koj Lub Smartphone

Kauj Ruam 1: Khoov Cov Thawj (=

Khoov Cov Leads (=
Khoov Cov Leads (=
Khoov Cov Leads (=
Khoov Cov Leads (=

Ua ntej Peb pib xaim hluav taws xob hauv Circuit Court koj yuav xav khoov coj thiab tiv thaiv ua kom haum rau koj cov cuab yeej tsim qauv. Cov neeg tawm tsam ua rau tsuas yog khoov qis hauv parralel, raws li qhia hauv cov duab thiab cov coj yuav khoov kom haum rau txhua 4 tus coj mus rau hauv lub khob cij lossis cov khoom siv ua piv txwv uas koj tau siv.

Kauj Ruam 2: Txhim Kho Lub Circuit Court

Txhim Kho Circuit Court!
Txhim Kho Circuit Court!
Txhim Kho Circuit Court!
Txhim Kho Circuit Court!

Lub Circuit Court yog Yooj Yim yog tias koj tau txuas nrog ib tus thawj coj ua ntej, cov hlau lead ntau, ntev tshaj plaws, yuav txuas nrog hauv av thiab qhov txuas txuas ntxiv yuav dhau los ntawm tus tiv thaiv mus rau 9, 10 thiab 11 PWM pins, (mem tes-dav-tes taws los piav) PWM yog qhov pib ua kom pom kev nrawm heev uas tib neeg lub qhov muag pom nws zoo ib yam ntawm qhov qis dua qhov pom kev, qhov sib txawv ci ntsa iab tau ua tiav los ntawm kev hloov pauv qhov sib piv ntawm qhov uas coj mus. tus pin 9, 10 thiab 11 tsuas yog mem tes dav tes taws los piav hloov tau. Cov hlau lead luv tshaj plaws (liab) yuav thorugh resistor rau tus pin 11, Qhov thib ob luv tshaj (ntsuab) yuav mus rau tus pin 10 thiab thaum kawg xiav (cov hlau lead uas tseem tshuav) yuav mus rau tus pin 9. thiab yog tias koj tsis tau txuas lub xov tooj ntev tshaj plaws lead- nws yog qhov tsis zoo ntawm txhua tus coj, qhov no yuav tsum mus rau hauv av labbleled qhov ntawm arduino.

Kauj Ruam 3: PR0GR4M1NG

PR0GR4M1NG!
PR0GR4M1NG!

Tam sim no peb ned rau tus lej arduino kom khaws cov cim uas yuav xa los ntawm kev ua uas tau tswj los ntawm koj lub cuab yeej, tab sis peb yuav mus txog qhov ntawd tom qab. Koj yuav tsum tau mus rau cov ntaub ntawv-piv txwv-firmatta-standardfirmatta thiab xa qhov ntawd mus rau arduino siv arduino IDE. rub tawm tau los ntawm: https://arduino.cc/en/Main/Software Thaum koj tau tshaj tawm qhov ntawd rau hauv lub rooj tsavxwm koj yuav xav tau rub tawm cov txheej txheem ua ntej rau qib tom ntej:

Kauj ruam 4: Cov tsev qiv ntawv

Tsev qiv ntawv
Tsev qiv ntawv

Thaum koj tau rub tawm cov txheej txheem, koj yuav tsum rub tawm 2 lub tsev qiv ntawv los sib tham nrog koj lub cuab yeej thiab tom qab ntawd mus rau arduino. cov lus qhia teeb tsa yuav tsum suav nrog nrog rub tawm lossis rub tawm ntawm nplooj ntawv Cov tsev qiv ntawv no suav nrog: oscp5: https://www.sojamo.de/libraries/oscP5/ arduino.cc: https://www.arduino.cc/ chaw ua si/Sib cuam tshuam/Ua tiav ib zaug teeb tsa koj yuav tsum rub tawm qhov program hu ua kov osc editor los ntawm no: https://hexler.net/software/touchosc nqes mus rau hauv qab, nws nyob ze. Kuv tau suav nrog qhov txuas rau ib qho ua ntej thiab nws suav nrog cov nyees khawm, toggles, flahers thiab faders. thaum koj nias ib qho ntawm no nws xa tawm cov lus uas ua haujlwm yuav saib thiab nyeem. te ua cov duab kos txuas nrog kuj tseem yuav teeb tsa los nyeem cov lus yog li tsis muaj kev ua haujlwm nyuaj rau koj (=. qhib qhov kov osc editor cov ntaub ntawv thiab nyem lub pob sync tom qab ntawd mus rau koj lub cuab yeej, hauv kov osc xaiv txheej txheem-ntxiv-thiab xaiv kom paub tseeb tias koj lub idevice thiab pc nyob hauv tib lub network. qhov yooj yim kos funcions thiab fader code tau tsim los ntawm harryking, hauv youtube, kuv tau txuas ntxiv nws: txheeb xyuas nws hauv youtube (= https:// www.youtube.com/neeg siv/Harrybj17 rub cov ntawv ntawm no:

Kauj ruam 5: Yuav luag muaj

Yuav luag muaj!
Yuav luag muaj!
Yuav luag muaj!
Yuav luag muaj!

Thaum koj tau txais kuv ob daim ntawv thiab ua tiav qhov kov osc, nws yog lub sijhawm los khiav cov txheej txheem kos duab, koj cov arduino yuav tsum txuas nrog! lossis koj yuav tau txais qhov yuam kev. koj yuav tsum tam sim no saib hauv qab thiab koj yuav tsum pom tus ip somehwere hauv qhov tsis meej ntawm cov txiaj ntsig tau ntaus nws hauv koj cov ntaub ntawv ua-osc. tib yam nrog chaw nres nkoj. yog tias txhua yam mus tau zoo txawm li cas los xij koj ua dab tsi ntawm lub cuab yeej yuav tsum tau tsom iav ntawm liab ntsuab thiab xiav faders qhia. RGB LED Yuav Tsum Ua Kom Pom Kev. Yog Qhov No Tau Zoo tag nrho ces Zoo Siab, yog tias tsis muaj ntu kev daws teeb meem ntawm cov kauj ruam tom ntej thiab tseem.. tsis txhob tso tseg, nws tsim nyog rau lub sijhawm. (=

Kauj Ruam 6: TroubleShooting

TroubleShooting!
TroubleShooting!

Yog tias koj tau txais qee yam zoo li- tsis tuaj yeem ua haujlwm hauv 64 ntsis, rub tawm 1.5.1 version of processing yog tias koj tau txais kev zam tshwj xeeb, xyuas kom tseeb tias koj cov arduino tau txuas nrog yog tias koj tsis muaj dab tsi ua mirrored kom ntseeg tau tias koj tus ip thiab chaw nres nkoj raug thiab koj firewall tsis kaw nws. thiab yog tias koj tsis muaj kev lom zem, tawm mus: P lwm qhov yuam kev thov tawm tswv yim. (=

Pom zoo: