Cov txheej txheem:

Txuas ESP8266 mus rau WIFI Network: 3 Cov Kauj Ruam
Txuas ESP8266 mus rau WIFI Network: 3 Cov Kauj Ruam

Video: Txuas ESP8266 mus rau WIFI Network: 3 Cov Kauj Ruam

Video: Txuas ESP8266 mus rau WIFI Network: 3 Cov Kauj Ruam
Video: SKR 1.4 - TMC2209 v1.2 2024, Kaum ib hlis
Anonim
Txuas ESP8266 mus rau WIFI Network
Txuas ESP8266 mus rau WIFI Network

Hauv tsab xov xwm dhau los kuv tau tham txog yuav ua li cas thiaj ua tau ESP8266 qhov Access point.

Thiab hauv kab lus no, Kuv yuav qhia koj yuav ua li cas txuas ESP8266 mus rau lub network wifi (ua ESP8266 ua tus neeg siv khoom).

Ua ntej mus txuas ntxiv rau kev qhia, nco ntsoov tias koj tau ntxiv ESP8266 Board rau Arduino IDE. Yog tsis yog, nws yuav tsis muaj txiaj ntsig rau koj ua raws cov lus qhia no. Txhawm rau ntxiv ESP8266 pawg thawj coj saib rau Arduino IDE pom hauv kab lus no "Pib Nrog ESP8266 (NodeMCU Lolin V3)"

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam

qhov no yog ib feem uas koj xav tau hauv qhov kev qhia no:

  • NodeMCU ESP8266
  • USB micro nco
  • Laptop
  • Qhov chaw nkag
  • Kev Sib Txuas Internet (optoinal)

Kauj ruam 2: Programming

Programming
Programming

Tom qab koj ntxiv ESP8266 board rau Arduino IDE. yuav muaj cov qauv kev qhia tshwj xeeb tshwj xeeb rau ESP8266 uas tuaj yeem siv tau. Txhawm rau txuas ESP8266 mus rau WiFi network. Qhov ntawd txhais tau tias peb yuav hloov EPS8266 hom los ua WiFi cov neeg siv khoom. Nov yog txoj kev:

  • Qhib Arduino IDE
  • Nyem cov ntaub ntawv> Piv txwv> ESP8266WiFi> WiFi Client
  • Kho cov cai hauv qab no nrog cov ntaub ntawv koj muaj

#define STASSID "your-ssid" // lub npe wifi uas yuav siv

#define STAPSK "koj tus password" // password

Tom qab ntawd, xa cov duab kos mus rau ESP8266 pawg thawj coj. Thiab tos kom txog thaum nws ua tiav.

Kauj Ruam 3: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim

Tom qab kos duab tiav uploading. Cov hauv qab no yog ib txoj hauv kev pom cov txiaj ntsig:

  • Qhib tus saib xyuas
  • Nyem pib dua ntawm ESP8266 Pawg Thawj Coj
  • Yog ua tiav kev sib txuas, qhov tshwm sim yuav zoo li daim duab 1
  • Yog tias nws tsis ua tiav txuas nrog, qhov txiaj ntsig yuav tsis zoo li Daim Duab 1

Pom zoo: