Cov txheej txheem:

Internet ntawm Tej Yam: Chaw So Huab Cua LoRa: 7 Kauj Ruam (nrog Duab)
Internet ntawm Tej Yam: Chaw So Huab Cua LoRa: 7 Kauj Ruam (nrog Duab)

Video: Internet ntawm Tej Yam: Chaw So Huab Cua LoRa: 7 Kauj Ruam (nrog Duab)

Video: Internet ntawm Tej Yam: Chaw So Huab Cua LoRa: 7 Kauj Ruam (nrog Duab)
Video: dab neeg sib aim muab xoom Ntawm taw txaj mas ntsaj heev tiag tiag 2024, Kaum ib hlis
Anonim
Internet ntawm Yam: Chaw Ua Haujlwm Huab Cua LoRa
Internet ntawm Yam: Chaw Ua Haujlwm Huab Cua LoRa
Internet ntawm Yam: Chaw Ua Haujlwm Huab Cua LoRa
Internet ntawm Yam: Chaw Ua Haujlwm Huab Cua LoRa
Internet ntawm Yam: Chaw Ua Haujlwm Huab Cua LoRa
Internet ntawm Yam: Chaw Ua Haujlwm Huab Cua LoRa

Nov yog qhov piv txwv ntawm qhov haujlwm LoRa zoo. Cov chaw nres tsheb huab cua muaj qhov ntsuas kub, ntsuas huab cua thiab ntsuas huab cua. Cov ntaub ntawv raug nyeem tawm thiab xa mus rau Cayenne Mydevices thiab Weather Underground siv LoRa thiab Cov Khoom Network.

Txheeb xyuas yog tias muaj LoRa Rooj vag ntawm Cov Khoom Network hauv koj cheeb tsam!

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Rau qhov haujlwm no kuv siv cov cuab yeej hauv qab no:

  • Arduino Pro Mini 328 - 3.3V/8MHz (https://www.sparkfun.com/products/11114)
  • RFM95W (https://www.hoperf.com/rf_transceiver/lora/RFM95W.html) (https://www.aliexpress.com/item/RFM95W-20dBm-100mW-868Mhz-915Mhz-DSSS-spread-spectrum-wireless -transceiver-module-SPI-SMD/32799536710.html)
  • DHT22 (https://www.aliexpress.com/item/High-Precision-AM2302-DHT22-Digital-Temperature-Humidity-Sensor-Module-For-arduino-Uno-R3/32759158558.html)
  • BME280 (https://www.aliexpress.com/item/I2C-SPI-BMP280-3-3-BMP280-3-3-Digital-Barometric- Siab Siab-Altitude-Sensor-High-Precision-Amospheric/32775855945.html)

Tag nrho tus nqi tsawg dua 10 daus las.

Kauj Ruam 2: Kev Txuas Hluav Taws Xob

Qhov thaiv
Qhov thaiv
Qhov thaiv
Qhov thaiv
Qhov thaiv
Qhov thaiv

Nws yog qhov ntse ua ntej sim ntsuas cov ntsuas ntawm lub khob cij. Yog li koj tuaj yeem ntseeg tau tias cov sensors ua haujlwm. Koj kuj tseem tuaj yeem ntsuas lub zog siv nrog lub multimeter. (Siv Low-Power lib los ntsuas qhov tsawg kawg nkaus)

Thawj cov xov hlau txuas rau RFM95W module thiab tom qab ntawd muab lawv txuas rau Arduino Pro Mini. Tom qab ntawd ntxiv cov sensors. Saib cov duab thiab daim duab!

Kauj ruam 3: Casing

Casing
Casing
Casing
Casing
Casing
Casing
Casing
Casing

Txhawm rau tso chaw nres tsheb huab cua nyob qhov twg, Kuv kos ib rooj plaub thiab luam tawm nrog lub tshuab luam ntawv 3d.

Cov qauv tuaj yeem pom ntawm Thingiverse. Tau kawg koj tuaj yeem ua tau koj tus kheej qhov sib txawv. https://www.thingiverse.com/thing 2594618

Kauj ruam 4: Software

Lub Software
Lub Software

Cov cai kuv tau siv tuaj yeem pom ntawm GitHub:

Kuv siv Atom nrog PlatformIO kom paub qhov haujlwm no, yog li qhov no yog PlatformIO project. Kuv tau siv cov ntawv tsis txaus ntseeg:

  • LoraMAC-in-C rau Arduino ua tsaug rau Thomas Telkamp thiab Matthijs Kooijman (https://github.com/matthijskooijman/arduino-lmic)
  • CayenneLPP ntawm Cov Khoom Network Arduino Library (https://github.com/TheThingsNetwork/arduino-device-lib)
  • Adafruit DHT Vaum & Kub Unified Sensor Library (https://github.com/adafruit/DHT-sensor-library)
  • Tsawg-Lub Hwjchim: Lub tsev qiv ntawv qis zog rau Arduino (https://github.com/adafruit/DHT-sensor-library)

Kauj Ruam 5: Cayenne MyDevices

Cayenne MyDevices
Cayenne MyDevices

Koj tuaj yeem ua ke koj daim ntawv thov hauv Cov Khoom Network nrog Cayenne myDevices

Txhawm rau ntxiv kev koom ua ke:

  • Mus rau daim ntawv thov console ntawm Cov Khoom Network lub vev xaib;
  • Xaiv kev sib koom ua ke los ntawm cov ntawv qhia saum toj-txoj cai;
  • Xaiv Cayenne;
  • Ua raws li cov lus qhia

Kauj Ruam 6: Huab Cua Hauv Qab

Huab Cua Hauv Qab
Huab Cua Hauv Qab

Txhawm rau xa cov ntaub ntawv mus rau Huab cua hauv av, tsim kom muaj kev koom ua ke HTTP. Cov ntaub ntawv yuav raug xa mus rau URL nrog POST lossis GET. Cov ntawv hauv qab no khaws cov ntaub ntawv thiab xa nws mus rau Huab Cua Hauv Qab. Sau npe rau koj tus Kheej Chaw Nyob Huab Cua ntawm

<? php cov

php ncha lub sijhawm ();

file_put_contents ('json/post'.time ().'. json ', file_get_contents (' php: // input '));

$ json = file_get_contents ('php: // input'); $ cov ntaub ntawv = json_decode ($ json);

// coj cov ntaub ntawv tawm ntawm json

$ temperature_1 = $ data-> payload_fields-> temperature_1; $ barometric_pressure_2 = $ data-> payload_fields-> barometric_pressure_2; $ txheeb ze_humidity_3 = $ data-> payload_fields-> txheeb ze_humidity_3;

// tempc rau tempf

$ tempf = ($ temperature_1 * 9/5) + 32;

// siab

$ siab = $ barometric_pressure_2/33.863886666667;

yog (isset ($ siab) &&! khoob ($ siab) && isset ($ tempf) &&! empty ($ tempf) && isset ($ relative_humidity_3) &&! empty ($ relative_humidity_3)) {file_get_contents ("https:// rtupdate.wunderground.com/weatherstation/updateweatherstation.php? ID = XXXXXXX & PASSWORD = XXXXXXXX & dateutc = tam sim no & tempf = ". $ tempf." & humidity = ". $ relative_humidity_3." & baromin = ". $ siab);

}

?>

?>

Kauj Ruam 7: Txaus Siab Rau Koj Qhov Chaw Huab Cua

Txaus siab rau Koj Qhov Chaw Huab Cua
Txaus siab rau Koj Qhov Chaw Huab Cua
Txaus siab rau Koj Qhov Chaw Huab Cua
Txaus siab rau Koj Qhov Chaw Huab Cua

Txaus siab rau Koj Qhov Chaw Huab Cua

Hauv Cayenne myDevices koj tuaj yeem faib cov phiaj xwm phiaj xwm. Qhia koj li hauv cov lus!

Nov yog kuv li:

Pom zoo: