Cov txheej txheem:

Yuav Ua Li Cas Hloov WiFi Siv ESP8266: 5 Cov Kauj Ruam
Yuav Ua Li Cas Hloov WiFi Siv ESP8266: 5 Cov Kauj Ruam

Video: Yuav Ua Li Cas Hloov WiFi Siv ESP8266: 5 Cov Kauj Ruam

Video: Yuav Ua Li Cas Hloov WiFi Siv ESP8266: 5 Cov Kauj Ruam
Video: Yuav ua li cas By Nhia Lor [full version] 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Hloov WiFi Siv ESP8266
Yuav Ua Li Cas Hloov WiFi Siv ESP8266
Yuav Ua Li Cas Hloov WiFi Siv ESP8266
Yuav Ua Li Cas Hloov WiFi Siv ESP8266

Hauv qhov kev qhia no kuv yuav qhia koj yuav ua li cas hloov lub xov hlau siv ESP8266. xov xwm sib txuas lus uas kuv yuav siv yog WiFi network.

Hauv qhov kev qhia yav dhau los kuv tham txog kev siv ESP8266 los tham nrog siv WiFi network. Koj tuaj yeem nyeem kab ntawv no ua ntej txhawm rau ntxiv kev nkag siab rau cov qauv ua haujlwm ntawm ESP8266 rau kev sib txuas lus ntawm WiFi tes hauj lwm.

  • Tsim kom muaj WiFi Access Point thiab Muab Lub Vev Xaib ntawm NodeMCU V3
  • Txuas ESP8266 mus rau WIFI Network
  • Ob hom hauv ESP8266

Kauj Ruam 1: Yuav Tsum Muaj Kev Koom Tes

Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam
Yuav tsum muaj Cheeb Tsam

Cov khoom koj xav tau rau qhov kev qhia no:

  • NodeMCU ESP8266
  • 5 hli Blue LEDs
  • tiv thaiv 330 Ohm
  • Jumper Hlau
  • Pawg Thawj Coj
  • Micro USB
  • Laptop

Kauj Ruam 2: Sib Sau Ua Ke Txhua Yam

Sib Sau Ua Ke Txhua Yam
Sib Sau Ua Ke Txhua Yam

Daim duab saum toj no yog cov phiaj xwm hluav taws xob uas yuav siv.

Hauv qhov kev qhia no kuv tau siv Pin D0 raws li Kev Tso Tawm.

Kauj ruam 3: Programming

Programming
Programming

Txog qhov kev qhia no kuv yuav siv Wifi Chaw Nres Nkoj Hom ntawm ESP8266. Nrog rau hom no, peb tuaj yeem ua Wirelless Switch yam tsis siv internet network. Tab sis qhov hloov pauv tsuas yog siv tau ntawm lub network hauv zos ntawm Txawb thiab ESP8266.

Kuv tau muab Sketch uas koj tuaj yeem rub tawm hauv qab no.

Ua ntej rub tawm cov duab kos rau NodeMCU. Nco ntsoov tias NodeMCU pawg thawj coj tau ntxiv rau hauv Arduino IDE. Yog tias koj tsis tau pom dua koj tuaj yeem pom txoj hauv kev no atikel "Pib Nrog ESP8266 (NodeMCU Lolin V3)"

Kauj Ruam 4: Nkag Mus Rau Lub Vev Xaib

Nkag Mus Rau Lub Vev Xaib
Nkag Mus Rau Lub Vev Xaib
Nkag Mus Rau Lub Vev Xaib
Nkag Mus Rau Lub Vev Xaib

Nov yog yuav ua li cas khiav lub wireless hloov no:

Tom qab Sketch upload ua tiav

  • Qhib Wifi ntawv qhia zaub mov ntawm lub xov tooj hauv
  • Txuas lub xov tooj hauv xov tooj mus rau SSID "NodeMCU"
  • Qhib Serial Monitor ntawm Arduino
  • Saib tus IP chaw nyob tso tawm
  • Qhib qhov browser ntawm lub xov tooj Android
  • Nkag mus rau tus IP chaw nyob ntawm tus saib xyuas ntu (192.168.4.1)
  • Tom qab ntawd lub vev xaib yuav tshwm los tswj lub LED

Kauj ruam 5: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim

Txhawm rau qhib LED, nyem lub pob "on"

Txhawm rau tua LED, nias lub pob "tua"

Pom zoo: