Cov txheej txheem:

ESP32 COVID19 STATUS VIEWER: 4 Kauj Ruam
ESP32 COVID19 STATUS VIEWER: 4 Kauj Ruam

Video: ESP32 COVID19 STATUS VIEWER: 4 Kauj Ruam

Video: ESP32 COVID19 STATUS VIEWER: 4 Kauj Ruam
Video: #318 BLE Oximeter Hack with ESP32 for COVID-19 Projects 2024, Kaum ib hlis
Anonim
Image
Image
ESP32 COVID19 STATUS VIEWER
ESP32 COVID19 STATUS VIEWER
ESP32 COVID19 STATUS VIEWER
ESP32 COVID19 STATUS VIEWER
ESP32 COVID19 STATUS VIEWER
ESP32 COVID19 STATUS VIEWER

Txoj haujlwm no tsuas yog tau txais cov xwm txheej ntawm COCID19 hauv json hom thiab tso tawm rau hauv OLED.

Kauj Ruam 1: Nqa Khoom

HARDWARE

1. Esp32 Txoj Kev Loj Hlob

2. 128x32 OLED Zaub

SOFTWARE

1. Arduino IDE (Txhim kho esp32 cov laug cam siv tus thawj tswj hwm)

2. OLED Lub Tsev Qiv Ntawv

3. Arduinojson Library

Kauj ruam 2: Coding

Coding
Coding
Coding
Coding

1. Thawj zaug teeb tsa esp32 ntawm Arduino IDE.

Hauv koj Arduino IDE, mus rau File> Preferences.

Nkag mus https://dl.espressif.com/dl/package_esp32_index.j… rau hauv “Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs” teb raws li qhia hauv daim duab hauv qab no. Tom qab ntawd, nyem lub pob "OK"

Qhib Tus Thawj Saib Xyuas Haujlwm. Mus rau Cov Cuab Yeej> Rooj Tswjhwm Saib> Pawg Thawj Coj …

Tshawb nrhiav ESP32 thiab nias lub pob teeb tsa rau "ESP32 los ntawm Espressif Systems" Nyem nruab.

2 Txhim Kho Tsev Qiv Ntawv

Mus rau Sketch> suav nrog Tsev Qiv Ntawv> Tswj Tsev Qiv Ntawv.

Ntaus SSD1306 thiab teeb tsa Adafruit SSD1306

Ntaus Arduinojson thiab nruab ArduinoJson los ntawm Benoit Blanchon

3. Tom qab txhim kho cov tsev qiv ntawv xav tau luam thiab muab cov lej (lossis clone) los ntawm cov kab hauv qab no:

github.com/Anirudhvl/ESP32-COVID19-Status-…

4. Upload rau esp32.

5. Yog tias koj xav hloov lub tebchaws goto:

github.com/novelcovid/api

thiab saib lawv cov ntaub ntawv.

6. Yog tias koj xav hloov lub tebchaws lossis lwm yam ntaub ntawv, xub tau txais cov lus teb json thiab muab tshuaj txhuam rau

arduinojson.org/v6/assistant/

Tom qab ntawd xam qhov loj me. Yooj yim tsuas yog theej tag nrho cov cai los ntawm

Parsing program thiab muab tso rau hauv parseJson () ua haujlwm ntawm daim duab.

Kauj Ruam 3: Teeb Kho Vajtse

OLED Pin Txuas

OLED-ESP32 -------------------------------------------------------

1. GND - GND

2. +3.3v - 3v3

3. SDA - Tus Pin 21

4. SCL - Pin 22

Kauj ruam 4: Txoj kev xav

Txoj haujlwm no xa GET thov mus rau

corona.lmao.ninja/countries/india

thiab dhau qhov lus teb rau Deserialize muaj nuj nqi los faib cov ntaub ntawv. Deserialize yog txoj hauv kev los ntawm Arduinojson.

Pom zoo: