Cov txheej txheem:

Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw): 5 Kauj Ruam (nrog Duab)
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw): 5 Kauj Ruam (nrog Duab)

Video: Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw): 5 Kauj Ruam (nrog Duab)

Video: Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw): 5 Kauj Ruam (nrog Duab)
Video: Qhia txog show Wifi password hauv Computer 2024, Hlis ntuj nqeg
Anonim
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw)
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw)
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw)
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw)
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw)
Tswj ESP8266 Hauv Is Taws Nem (los ntawm Txhua Qhov Chaw)

Muaj tab sis ob peb yam zoo dua li (ua tiav) lub cajmeem thiab siv koj li Arduino. Muaj tseeb ib qho ntawm cov khoom siv koj li ESP8266 ua Arduino nrog WiFi! Hauv cov lus qhia no kuv yuav qhia koj txoj hauv kev yooj yim kom tau txais ESP8266 ua haujlwm ua lub vev xaib thiab nkag mus rau lub server ntawd los ntawm txhua qhov chaw (hauv internet)

Tsis tas li yog tias koj pom qhov kev qhia no nthuav, tej zaum koj yuav nyiam qee yam ntawm kuv lwm tus:

YOOJ YIM Arduino OLED sensor cov ntaub ntawv tso tawm

Yuav ua li cas thiaj ua kom lub zog hluav taws xob siab

Yuav xa cov ntaub ntawv li cas los ntawm Arduino kom zoo (thiab npaj nws)

Yuav ua li cas tso saib Arduino sensor nyeem ntawm Nokia 5110 zaub

Kauj Ruam 1: Yam Koj Yuav Tsum Tau:

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Txij li esp8266 NodeMcu pheej yig heev, Kuv pom zoo kom yuav ib qho. Koj tuaj yeem yooj yim ntsaws nws rau hauv koj lub PC thiab siv nws li Arduino. Tsis muaj lus txib coj txawv txawv lossis ib yam dab tsi "tsis paub".

Kauj Ruam 2: Arduino IDE+ESP8266:

Arduino IDE+ESP8266
Arduino IDE+ESP8266
Arduino IDE+ESP8266
Arduino IDE+ESP8266
Arduino IDE+ESP8266
Arduino IDE+ESP8266
Arduino IDE+ESP8266
Arduino IDE+ESP8266

-Qhib Arduino IDE

-Kev mus rau File-> Preferences-> Ntxiv Boards Manager URLs: https://arduino.esp8266.com/stable/package_esp8266c…-> nyem OK

-Qhov IDE thiab qhib nws dua

-Kev mus rau Cov Cuab Yeej-> Pawg Thawj Coj (qhov twg koj yuav xaiv koj li Arduino version)-> Tus Thawj Tswj Xyuas Haujlwm, nrhiav ESP8266 thiab nyem Nruab

Tam sim no koj yuav tsum tuaj yeem siv ESP8266 ua Arduino. Cias xaiv NODEMCU 1.0 ua koj pawg thawj coj thiab koj yuav tsum npaj kom muaj tus lej. (yog tias nws tsis ua haujlwm, sim 0.9 version)

Kauj Ruam 3: "Arduino" Code:

Txij li thaum cov cai tau messed thaum pasted, Kuv tau suav nrog nws ua cov ntaub ntawv txt. Rub tawm nws thiab muab tso rau hauv koj li Arduino IDE.

Cov cai tau hais tawm, yog li koj yuav tsum tsis muaj teeb meem nkag siab tias yuav hloov dab tsi kom haum rau koj cov kev xav tau

Kauj Ruam 4: Nkag Mus Los Ntawm Txhua Qhov Chaw:

Nkag Mus Los Ntawm Qhov Twg
Nkag Mus Los Ntawm Qhov Twg

Ua ntej koj yuav tsum mus rau www.whatsmyip.org thiab luam koj tus IP.

Tam sim no koj yuav tsum qhib koj lub router teeb tsa. (google yuav ua li cas rau koj lub router) Qhib koj lub browser thiab ntaus hauv qhov chaw nyob rau koj tus router. Muaj koj yuav pom qee qhov chaw, suav nrog qee yam raws kab ntawm Kev Xa Mus lossis chaw xa khoom xa mus.

Qhov tseem ceeb uas yuav tsum tau nco ntawm no yog "Chaw pabcuam" thiab "IP chaw nyob".

Hauv "Qhov chaw pabcuam", koj yuav tsum ntaus qhov chaw nres nkoj uas koj tau teev tseg hauv koj li Arduino code. (Kuv yog 301)

Hauv "IP Chaw Nyob", koj yuav tsum ntaus: IP (los ntawm whatsmyip): ServicePort

yog li nws yuav tsum zoo ib yam li xxx.xxx.xx.xx: 301

Tsuas yog tawm ntawm lwm qhov chaw ntawm Default. (lossis txheeb xyuas yuav ua li cas xa mus rau koj lub router)

Kauj ruam 5: Tam sim no yog dab tsi ???

Tam sim no… tsuas yog ntaus tus xxx.xxx.xx.xx: 301 rau hauv koj tus browser thiab koj yuav tsum muaj lub vev xaib yooj yim nrog ob lub khawm ntawm nws. Kuv paub tseeb tias koj tuaj yeem txiav txim siab siv cov ntawd.

Koj tuaj yeem ntaus qhov chaw nyob rau hauv koj lub xov tooj ntawm tes thaum nyob deb ntawm tsev thiab nkag mus rau ESP8266 li ntawd. Tej zaum es tsis txhob tig lub LED qhib thiab tawm, sim qhia nws kom qhib koj lub AC ntawm cov hnub sov so.

Pom zoo: