Cov txheej txheem:

Arduino Weather Station Siv BMP280 -DHT11 - Kub, Vaum thiab Siab: 8 Kauj Ruam
Arduino Weather Station Siv BMP280 -DHT11 - Kub, Vaum thiab Siab: 8 Kauj Ruam

Video: Arduino Weather Station Siv BMP280 -DHT11 - Kub, Vaum thiab Siab: 8 Kauj Ruam

Video: Arduino Weather Station Siv BMP280 -DHT11 - Kub, Vaum thiab Siab: 8 Kauj Ruam
Video: Extrem Einfach: ESP 8266 Node mcu Webserver in 3min DEUTSCH!!! ESP32 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua lub chaw nres tsheb huab cua li cas uas yuav tso saib TEMPERATURE, HUMIDITY THIAB PRESSURE ntawm LCD Zaub TFT 7735

Saib daim vis dis aus.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (Los yog lwm yam Arduino)
  • LCD Zaub TFT 7735
  • BMP280 Sensor
  • DHT11 Sensor
  • Jumper xov hlau
  • Cov qhob cij
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit

LCD TFT ST7735

Txuas:

  • 1.8 TFT Display PIN [LED] rau Arduino PIN [3.3 V]
  • 1.8 TFT Display PIN [SCK] rau Arduino PIN [13]
  • 1.8 TFT Display PIN [SDA] rau Arduino PIN [11]
  • 1.8 TFT Display PIN [A0 lossis DC] rau Arduino PIN [9]
  • 1.8 TFT Display PIN [RESET] rau Arduino PIN [8]
  • 1.8 TFT Display PIN [CS] rau Arduino PIN [10]
  • 1.8 TFT Display PIN [GND] rau Arduino PIN [GND]
  • 1.8 TFT Display PIN [VCC] rau Arduino PIN [5V]

NCO TSEG: Qee lub Arduino cov laug cam muaj sib txawv SPI pins kom ntseeg tau tias koj txheeb xyuas koj cov ntaub ntawv teev tseg.

BMP280 Sensor

  • Txuas tus pin [VIN] rau Arduino [V5]
  • Txuas tus pin [GND] rau Arduino tus pin [GND]
  • Txuas tus pin [SDA] rau Arduino tus pin [SDA]
  • Txuas tus pin [SCL] rau Arduino tus pin [SCL]

DHT11 Sensor

  • Txuas tus pin [+] rau Arduino [V5]
  • Txuas tus pin [-] rau Arduino tus pin [GND]
  • Txuas tus pin [S] rau Arduino tus lej digital [7]

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv "Siab Kub BMP280 I2C" tivthaiv
  • Ntxiv "Vaum thiab Ntsuas Kub DHT11/21/22/AM2301" tivthaiv
  • Ntxiv "TFT Xim Zaub ST7735" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem

Xaiv "Display1" thiab teeb tsa "Kev taw qhia" mus goDown (qhov no yuav hloov pauv ncaj qha ntawm kev tso saib)

Nco tseg: Yog tias cov zaub yuav tsis ua haujlwm sim hloov Hom hauv qab qhov khoom

  • Ob npaug nias rau ntawm "Display1" thiab hauv cov ntsiab lus qhov rai nthuav tawm "Cov Ntawv" thiab "Kab" ntawm sab xis thiab rub mus rau sab laug:

    • 4X "Kos Cov Ntawv"
    • 3X "Kos Kab"
    • 3X "Text teb"

    Ntawm sab laug xaiv:- "Kos Text1" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 1, "Xim" rau aclDodgerBlue thiab "X" txog 17 thiab "Text" rau WEATHER STATION

    - "Kos Kab 1" thiab hauv cov khoom qhov rai teeb tsa "Qhov siab" rau 0, "Dav" txog 120, "Xim" rau aclDodgerBlue thiab "Y" rau 0- "Kos Text2" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 1, "Xim" rau aclRed thiab "X" txog 30 thiab "Y" txog 15 thiab "Ntawv" rau TEMPERATURE

    - "Text Field1" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2, "Xim" rau aclYellow thiab "X" txog 30 thiab "Y" txog 30- "Kos Kab 2" thiab hauv cov khoom qhov rai teeb tsa "Qhov siab" rau 0, "Dav" txog 120, "Xim" rau aclDodgerBlue thiab "Y" rau 50- "Kos Text3" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 1, "Xim" rau aclAqua thiab "X" txog 40 thiab "Y" mus rau 55 thiab "Ntawv" rau HUMIDITY- "Text Field2" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 2, "Xim" rau aclYellow thiab "X" txog 30 thiab "Y" rau 70- "Kos Kab 3" thiab hauv khoom qhov rai teeb tsa "Qhov siab" rau 0, "Dav" txog 120, "Xim" rau aclDodgerBlue thiab "Y" txog 90- "Kos Text4" thiab hauv cov khoom qhov rai teeb tsa "Loj" rau 1, "Xim" rau aclWhite thiab " X "mus rau 40 thiab" Y "txog 95 thiab" Ntawv "rau PRESSURE-" Text Field3 "thiab hauv cov khoom qhov rai teeb tsa" Loj "rau 2," Xim "rau aclYellow thiab" X "txog 15 thiab" Y "txog 110

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "PressureTemperature1" tus pin [Tawm] rau Arduino I2C [Hauv]
  • Txuas "PressureTemperature1" tus pin [Siab] rau Display1> TextField3 [Hauv]
  • Txuas "PressureTemperature1" tus pin [Kub] mus rau Display1> TextField1 [Hauv]
  • Txuas "HumidityThermometer1" tus pin [Vaum] rau Display1> TextField2 [Hauv]
  • Txuas "HumidityThermometer1" tus pin [Tawm] rau Arduino tus lej digital [7]
  • Txuas "Display1" tiv thaiv tus pin [Tawm] rau Arduino tus pin SPI [Hauv]
  • Txuas "Display1" tiv thaiv tus pin [Chip Xaiv] rau Arduino Digital tus pin [10]
  • Txuas "Display1" tiv thaiv tus pin [Pib dua] rau Arduino Digital tus pin [8]
  • Txuas "Display1" tiv thaiv tus pin [Sau Npe Xaiv] rau Arduino Digital tus pin [9]

Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 8: Ua si

Yog tias koj ua lub zog Arduino UNO module, LCD yuav pib qhia qhov txiaj ntsig tam sim no (TEMPERATURE, HUMIDITY, PRESSURE)

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:

Pom zoo: