Cov txheej txheem:

Spinning Zaub: 4 Cov Kauj Ruam
Spinning Zaub: 4 Cov Kauj Ruam

Video: Spinning Zaub: 4 Cov Kauj Ruam

Video: Spinning Zaub: 4 Cov Kauj Ruam
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Hlis ntuj nqeg
Anonim
Image
Image
Circuit Court
Circuit Court

Thaum kawm ib lub lim tiam txog kev suav lub cev, piv txwv li Arduino, peb yuav tsum ua peb txoj haujlwm ib hnub hauv ob pawg. Peb tau xaiv los tsim cov lus qhia ntxaws. Nws tsuas yog siv 7 LEDs (peb ntxiv ib qho ntxiv los qhia cov cim tshwj xeeb zoo li ÄÖÜ). Lawv tau teeb tsa ntawm caj npab uas tig nrawm heev. Tom qab ntawd peb qhib thiab tua lawv thiab cov ntawv nyeem tau nyeem. Hauv qhov tseeb nws zoo dua li hauv daim vis dis aus.

Txhawm rau hloov cov ntawv nyeem tso tawm peb lub rooj sib tham txuas rau lub network wifi thiab ua haujlwm rau lub vev xaib uas koj tuaj yeem nkag mus rau cov ntawv.

Kauj ruam 1: Lasercutting

Vim tias peb tau nkag mus rau lub tshuab txiav laser peb txiav txim siab txiav peb lub cav thiab lub caj npab tawm ntawm acrylic. Nws tau dhau los ua lub tswv yim zoo heev vim tias cov ntawv nyeem tau zoo txawm tias nyob ntawm qhov chaw sib txawv (txawm tias tsis yog qhov kaj). Cov duab yog yooj yim heev yog li lawv kuj tseem tuaj yeem ua los ntawm qee cov seem acrylic thiab/lossis ntoo. Peb txawm sau peb lub npe rau qhov txias. Qhov ntev tsis muaj teeb meem tiag tiag vim tias koj tsuas tuaj yeem kho lub sijhawm tas sij hawm hauv cov cai kom ua kom haum rau qhov nrawm.

Txhawm rau txuas lub cev muaj zog peb siv cov yas yas uas tsim nyog uas peb nyuam qhuav thawb rau ntawm lub cev muaj zog thiab lo rau ntawm caj npab. Peb siv cov kua nplaum kub los koom nrog txhua daim acrylic.

Kauj ruam 2: Circuit Court

Circuit Court
Circuit Court
Circuit Court
Circuit Court
Circuit Court
Circuit Court

Lub Circuit Court yog qhov yooj yim heev, koj tsuas yog yuav tsum tau nqes 7 LEDs rau ib lub rooj tsavxwm. Peb xaiv cov liab vim peb nyeem qee qhov uas lawv saib zoo tshaj plaws thaum kawg.

Peb lub rooj tsavxwm yog qhov zoo tshaj esp32, yog li peb tau tsim hauv wifi, them roj teeb thiab lub roj teeb uas tsim nyog. Nws tau siv yooj yim heev thiab peb yuav siv tib lub rooj tsav xwm dua.

Vim tsis muaj laj thawj tshwj xeeb peb tau xaiv los txuas txhua tus zoo LED ceg thiab txuas txhua tus ntawm cov ceg tsis zoo mus rau tus lej I/O tus lej. Qhov no txhais tau tias koj yuav tsum teeb tus pin rau LOW kom qhib lub LED thiab HIGH kom tua nws.

Nws tau dhau los ua ib lub tswv yim zoo kom muab cov tshuaj tiv thaiv rau ntawm lub rooj tsavxwm thiab siv cov tub ntxhais nqaim los cais txhua yam.

Kauj ruam 3: Code

Txhua tus ntawm peb tus lej tuaj yeem pom ntawm Github.

Peb cov cai tau tshoov siab los ntawm cov vev xaib yooj yim thiab ib txoj haujlwm zoo sib xws tsis muaj wifi. Peb tsuas yog ua ke txhua yam thiab ntxiv peb tus kheej bitmasks rau cov ntawv. Vim tias peb muaj lub zog xa hluav taws xob rau lub cav, peb tsuas yog xaiv qee lub sijhawm qeeb thiab hu rau qhov hluav taws xob kom cov duab ruaj khov. Nws yuav yog txoj hauv kev zoo dua los ntsuas qhov nrawm ntawm caj npab nrog qee qhov kev ntsuas (piv txwv li lub ntsej muag lub ntsej muag lub ntsej muag thiab cov hlau nplaum hauv qab kev tsim kho) thiab kho qhov ncua sij hawm hauv cov cai, tab sis peb tsis ua li ntawd vim yog peb lub sijhawm txwv.

Peb lub vev xaib tsuas yog muaj qee cov ntawv thiab cov ntawv nkag uas xa cov hlua tam sim no ntawm txhua qhov hloov pauv kom cov ntawv hloov tshiab tam sim. Tom qab khau raj thiab thaum txoj hlua khoob raug xa mus peb tso tus IP chaw nyob yog li koj paub tias yuav txuas mus rau qhov twg.

Peb lub vev xaib tus lej tau suav nrog hauv Arduino code raws li txoj hlua tab sis nws tau cais cais kom pom meej.

Kauj ruam 4: Xaus

Xaus
Xaus

Txhua yam ua haujlwm tau zoo thaum kawg, peb yuav tsis hloov dab tsi. Peb yuav pom zoo kom siv cov acrylic zoo li peb tau ua, nws zoo heev li cas cov ntawv tsuas yog ntab saum huab cua.

Tib yam uas peb tsis suav tias yog lub zog ntawm caj npab tig, peb kev tsim kho tau tshee hnyo peb yuav tsum kaw nws rau saum rooj.

Cov yam ntxwv uas yuav zoo tab sis peb tsis tuaj yeem paub yuav yog qhov ntsuas uas twb tau hais los lawm. Nrog qhov ntawd nws yuav muaj peev xwm tswj tau qhov nrawm ntawm cov ntawv mus ib ncig ntawm cov zaub. Peb yuav tsum tau siv lub hwj chim los ua qhov ntawd.

Pom zoo: