Cov txheej txheem:
- Kauj ruam 1: Yam yuavtsum tau kawm uantej
- Kauj Ruam 2: Cov Khoom Koj Xav Tau
- Kauj ruam 3: Software
- Kauj Ruam 4: Khiav Koj Qhov Kev Xeem
- Kauj Ruam 5: Qhia Koj Li Kev Paub
Video: Yuav Tshaj Tawm Li Cas ESP32 Cov Ntaub Ntawv Nrog NTP Lub Sijhawm mus rau IoT Huab: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv ntau daim ntawv thov, cov neeg siv yuav tsum xa lawv cov ntaub ntawv nrog rau nws lub sijhawm sijhawm hauv zos ntawm qhov txiaj ntsig kom xa hauv qhov them nyiaj mus rau AskSensors IoT huab.
Lub sijhawm teev sijhawm yog UNIX Lub Sijhawm Sijhawm: tus naj npawb ntawm cov milliseconds uas tau dhau mus txij li Lub Ib Hlis 1, 1970 (ib tag hmo UTC/GMT)
Cov ntawv qhia no nthuav qhia yuav ua li cas txuas koj li ESP32 mus rau NTP cov servers, ntsuas lub sijhawm, thiab tshaj tawm cov kev ntsuas no nrog lub sijhawm cim rau huab dhau
Kauj ruam 1: Yam yuavtsum tau kawm uantej
- Active AskSensors tus account: Sau npe yuav 15 hnub pub dawb sim (Yooj yim, PRO lossis GURU).
- Ua raws cov lus qhia pib sai no los tsim lub cuab yeej ntsuas tshiab thiab tau paub nrog AskSensors.
- Txuas ESP32 mus rau AskSensors Cloud raws li qhia hauv phau ntawv qhia no.
Kauj Ruam 2: Cov Khoom Koj Xav Tau
- ESP32 pawg thawj coj loj.
- Khoos phis tawj siv software Arduino (version 1.8.7 lossis siab dua).
- USB micro cable txuas ESP32 pawg thawj coj saib mus rau lub khoos phis tawj.
Kauj ruam 3: Software
- Nruab NTP Client library rau Arduino IDE: Nkag mus rau Sketch> suav nrog Tsev Qiv Ntawv> Tswj Tsev Qiv.
- Nrhiav NTPClient los ntawm Fabrice Weinberg. Nyem rau ntawm qhov nkag ntawd, thiab tom qab ntawd xaiv Nruab.
- Rub tawm qhov kev nthuav qhia no los ntawm AskSensors Github nplooj ntawv.
Hloov kho cov hauv qab no:
const char* wifi_ssid = "………."; // SIB
const char* wifi_password = "………."; // WIFI
const char* apiKeyIn = "………."; // API KEY IN
const unsigned int sauInterval = 25000; // sau luv (hauv ms)
Kauj Ruam 4: Khiav Koj Qhov Kev Xeem
- Txuas koj ESP32 pawg thawj coj saib mus rau lub khoos phis tawj ntawm cov lej/USB thiab xa cov cai siv Arduino IDE.
- Qhib lub davhlau ya nyob twg. Nws yuav tsum qhia koj li ESP32 txuas nrog NTP server, timestamp cov ntaub ntawv thiab xa nws mus rau AskSensors IoT huab.
- Rov qab mus rau AskSensors App thiab tshawb xyuas koj cov ntaub ntawv sensor ntws.
Kauj Ruam 5: Qhia Koj Li Kev Paub
Cov ntaub ntawv ntxaws ntxaws rau txuas cov cuab yeej rau AskSensors muaj nyob ntawm no.
Koj zoo siab koom nrog AskSensors zej zog, thiab qhia koj cov kev paub.
Pom zoo:
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card - DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: 5 Cov Kauj Ruam
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card | DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: Taw qhia: nyob zoo, qhov no yog Liono Maker, ntawm no yog YouTube txuas. Peb tab tom tsim txoj haujlwm muaj tswv yim nrog Arduino thiab ua haujlwm ntawm cov kab ke. Cov ntaub ntawv-Logger: Cov ntaub ntawv logger (tseem cov ntaub ntawv-logger lossis cov ntaub ntawv kaw) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm
Yuav Ua Li Cas Xa Cov Ntaub Ntawv mus rau Huab nrog Arduino Ethernet: 8 Kauj Ruam
Yuav xa cov ntaub ntawv mus rau huab nrog Arduino Ethernet: Cov lus qhia no qhia koj li cas tshaj tawm koj cov ntaub ntawv rau AskSensors IoT Platform siv Arduino Ethernet Shield. Ethernet Shield ua rau koj Arduino txuas nrog huab tau yooj yim, xa thiab tau txais cov ntaub ntawv nrog kev siv internet. Qhov peb
RAWS LI COV NTAUB NTAWV NTSEEG NTAWV NTAWV MUAJ NTAWV TSHUAJ NTAWV TSO CAI RAU RASPBERRY PI: 6 Kauj Ruam (nrog Duab)
RAWS LI COV NTAUB NTAWV NTAWV MUAJ NTAWV TSHUAJ NTXIV RAU RASPBERRY PI: Hauv qhov haujlwm no, peb yuav txuas peb ntawm Atlas Scientific's EZO sensors (pH, yaj cov pa thiab kub) mus rau Raspberry Pi 3B+. Hloov chaw ntawm txuas cov kab hluav taws xob mus rau Raspberry Pi, peb yuav siv Whitebox Labs Tentacle T3 daim ntaub thaiv. T
Yuav Ua Li Cas Thiaj Li Tshaj Lij Tshaj Lij Tshaj Lij Tshaj Tawm Hauv Circuit Board: Phau Ntawv Qhia Ua tiav: 10 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Thiaj Li Tshaj Lij Tshaj Lij Tshaj Tawm Hauv Circuit Board: Phau Ntawv Qhia Tiav: Nyob zoo txhua tus, hnub no kuv yuav qhia koj yuav ua li cas thiaj ua tau PCB zoo, txhawm rau txhim kho koj cov phiaj xwm hluav taws xob. Cia peb pib
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz: Koj tuaj yeem yooj yim ua ke IoT network ntawm cov lus qhia ntse rau cov ntaub ntawv pom tau los ua kom muaj zog ntxiv koj li kev tshawb fawb hauv Cov Ntaub Ntawv Kev Tshawb Fawb lossis ib qho kev ua haujlwm ntau. Koj tuaj yeem hu rau " thawb " ntawm koj cov phiaj rau cov neeg siv khoom raug cai los ntawm koj li