Cov txheej txheem:

KEV TSHAWB TSEV KAWM NTAWV HAUV TSEV KAWM NTAWV (Tswj koj cov ntawv thov los ntawm ib tus neeg thoob ntiaj teb): 5 Kauj Ruam
KEV TSHAWB TSEV KAWM NTAWV HAUV TSEV KAWM NTAWV (Tswj koj cov ntawv thov los ntawm ib tus neeg thoob ntiaj teb): 5 Kauj Ruam

Video: KEV TSHAWB TSEV KAWM NTAWV HAUV TSEV KAWM NTAWV (Tswj koj cov ntawv thov los ntawm ib tus neeg thoob ntiaj teb): 5 Kauj Ruam

Video: KEV TSHAWB TSEV KAWM NTAWV HAUV TSEV KAWM NTAWV (Tswj koj cov ntawv thov los ntawm ib tus neeg thoob ntiaj teb): 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Image
Image
YUAV UA LI CAS
YUAV UA LI CAS

Hauv cov lus qhia no kuv tau qhia yuav ua li cas koj tuaj yeem siv ESP8266 los tswj cov khoom siv AC xws li Teeb, kiv cua, thiab lwm yam los ntawm thoob plaws ntiaj teb hauv Is Taws Nem ntawm Blynk app.

Yog tias koj yog tus tshiab rau ESP8266 nco ntsoov xyuas cov lus qhia no:-

Pib Nrog NodeMCU (ESP8266)

Yog li cia pib …

Kauj Ruam 1: KOJ YUAV TSUM:

YUAV UA LI CAS
YUAV UA LI CAS
YUAV UA LI CAS
YUAV UA LI CAS

Yuav tsum tau kho vajtse:-

1. ESP8266 (NodeMCU). Qhov zoo tshaj plaws txuas: Asmeskas, UK)

2. 4ch Relay module. (Kev yuav khoom zoo tshaj rau Asmeskas, UK)

3. 9v Roj Teeb. (Kev yuav khoom zoo tshaj rau Asmeskas, UK)

4. Cov qhob cij. (Kev yuav khoom zoo tshaj rau Asmeskas, UK)

Software Yuav Tsum Tau:-

1. Arduino IDE.

2. Blynk app.

Kauj Ruam 2: TSEV BLYNK APP:-

TSEV BLYNK APP
TSEV BLYNK APP
TSEV BLYNK APP
TSEV BLYNK APP
TSEV BLYNK APP
TSEV BLYNK APP
TSEV BLYNK APP
TSEV BLYNK APP

* Thawj lub taub hau rau playstore lossis App khw thiab rub tawm Blynk app.

* Tom ntej no kos npe nrog Blynk thiab koj yuav raug xa mus rau nplooj ntawv phiaj xwm.

* Xaiv "Txoj Haujlwm Tshiab".

* Ntawm nplooj ntawv tom ntej no npe qhov haujlwm "Automation".

* Tam sim no mus rau cov ntawv qhia zaub mov nco ntawm "Xaiv Ntaus" thiab xaiv "NodeMCU".

* Hauv qab no koj yuav pom lwm cov ntawv qhia zaub mov, xaiv "WiFi". Tam sim no ntaus Tsim.

* Tus lej cim pov thawj yuav raug xa mus rau koj tus email. peb yuav xav tau tus cim no tom qab.

* Tam sim no daim pam dawb yuav tshwm, qhov uas koj yuav tsum ntxiv 4 khawm.

* Txhawm rau ntxiv cov nyees khawm mus rau lub kaum sab xis saum toj thiab xaiv + cim, cov ntawv qhia zaub mov yuav tshwm sim, xaiv khawm los ntawm cov ntawv qhia zaub mov ntawd.

* Koj tuaj yeem rub cov nyees khawm los ntawm nias ntev/kov thiab tso lawv rau qhov koj xav tau.

* Tam sim no xaiv thawj lub pob thiab cov ntawv qhia zaub mov yuav tshwm. koj tuaj yeem sau lub npe khawm ib yam uas koj xav tau.

* Xaiv qhov tso tawm rau D0 rau 1st khawm (rau lwm lub khawm xaiv D1, D2, D3 feem)

* Tam sim no hloov Hom Hloov.

* Nias tus xub rov qab kom txuag tau qhov chaw thiab rov qab mus rau daim ntaub.

* Ua raws li kev teeb tsa rau lwm cov nyees khawm ib yam nkaus.

Xa mus rau cov duab kom ntxaws.

Kauj ruam 3: CODING:-

CODING:- TSO
CODING:- TSO
CODING:- TSO
CODING:- TSO
CODING:- TSO
CODING:- TSO

Ua ntej yuav pib ua ntej rub tawm thiab teeb tsa IDE thiab Blynk lub tsev qiv ntawv, xav paub ntau ntxiv txheeb xyuas kuv cov lus qhia yav dhau los Ntawm no.

Thaum txhua yam teeb tsa. Tsuas yog taub hau rau:

Cov Ntaub Ntawv >> Piv txwv >> Blynk >> Boards_WiFi >> ESP8266_Standalone.

Tam sim no theej daim ntawv lees paub token los ntawm koj li ntawv thiab muab nws tso rau hauv tus lej.

Ntxiv koj lub npe wifi thiab tus password.

Tam sim no Txuas ESP pawg thawj coj saib mus rau PC thiab xa cov cai.

Kauj Ruam 4: Kev Sib Txuas:-

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

NCO TSEG:- Ua haujlwm nrog AC tsuas yog koj paub tias koj tab tom ua dab tsi. Yog tias koj yog tus tshiab thiab tsis muaj lub tswv yim txog Kev Hloov Hloov tam sim no, thov kev pab los ntawm ib tus neeg uas muaj kev paub dhau los. Kuv yuav tsis muaj lub luag haujlwm yog tias koj cuam tshuam qee yam

Tam sim no cia saib lub relay module. Muaj 2 vcc pins. ib qho los ua kom lub zog muaj zog. thiab lwm yam los txhawb nqa Relays. Koj tuaj yeem siv nws nrog +5v yog tias koj siv Arduino. Tab sis nrog NodeMCU koj yuav tsum tau muab lub zog cais.

Muaj tus lej GND uas yuav txuas nrog GND ntawm MCU.

Thiab tom qab ntawd muaj 4 IN tus pin uas yuav txuas nrog rau IO pins txhawm rau hloov qhov txuas.

* Ua ntej tso NodeMCU ntawm lub khob cij.

* Txuas GND tus pin mus rau -v txoj kev tsheb nqaj hlau. Tam sim no txhawm rau txhawb MCU koj tuaj yeem txuas Vin tus pin rau +5v lossis txhawb nws los ntawm USB.

* Tam sim no txuas vcc ntawm pawg thawj coj saib xyuas xa mus rau +ve tsheb nqaj hlau ntawm lub rooj mov ci thiab GND rau -v tsheb nqaj hlau.

* Tam sim no ua raws kev sib txuas los ntawm NodeMCU rau Relay raws li hauv qab no:-

D0 = IN1

D1 = IN2

D2 = IN3

D3 = IN4

Tom qab qhov kev sib txuas no ua tiav, nws yog lub sijhawm los txuas cov cuab yeej uas koj xav tswj hwm mus rau kev xa tawm.

Txhua tus relay muaj 3 lub davhlau ya nyob twg. qhov nruab nrab ntawm qhov ib txwm muaj thiab lwm yam ob yog ib txwm qhib thiab ib txwm kaw, Rau qhov haujlwm no peb yuav siv ib txwm qhib davhlau ya nyob twg (Txheeb daim duab txhawm rau txheeb xyuas)

Ntawm no kuv tau txuas lub teeb rau lub relay. Kuv txuas ob lub xov hlau mus rau lub ntsaws thiab lwm qhov kawg rau tus tuav lub teeb. tom qab ntawd kuv siv tus ntsuas los txheeb xyuas lub davhlau ya nyob twg yog qhov nyob thiab txiav cov xov tooj nyob (tom qab tshem lub ntsaws ntawm lub SOCKET)

Tom qab ntawd kuv txuas ib kawg rau qhov dav dav dav thiab lwm qhov kawg rau Feem ntau qhib davhlau ya nyob twg. thiab teeb tsa tau ua tiav.

Tam sim no ntsaws nws thiab ua kom ntseeg tau tias cov qauv xa tawm tsis nyob ntawm ib qho khoom siv hluav taws xob. kuj tsis txhob kov tus qauv thaum nws tau qhib.

Kauj Ruam 5: Xeem:-

Xeem
Xeem

Txhawm rau sim teeb tsa, Fais fab lub voj voog nrog 9v roj teeb lossis koj tuaj yeem siv cov khoom siv fais fab mov. Tom qab txhawb nqa NodeMCU nws yuav txuas rau koj WiFi.

Tam sim no qhib Blynk app thiab nias lub pob ua si ntawm kaum sab xis saum toj.

Tam sim no toggle cov nyees khawm thiab koj yuav hnov lub suab nyem uas qhia tias cov hloov pauv tau hloov pauv. kuj koj yuav pom qhov sib thooj LED qhib.

Tam sim no koj tuaj yeem txuas cov cuab yeej sib txawv thiab siv koj lub tsev.

Vam tias Cov Lus Qhia yog ib qho yooj yim to taub, Yog tias koj ntsib teeb meem dab tsi thov hu rau hauv cov lus.

Ua tsaug.

Pom zoo: