Cov txheej txheem:

COVID-19 Dashboard (Yooj Yim & Yooj Yim): 4 Cov Kauj Ruam
COVID-19 Dashboard (Yooj Yim & Yooj Yim): 4 Cov Kauj Ruam

Video: COVID-19 Dashboard (Yooj Yim & Yooj Yim): 4 Cov Kauj Ruam

Video: COVID-19 Dashboard (Yooj Yim & Yooj Yim): 4 Cov Kauj Ruam
Video: Hmong New Song 2019 Xy Lee feat. SuabNag Yaj - Koj Yog Kuv Lub Neej (Official MV - 4K) 2024, Hlis ntuj nqeg
Anonim
Image
Image

Txhua qhov txhia chaw muaj qhov tshwm sim loj ntawm tus kab mob tshiab COVID-19. Nws tau dhau los tsim nyog los saib xyuas qhov xwm txheej tam sim no ntawm COVID-19 hauv lub tebchaws.

Yog li, nyob hauv tsev, qhov no yog qhov haujlwm kuv xav txog: "Cov Ntaub Ntawv Qhia Txog Dashboard" - Lub Dashboard uas qhia txog lub sijhawm tiag tiag txog COVID -19 lub xeev ntawm txhua lub tebchaws. Tsis tas yuav tsum khaws TV hauv lossis saib hauv ntau lub vev xaib.

Qhov tsim ntawm txoj haujlwm tsis yog qhov tseem ceeb. Tab sis ua qee yam muaj txiaj ntsig, siv cov khoom siv uas yooj yim yog qhov nyuaj. Kuv tsim ob qhov sib txawv ntawm lub dashboard siv ob hom kev qhia sib txawv. Tab sis qhov kev qhia no yuav tsom mus rau siv OLED Zaub.

Txoj haujlwm no yuav pab koj tsim qhov yooj yim dashboard interface kom koj hloov kho tshiab.

Saib qhov project hauv kev nqis tes ua hauv video.

Kauj ruam 1: Cov khoom xyaw

Cov khoom xyaw
Cov khoom xyaw
Cov khoom xyaw
Cov khoom xyaw

Rau qhov haujlwm no, koj xav tau:

1) ESP32 / ESP8266 Board x 1 (Kuv tau siv ESP32)

2) OLED Display Module (Koj tuaj yeem siv txhua hom zaub, koj muaj nrog koj. Kuv tau siv 0.96 "OLED Zaub nrog xim daj & xim xiav)

3) Txuas Cov Hluav Taws Xob, 4.7kohms Resistors x 2 (xaiv tau)

4) Qhov ntawd yog nws!:-)

Kauj Ruam 2: Sijhawm Ua Noj

Sijhawm Ua Noj
Sijhawm Ua Noj

Nws lub sijhawm los txuas tag nrho cov khoom sib sau ua ke. Txuas lub OLED zaub rau ESP32 raws li cov hauv qab no:

ESP 32 =====> OLED Zaub

GPIO22 =====> SCL

GPIO21 =====> SDA

3V3 =====> VCC

GND =====> GND

Niaj hnub no, OLED Cov Lus Qhia muaj nyob rau ntawm lub nkoj rub tawm cov neeg tawm tsam. Yog tias koj lub OLED Display tsis muaj cov khoom siv rub tawm hauv lub nkoj, koj xav tau ob lub 4.7k ohms resistors. Txuas cov resistors raws li hauv qab no:

1) Ntawm SDA thiab 3V3

2) Ntawm SCL thiab 3V3

Kuv siv resistor coj los ua cov xov hlau sib txuas es tsis siv cov xov hlau ib txwm los muab nws cov qauv sib txawv. Koj tuaj yeem txuas OLED Display thiab lwm yam khoom siv siv cov xov hlau ib txwm.

Thaum koj ua tiav nrog kev sib txuas, hla txhua yam ua ntej txav mus rau kauj ruam tom ntej.

Kauj Ruam 3: Lub Plawv ntawm Txoj Haujlwm

Lub plawv ntawm txoj haujlwm yog API los ntawm qhov uas cov ntaub ntawv tau txais ntawm lub sijhawm tshwj xeeb.

Qhov API muaj nyob ntawm https://covid.vinteq.in/api thiab yog siv dawb kiag li. (Tam sim no tsis pom zoo)

Cov ntaub ntawv peb tau txais los ntawm API no suav nrog Cov Sijhawm Nyob Tiag Tiag COVID-19 Cov Ntaub Ntawv thiab Keeb Kwm COVID-19 Cov Ntaub Ntawv ntawm ib lub tebchaws tshwj xeeb. Xav paub ntau ntxiv los ntawm kev nkag mus rau hauv koj tus as khauj.

Sau npe rau koj tus kheej kom tau txais koj AUTH-KEY. Koj yuav tsum tau ntxiv qhov AUTH KEY no hauv cov cai ua ntej xa cov cai rau ESP32. Kho qhov Code thiab Upload nws!

Nco ntsoov tias koj tau teeb tsa ESP32/ESP8266 cov laug cam hauv Arduino.

Rub tawm Txoj Cai.

Kauj ruam 4: Khaws nws…

Thiab qhov haujlwm me me tab sis muaj txiaj ntsig zoo kawg! Zoo Siab Ua !!!:-)

Vam tias koj nyiam txoj haujlwm yooj yim no. Ua rau koj tus kheej, thiab tawm tswv yim nws tawm hauv Cov Lus Pom.

Ntawm no, yog qhov thib ob ntawm lub dashboard hauv cov vis dis aus uas kuv tau siv 2.4 TFT LCD + Arduino UNO + ESP8266.

Pom zoo: