Cov txheej txheem:

Lo lus ntawm Hnub Zaub Nrog IoT: 7 Kauj Ruam
Lo lus ntawm Hnub Zaub Nrog IoT: 7 Kauj Ruam

Video: Lo lus ntawm Hnub Zaub Nrog IoT: 7 Kauj Ruam

Video: Lo lus ntawm Hnub Zaub Nrog IoT: 7 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Lo lus ntawm Hnub Zaub Nrog IoT
Lo lus ntawm Hnub Zaub Nrog IoT

Hauv Cov Lus Qhia no, Kuv yuav qhia koj li cas koj tuaj yeem tsim "Lo Lus ntawm Hnub Zaub" siv NodeMCU Wi-Fi module thiab Dot Matrix Display. Hloov chaw ntawm lo lus ntawm hnub, koj tuaj yeem tso saib txhua yam koj xav tau (ntawv) los ntawm tag nrho internet, tom qab mus dhau qhov kev qhia no. Yog tias qhov no yog koj thawj zaug siv Wi-nkaus module, tom qab ntawd cov ntawv qhia no tseem yuav ua rau koj mob, raws li kuv tau npog txij thaum pib txhua txoj hauv kev mus rau qhov kawg.

Cia peb nkag mus rau hauv.

Kauj ruam 1: Saib Video

Image
Image

Hauv cov vis dis aus kuv tau npog tag nrho cov kauj ruam tsim nyog los tsim txoj haujlwm no. Kuv kuj tseem tau piav qhia qhov tob ntawm cov cai siv hauv txoj haujlwm uas tseem muaj txiaj ntsig zoo rau tus pib, thiab lwm yam tsis tuaj yeem piav qhia hauv cov ntawv sau.

Yog li xyuas kom koj saib qhov ntawd ua ntej txav mus.

Kauj Ruam 2: Npaj Arduino IDE Ua Haujlwm Nrog NodeMCU Wi-Fi Module

Thawj zaug ua haujlwm ntawm Wi-Fi module tsis yog ib qho ncuav mog qab zib taug kev rau feem ntau ntawm cov neeg siv (kuv ib yam). Yog li ntawd, nws raug nquahu kom pib ua ntu zus nrog nws.

Kuv yuav qhia chav qhia no rau txhua tus pib. Tus sau bekathwia tau ua tiav txoj haujlwm zoo ntawm kev piav qhia yuav pib li cas nrog tus qauv no. Kuv tus kheej siv tib lub hauv paus rau kev paub nrog tus qauv.

Yog li, yog tias koj yog tus pib mus dhau chav kawm ntawd, tsuas yog koj tuaj yeem ua haujlwm koj txoj kev tawm hauv cov theem tom ntej.

Kauj Ruam 3: Kuaj Dot Matrix Zaub

Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub
Kuaj Dot Matrix Zaub

Txuas Dot Matrix rau Wi-nkaus module raws li hauv qab no:

DMD - NodeMCU

Tswv yim - 3.3V

Gnd - Yog

Txd - D5

Din -D7 ib

TSO - D8

Tam sim no los tshuaj xyuas Dot Matrix Display, ntxiv MD Parola thiab MD_MAX72XX cov tsev qiv ntawv rau Arduino tsev qiv ntawv.

Tab sis ua ntej siv nws, mus rau Arduino cov tsev qiv ntawv qhib, qhib MD_MAX_72XX lub tsev qiv ntawv ntawv, tom qab ntawd mus rau docs thiab qhib ib qho HMTL cov ntaub ntawv, tom qab txiav txim siab hom Dot Matrix Display koj muaj (nyem qhov no kom paub ntau ntxiv). Kuv yog FC_16. Tom qab qhov no, mus rau "src" nplaub tshev thiab qhib MD_MAX72XX.h cov ntaub ntawv. Hloov kho cov ntaub ntawv header raws li tus qauv koj muaj thiab tom qab ntawd khaws nws. Tam sim no koj tuaj yeem tshawb xyuas koj qhov moduleOpen kos duab kos thiab tso nws. Dot matrix yuav tsum tso saib qee tus qauv ua raws lawv lub npe, uas tuaj yeem pom hauv Serial Monitor.

Kauj ruam 4: Npaj ThingHTTP

Npaj ThingHTTP
Npaj ThingHTTP
Npaj ThingHTTP
Npaj ThingHTTP
Npaj ThingHTTP
Npaj ThingHTTP

1. Qhib Mozilla Firefox (Chrome tsis ua haujlwm rau kuv).2. Xaiv koj lub vev xaib (Kuv siv Dictionary.com).3. Txoj cai nyem rau ntawm lo lus uas koj txaus siab, xaiv tshuaj xyuas ntu. 4. Luam XPath ntawm txoj cai tseem ceeb. 5. Mus rau Thingspeak.com 6. Mus rau cov apps, thiab tom qab ntawd xaiv ThingHTTP.7. Tsim tshiab ThingHTTP, npe nws ib yam, muab qhov URL ntawm nplooj ntawv uas koj tau theej XPath los ntawm, muab tshuaj XPath yav tas los theej rau kab ntawv cais, txuag cov ThingHTTP.

Sau ntawv ceeb toom ntawm API tsim tawm.

Saib cov vis dis aus kom nkag siab zoo thiab xav tau ua qhov no.

Kauj Ruam 5: Kuaj Cov Qauv

Kuaj Cov Qauv
Kuaj Cov Qauv
Kuaj Cov Qauv
Kuaj Cov Qauv
Kuaj Cov Qauv
Kuaj Cov Qauv

Qhib daim duab txuas rau hauv cov kauj ruam no thiab hloov kho Wi-Fi SSID, Pass Key thiab API tus yuam sij thiab rub nws Tom qab rub tawm, qhib cov ntawv saib, yog tias cov zis zoo ib yam li ib qho kuv tau txuas hauv cov kauj ruam no ces cov qauv ua haujlwm tau zoo thiab koj tuaj yeem txav mus rau theem kawg.

Koj tseem tuaj yeem siv lwm lub vev xaib sib txawv yog tias koj xav tau, txheeb xyuas qhov no.

Kauj Ruam 6: Daim Duab Kawg

Daim Duab Kawg
Daim Duab Kawg
Daim Duab Kawg
Daim Duab Kawg

Ua cov kev sib txuas zoo ib yam li hauv kauj ruam 3. Tus lej kawg tau txuas rau hauv cov kauj ruam no.

Kho qhov Wi-Fi SSID, Pass Key (tawm hauv cov lus hauv qab yog tias Wi-nkaus qhib) thiab API thiab xa nws mus rau tus qauv.

Thaum nws tau txuas nrog Wi-nkaus thiab nqa cov ntaub ntawv, nws yuav txiav tawm thiab nthuav tawm lo lus thiab lub ntsiab lus hauv DMD (saib hauv LED tsim los txiav txim qhov xwm txheej, ntsais muag-sim txuas rau Wi-nkaus, tawv xiav - txuas, tawm - txiav tawm). Kev sib txuas los ntawm Wi-nkaus txuag lub zog tab sis nws kuj muaj qhov tsis zoo, koj yuav tsum rov pib dua tus qauv kom mus nqa cov ntaub ntawv tshiab.

Tab sis rau cov ntawv thov zoo li no, Kuv tsis xav tiag nws yog lub tswv yim zoo kom txuas nrog Wi-nkaus, txawm li cas los xij koj tuaj yeem yooj yim ua qhov ntawd tom qab ob peb tweaking hauv qhov program. Nws yog txhua yam rau koj.

Kauj ruam 7: Ua tiav

Qhov ntawd yog nws!

Zoo siab tawm tswv yim cov lus qhia lossis kev ua xyem xyav, Kuv yuav zoo siab tshaj los pab koj.

Ua tsaug rau kev nyeem ntawv, txiav txim siab tso npe, thiab yog tias koj nyiam txoj haujlwm no, txheeb xyuas peb cov YouTube channel, peb muaj ntau qhov ntawd:)

Pom koj hauv Cov Lus Qhia tom ntej.

Pom zoo: