Cov txheej txheem:
Video: IOT - ib Tshaj Tawm Cov Ntaub Ntawv rau Thingspeak Siv ESP8266: 3 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tam sim no, IoT tab tom nthuav dav thiab ntau lub tshuab muaj cov ntaub ntawv rub tawm hla huab thiab txheeb xyuas cov ntaub ntawv. Cov ntsuas me me hloov kho cov ntaub ntawv ntawm huab thiab tus ua haujlwm ntawm lwm qhov kawg ua rau nws. Kuv yuav piav qhia ib qho piv txwv ntawm IoT.
Kuv tsab xov xwm no thiab kuv yuav qhia thiab qhia kom tshaj tawm cov ntaub ntawv rau Thingspeak siv ESP8266.
Kauj Ruam 1: Yuav Tsum Muaj Kev Koom Tes
ESP8266ESP8266 hauv Is Nrias teb-
ESP8266 hauv UK -
ESP8266 hauv Asmeskas -
MLX90614MLX90614 hauv Is Nrias teb-
MLX90614 hauv UK -
MLX90614 hauv Asmeskas -
BreadBoard
BreadBoard hauv Is Nrias teb-
BreadBoard hauv Asmeskas- https://amzn.to/2MW0Opb BreadBoard hauv tebchaws Askiv-
Kauj ruam 2: Code
#include #include #include
Txoj hlua apiKey = "7CDCTE2767Z8AUIL"; // Nkag mus rau koj Sau API tus yuam sij los ntawm ThingSpeak
const char *ssid = "zais"; // hloov nrog koj tus wifi ssid thiab wpa2 tus yuam sij
const char *pass = "qwerty12"; const char* neeg rau zaub mov = "api.thingspeak.com";
WiFiClient tus thov kev pab;
Adafruit_MLX90614 mlx = Adafruit_MLX90614 ();
int obTemp;
koj ambTemp;
void teeb tsa ()
{Serial.begin (115200); ncua (10); Serial.println ("Txuas rau"); Serial.println (ssid); WiFi.begin (ssid, dhau); thaum (WiFi.status ()! = WL_CONNECTED) {ncua (500); Serial.print ("."); } Serial.println (""); Serial.println ("Txuas nrog WiFi"); mlx.begin (); Wire.begin (D1, D2); } void voj () {
yog (client.connect (server, 80)) // "184.106.153.149" lossis api.thingspeak.com
{objTemp = mlx.readObjectTempC (); ambTemp = mlx.readObjectTempC (); Txoj hlua postStr = apiKey; postStr += "& field1 ="; postStr += Txoj hlua (objTemp); postStr += "\ r / n / r / n";
client.print ("POST /hloov tshiab HTTP /1.1 / n");
client.print ("Tus tswv tsev: api.thingspeak.com / n"); client.print ("Kev sib txuas: kaw / n"); client.print ("X-THINGSPEAKAPIKEY:"+apiKey+"\ n"); client.print ("Cov ntsiab lus-Hom: thov/x-www-form-urlencoded / n"); client.print ("Cov ntsiab lus-Ntev:"); client.print (postStr.length ()); client.print ("\ n / n"); client.print (postStr);
Serial.print ("Ambient ="); Serial.print (ambTemp);
Serial.print ("*C / tObject ="); Serial.print (objTemp); Serial.println ("*C");
}
client.stop (); cov. ncua (2000); }
Pom zoo:
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): 3 Cov Kauj Ruam
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): Peb txhua tus nyiam ua si nrog peb tus lej L … cov ntsiab lus tau ntxiv thiab nws tsis tshwj xeeb rau lub qhov muag. Arduino IDE cov phiaj xwm tsis
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: 10 Cov Kauj Ruam (nrog Duab)
Kho Ob Chav Tawm Tawm Tawm Tawm Tawm Tawm Cov Khoom Siv Hluav Taws Xob: Nta: AC-DC Hloov pauv ob npaug tso tawm qhov hluav taws xob (Zoo-Hauv av-Tsis Zoo) Kho txoj kab zoo thiab tsis zoo Tsuas yog Ib Leeg Ib Leeg AC hloov pauv cov suab nrov (20MHz-BWL, tsis muaj thauj khoom): Ib puag ncig 1.12mVpp Tsawg suab nrov thiab cov txiaj ntsig ruaj khov (zoo tagnrho
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