Cov txheej txheem:

Meteo Node IoT Smart Meteo Station: 6 Cov Kauj Ruam
Meteo Node IoT Smart Meteo Station: 6 Cov Kauj Ruam

Video: Meteo Node IoT Smart Meteo Station: 6 Cov Kauj Ruam

Video: Meteo Node IoT Smart Meteo Station: 6 Cov Kauj Ruam
Video: Kiosk mode Bruteforce Evasion with Flipper Zero 2024, Hlis ntuj nqeg
Anonim
Image
Image

Kuv xav ua ib lub cuab yeej los ntsuas qhov kub thiab av nyob hauv kuv lub chaw ua haujlwm. Muaj ntau cov laug cam sib xws nrog LUA lossis Arduino IDE. Muaj ntau cov laug cam uas muaj internet txuas nrog wifi. Kuv hlub Adafruit thiab kuv nyiam txhua yam khoom lag luam ntawm hom no.

Rau kuv qhov haujlwm kuv tau xaiv qhov me me thiab ntse heev Adafruit Huzzah Feather version. Adafruit Feather yog kab ua tiav ntawm cov laug cam txhim kho los ntawm Adafruit uas yog ob leeg nyob ib leeg thiab sib dhos tau. Lawv muaj peev xwm tuaj yeem siv lub roj teeb lipo rau kev siv mus lossis los ntawm lawv cov micro-USB ntsaws rau cov phiaj xwm nyob ruaj khov. Plaub yog hloov pauv tau, nqa tau yooj yim, thiab lub teeb zoo li lawv lub npe.

Kuv siv DHT-11 sensor. DHT-11 yog lub ntsuas hluav taws xob uas muaj cov lus teb mus los thiab tus nqi tsawg heev. Saib ntawm Amazon.

Peb kuj nqa ib kab tiav ntawm cov khoom siv ntxiv thiab Feather Wings txhawm rau txhawm rau cov laug cam thiab ntxiv chav rau kev tsim qauv. Ntawm nws qhov tseem ceeb, Adafruit Feather yog kev ua tiav ntawm cov khoom lag luam - thiab txoj hauv kev zoo tshaj kom tau koj txoj haujlwm ya.

www.adafruit.com/feather

Kuv xaiv Adafruit Huzzah vim nws board board ESP8266 nti. Nov yog cov nti uas kuv siv niaj hnub hauv kuv cov phiaj xwm thiab kuv nyiam nws.

Koj tuaj yeem yuav Huzzah ESP8266 ntawm AMAZON:

Huzzah ESP8266 Feather version:

Kuv kuj siv Cayenne Dashboard txhua hnub. Cayenne Dashboard yog kev daws teeb meem zoo rau txhua tus neeg uas xav tau txoj hauv kev yooj yim los qhia cov ntaub ntawv ntawm huab lossis siv MQTT raws tu qauv nrog Raspberry Pi lossis Arduino boards. Cayenne yog qhov yooj yim heev thiab zej zog yog kuv li haujlwm thiab qhia. Saib Lub Vev Xaib, sau npe yuav dawb hnub no. Nyeem lub rooj sab laj thiab tham nrog cov neeg siv.

Kauj Ruam 1: Adafruit Feather Huzzah

Cayenne IoT rau Txhua Tus
Cayenne IoT rau Txhua Tus

Plaub yog lub rooj txhim kho tshiab los ntawm Adafruit, thiab zoo li nws lub npe nws yog nyias, lub teeb, thiab cia koj ya! Peb tsim Feather los ua tus txheej txheem tshiab rau kev nqa cov microcontroller cores.

Nov yog Adafruit Feather HUZZAH ESP8266-peb coj ntawm 'tagnrho-hauv-ib' ESP8266 WiFi kev txhim kho pawg thawj coj nrog built-in USB thiab them roj teeb. Nws yog ESP8266 WiFi module nrog txhua qhov ntxiv uas koj xav tau, npaj rau pob zeb!

Huzzah ESP8266 Feather version:

Paub meej:

  • Ntsuas 2.0 "x 0.9" x 0.28 "(51mm x 23mm x 8mm)
  • 9,7g ua
  • ESP8266 @ 80MHz nrog 3.3V logic/zog
  • 4MB FLASH (32 MBit)
  • Ua hauv WiFi 802.11 b/g/n
  • 3.3V tswj nrog 500mA ncov tam sim no tso tawm
  • CP2104 USB-Serial converter onboard nrog 921600 max baudrate kom nrawm nrawm
  • Rov pib dua kev txhawb nqa kom nkag mus rau hauv hom bootload ua ntej rub tawm firmware
  • 9 x GPIO pins - tseem tuaj yeem siv ua I2C thiab SPI1 x analog inputs 1.0V max
  • Ua hauv 100mA LiPoly lub roj teeb nrog them qhov xwm txheej qhia LED, tuaj yeem txiav ib txoj hauv kev kom tsis txhob them lub roj teeb
  • Pin #0 liab LED rau lub hom phiaj dav dav ntsais muag.
  • Pin #2 xiav LED rau bootloading debug & lub hom phiaj dav dav ntsais muag
  • Hwj chim/pab tus pin
  • 4 mounting qhov
  • Pib dua khawm

Kauj Ruam 2: Cayenne IoT rau Txhua Tus

Cayenne yog lub platform zoo tshaj plaws rau kev txhim kho koj txoj haujlwm huab. Cayenne muab kev daws teeb meem rau koj txhawm rau txhim kho koj txoj haujlwm IoT. Lub dashboard uas tau txais cov ntaub ntawv, khaws thiab tseem ua rau nws. Koj tuaj yeem xa ntawv piv txwv lossis xa xov. Txhua qhov kev teeb tsa yog yooj yim heev muaj ntau cov vis dis aus thiab ntau qhov haujlwm uas koj tuaj yeem pom thiab sib dhos.

Sau npe dawb tam sim no!

Tom qab ntawd, koj tuaj yeem ntxiv lub rooj tsavxwm ntawm koj lub dashboard. Nco ntsoov koj tus kheej token. Tom qab, koj yuav tsum kos npe rau qhov no hauv Arduino code.

Kauj ruam 3: Nruab Software

Ua ntej tshaj plaws rub tawm Adafrut Huzzah cov tsav tsheb. Koj tuaj yeem pom cov ntaub ntawv ntawm Adafruit lub vev xaib raug cai, thiab rub tawm txhua cov ntaub ntawv.

Tom qab thawj kauj ruam, koj tuaj yeem rub tawm Arduino IDE, thiab ntxiv Adafruit Huzzah board. Rub tawm Arduino IDE los ntawm lub vev xaib raug cai www.arduino.cc, thiab ua raws cov txheej txheem rau ntxiv cov laug cam.

Ntxiv Cayenne lub tsev qiv ntawv los ntawm kev ua raws li Arduino cov ntawv qhia ua haujlwm. Koj tuaj yeem rub tawm lub tsev qiv ntawv ntawm tus kheej thiab teeb tsa los ntawm kev luam cov ntawv mus rau Arduino cov tsev qiv ntawv nplaub tshev.

Tom qab ntawd, koj tuaj yeem rub tawm lub firmware ntawm koj lub rooj tsavxwm. Txuas Adafruit Huzzah board rau koj lub khoos phis tawj siv USB cable, thiab xa cov cai los ntawm kev siv Arduino IDE.

NCO NTSOOV: ntxiv koj tus lej SSID thiab tus lej zais rau koj li WiFi internet lan, thiab koj tus lej Cayenne

Rub tawm cov cai los ntawm GitHub:

github.com/masteruan/Meteo-node-Cayenne/bl…

Kauj Ruam 4: Nruab Adafruit Huzzah Feather ESP8266 ntawm Arduino IDE

Nruab Adafruit Huzzah Feather ESP8266 ntawm Arduino IDE
Nruab Adafruit Huzzah Feather ESP8266 ntawm Arduino IDE

Nkag mus https://arduino.esp8266.com/stable/package_esp8266com_index.json mus rau Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs hauv Arduino v1.6.4+ nyiam.

Tom ntej no, siv Pawg Thawj Coj los teeb tsa ESP8266 pob.

Tom qab txheej txheem teeb tsa, koj yuav tsum pom tias esp8266 pob tau cim INSTALLED.

Kaw qhov Boards Manager qhov rai thaum txheej txheem teeb tsa tiav. Thaum koj tau rov pib dua, xaiv Adafruit HUZZAH ESP8266 los ntawm Cov Cuab Yeej-> Pawg thawj coj

Cov ntsiab lus pawg thawj coj saib

80 MHz raws li CPU zaus

Flash Loj ntawm 4M (3M SPIFFS)

Upload Ceev, xaiv 115200 baud

Qhov sib txuas COM chaw nres nkoj rau koj FTDI lossis USB-Serial cable

Nov yog Arduino IDE 8266 kev txhawb nqa:

Kauj Ruam 5: Ua Circuit Court

Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit
Ua lub Circuit

DHT-11 sensor yog lub ntsuas zoo uas muab rau koj ob qho txiaj ntsig. Vaum thiab kub hauv Celsius lossis Fahrenheit.

Koj tuaj yeem nrhiav DHT-11 ntawm Amazon

Koj tuaj yeem siv DHT-11 ntawm Arduino, thiab ntawm Adafruit Huzzah. Txuas VCC thiab GND feem rau 3V thiab GND pins. Tom qab txuas cov ntaub ntawv tus pin rau tus lej tus lej 12. Tus lej tus lej 3 ntawm DHT-11 yog NC (tsis txuas nrog).

Tom qab ntawd koj tuaj yeem txuas lub roj teeb ntsaws, lossis coj. Hauv kuv Txoj Haujlwm, Kuv siv lub teeb xiav coj los rau hauv qab ntawm tus qauv.. Cov coj txuas nrog rau tus pin Batt. Thaum kuv txuas lub roj teeb mus rau Adafruit pawg thawj coj, tus coj hloov mus. Ib yam li koj tuaj yeem pom ntawm daim vis dis aus, Thaum lub meteo-node nyob hauv av, zoo li koj tuaj yeem pom hauv daim vis dis aus, lub teeb xiav coj teeb lub ede ntawm huab.

Kauj Ruam 6: Ua Koj Cov Cayenne Dashboard

Ua Koj Cayenne Dashboard
Ua Koj Cayenne Dashboard
Ua Koj Cayenne Dashboard
Ua Koj Cayenne Dashboard

Kauj ruam kawg yog ua koj lub dashboard. Kuv siv ob phau ntawv teev keeb kwm txheej txheem, rau qhov ntsuas kub thiab humi qhov tseem ceeb, ib lub pob rau kev hais kom ua onboard coj, thiab tus lej suav uas qhia ntawm lub dashboard, vib nas this ntawm kev ua haujlwm ntawm chaw nres tsheb meteo.

Tam sim no koj tuaj yeem tawm ntawm Meteo Node nyob txhua qhov chaw koj xav tau, thiab nws qhia koj qhov kub thiab txias ntawm ib puag ncig. Koj tuaj yeem tso lub cuab yeej nyob deb ntawm hluav taws xob, vim lub cuab yeej muaj roj teeb lithium sab hauv. Tsis tas li, Adafruit Huzzah, muaj lub ntsuas hluav taws xob rau them roj teeb. Thaum koj txuas Meteo-Node rau USB ntsaws, koj them lub roj teeb.

Tawm lub cuab yeej ntawm koj lub winery, thiab tswj qhov ntsuas kub thiab av noo ntawm koj cov txiv hmab txiv ntoo los ntawm qhov chaw ua haujlwm. Lossis tso lub cuab yeej sab hauv koj lub tsheb lossis sab hauv koj lub tub yees thiab tswj qhov ntsuas kub thiab av noo.

Pom zoo: