Cov txheej txheem:
- Kauj Ruam 1: Tus Kheej Txhais
- Kauj ruam 2: Tus Pin Txuas
- Kauj ruam 3: PHP & JSON Source Code
- Kauj Ruam 4: Tsim Lub Vev Xaib
- Kauj ruam 5: Arduino Source Code
- Kauj Ruam 6: Qhov tshwm sim
- Kauj ruam 7: Yees duab
Video: Yuav Ua Li Cas Tswj LED Siv ESP8266 NodemCU Lua WiFi Los Ntawm Lub Vev Xaib: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Phau ntawv qhia no yuav qhia koj qee qhov pib ntawm kev siv ESP8266 NodemCU Lua WiFi los tswj LED los ntawm lub vev xaib.
Ua ntej koj yuav pib, xyuas kom koj muaj tag nrho cov ntaub ntawv xav tau:
- ESP8266 NodeMCU Lua WiFi
- LED
- Cov qhob cij
- Jumper (yog xav tau)
- Micro USB
Kauj Ruam 1: Tus Kheej Txhais
Kauj ruam 2: Tus Pin Txuas
Qhov no yog ib qho ntawm kev txuas yooj yim tshaj plaws thiab haum rau tus pib hauv qhov kev qhia no, peb xav tau txuas LED lub anode rau ESP8266's GND tus pin thiab LED lub cathode rau ESP8266 D7.
Kauj ruam 3: PHP & JSON Source Code
Rub tawm cov peev txheej no thiab xa mus rau Arduino.
Kauj Ruam 4: Tsim Lub Vev Xaib
1. Ua ntej, mus rau ntawm no.
2. Pub dawb tso npe rau tus as khauj thiab ua lub vev xaib npe. (Tsuas yog sau lub npe nkaus xwb tsis xav tau www thiab.com)
3. Yog tias sau npe tus account ua tiav, qhib email rau kev txheeb xyuas.
4. Tom qab ua tiav, mus rau kev tswj hwm lub vev xaib thiab xa cov ntaub ntawv PHP thiab JSON.
Kauj ruam 5: Arduino Source Code
Rub tawm qhov chaws thiab qhib nws nrog Arduino IDE. Nco ntsoov tias koj tau ua tiav teeb tsa ESP8266 rau hauv koj Arduino IDE yog li koj tuaj yeem txuas koj li ESP8266 rau hauv koj Arduino IDE thiab xaiv lub rooj tsav xwm raug thiab chaw nres nkoj rau hauv Arduino IDE.
Nyem rau qhov no txhawm rau teeb tsa ESP8266 rau hauv koj li Arduino IDE.
*Nco tseg:
1. Hloov ssid thiab password rau koj tus kheej WiFi Lub Npe thiab tus password
2. Hloov tus tswv tsev thiab txoj hauv kev
const char* tus tswv = "controlled.000webhostapp.com"; // koj sau
Txoj hlua txoj kab = "/light.json"; // pib nrog slash
3. Hloov tus lej tus lej
Kauj Ruam 6: Qhov tshwm sim
Tom qab fais fab tswj tus tswj, qhib "Serial Monitor" thiab nws yuav qhia:
… Txuas WIFI
txuas mus rau (Koj lub vev xaib npe)
…………… LED Tawm
kaw kev sib txuas. Txuas mus rau (Koj lub vev xaib npe)
Thaum koj qhib koj lub vev xaib thiab nyem "Qhib" khawm, "Serial Monitor" yuav qhia:
…………… LED rau
kaw kev sib txuas. Txuas mus rau (Koj lub vev xaib npe)
LOSSIS nyem "Tua Tawm" khawm, "Serial Monitor" yuav qhia:
…………… LED OFFclosing kev twb kev txuas. Txuas rau (Koj lub vev xaib npe)
Kauj ruam 7: Yees duab
Cov vis dis aus no qhia txog qhov ua piv txwv ntawm kev tswj LED siv ESP8266 los ntawm lub vev xaib.
Pom zoo:
$ 10 Lub Vev Xaib Lub Vev Xaib Kho: 5 Kauj Ruam (nrog Duab)
$ 10 Lub Vev Xaib Lub Vev Xaib Tsis Zoo: Zoo, kuv tau ua nws dua. Kuv tau tawg kuv qhov screen. Rau cov ntawm koj uas yuav nco tau, kuv tau ua qhov no tsuas yog ib xyoos dhau los thiab xav tau kev txhim kho ib ntus kom coj kuv mus txog thaum kuv tuaj yeem hloov pauv cov muab kev pabcuam thiab tau txais xov tooj tshiab. Nws tau ua haujlwm zoo, nws tau kav rau
Yuav Ua Li Cas Sib Sau 3D Lub Teeb Lub Vev Xaib 8x8x8 Xiav LED MP3 Music Spectrum Los Ntawm Banggood.com: 10 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Sib Sau 3D Lub Teeb Lub Caj Npab 8x8x8 Xiav LED MP3 Music Spectrum Los Ntawm Banggood.com: Qhov no yog qhov peb tab tom tsim: 3D Lub Teeb Lub Cube Pob 8x8x8 Xiav LED MP3 Music SpectrumOptional Transparent Acrylic Board HousingIf koj nyiam no lub voos xwmfab LED, koj yuav xav tau plam ntawm kuv tus YouTube channel uas kuv ua LED ntsuas, neeg hlau, IoT, luam ntawv 3D, thiab mor
Lub Vev Xaib Tswj Lub Vev Xaib Box: 4 Kauj Ruam
Lub Vev Xaib Tswj Lub Vev Xaib Box: Qhov no yog lub thawv xauv uas tuaj yeem qhib tau los ntawm kev qhia sai ntawm lub vev xaib. Qhov no txhais tau tias, koj tuaj yeem kaw cov khoom tam sim ntawd hauv lub thawv thiab tsuas yog nkag mus rau lawv thaum ib tus neeg nkag mus rau kab lus muab nkag rau ntawm lub vev xaib pej xeem. Vim li cas ib tus xav tau qhov no? Nov yog ib qho ex
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Lub hauv paus tseem ceeb ntawm Lub Vev Xaib-raws li Lub Vev Xaib: 7 Kauj Ruam
Cov Hauv Paus Ntawm Lub Vev Xaib-raws li Lub Vev Xaib: Cov lus qhia no yuav qhia koj cov hauv paus ntawm kev tsim lub vev xaib nrog divs li cas. Vim tias cov ntxhuav siv rau kev teeb tsa yog qhov phem!: PTo kom nkag siab cov lus qhia no, koj yuav tsum paub qhov yooj yim html thiab css. Yog tias koj tsis nkag siab qee yam, xav tias dawb rau