Cov txheej txheem:
Video: Pib Nrog NodeMCU (ESP8266) .: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
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:-
- Arduino IDE Cov.
- CP210X tsav tsheb.
- NodeMCU [ESP8266] (Qhov Yuav Zoo Tshaj Txuas: Asmeskas, UK)
- LEDs (Qhov Yuav Zoo Tshaj Txuas: Asmeskas, UK)
- 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:-
- 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:-
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:
Pib Pib Nrog Bascom AVR: 5 Kauj Ruam
Pib Pib Nrog Bascom AVR: Nov yog qhov pib ntawm kev qhia koj li program koj AVR microcontroller nrog Bascom AVR.Why kuv ua qhov no.Muaj feem ntau ntawm cov qauv kev qhia hauv kab ntawv no koj tuaj yeem ua nrog Arduino. Qee qhov yooj yim dua thiab qee qhov nyuaj dua, tab sis thaum kawg ob leeg yuav
Pib Pib/ NodeMCU ESP8266 ntawm Arduino IDE: 6 Cov Kauj Ruam
Pib Pib/ NodeMCU ESP8266 ntawm Arduino IDE: Txheej txheem cej luam Hauv qhov kev qhia no, koj yuav kawm paub siv NodeMCU ntawm Arduino IDE.What Koj Yuav Kawm Paub Cov ntaub ntawv dav dav txog NodeMCU Yuav ua li cas rau teeb tsa ESP8266 raws cov laug cam ntawm Arduino IDE Yuav ua li cas rau program NodeMCU ntawm Arduino IDE siv
Nab hab sej rau Tsis Yog-Pib Pib Pib: 7 Kauj Ruam
Nab hab sej rau Tsis -Yog li Pib Pib: Nyob zoo, zaum kawg, yog tias koj tau mob siab rau, peb tau kov ntawm qhov pib ntawm nab nab - luam tawm, thaum thiab rau loops, nkag & tso tawm, yog, thiab pib ntawm easygui. kuj yog kev faib dawb pub dawb ntawm easygui thiab pycal-kuv tus kheej module.this nyeem yuav suav nrog: ntau dua
Pib Pib Tsim Lub Chaw Saib Xyuas PM: 3 Kauj Ruam (nrog Duab)
Pib Tsim Lub Tsev Saib Xyuas PM: Kuv tshwj xeeb txaus siab rau huab cua huab cua ntau ntau, vim kuv nyob hauv Suav teb thiab thaum kuv lub nroog, Shenzhen, tej zaum yog ib lub nroog huv tshaj plaws hauv Suav teb, nws tseem muaj nws cov hnub tsis zoo.Yog li, kuv xav tsim kuv tus kheej los piv rau ib nrab ntawm kaum ob cua
Phau Ntawv Qhia Pib Pib rau Arduino IDE Nrog NodeMCU ESP8266: 6 Cov Kauj Ruam
Phau Ntawv Qhia Pib Pib rau Arduino IDE Nrog NodeMCU ESP8266: Arduino IDE Kev teeb tsa rau NodeMCU ESP8266