Cov txheej txheem:

Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT): 7 Cov Kauj Ruam (nrog Duab)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT): 7 Cov Kauj Ruam (nrog Duab)

Video: Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT): 7 Cov Kauj Ruam (nrog Duab)

Video: Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT): 7 Cov Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)
Internet/huab Kev Tswj Xyuas Tsev Automation Siv Esp8266 (aREST, MQTT, IoT)

TXHUA qhov qhab nia rau https://arest.io/ rau kev pabcuam huab !!

IoT cov ncauj lus sib tham tshaj plaws hauv ntiaj teb tam sim no !! Huab servers thiab cov kev pabcuam ua qhov no ua tau yog qhov nyiam ntawm lub ntiaj teb niaj hnub no …

RULING OUT THE DISTANCE BARRIER yog thiab yog lub hom phiaj !!

Yog li tam sim no tswj koj lub tsev lossis chaw ua haujlwm los ntawm txhua qhov chaw hauv ntiaj teb no … tsis yog los ntawm sab hauv lossis ntau yam !!

Kev daws teeb meem yooj yim tshaj plaws thiab pheej yig tshaj los ntawm tus neeg tub nkeeg !!! Txaus siab thiab txaus siab …

NCO TSEG: Nyeem tag nrho txoj haujlwm thawj zaug nws yuav siv sijhawm 3-4 feeb thiab hloov kho tshiab … Tsis txhob nyeem ib nrab thiab tsoo koj lub cuab yeej …

Kauj Ruam 1: YUAV TSUM MUAJ NTAUB NTAWV

NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ
NTAWV YUAV TSUM MUAJ

Tsuas yog 4 yam yuav tsum tau ua - 1. ESP8266 NODEMCU lossis WEMOS D1 mini lossis ib qho esp8266 wifi kev txhim kho pawg thawj coj 2. RELAY (5V lossis 6V) 3. ULN2003 lossis UNL2003A (Relay tsav tsheb IC) 4. Jumpers (pom tseeb lossis lwm yam solder nws !!) lub hauv paus tseem ceeb ntawm txoj haujlwm yog ESP8266 module yuav tau txais lub teeb liab los ntawm MQTT server (piv txwv li isst.io) thiab xa cov teeb liab mus rau tus pin lossis tus processor. ULN2003 relay tsav IC txuas nrog rau Nodemcu board pins. Cov pins tso tawm tau txuas nrog kev xa tawm lossis ib qho RGB teeb lossis servo lub cev thiab lwm yam.

Kauj ruam 2: Software

Software
Software
Software
Software
Software
Software
Software
Software

Kuv tau siv Arduino IDE ua lub program programming. Yog tias koj yog tus tshiab rau Nodemcu no lossis esp8266 pawg thawj coj txhim kho ces thov xa mus rau kuv cov lus qhia yav dhau los. Txhawm rau cuam tshuam Nodemcu lossis wemos board nrog Arduino IDE.

Hauv Arduino IDE tom qab teeb tsa cov lus yav dhau los, mus rau SKETCH -> INCLUDE LIBRARY -> Tswj LIBRARIES -> Nrhiav rau "arest" -> INSTALL THE LIBRARIES -> Tam sim no nrhiav rau PubSubClient -> INSTALL THE LIBRARY.

Tam sim no nws ib nrab ua tiav… yuav luag nyob ntawd !!!

Kauj Ruam 3: CIRCUIT DIAGRAM

CIRCUIT DIAGRAM
CIRCUIT DIAGRAM

Raws li cov lus hais saum toj no piav qhia txhua yam tseem nyob sab hauv ntawm ULN2003 relay tsav IC txuas nrog lub pins ntawm esp8266 thiab cov zis tau txuas nrog rau kev xa xov ntawm cov kauj raws li thaum esp8266 tus pin tau siab cov zis pin ntawm ULN2003 tau qis yog li muab qhov txuas 5V muaj peev xwm ua haujlwm.

Hloov chaw ntawm xa 0 lossis 1 mus rau tus xa tawm esp8266 pins peb kuj tseem tuaj yeem xa lwm qhov txiaj ntsig rau servo tab sis tshaj tawm servo.attach (tus pin) kom tig lub servo rau tus nqi tshwj xeeb. Nws yooj yim tab sis txhua tus neeg yuav tsum tau hloov kho tshiab, nyeem thiab xav me ntsis.

Kauj ruam 4: CODE

CODE
CODE

Kuv tau txais lub tswv yim los ntawm "Marco Schwartz" txoj haujlwm thiab hloov kho nws. Nws tau siv d isst.io MQTT tab sis peb tseem tuaj yeem siv adafruit.io. Qhov tseem ceeb ntawm txoj haujlwm yog:

Cim 6digit arest id

char* device_id = "tshwj xeeb_6_digit_id";

Daim ntawv pov thawj WiFi

const char* ssid = "ssid_name"; const char* password = "your_password";

Xaiv cov cim tshwj xeeb raws li koj nyiam tab sis nws yuav tsum yog qhov tshwj xeeb tsis yog kuv lossis koj lub npe tshwj tsis yog nws lub npe telugu !!

piv txwv ntawm tus cim tshwj xeeb: pf4h6q (tsuas yog piv txwv)

tuaj yeem muaj ntau qhov kev hloov pauv hauv cov cai raws li txoj cai, peb yuav tsum hais txog qhov tso tawm tom qab txhua qhov rov pib dua ntawm pawg thawj coj loj

Github code

Code:

Kauj ruam 5: CONTROLLING

Tswj
Tswj
Tswj
Tswj
Tswj
Tswj

2 CRUCIAL cov kauj ruam: 1. tshaj tawm tus pin tso zis 2. toggling lossis xa cov ntaub ntawv hauv tus pinDeclaring tus pin tso tawm: https://cloud.arest.io/pf486q/mode/5/o "pf486q" yog tus lej 6 tus lej tshwj xeeb rau isst. io "o" raws li qhov ua tau zoo tom qab ua tiav qhov no hauv txhua lub browser {"message": "Pin D2 teeb tsa rau", "id": "pf486q", "name": "cloud home", "hardware": "esp8266", "txuas": tseeb} Toggling lossis xa cov ntaub ntawv hauv tus pin: https://cloud.arest.io/pf486q/digital/2/0digital pin 2 tau xa me ntsis "0" lossis "1" raws li peb xav tau https:// cloud.arest.io/pf486q/digital/2/1 Kev tshaj tawm tus pin yog qhov tsim nyog rau ib zaug tom qab rov pib dua/rov pib dua/kaw lwm yam rau kev ua haujlwm txuas ntxiv ntawm esp8266 nws tsis tsim nyog. Kuv tau siv Android app HTTPRequest los tsim widget ntawm tsev-tshuaj ntsuam nrog tsim nyog URL. Raws li qhia hauv kuv cov lus qhia yav dhau los. Thov saib uas tsis yog qhov no yuav ntev.

Kauj Ruam 6: XAUS

Nov yog qhov haujlwm IoT rau kev tswj cov khoom siv hauv tsev, qhov rooj, qhov rai, txhua yam thiab tuaj yeem kho raws li tus neeg xav tau. Nws tsis nyob hauv zos tswj, txhua yam no tuaj yeem tswj tau los ntawm txhua qhov chaw.

TUS NEEG SAWV DAWS LOSSIS URL NROG KOOM HAUM YUAV TSUM MUAJ 1-2 vib nas this/s kom ua tiav vim qhov no tsis yog tus neeg rau zaub mov tshwj xeeb …

Zoo siab thiab txaus siab … Ua ABSENTMINDED thiab tsis txhob hnov qab hloov cov ntawv thov tab sis tsis muaj lub taub hau !!

Ua tsaug rau "arest.io" MQTT cov kev pabcuam thiab rau "Marco Schwatrz" …

yog tias koj nyiam cov lus qhia txhawb nqa thiab txaus siab rau … thiab rau ib qho teeb meem hais txog qhov no nug kuv

Kauj ruam 7: Video !

Ib tus neeg tshwj xeeb tau pab kuv txheeb xyuas nws ua haujlwm los ntawm lwm qhov lossis tsis yog … Thiab nws ua haujlwm los ntawm txhua qhov chaw tsuas yog xav tau kev siv internet … (Kuv nyob hauv Kolkata, IN thiab nws nyob hauv Ranchi, IN) … thiab yog nws messed nrog kuv tom qab paub kuv tus lej tshwj xeeb ntawm arest.io yog li tsis txhob qhia koj tus kheej tsim cov cai tshwj xeeb !!

Pom zoo: