Cov txheej txheem:

Tsev Automation Siv BLYNK App: 7 Kauj Ruam (nrog Duab)
Tsev Automation Siv BLYNK App: 7 Kauj Ruam (nrog Duab)

Video: Tsev Automation Siv BLYNK App: 7 Kauj Ruam (nrog Duab)

Video: Tsev Automation Siv BLYNK App: 7 Kauj Ruam (nrog Duab)
Video: Часть 1. Аудиокнига Герберта Уэллса «Машина времени» (гл. 01–06) 2024, Kaum ib hlis
Anonim
Tsev Automation Siv BLYNK App
Tsev Automation Siv BLYNK App

Hauv txoj haujlwm no, kuv tau qhia tias yuav ua li cas txhua tus tuaj yeem tswj hwm nws cov khoom siv hauv tsev nyob deb siv nws lub xov tooj ntawm tes. Txog rau daim ntawv thov no yuav tsum tau teeb tsa hauv koj lub mobile.the lub npe ntawm daim ntawv thov no yog BLYNK App (rub tawm txuas tau muab piav qhia) thiab pom zoo siv internet tsis tu ncua. Kuv tau tswj tsuas yog 15W qhov muag teev, tab sis koj tuaj yeem tswj hwm ib qho khoom siv hauv tsev (raj teeb, kiv cua thiab lwm yam).

Kauj Ruam 1: YUAV TSUM MUAJ QHOV TSEEB

YUAV TSUM YUAV TSUM TAU
YUAV TSUM YUAV TSUM TAU

1. Arduino UNO.

2. Relay module (AC - 230 V, DC - 5 V, hauv daim duab).

3. Teeb (15 W, 230 V lossis lwm lub zog)

4. BLYNK App (teeb tsa hauv koj lub xov tooj, txuas hauv qab no).

5. 230 V fais fab mov. (A. C.)

6. Jumpers.

7. 12 V fais fab mov. (DC)

8. Lub qhov muag teeb thiab cov xov hlau.

▪ Txuas (BLYNK App):-

play.google.com/store/apps/details?id=cc.b…

Kauj Ruam 2: CIRCUIT DIAGRAM

CIRCUIT DIAGRAM
CIRCUIT DIAGRAM
CIRCUIT DIAGRAM
CIRCUIT DIAGRAM

Kev sib txuas yog qhov yooj yim heev. Hauv daim duab nws tau muab tias cov qauv xa tawm tau siv los ntawm 5 V, tab sis hauv kuv tus qauv kuv tau siv lub tshuab txuas txuas siv 12 V adapter. Generally nws zoo dua rau lub zog nrog 12 V. nyob rau hauv relay module.

Pin 1 - 12 V/5 V

Pin 2 - GND

Pin 3 - Teeb liab

Pin 4 - COM (Common)

Pin 5 - TSIS YOG (Feem ntau qhib)

Pin 6 - NC (Feem ntau txuas nrog)

Pin 1 yog siv los txhawb lub zog. Feem ntau qhov kev xa xov module ua raws li kev hloov pauv los tswj AC cov cuab yeej siv. Yog li tus Pin 3 tau siv los xa lub teeb liab seb peb puas xav qhib/kaw cov cuab yeej siv. Pin 3 txuas nrog rau ib qho ntawm tus pin digital ntawm Arduino UNO. Hauv kuv qhov haujlwm nws yog PIN 13 ntawm Arduino UNO. Raws li daim duab kab kab nruab nrab yuav txuas nrog lub teeb ncaj qha, tab sis kab nyob yuav txuas nrog lub teeb ntawm tus qauv. Qhov kab nyob los ntawm lub ntsaws (230 V ac) yuav txuas nrog COM (Pin 4) thiab xaim los ntawm lwm tus ncej ntawm lub teeb yuav txuas nrog NO (Tus Pin 5). Raws li kuv tsis tau siv ib qho Ethernet shield yog li Arduino yuav tsum txuas nrog koj lub khoos phis tawj, yog li nws tuaj yeem tau txais cov cim qhia los ntawm lub khoos phis tawj (txuas nrog internet). Koj tseem tuaj yeem siv NODE-MCU, qhov ntawd koj tsis xav tau lub khoos phis tawj kom tau txais cov cim zoo li NODE-MCU tuaj yeem tau txais cov cim ntawm internet.

Kauj Ruam 3: Txoj Haujlwm Ua Haujlwm

UA HAUJ LWM NTAWV
UA HAUJ LWM NTAWV
UA HAUJ LWM NTAWV
UA HAUJ LWM NTAWV
UA HAUJ LWM NTAWV
UA HAUJ LWM NTAWV

1. Ua haujlwm ntawm Relay module:

Raws li daim duab peb tuaj yeem pom tias muaj kev hloov pauv zoo ib yam hauv cov qauv txuas uas nws ib qho kawg txuas nrog COM piv txwv li Pin 4 thiab lwm qhov kawg yog txuas nrog ntawm NO piv txwv li Pin 5 lossis NC piv txwv li Pin 6. Thaum peb thov 0 V mus rau lub teeb liab pin piv txwv li Pin 3 tom qab ntawd qhov hloov pauv tseem nyob hauv tsis muaj txoj haujlwm (ib txwm qhib). Thaum peb thov +5 V los teeb liab tus pin hloov mus los ntawm NO rau NC (ib txwm txuas nrog).

2. Tsim txoj haujlwm hauv BLYNK App:

Rub tawm BLYNK App los ntawm Google Playstore (txuas tau muab lawm). Qhib nws thiab koj yuav tsum ua tus account nyob ntawd. Tom qab ntawd nyem rau "New Project". Tam sim no koj yuav tsum nyem "CHOOSE DEVICE" thiab koj yuav raug nug kom xaiv cov cuab yeej xav tau, koj yuav xaiv "Arduino UNO" thiab hauv "CONNECTION TYPE" koj yuav tsum xaiv "USB". Koj yuav tsum muab lub npe ua haujlwm ib yam nkaus. Tom qab ntawd koj nyem rau ntawm "Tsim". Yog koj txoj haujlwm tam sim no tau tsim thiab BLYNK yuav xa daim ntawv tso cai nkag mus rau koj li ntawv uas koj yuav tsum tau muab tso rau hauv tus lej arduino. Koj yuav tau txais tag nrho cov no los ntawm lub thawv widget. Hauv txoj haujlwm no raws li peb tab tom ua haujlwm tsuas yog ib lub cuab yeej yog li peb yuav ntxiv ib lub khawm xwb. Tom qab txhaj rau "Khawm" lub cim yuav raug ntxiv rau hauv qhov chaw pub dawb. Koj tuaj yeem khawm lub pob nyob txhua qhov chaw ntawm lub vijtsam. Tom qab ntawd koj yuav tsum nyem lub pob kom kho nws. Koj yuav tsum muab lub npe nyob ntawd thiab koj yuav tsum xaiv seb koj puas siv digital lossis analog ao virtual pin. Koj kuj tseem yuav tsum hais txog tus lej pin. Raws li hauv txoj haujlwm no peb tab tom siv D13 piv txwv li Digital pin 13. Tam sim no xaiv hom seb "Laub" lossis "Xaub", nws nyob ntawm koj. Tom qab ntawd rov qab mus rau lub vijtsam tseem ceeb, koj yuav pom lub pob ua si ntawm lub kaum sab xis ntawm lub vijtsam, koj yuav tsum nyem rau qhov ntawd kom qhib qhov haujlwm. Yog koj lub kaw lus tau npaj tiav thiab txuas nrog internet tom qab ntawm lub xov tooj ntawm tes tom qab nyem lub pob ua si nws yuav qhia "Online" txwv tsis pub "Offline".

n.b. ib. Ua raws cov duab ntu thiab cov kauj ruam muab, tom qab ntawd koj yuav tsis nkag siab

3. Kev txheeb xyuas txoj cai thiab kev sib txuas zaum kawg:

Ua ntej tshaj plaws koj yuav tsum ntxiv qhov txuas hauv qab no hauv "tus thawj tswj hwm ntxiv URL" hauv kev nyiam hauv Arduino IDE. Txuas:

Koj yuav tsum mus rau qhov txuas hauv qab no: https://github.com/blynkkk/blynk-library/releases/… thiab rub lub tsev qiv ntawv blynk. Tom qab rub tawm cov ntawv zip koj yuav tsum unzip nws thiab luam cov ntsiab lus ntawm cov ntaub ntawv (tsev qiv ntawv thiab cov ntawv tais ceev tseg) mus rau daim duab kos-phau ntawv ntawm Arduino IDE. Txhawm rau txheeb xyuas seb lub tsev qiv ntawv blynk tau ntxiv lossis tsis rov pib dua Arduino IDE thiab tshawb xyuas hauv ntu tsev qiv ntawv, yog tias koj pom "Blynk" nws txhais tau tias lub tsev qiv ntawv blynk tau ua tiav tiav.

Tsuas yog luam cov cai (twb tau muab) lossis koj tuaj yeem tau txais txoj cai los ntawm Piv TxwvBlynkBoards_USB_SerialsArduino_Serial_USB. Hauv ob qho tib si qhov kev hloov pauv uas koj yuav tsum tau ua yog theej cov cai tso cai xa mus rau koj li ntawv mus rau Arduino code. Tsis txhob xa cov cai tam sim no. Tam sim no qhib "Command Prompt" thiab khiav nws li kev tswj hwm. Lub vijtsam dub yuav tshwm ntawm qhov screen. Tom qab ntawd koj yuav tsum luam txoj hauv kev ntawm "ntawv" nplaub tshev. Hauv kuv qhov xwm txheej nws yog "Kuv Cov Ntaub Ntawv / Arduino / tsev qiv ntawv / Blynk / ntawv" thiab muab tshuaj txhuam rau ntawm lub vijtsam dub thiab tso rau. Tom qab ntawd koj yuav tsum luam thiab muab cov ntawv.bat tso rau ntawm qhov screen dub. Cov ntaub ntawv yog "blynk -ser.bat -c COM4". Koj yuav tsum hloov tus lej chaw nres nkoj COM. Hauv kuv qhov xwm txheej nws yog COM8. Tam sim no upload tus lej arduino. Tam sim no rov qab mus rau qhov hais kom ua ntu ntu thiab nias "nkag" peb zaug. Qhov no yuav txuas koj rau Blynk Server.

4. Tswj nrog Blynk App:

Tam sim no qhib blynk app los ntawm koj lub xov tooj thiab qhib qhov haujlwm koj tau tsim. Yog tias koj lub kaw lus txuas nrog Blynk neeg rau zaub mov ces koj yuav pom 'Online' hauv koj lub xov tooj tsis li koj yuav pom 'Offline'. Tam sim no nyem rau ntawm lub pob rau On lossis Off the appliance. Yog tias nws tsis ua haujlwm ces xyuas seb lub kaw lus txuas nrog blynk server.

n.b. ib. Ua raws cov duab ntu thiab cov kauj ruam muab, tom qab ntawd koj yuav tsis nkag siab

Kauj Ruam 4: KEV NYAB XEEB

"chaw thau khoom =" tub nkeeg ">

Pom zoo: