Cov txheej txheem:

Pib Nrog NodeMCU (ESP8266) .: 3 Kauj Ruam
Pib Nrog NodeMCU (ESP8266) .: 3 Kauj Ruam

Video: Pib Nrog NodeMCU (ESP8266) .: 3 Kauj Ruam

Video: Pib Nrog NodeMCU (ESP8266) .: 3 Kauj Ruam
Video: Pib Tshiab Nrog Kuv- hu: CM XIONG Feat.NIKKI THAO [ Official Audio] 2023 2024, Kaum ib hlis
Anonim
Image
Image
Yam koj xav tau
Yam koj xav tau

Hauv Cov Lus Qhia no Kuv yuav qhia koj li cas thiaj tuaj yeem pib nrog NodeMCU (ESP8266) nrog Arduino IDE. Cov ntawv qhia no yog rau cov pib tshiab uas nyuam qhuav pib. NodeMCU zoo ib yam li Arduino nrog onboard Wifi, yog li koj tuaj yeem nqa koj cov phiaj xwm online. Txhawm rau paub ntau ntxiv txog NodeMCU mus ntsib nws lub vev xaib raug cai ntawm no.

Kuv yuav koom nrog ntau qhov haujlwm raws li qhov no kom ntseeg tau tias ua raws kuv yog tias koj txaus siab.

Yog li cia pib.

Kauj Ruam 1: YUAV TSUM PAUB:-

Yam koj xav tau
Yam koj xav tau
Yam koj xav tau
Yam koj xav tau
  1. Arduino IDE Cov.
  2. CP210X tsav tsheb.
  3. NodeMCU [ESP8266] (Qhov Yuav Zoo Tshaj Txuas: Asmeskas, UK)
  4. LEDs (Qhov Yuav Zoo Tshaj Txuas: Asmeskas, UK)
  5. Cov qhob cij. (Kev yuav khoom zoo tshaj plaws: Asmeskas, UK)

Qhov ntawd yog txhua yam koj yuav xav tau xa mus rau qhov kev yuav khoom zoo tshaj yog tias koj tsis muaj Pawg Thawj Coj.

Thaum koj muaj cov khoom xav tau. Tsiv mus rau qib tom ntej.

Kauj Ruam 2: teeb tsa IDE:-

TSEV KAWM IDE
TSEV KAWM IDE
TSEV KAWM IDE
TSEV KAWM IDE
TSEV KAWM IDE
TSEV KAWM IDE
  • Thawj rub tawm thiab Nruab Arduino IDE.
  • Mus rau >> Cov Ntaub Ntawv >> Nyiam thiab muab cov ntawv txuas txuas hauv "Tus thawj tswj hwm ntxiv URL's"

"https://arduino.esp8266.com/stable/package_esp8266com_index.json" (Tsis muaj cov lus hais)

  • Nyem ok, Tam sim no mus >> Cov cuab yeej >> Pawg Thawj Coj >> Tus Thawj Saib Xyuas Haujlwm.
  • Scroll cia kom pom ESP8266 thiab nyem rau nruab.

Qhov no yuav ntxiv tag nrho ESP cov laug cam rau IDE.

Tam sim no kom paub txog Pawg Thawj Coj hauv computer koj yuav tsum teeb tsa CP210X Tsav Tsheb. Nws yog qhov yooj yim heev. Tsuas yog mus ntsib qhov txuas thiab rub tawm qhov sib xws rau koj lub cuab yeej.

tam sim no koj yuav tsum xaiv lub rooj tsav xwm raug, Ntawm no kuv tau siv NodeMCU 1.0 (ESP-12E Module).

Tom qab xaiv lub rooj tsavxwm ua raws li kev teeb tsa hauv qab no:-

  • Flash Loj: "4M (3M SPIFFS)"
  • Debug Port: "Xiam oob qhab"
  • Qib Debug: "Tsis muaj"
  • IWIP Variant: "V2 Txo Nco"
  • CPU Zaus: "80Mhz"
  • Upload Ceev: "921600"
  • Lwv Flash: "Sketch On"
  • Chaw nres nkoj: "COM chaw nres nkoj muaj" (qhov twg lub cuab yeej txuas nrog yuav tsum tshwm tuaj)

Tam sim no koj tuaj yeem xa koj daim duab kos rau ntawm lub rooj tsavxwm.

(Xa cov duab kom paub meej.)

Kauj Ruam 3: UPLOADING SKETCH:-

UPLOADING KEV SIV
UPLOADING KEV SIV

Tam sim no IDE tau teeb tsa rau NodeMCU koj tuaj yeem sim nws los ntawm kev xa ib qho piv txwv kos duab raws li hauv qab no:-

  • Hauv IDE Mus Rau >> Cov Ntaub Ntawv >> Piv Txwv >> ESP8266
  • Xaiv qhov Blink Piv txwv thiab muab tso rau.

Lub onboard LED yuav tsum pib ntsais muag. Qhov ntawd txhais tau tias koj ua tiav phiaj xwm phiaj xwm. Lub on board LED txuas nrog tus pin D0 ntawm NodeMCU. Koj tuaj yeem ntxiv sab nraud LED rau Pin D0.

Tam sim no rau koj los ua haujlwm nrog NodeMCU koj yuav tsum paub tus pin tawm thiab Arduino rau ESP8266 Pin mapping.

Ntawm no kuv tau teev cov NodeMCU tus pin thiab sib xws Arduino pins:

  • D0 = 16 hli
  • D1 = 5
  • D2 = 4
  • D3 = 0 hli
  • D4 = 2
  • Txd5 = 14
  • Txd6 = 12
  • Txd7 = 13
  • Txd8 = 15
  • D9 = 3 hli
  • D10 = 1

Yog li txhawm rau siv tus pin D0 ntawm NodeMCU koj yuav tsum siv Pin 16 hauv Arduino IDE.

Yog tias koj muaj kev ua xyem xyav, koj tuaj yeem nug hauv cov lus.

Hauv Kev Qhia Ntxiv tom ntej no kuv yuav qhia koj li cas koj yuav tswj hwm LED hla Internet los ntawm txhua qhov chaw hauv ntiaj teb. Txheeb nws tawm ntawm no.

Pom zoo: