Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1: BOM
- Kauj Ruam 2: Kauj Ruam 2: Txuas Hluav Taws Xob
- Kauj Ruam 3: Kauj Ruam 3: Txoj Cai
Video: Ib Qhov Chaw Ntxiv Arduino Weather (ESP-01 & BMP280 & DHT11 & OneWire): 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Ntawm no koj tuaj yeem pom ib qho rov ua dua ntawm kev siv OneWire nrog ob peb tus pin ntawm ESP-01. Cov cuab yeej tsim hauv cov lus qhia no txuas rau Wifi network ntawm koj xaiv (koj yuav tsum muaj daim ntawv pov thawj …) Sau cov ntaub ntawv nkag siab los ntawm BMP280 thiab DHT11, thiab xa cov ntaub ntawv khaws tseg mus rau ThingSpeak channel tau muab rau kuv. Kuv xav tias koj paub yuav ua li cas rub cov duab kos rau koj ESP-01, yog li kuv yuav tsis mus rau hauv cov ntsiab lus ntawd. nrog max 3.3V DC. Not ntau cov ntawv ntxiv, nyeem yuav tsum ncaj qha los ntawm qhov no.
Kauj Ruam 1: Kauj Ruam 1: BOM
Kho vajtse:
1 x Wifi module: ESP-01 (kuv siv 1024 KB version)
1 x Siab thiab Kub sensor: BMP280
1 x Vaum thiab Kub sensor: DHT11
1 x Tus Tswj Hluav Taws Xob AMS1117 (xaiv tau rau lub zog ncaj qha, lossis koj tuaj yeem siv lwm yam muaj peev xwm tswj hwm koj qhov hluav taws xob nkag mus rau qhov ruaj khov 3.3V)
Kauj Ruam 2: Kauj Ruam 2: Txuas Hluav Taws Xob
ESP-01 VCC to 3.3VESP-01 GND to GNDESP-01 TX to DHT11 DATAESP-01 GPIO0 to BMP280 SDAESP-01 GPIO2 to BMP280 SCLDHT11 VCC to 3.3VDHT11 GND to GNDBMP280 VCC to 3.3VBMP280 GND to GND
Kauj Ruam 3: Kauj Ruam 3: Txoj Cai
#include #include #include // CHECK #define BMP280_ADDRESS mine ua haujlwm nrog (0x76) #include #define DHTPIN 1 // GPIO1 (Tx) #define DHTTYPE DHT11 #define ONE_WIRE_BUS 3 // GPIO3 = Rx const char* ssid = "asd "; // KOJ WIFI SSID const char* password = "asd"; // KOJ WIFIPASS const char* host = "api.thingspeak.com"; const char* writeAPIKey = "asd"; // KOJ APIKEY // DHT11 khoom ntab kub_buiten; ntab kub_buiten2; DHT dht (DHTPIN, DHTTYPE, 15); // BMP280 Adafruit_BMP280 bmp; teeb tsa tsis muaj dab tsi () {// I2C khoom Wire.pins (0, 2); Hlau.begin (0, 2); // DHT1 dht.begin (); // BMP280 yog (! Bmp.begin ()) {// Serial.println ("Tsis muaj BMP280"); // thaum (1) {}} // Txuas rau WiFi network WiFi.begin (ssid, password); thaum (WiFi.status ()! = WL_CONNECTED) {ncua (500); }} void loop () {// DHT11 float humidity = dht.readHumidity (); ntab kub = dht.readTemperature (); yog (isnan (av noo) || isnan (kub)) {rov qab; } // BMP280 Txoj hlua t = Txoj hlua (bmp.readTemperature ()); Txoj hlua p = Txoj hlua (bmp.readPressure ()); // TCP Txuas Txuas WiFiClient tus neeg siv khoom; const int httpPort = 80; yog (! client.connect (host, httpPort)) {rov qab; } Txoj hlua url = "/hloov tshiab? Qhov tseem ceeb ="; url += writeAPIKey; url += "& field1 ="; url += Txoj hlua (ntsuas kub); // DHT11 CELSIUS url += "& field2 ="; url += Txoj hlua (av noo); // DHT11 RELATIVE HUMIDITY url += "& field3 ="; url += Txoj hlua (bmp.readTemperature ()); // BMP280 CELSIUS url += "& field4 ="; url += Txoj hlua (bmp.readPressure ()/100); // BMP280 MILLIBAR url += "& field5 ="; url += Txoj hlua (bmp.readAltitude (1013.25)); // BMP280 METER url += "& field6 ="; url += Txoj hlua ((kub +bmp.readTemperature ())/2); // DHT11 + BMP280 AVERAGE CELSIUS url + = "\ r / n"; // Xa ntawv thov mus rau tus neeg siv khoom server.print (String ("GET") + url + "HTTP/1.1 / r / n" + "Host:" + host + "\ r / n" + "Connection: close / r / n / r / n "); ncua (1000); }
Pom zoo:
Loj hlob Zaub Zaub Ntxiv Hauv Qhov Chaw Tsawg Los Yog Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg): 10 Kauj Ruam
Loj Hlob Ntau Cov Zaub Zaub Hauv Tsawg Chaw lossis … Loj hlob Zaub Zaub Hauv Chaw, (Ntau lossis Tsawg).: Qhov no yog kev tshaj lij tshaj lij rau Kev Loj Hlob Tshaj Ntiaj Teb, Kev Tsim Khoom Sib Tw, xa los ntawm Cov Lus Qhia. Kuv tsis tuaj yeem muaj kev zoo siab dua los tsim rau thaj chaw cog qoob loo thiab tshaj tawm kuv thawj Cov Lus Qhia. Yuav pib, kev sib tw nug peb kom
Qhov 'Sup - Mouse rau Cov Neeg Nrog Quadriplegia - Tus Nqi Qis thiab Qhib Qhov Chaw: 12 Cov Kauj Ruam (nrog Duab)
Qhov 'Sup - Mouse rau Cov Neeg Nrog Quadriplegia - Tus Nqi Qis thiab Qhib Qhov Chaw: Thaum lub caij nplooj ntoo hlav xyoo 2017, kuv tus phooj ywg zoo tshaj tsev neeg nug kuv yog tias kuv xav ya mus rau Denver thiab pab lawv nrog txoj haujlwm. Lawv muaj ib tus phooj ywg, Allen, uas muaj quadriplegia vim qhov xwm txheej ntawm kev caij tsheb kauj vab roob. Felix (kuv tus phooj ywg) thiab kuv tau ua qee qhov nrawm dua
Yuav Ua Li Cas Tsim Lub Chaw Nres Tsheb txhawm rau daws qhov mob ntawm Nrhiav Qhov Chaw Dawb: 12 Kauj Ruam
Yuav Ua Li Cas Tsim Lub Chaw Nres Tsheb txhawm rau daws qhov Mob ntawm Nrhiav Qhov Chaw Dawb: Hauv qhov haujlwm no peb yuav tsim lub chaw nres tsheb yooj yim uas siv Raspberry Pi. Nws hloov tawm tias txhua tag kis kuv yuav tsum ntsib cov lus nug no: Puas yog XAUS qhov chaw nres tsheb nyob rau ntawm kuv lub chaw haujlwm twb tau coj lawm? Vim tias thaum nws yog qhov tseeb, Kuv yuav tsum tau mus ncig
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 - Saib Xyuas Qhov Kub Kub & Qhov Kub Kub ntawm M5stick-C Nrog DHT11: 6 Cov Kauj Ruam
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 | Saib Xyuas Qhov Kub thiab Qhov Ntsuas Kub ntawm M5stick-C Nrog DHT11: Nyob zoo cov neeg, hauv cov lus qhia no peb yuav kawm paub yuav ua li cas cuam tshuam DHT11 ntsuas kub nrog m5stick-C (pawg tswj hwm kev txhim kho los ntawm m5stack) thiab tso tawm ntawm cov zaub ntawm m5stick-C. Yog li hauv qhov kev qhia no peb yuav nyeem qhov ntsuas kub, av noo & heat kuv
ME 470 Ntxiv Kev Txiav Txim rau SolidWorks Qhov Chaw & Cov Khoom Ua Ke: 12 Kauj Ruam
ME 470 Ntxiv Decals rau SolidWorks Parts & Assemblies: Hauv Cov Lus Qhia No: 1. Yuav ua li cas tso Decals ntawm Faces ntawm Qhov Chaw Nyob lossis Cov Khoom Sib Xws 2. Yuav Tsim Li Cas Decals nrog Dawb Online Label Maker Basic Steps for Decal Placement: • Tsim Tshooj lossis Sib dhos • Mus rau Tshwm Sim tab hauv Feature Tree Wi