Cov txheej txheem:

Wireless Hloov 3 Raws: 5 Kauj Ruam
Wireless Hloov 3 Raws: 5 Kauj Ruam

Video: Wireless Hloov 3 Raws: 5 Kauj Ruam

Video: Wireless Hloov 3 Raws: 5 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Wireless Hloov 3 Raws
Wireless Hloov 3 Raws

Hauv kuv qhov kev qhia yav dhau los, Kuv tau hloov lub wireless siv ESP8266. tsab xov xwm tuaj yeem nyeem ntawm no "Yuav Ua Li Cas Hloov WiFi Siv ESP8266".

Hauv tsab xov xwm no, Kuv tsuas yog ua ib-channel wireless hloov.

Thiab hauv kab lus no kuv yuav qhia koj yuav ua li cas hloov lub wireless uas muaj ntau dua ib qho channel.

Piv txwv li kuv yuav ua peb txoj kev hloov pauv wireless.

Txog cov khoom siv, nws tseem zoo ib yam li tsab xov xwm dhau los. Tab sis nws yog qhov yuav tsum tau ntxiv Cov Tiv Thaiv thiab LEDs rau qhov ntsuas qhov ntsuas.

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

Cov khoom koj xav tau rau qhov kev qhia no:

  • NodeMCU ESP8266
  • 3 X 5mm LEDs
  • 3X resistor 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

ntawm no kuv siv 3 chaw nres nkoj los ntawm esp8266.

yog:

D0 ua Led 1

D1 li coj 2

D2 ua Led 3.

rau cov phiaj xwm ib-channel thiab 3-channel tsuas yog sib txawv ntawm cov lej LEDs siv. yog li daim duab saum toj no tuaj yeem sawv cev rau cov phiaj xwm rau qeb 3 ntawm.

Kauj ruam 3: Programming

Programming
Programming

qhov hloov pauv uas kuv tau ua tsuas yog siv tau ntawm lub network hauv zos. vim kuv tsis koom nrog internet los hloov qhov no.

Kuv tau muab cov duab kos uas tuaj yeem rub tawm hauv qab no

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

Txhawm rau qhib LED, nyem lub pob "on"

Txhawm rau tua LED, nias lub pob "tua"

Pom zoo: