Cov txheej txheem:

Taug qab QHID-19 Kab Mob los ntawm ESP8266: 11 Cov Kauj Ruam (nrog Duab)
Taug qab QHID-19 Kab Mob los ntawm ESP8266: 11 Cov Kauj Ruam (nrog Duab)

Video: Taug qab QHID-19 Kab Mob los ntawm ESP8266: 11 Cov Kauj Ruam (nrog Duab)

Video: Taug qab QHID-19 Kab Mob los ntawm ESP8266: 11 Cov Kauj Ruam (nrog Duab)
Video: Mob nrob qaum/ Mob duav yog vim li cas? 2024, Hlis ntuj nqeg
Anonim
Image
Image
Taug qab QHID-19 Kev Sib kis los ntawm ESP8266
Taug qab QHID-19 Kev Sib kis los ntawm ESP8266

Cov cuab yeej me me no yuav pab koj kom paub txog tus kabmob coronavirus thiab xwm txheej hauv koj lub tebchaws. Qhov no yog IoT raws txoj haujlwm uas qhia txog cov ntaub ntawv ntawm lub sijhawm tiag, cov neeg tuag thiab rov zoo tib neeg los ntawm tus kabmob coronavirus (COVID-19). Nws siv Wemos D1 Mini Pro lub rooj tsavxwm uas yog raws ESP8266 Wifi module kom tau txais cov ntaub ntawv los ntawm lub ntiaj teb los ntawm ThingSpeak API. Kuv tau siv 0.96 OLED zaub los ua lub dashboard rau tag nrho cov ntaub ntawv raws sijhawm.

Nco tseg: Kuv tau ua qhov haujlwm no kom lom zem thiab kawm. Cov ntaub ntawv npog COVID-19 hauv qhov haujlwm no yog ua tiav raws cov ntaub ntawv ntawm www.worldometers.info/coronavirus/. Ua raws WHO (https://www.who.int/) rau COVID19 Hloov Kho tshiab.

Khoom siv

1. Wemos D1 Mini Pro (Amazon)

2. OLED Zaub (Amazon)

3. Pawg Thawj Coj (Amazon)

4. 18650 Roj Teeb (Amazon)

5. 18650 Roj Teeb Nrog (Amazon)

6. Swb Hloov (Amazon)

7. Poj Niam Headers (Amazon)

8. 24 AWG Wires (Amazon)

Kauj Ruam 1: Npaj Pawg Thawj Coj

Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj
Npaj Pawg Thawj Coj

Txhawm rau ua kom txoj haujlwm me me thiab zoo, kuv tau ua nws los ntawm kev siv lub rooj sib tham perforated.

Ua ntej kuv ntsuas qhov dav ntawm Wemos board, tom qab ntawd txiav tawm ib daim ntawm lub rooj sib tham perforated me ntsis ntau dua li qhov dav. Kuv siv rab riam hluav taws xob los txiav tawm lub rooj sib tsoo.

Kauj Ruam 2: Mount Wemos Board (ESP8266)

Mount lub Wemos Board (ESP8266)
Mount lub Wemos Board (ESP8266)
Mount lub Wemos Board (ESP8266)
Mount lub Wemos Board (ESP8266)
Mount lub Wemos Board (ESP8266)
Mount lub Wemos Board (ESP8266)

Txhawm rau teeb tsa Wemos board, koj xav tau tus poj niam ncaj lub taub hau taub hau. Thaum koj yuav lub taub hau ncaj, lawv yuav ntev dhau rau Arduino Nano. Koj yuav tsum tau txiav lawv mus rau qhov ntev uas tsim nyog. Kuv siv tus nipper los txiav nws.

Tom qab ntawd muab tus poj niam lub taub hau tso rau ntawm lub rooj sib txig sib luag.

Kauj Ruam 3: Mount OLED Display

Mount OLED zaub
Mount OLED zaub
Mount OLED zaub
Mount OLED zaub
Mount OLED zaub
Mount OLED zaub

Hauv txoj haujlwm no, Kuv tab tom siv 0.96 I2C OLED Display. Yog li koj xav tau 4 pins header.

Ib yam li cov kauj ruam dhau los, txiav tawm tus header pin los ntawm tus nipper.

Tom qab ntawd muab cov kab laug sab laug tso raws li qhia hauv daim duab saum toj no.

Kauj ruam 4: Mount Hloov

Mount Hloov
Mount Hloov
Mount Hloov
Mount Hloov
Mount Hloov
Mount Hloov

Qhov hloov pauv yuav tsum tau cais lub zog ntawm lub roj teeb mus rau Wemos board. Kuv tab tom siv tus swb hloov rau qhov no.

Solder swb swb raws li qhia hauv daim duab saum toj no.

Kauj Ruam 5: Ua Circuit Court

Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit

Daim duab qhia chaw rau txoj haujlwm no yooj yim heev. Cov zaub OLED tau txuas rau Wemos board hauv I2C hom kev sib txuas lus.

OLED -> Wemos

VCC -> VCC

GND -> GND

SCL-> D1

SDA -> D2

Kuv tau siv 24AWG cov xaim xaim los ua hluav taws xob. Solder cov hlau raws li daim duab qhia chaw.

Schematic yog txuas hauv qab no.

Kauj Ruam 6: Mount Lub Roj Teeb

Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog
Mount lub Roj Teeb Nrog

Lub zog xav tau los tsav Wemos board thiab OLED zaub tau muab los ntawm 18650 Li-Ion roj teeb.

Ua ntej tshaj, muab daim kab xev ob tog tso rau sab nraub qaum ntawm lub roj teeb.

Tom qab ntawd muab tshuaj txhuam nws tso rau sab hauv qab ntawm lub rooj ua haujlwm perforated. Koj tuaj yeem pom daim duab saum toj no rau nws.

Tom qab ntawd kuv thov cov kua nplaum kub nyob ib puag ncig ntawm lub roj teeb.

Kauj Ruam 7: Ua kom tiav Circuit Court

Ua kom tiav Circuit Court
Ua kom tiav Circuit Court
Ua kom tiav Circuit Court
Ua kom tiav Circuit Court
Ua kom tiav Circuit Court
Ua kom tiav Circuit Court
Ua kom tiav Circuit Court
Ua kom tiav Circuit Court

Thaum kawg, koj yuav tsum ua kom tiav Circuit Court los ntawm kev txuas lub roj teeb lub dav hlau mus rau Wemos board ntawm tus swb swb.

Txuas lub davhlau ya nyob twg zoo ntawm tus tuav lub roj teeb mus rau tus swb hloov nruab nrab tus pin. Tom qab ntawd txuas ib qho ntawm ob tus lej ntxiv ntawm qhov hloov mus rau Wemos 5V tus pin.

Txuas qhov tsis zoo ntawm lub roj teeb mus rau GND tus pin ntawm Wemos board.

Kauj ruam 8: ThingSpeak Chaw

ThingSpeak Chaw
ThingSpeak Chaw
ThingSpeak Chaw
ThingSpeak Chaw

Ua ntej, tsim ib tus as khauj hauv ThingSpeak thiab tom qab ntawd nkag mus rau hauv koj tus as khauj.

Los ntawm cov ntawv qhia zaub mov sab saum toj nyem rau ntawm lub app thiab nias "Tshiab ThingHTTP".

Koj yuav pom ntau qhov chaw seem tab sis tsis txhob txhawj xeeb, koj yuav tsum nkag mus sau peb qho hauv qab no:

1. Npe: Npe lub npe raws li qhov koj xaiv

2. URL:

3. Parse String: Hauv kauj ruam tom ntej, kuv yuav qhia koj yuav ua li cas thiaj tau txais txoj hlua no.

Kauj ruam 9: Nkag mus rau Parse String

Nkag mus rau Parse String
Nkag mus rau Parse String
Nkag mus rau Parse String
Nkag mus rau Parse String
Nkag mus rau Parse String
Nkag mus rau Parse String

Mus rau WorldOmeters lub vev xaib

Tshawb nrhiav lub tebchaws lub npe, hauv kuv rooj plaub nws yog Is Nrias teb. Tom qab ntawv nyem rau ntawm Lub Tebchaws Lub Npe. Koj yuav pom 3 lub txee

1. Tus mob Coronavirus

2. Kev tuag

3. Rov zoo

Xaiv lub txee -> Right -click -> Tshawb xyuas

Ntawm sab xis ntawm lub vijtsam, cia li yuj hla cov ntsiab lus ntawd kom txog thaum koj xaiv cov ntaub ntawv raug kom tau txais. Koj tuaj yeem pom daim duab saum toj no kom nkag siab zoo dua.

Tom qab ntawv nyem rau sab xis ntawm lub ntsiab lus thiab Luam XPath.

Tam sim no rov qab mus rau ThingHTTP teb (Cov Ntaub Ntawv) thiab muab tshuaj txhuam rau hauv Parse String, thiab nias "Txuag ThingHTTP".

Tam sim no koj ua tiav!

Kauj Ruam 10: Software thiab Tsev Qiv Ntawv

Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv
Software thiab Tsev Qiv Ntawv

Ua ntej, rub cov cai txuas hauv qab no. Tom qab ntawd rub tawm OLED lub tsev qiv ntawv los ntawm GitHub.

Txhawm rau siv Wemos D1 nrog lub tsev qiv ntawv Arduino, koj yuav tsum tau siv Arduino IDE nrog ESP8266 pawg thawj coj txhawb. Yog tias koj tseem tsis tau ua tiav qhov ntawd, koj tuaj yeem yooj yim teeb tsa ESP8266 Pawg txhawb nqa rau koj Arduino IDE los ntawm cov hauv qab no

qhov kev qhia no los ntawm Sparkfun.

Hauv qhov chaws, sau koj li WiFi Router SSID thiab Password.

Tom qab ntawd sau cov api_key rau txhua 3 daim teb.

Koj tuaj yeem xa mus rau daim duab saum toj no kom tau txais api_key.

Thaum koj tau kho koj cov cai, sau nws thiab tom qab ntawd muab nws tso rau hauv koj li Wemos/ ESP8266 pawg thawj coj.

Credit: Thawj qhov chaws tau sau los ntawm SurtrTech, Kuv tau hloov kho qhov chaws kom haum rau qhov kuv xav tau.

Kauj Ruam 11: Xeem Kawg

Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg
Xeem Kawg

Tom qab rub tawm cov cai kom tiav, koj tuaj yeem mus rau koj tus lej saib. Koj yuav pom cov lej raws li qhia hauv WorldoMeters lub vev xaib.

Nov yog daim ntawv luv luv rau kev sim:

www.instagram.com/p/B-xemNTjI2C/?utm_sourc…

Nrog koj zoo siab, tam sim no koj lub cuab yeej me me tau npaj siv. Ntxig lub roj teeb 18650 rau hauv lub roj teeb.

Xaub qhov hloov mus rau ON txoj haujlwm, koj yuav pom CORONA tus kab mob lub cim ntawm OLED zaub. Tom qab ntawd ib qho tom qab cov ntaub ntawv yuav tshwm.

Ua tsaug rau koj nyeem kab lus no.

Pom zoo: