Cov txheej txheem:

Huab Cua Hauv Online Zaub Widget Siv ESP8266: 4 Cov Kauj Ruam
Huab Cua Hauv Online Zaub Widget Siv ESP8266: 4 Cov Kauj Ruam

Video: Huab Cua Hauv Online Zaub Widget Siv ESP8266: 4 Cov Kauj Ruam

Video: Huab Cua Hauv Online Zaub Widget Siv ESP8266: 4 Cov Kauj Ruam
Video: Yuav poj ntau hais tsis tau ces dhia tsua tuag (Dab) 6/25/2020 2024, Hlis ntuj nqeg
Anonim
Huab Cua Hauv Online Zaub Widget Siv ESP8266
Huab Cua Hauv Online Zaub Widget Siv ESP8266

Ob peb lub lis piam dhau los, peb tau kawm paub tsim lub tshuab huab cua online uas tau txais xov xwm huab cua rau ib lub nroog tshwj xeeb thiab nthuav tawm nws ntawm OLED module. Peb siv Arduino Nano 33 IoT board rau qhov haujlwm ntawd uas yog pawg thawj coj tshiab uas muaj ntau yam zoo tab sis kim me ntsis thiab loj dua thaum piv rau lwm txoj hauv kev. Hauv kab ntawv no, peb yuav kawm paub tsim qhov kev cog lus me me thiab ntxim hlub me ntsis huab cua hauv online huab cua widget uas zoo ib yam li qhov haujlwm yav dhau los.

Cov vis dis aus saum toj no npog txhua yam koj xav paub thiab tseem piav qhia qhov kos duab tau muab tso ua ke.

Kauj Ruam 1: Sau Cov Khoom Siv Hluav Taws Xob

Sau cov Electronics
Sau cov Electronics

Peb yuav siv WeMos D1 mini board uas siv ESP8266 chipset thiab peb yuav siv 0.96 OLED module rau cov zaub.

Kauj Ruam 2: Rub tawm, Hloov Kho thiab Upload Sketch

Rub tawm, Hloov Kho thiab Upload Sketch
Rub tawm, Hloov Kho thiab Upload Sketch
Rub tawm, Hloov Kho thiab Upload Sketch
Rub tawm, Hloov Kho thiab Upload Sketch
Rub tawm, Hloov Kho thiab Upload Sketch
Rub tawm, Hloov Kho thiab Upload Sketch

Ib yam li txoj haujlwm yav dhau los, peb yuav tau txais cov ntaub ntawv huab cua los ntawm OpenWeatherMap kev pabcuam. Rub tawm daim duab kos siv qhov txuas hauv qab no:

Peb thawj zaug yuav tsum tau txais tus lej API txhawm rau txhawm rau siv OpenWeatherMap cov kev pabcuam. Qhov kev pabcuam OpenWeatherMap muaj lub phiaj xwm pub dawb uas tso cai rau siab tshaj 60 API hu ib feeb. Qhov no txhais tau tias peb tuaj yeem thov cov ntaub ntawv huab cua ntawm qhov siab tshaj plaws ntawm ib zaug txhua ob uas yog ntau dua qhov peb xav tau. Cov vis dis aus hla tag nrho cov txheej txheem, tab sis ntawm no yog cov ntawv luam ntawm yam uas yuav tsum tau ua:

Pib los ntawm kev kos npe lossis nkag mus rau hauv OpenWeatherMap cov kev pabcuam thiab lub taub hau mus rau ntu API. Sau lub npe rau tus yuam sij tshiab thiab nyem lub pob tsim. Sau ib tsab ntawv ntawm tus yuam sij no tab sis tsis qhia rau leej twg. Nws siv sijhawm me ntsis rau tus yuam sij no kom qhib tau yog li koj yuav tau tos ib pliag. Nws tuaj yeem siv sijhawm txog ib teev rau qhov no kom tiav, tab sis kuv tus yuam sij tau qhib ua ntej 10 feeb.

Pib hloov kho cov duab kos los ntawm kev ntxiv koj li ntawv pov thawj WiFi raws li peb xav tau txuas rau lub network kom qhov no ua haujlwm. Lwm yam uas koj yuav tsum tau ua hauv daim duab yog hloov kho API hu nrog koj lub nroog cov ntaub ntawv thiab tus lej API. Nco ntsoov tias koj muaj lub pob ntawv txhawb nqa lub pob txhim kho rau ESP8266 pawg thawj coj. Koj tseem yuav xav tau teeb tsa ArduinoJSON thiab u8g2 cov tsev qiv ntawv rau daim duab kos ua haujlwm. Cov vis dis aus coj koj los ntawm cov txheej txheem ntawm kev txhim kho txhua yam ntawm no.

Thaum ua tiav, txuas lub rooj tsavxwm, xyuas kom meej tias koj tau xaiv lub rooj teeb tsa raug thiab nyem lub pob upload. Thaum rub tawm, pawg thawj coj yuav luam tawm cov xwm txheej nrog rau cov ntaub ntawv huab cua mus rau lub davhlau ya nyob twg. Koj tuaj yeem saib qhov no kom ntseeg tau tias txhua yam ua haujlwm raws li qhov xav tau, ua ntej txav mus rau kauj ruam tom ntej.

Kauj Ruam 3: Txuas OLED Cov Qauv thiab Kuaj

Txuas lub OLED Module thiab Kev Xeem
Txuas lub OLED Module thiab Kev Xeem
Txuas lub OLED Module thiab Kev Xeem
Txuas lub OLED Module thiab Kev Xeem

Tam sim no peb tau kos duab ua haujlwm kom raug, peb yuav tsum xaim xov tooj OLED module. Siv daim kab xev daim duab qhia saum toj no thiab kom ntseeg tau tias koj txuas lub zog hluav taws xob raug hluav taws xob rau OLED module raws li qee tus tsuas lees txais 3.3V.

Thaum txuas nrog, lub zog ntawm lub rooj tsavxwm thiab koj yuav tsum pom cov lus txais tos. Muab lub rooj tsav xwm ob peb feeb kom tau txais cov ntaub ntawv huab cua thiab nws yuav luam tawm rau OLED module.

Kauj Ruam 4: Siv Qhov Ruaj Ntseg

Siv daim ntawv kaw
Siv daim ntawv kaw
Siv daim ntawv kaw
Siv daim ntawv kaw
Siv daim ntawv kaw
Siv daim ntawv kaw
Siv daim ntawv kaw
Siv daim ntawv kaw

Txhua yam uas tseem tshuav yuav tsum ua tam sim no yog txhawm rau txhawm rau txhawm rau tsim nyog thiab kuv yuav siv tus qauv no los ntawm Thingiverse (https://www.thingiverse.com/thing:857858). Nov yog tib yam uas tau siv rau lub sijhawm network lub phiaj xwm thiab kuv nyiam qhov zoo ntawm nws.

Ntxiv xaim ntawm qhov ntev haum rau OLED module nrog rau qee daim kab xev ob tog. Muab nws tso rau hauv qhov chaw thiab siv qee cov kua nplaum kub nyob ze ntawm cov xov hlau los tuav nws hauv txoj haujlwm. Tom qab ntawd, muab lub rooj tsavxwm tso rau hauv lub tais/lub nraub qaum thiab muab lub OLED hloov pauv rau nws zoo li ua ntej. Thaum kawg, thawb lub hau npog thiab ntxiv qee cov kua nplaum los tuav nws hauv txoj haujlwm.

Yog tias koj nyiam qhov kev tsim no thov thov txiav txim siab tso npe rau peb YouTube channel thiab ua raws peb ntawm kev tshaj xov xwm. Nws tsis raug nqi ib yam tab sis koj qhov kev txhawb nqa yuav pab peb ntau ntxiv hauv kev tsim cov phiaj xwm zoo li no.

  • YouTube:
  • Koj li xyoob ntoo Instagram:
  • Facebook:
  • Twitter:
  • BnBe Lub Vev Xaib:

Ua tsaug rau koj kev txhawb nqa!

Pom zoo: