Cov txheej txheem:

Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266: 5 Cov Kauj Ruam
Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266: 5 Cov Kauj Ruam

Video: Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266: 5 Cov Kauj Ruam

Video: Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266: 5 Cov Kauj Ruam
Video: Sacramento Transportation Priorities Plan 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266
Yuav Ua Li Cas Ua IoT Device los Tswj Cov Khoom Siv thiab Saib Xyuas Huab Cua Siv Esp8266

Internet ntawm yam (IoT) yog kev sib txuas ntawm cov khoom siv lub cev (tseem hu ua "cov khoom siv sib txuas" thiab "cov cuab yeej ntse"), vaj tse, thiab lwm yam khoom siv nrog hluav taws xob, software, sensors, tus ua haujlwm, thiab kev sib txuas network uas pab cov khoom no khaws thiab pauv cov ntaub ntawv.

Tam sim no kuv yuav qhia yuav ua li cas ua IoT lub hauv paus ntaus ntawv uas muaj peev xwm tswj hwm cov cuab yeej siv thiab saib xyuas huab cua raws sijhawm. Cov cuab yeej no yog tsim siv ESP8266 Node Mcu.

Esp8266 node mcu yog lub cuab yeej nrog ua hauv wifi module thiab micro tswj uas tuaj yeem cuam tshuam nrog arduino lub tswv yim.

Cia Peb Pib..

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Node MCU Esp8266 [Banggood]

4 Channel Relay Board [Banggood]

Perfboard [Banggood]

Header Pins [Banggood]

DC Jack [Banggood]

DHT 11 [Banggood]

Kauj ruam 2: Kev sib hloov

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
  • Ua ntej tshaj tawm lub perfboard thiab tso poj niam header pins nrog kev hwm rau Node Mcu esp8266 pins.
  • Coj tus txiv neej header pins thiab solder ib sab ntawm tus poj niam header pins thiab txuas txuas tus txiv neej thiab poj niam header pins w.r.t Esp8266 coj cov zis.
  • Ntxiv qee tus txiv neej ntxiv tus pin ntawm +V thiab GND pins ntawm Esp8266
  • Tam sim no tig los ua lub zog siv, siv lub dc jack thiab IC7805 tso nws rau ntawm lub qhov rooj.
  • Txuas Vin ntawm IC7805 rau +V ntawm Dc jack thiab GND rau GND.
  • Tam sim no xaim +5v tawm ntawm 7805 rau Vin ntawm Esp8266 thiab GND ntawm IC7805 rau GND ntawm Esp8266.
  • Tam sim no xaim Relay board thiab DHT 11 module rau Esp 8266 raws li cov pins hauv Circuit Court.
  • Cov kev sib txuas hauv nws Circuit yog tib yam li cov pins tshaj tawm hauv qhov program.

Tam sim no peb yuav tsum npaj lub dashboard thiab teeb tsa lub cuab yeej.

Kauj Ruam 3: Tsim Tus Ntaus Hauv Dashboard

Image
Image

Txog qhov haujlwm no kuv tau siv Cayenne IoT platform.

Ua ntej koj yuav tsum mus rau Cayenne qhov chaw thiab tsim ib tus as khauj los ntawm kev sau npe.

Tam sim no ua raws cov lus qhia raws li tau hais hauv video.

Thaum tsim cov cuab yeej koj yuav tsum xaiv hom MQTT.

Tom qab ntawd lub xaib yuav tsim lub npe siv, tus lej nkag mus thiab tus lej siv tus lej rau lub cuab yeej, koj yuav tsum luam nws. Qhov no xav tau rau txheej txheem ntxiv.

Yog xav paub ntxiv mus saib ntawm no [Qhia los ntawm pab pawg Cayenne IoT]

Kauj ruam 4: Programming

Rub tawm cov tsev qiv ntawv txuas thiab suav nrog nws hauv arduino lub tswv yim.

Kuv txuas cov cai.

  1. Ua ntej Qhib cov cai thiab kho raws li hauv qab no.
  2. Nkag mus rau SSID ntawm koj lub network Wi -nkaus (Wifi lub npe network) nrog rau hauv kab lus.

char ssid = "nkag mus rau koj lub npe network wifi";

3. Sau tus password ntawm koj lub network wifi nrog hauv kab lus.

char wifiPassword = "nkag mus rau koj tus password wifi router";

4. Tam sim no koj yuav tsum sau tus neeg siv lub npe, tus password, tus thov kev pab uas koj tau txais thaum ntxiv cov cuab yeej.

char username = "sau tus neeg siv lub npe"; char password = "nkag lo lus zais";

char clientID = "nkag tus neeg siv tus lej";

Tam sim no txuag thiab xa cov cai rau ESP 8266 ntawm mcu module.

Thaum esp8266 node mcu module txuas rau lub server ntawd, koj tuaj yeem pom cov cuab yeej siv tau tsim hauv koj lub dashboard. Pin cov widgets thiab kho lawv (npe, hom thiab lwm yam).

Qhov ntawd yog txhua tus txiv neej …

Kom ua tiav kev tsim kho saib cov vis dis aus hauv qab no.

Kauj Ruam 5: Kev Tsim Kho thiab Kev Xeem

Image
Image

Xav tias dawb los tawm tswv yim.

Yog xav paub ntau ntxiv sau npe rau kuv tus youtube channel [Nyem qhov no]

Mus ntsib kuv lub vev xaib kom paub ntau ntxiv.

Pom zoo: