Cov txheej txheem:

DIY tus ntsuas cua Infrared rau COVID-19 Nrog MicroPython: 8 Kauj Ruam
DIY tus ntsuas cua Infrared rau COVID-19 Nrog MicroPython: 8 Kauj Ruam

Video: DIY tus ntsuas cua Infrared rau COVID-19 Nrog MicroPython: 8 Kauj Ruam

Video: DIY tus ntsuas cua Infrared rau COVID-19 Nrog MicroPython: 8 Kauj Ruam
Video: G-Shock Gulfmaster Showdown | Мастер G Gulfmaster Сравнение | GN-1000 | GWN-1000 | GW... 2024, Kaum ib hlis
Anonim
DIY tus ntsuas cua Infrared rau COVID-19 Nrog MicroPython
DIY tus ntsuas cua Infrared rau COVID-19 Nrog MicroPython

Vim muaj kev kis tus Kab Mob Coronavirus (COVID-19), HR ntawm lub tuam txhab yuav tsum ntsuas thiab sau npe ntsuas kub ntawm txhua tus neeg ua haujlwm. Nov yog kev ua haujlwm nkees thiab siv sijhawm rau HR. Yog li kuv tau ua txoj haujlwm no: tus neeg ua haujlwm nias lub pob, ntsuas no ntsuas qhov ntsuas kub, tshaj tawm cov ntaub ntawv mus rau Is Taws Nem, thiab HR tuaj yeem mus online thiab tshuaj xyuas txhua tus neeg qhov kub thiab txias txhua lub sijhawm.

Kauj Ruam 1: Cov khoom siv

Khoom siv
Khoom siv

Kho vajtse:

  • MakePython ESP32 Cov
  • TIAB SA 90614
  • Khawm
  • Roj teeb
  • Cov qhob cij

MakePython ESP32 yog ESP32 pawg thawj coj saib nrog SSD1306 OLED zaub, koj tuaj yeem tau txais los ntawm qhov txuas no:

Software:

uPyCraft V 1.1

Nyem qhov txuas no mus rub uPyCraft IDE rau Windows:

randomnerdtutorials.com/uPyCraftWindows.

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
  • VIN tus pin ntawm MLX90614 txuas nrog 3V3 ntawm MakePython ESP32, GND txuas nrog GND, SCL tus pin txuas nrog IO22 thiab SDA tus pin txuas nrog IO22 ntawm pawg thawj coj saib.
  • VCC tus pin thiab GND tus pin ntawm lub khawm txuas nrog rau 3V3 thiab GND ntawm MakePython ESP32, thiab tus pin OUT txuas nrog IO14.
  • Txuas MakePython ESP8266 rau PC siv USB cable.

Kauj Ruam 3: UPyCraft IDE

  • Yog tias koj tsis tau siv uPyCraft, koj tuaj yeem rub tawm MicroPython ESP32 Dev Kit Cov Lus Qhia cov lus qhia nrog cov lus qhia ntxaws.
  • Koj tuaj yeem hla cov kauj ruam no yog tias koj tau siv nws.

Kauj Ruam 4: Siv ThingSpeak IoT

Siv ThingSpeak IoT
Siv ThingSpeak IoT
Siv ThingSpeak IoT
Siv ThingSpeak IoT
Siv ThingSpeak IoT
Siv ThingSpeak IoT

Saib xyuas qhov ntsuas kub nyob deb ntawm ThingSpeak, cov kauj ruam:

  • Sau npe tus account hauv https://thingspeak.com/. Yog tias koj twb muaj lawm, kos npe ncaj qha.
  • Nyem rau Channel Tshiab los tsim qhov tshiab ThingSpeak channel.
  • Lub npe tawm tswv yim, Nqe lus piav qhia, Xaiv Field 1. Tom qab ntawd txuag channel hauv qab.
  • Nyem rau API Keys xaiv, luam API Key, peb yuav siv nws hauv txoj haujlwm.
  • Kauj ruam 5: Code

    Rub tawm thiab khiav cov ntaub ntawv ssd1306.py, MLX90614.py.

    Ua cov kev hloov hauv qab no rau cov ntaub ntawv main.py, tom qab ntawd txuag thiab khiav.

    Hloov kho SSID thiab PSW txhawm rau txuas WiFi

    SSID = 'Makerfabs'

    PAB = 20160704 '

    Hloov kho API KEY uas koj tau txais hauv qib dhau los

    API_KEY = 'RATU1SWM0MT46HHR'

    Nov yog cov cai kom tau txais qhov ntsuas kub thiab xa cov ntaub ntawv:

    thaum muaj tseeb: yog (khawm.value () == 1): Temp = sensor.getObjC Celsius () #Txhua cov ntaub ntawv kub oled.fill (0) oled.text ('Kub:', 10, 20) oled.text (str (Temp), 20, 40) print (Temp) oled.show () #Use API yuam sij los sau cov ntaub ntawv ntsuas kub mus rau qhov channel URL = "https://api.thingspeak.com/update?api_key="+API_KEY+"& field1 = "+str (Temp) res = urequests.get (URL) luam tawm (res.text)

    Kauj ruam 6: Nruab

    Nruab
    Nruab

    Txhim kho lub rooj tsavxwm mus rau lub qhov rooj nrog daim kab xev ob tog, qhib lub roj teeb, lub vijtsam yuav ua kom WiFi txuas tau zoo.

    Kauj ruam 7: Ntsuas

    Ntsuas
    Ntsuas
    Ntsuas
    Ntsuas
    Ntsuas
    Ntsuas

    Lub vijtsam hais tias "Ntsuas ntsuas Thov nias lub pob", koj tau ze li sai tau rau MLX90614, tom qab ntawd nyem lub pob, nws yuav qhia koj qhov kub thiab txias thiab xa cov ntaub ntawv mus rau lub vev xaib.

    Kauj ruam 8: Ua kom tiav

    Ua tiav
    Ua tiav

    Mus rau https://thingspeak.com thiab koj tuaj yeem pom qhov ntsuas hauv Ntiag Tug Saib.

    Txoj haujlwm no sau koj qhov ntsuas kub thiab sijhawm ntsuas, uas tuaj yeem siv ua cov ntaub ntawv tuaj koom. Tam sim no HR tuaj yeem pom koj cov ntaub ntawv los ntawm kev nkag mus rau hauv ThingSpeak lub vev xaib, uas yooj yim heev.

Pom zoo: