Cov txheej txheem:

Arduino UNO Mini-Weather Station: 5 Kauj Ruam
Arduino UNO Mini-Weather Station: 5 Kauj Ruam

Video: Arduino UNO Mini-Weather Station: 5 Kauj Ruam

Video: Arduino UNO Mini-Weather Station: 5 Kauj Ruam
Video: Amazing arduino project 2024, Kaum ib hlis
Anonim
Arduino UNO Mini-Weather Station
Arduino UNO Mini-Weather Station
Arduino UNO Mini-Weather Station
Arduino UNO Mini-Weather Station

Nov yog thawj tiam ntawm kuv Arduino raws qhov chaw nres tsheb me-huab cua nrog wi-fi txuas, uas tuaj yeem tshaj tawm cov ntaub ntawv pej xeem online siv ThingSpeak platform.

Chaw nres tsheb huab cua sau cov ntaub ntawv hauv qab no ntsig txog huab cua thiab ib puag ncig siv cov ntsuas sib txawv:

  • Kub;
  • Vaum;
  • Huab cua siab;
  • Lub teeb ci;
  • UV ntsuas;
  • Plua plav concentration.

Lub hom phiaj yog ua kom lub chaw nres tsheb huab cua me me thiab yooj yim, siv qhib kho vajtse.

Cia peb pib thiab muaj kev lom zem!

Kauj Ruam 1: Cov Khoom Siv Hluav Taws Xob

Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob

Rau qhov haujlwm no koj yuav xav tau cov hauv qab no:

  1. Arduino Uno (yuav)
  2. Grove lub teeb sensor (yuav)
  3. Grove UV sensor (yuav)
  4. Barometric siab sensor (BMP085) (yuav)
  5. DHT22 (yuav)
  6. Grove hmoov av sensor (yuav)
  7. ESP8266 (yuav)
  8. Protoshield (rau qhov hloov pauv ntau dua) lossis cov qhob cij zoo tib yam (yuav / yuav)
  9. 1 kohm resistor (x2)
  10. 10 kohm resistor (x1)
  11. 4k7 ohm resistor (x1)
  12. Qee cov xov hlau jumper
  13. Lub khoos phis tawj (rau suav thiab xa cov lej Arduino)

Koj yuav tsis xav tau cov cuab yeej tshwj xeeb rau kev sib dhos ntawm txoj haujlwm no. Txhua yam khoom tuaj yeem nrhiav pom online ntawm koj lub khw e-lag luam uas koj nyiam.

Lub voj voog tau siv los ntawm USB chaw nres nkoj (txuas nrog lub khoos phis tawj lossis lub xov tooj zoo ib yam), tab sis koj kuj tseem tuaj yeem ntxiv DC lub zog hluav taws xob sab nraud lossis lub roj teeb txuas nrog rau Arduino lub zog txuas.

Ib rooj plaub rau qhov chaw nres tsheb huab cua tsis nyob ntawm qhov ntawm txoj haujlwm no.

Kauj Ruam 2: Txuas Qhov Chaw

Txuas Qhov Chaw
Txuas Qhov Chaw
Txuas Qhov Chaw
Txuas Qhov Chaw

Txuas txhua lub componets raws li cov qauv. Koj yuav xav tau qee lub xov hlau txuas los txuas txhua lub ntsuas hluav taws xob mus rau lub khob cij. Koj tuaj yeem siv daim ntawv pov thawj (rau kev sib cog lus ntau dua), ib qho khoom noj khoom haus zoo tib yam, lossis tsim koj tus kheej Arduino daim ntaub thaiv.

Txuas lub USB cable rau Arduino Uno board thiab mus rau kauj ruam tom ntej.

Kauj ruam 3: Coding

Coding
Coding

Piv txwv tias koj twb tau teeb tsa Arduino IDE tshiab kawg, rub tawm thiab teeb tsa cov tsev qiv ntawv hauv qab no:

DHT22 lub tsev qiv ntawv:

github.com/adafruit/DHT-sensor-library

Adafruit BMP085 lub tsev qiv ntawv:

github.com/adafruit/Adafruit-BMP085-Library

Rau cov lus qhia yuav ua li cas ntxiv cov tsev qiv ntawv rau Arduino IDE, txheeb xyuas Arduino qhia hauv qab no:

www.arduino.cc/en/Guide/Libraries

Rub tawm Arduino code (weatherBox.ino). Hloov XXXXX los ntawm koj lub router wifi SSID YYYYY los ntawm tus password nkag mus thiab ZZZZZ los ntawm koj li ThingSpeak channel sau API tus yuam sij (saib yuav ua li cas thiaj li tau txais nws ntawm cov kauj ruam tom ntej).

Txuas Arduino board rau koj lub computer USB chaw nres nkoj thiab xa cov cai.

Kauj ruam 4: ThingSpeak Configuration

ThingSpeak Configuration
ThingSpeak Configuration
ThingSpeak Configuration
ThingSpeak Configuration
ThingSpeak Configuration
ThingSpeak Configuration
ThingSpeak Configuration
ThingSpeak Configuration
  1. Tsim tus ThingSpeak tus account;
  2. Tsim Channel tshiab;
  3. Qhia lub npe thiab lus piav qhia ntawm koj lub chaw nres tsheb huab cua. Muab cov channel hauv qab no thiab txuag cov channel:

    • channel 1 = lub teeb
    • channel 2 = vaum
    • channel 3 = kub (los ntawm DHT22)
    • channel 4 = UV index
    • channel 5 = hmoov av concentration
    • channel 6 = siab
    • channel 7 = kub (los ntawm BMP085)
  4. Luam API sau qhov tseem ceeb. Nws tau siv hauv cov kauj ruam dhau los hauv Arduino code;
  5. Thaum lub chaw nres tsheb tau qhib, lub ntsuas qhov ntsuas yuav raug xa mus rau cov channel ib ntus. Koj tuaj yeem teeb tsa kev pom rau pej xeem thiab ntiag tug ntawm txhua qhov sib txawv.

Piv txwv ntawm pej xeem channel:

Kauj ruam 5: Siv Android App

Koj yuav tuaj yeem pom cov ntaub ntawv chaw nres tsheb huab cua hauv txhua lub browser. Tab sis koj kuj tseem yuav tshuaj xyuas nws ntawm koj lub hauv xov tooj ntawd smartphone thiab pom nws thaum twg koj xav tau.

  1. Rub tawm thiab teeb tsa ThingsView app los ntawm Google Play store ntawm koj lub cuab yeej Android;
  2. Ntawm lub app, ntxig koj tus lej ID channel thiab nyem ntxiv. Koj yuav pom tus lej ID ntawm koj li ThingSpeak channel teeb tsa;
  3. Qhov txiaj ntsig tam sim no ntawm txhua qhov sib txawv yuav tshwm rau hauv kab;
  4. Muaj kev lom zem!

Pom zoo: