Cov txheej txheem:

ESP8266, BMP280, MQTT Weather Station: 4 Kauj Ruam
ESP8266, BMP280, MQTT Weather Station: 4 Kauj Ruam

Video: ESP8266, BMP280, MQTT Weather Station: 4 Kauj Ruam

Video: ESP8266, BMP280, MQTT Weather Station: 4 Kauj Ruam
Video: ESP8266 weather station web server with BMP280 | BMP280 Web Server 2024, Kaum ib hlis
Anonim
ESP8266, BMP280, MQTT Weather Station
ESP8266, BMP280, MQTT Weather Station
ESP8266, BMP280, MQTT Weather Station
ESP8266, BMP280, MQTT Weather Station

Qhov no yuav coj koj mus hla qhov chaw nres tsheb huab cua yooj yim nrog qhov raug zoo.

Ntawm no peb siv ESP8266 WIFI kev txhim kho pawg thawj coj los txuas lub ntsuas hluav taws xob rau hauv internet kom txuag tau cov ntaub ntawv. Ntau qhov tsw qab muaj nyob thiab yuav ua haujlwm thiab kuv yuav siv qhov kuv muaj tom tsev: Homefixer ESP8266

Muaj ntau ntau qhov ntsuas sib txawv, tab sis raws li https://www.kandrsmith.org/RJS/Misc/Hygrometers/calib_many.html BME280 muab qhov txiaj ntsig zoo tshaj plaws los ntawm kev siv tus nqi qis hygrometers. (Vim tus muag khoom xa kuv qhov tsis raug, phau ntawv qhia no yuav siv BMP280 tab sis cov kauj ruam zoo ib yam.

Kev xa cov ntaub ntawv yuav yog hla MQTT.

Kauj ruam 1: Kev sib txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Ua ntej peb yuav tsum txuas BMP280 mus rau ESP8266.

Txuas nws zoo li no:

BME280 | ESP8266 (NodeMCU)

VCCV | 3.3V GND | Cov GND SCL | GPIO2 (D4) SDA | GPIO0 (D3)

Kauj ruam 2: Nruab Software

Nruab Software
Nruab Software

Koj tseem tuaj yeem ua raws phau ntawv qhia no:

  1. Rub tawm ESPEasy:
  2. Tshem tawm
  3. Khiav flash.cmd
  4. Teb cov lus nug: Comport tuaj yeem pom hauv Devicemanager, Flash Loj nyob ntawm tus qauv: kuv tus qauv yog 4096, Tsim: 120 lossis tshiab dua
  5. Tos
  6. Fais fab tua/qhib lossis rov pib dua tus qauv
  7. Ua raws li phau ntawv qhia no teeb tsa WiFi:

Kauj Ruam 3: Teeb BMP280

Teeb BMP280
Teeb BMP280
Teeb BMP280
Teeb BMP280
Teeb BMP280
Teeb BMP280
  1. Txuas mus rau lub vev xaib modules raws li pom hauv teeb tsa wifi
  2. Hloov i2c chaw nres nkoj rau SDA = GPIO0 thiab SCL = GPIO2 lossis raws li koj txuas nrog nws
  3. Ntxiv BMP280 hauv cov khoom siv, nco ntsoov teeb tsa IDX rau tus nqi tsis xoom

Kauj Ruam 4: Teeb MQTT

Teeb MQTT
Teeb MQTT
Teeb MQTT
Teeb MQTT

Hauv qab qhov teeb tsa tab koj tuaj yeem teeb tsa MQTT broker chaw. Kuv tab tom siv openHAB raws tu qauv tom qab kev pom zoo los ntawm no:

Tam sim no yuav ntsuas kub li hauv qab no:

weather_station_bmp280/BMP280/Kub

thiab Siab:

weather_station_bmp280/BMP280/Siab

Kuv siv node-liab los tso saib nws raws li pom hauv daim duab kawg.

Tam sim no lub chaw nres tsheb huab cua tau ua sai sai

Pom zoo: