Cov txheej txheem:

Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay: 16 Cov Kauj Ruam
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay: 16 Cov Kauj Ruam

Video: Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay: 16 Cov Kauj Ruam

Video: Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay: 16 Cov Kauj Ruam
Video: 5 Yam: Txhob pub muaj nyob hauv Tsev (Tsis Zoo) 2024, Hlis ntuj nqeg
Anonim
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay
Tsev Automation Nrog NodeMCU Kov Sensor LDR Kub Tswj Relay

Hauv kuv qhov haujlwm NodeMCU yav dhau los, Kuv tau tswj ob lub cuab yeej siv hauv tsev los ntawm Blynk App. Kuv tau txais ntau cov lus pom thiab cov lus txhawm rau txhim kho txoj haujlwm nrog Kev Tswj Xyuas thiab ntxiv cov yam ntxwv ntxiv.

Yog li kuv tau tsim lub Smart Home Extention Box no.

Hauv qhov haujlwm IoT raws li kev siv tshuab hauv tsev no, Kuv tau ua lub tsev tsis siv neeg siv Blynk & NodeMCU nrog Kov Sensor, LDR, Kev ntsuas kub tswj qhov ntsuas qhov ntsuas nrog cov lus tawm ntawm lub sijhawm.

Hauv Phau Ntawv Hom, qhov kev xa xov tuaj yeem tuaj yeem tswj tau los ntawm lub xov tooj ntawm tes lossis lub xov tooj thiab, phau ntawv kov hloov (TTP223).

Hauv Hom Pib, qhov kev xa xov ntse no tseem tuaj yeem nkag siab chav sov thiab tshav ntuj kom qhib thiab tua lub kiv cua thiab lub teeb siv DHT11 sensor & LDR.

Txoj haujlwm ntse hauv tsev no muaj cov yam ntxwv hauv qab no:

1. Cov cuab yeej siv hauv tsev tswj los ntawm Txawb siv Blynk App

2. Cov cuab yeej siv hauv tsev tswj los ntawm qhov kub thiab txias ntsuas tau (Hauv Hom Pib)

3. Cov cuab yeej siv hauv tsev tswj los ntawm Tsaus Sensor txiav (Hauv Hom Pib)

4. Saib xyuas LIVE chav sov & Vaum nyeem ntawm OLED thiab Smartphone

5. Cov cuab yeej siv hauv tsev tswj tus kheej nrog kov hloov

6. Tswj cov cuab yeej hauv tsev siv Internet (WiFi)

Txoj haujlwm no tau tshoov siab los ntawm Txoj Haujlwm Yooj Yim NodeMCU

Khoom siv

1. NodeMCU Pawg Thawj Coj

2. DH11 Sensor

3. LDRV

4. 10k Resistors 5 tsis muaj

5.1k Resistors 3 tsis muaj

6. 220-ohm Resistors 2 tsis muaj

7. BC547 NPN Transistors 2 no

8. Diode 1N4007 2 no

9. Diode 1N4001 1no

10. 5-hli LED (1.5v) 3 no

11. SPDT 5V Relays 2 no

12. Laub Hloov/ khawm 4 tsis (lossis) TTP223 Kov Sensor (3no)

13. Txuas & dhia

14. OLED I2C Zaub (0.96 "lossis 1.3") (Tsis teb los tau)

15. Hi-Link 220V rau 5V AC rau DC hloov pauv

Kauj Ruam 1: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Nov yog daim duab qhia kev ua tiav rau IoT raws li lub tsev ntse hauv tsev.

Kuv tau siv NodeMCU los tswj cov qauv xa tawm. Kuv tau txuas nrog DHT11 qhov ntsuas kub & av noo thiab LDR los tswj kev xa rov qab raws li chav sov thiab teeb pom kev ib puag ncig.

Muaj plaub lub khawm txuas nrog NodeMCU xws li, S1, S2, CMODE, RST. S1 & S2 los tswj cov qauv xa tawm ntawm tus kheej.

Koj kuj tseem tuaj yeem txuas TTP223 Kov lub ntsej muag tsis txhob siv lub pob nyem.

CMODE los hloov Hom (Phau Ntawv Hom, Hom Pib)

RST kom rov pib dua NodeMCU

Kuv tau siv 110V/220V AC rau 5V DC hloov pauv kom muab 5V rau NodeMCU thiab xa tawm.

Yog li koj tuaj yeem txuas ncaj qha 110V lossis 220V AC cov khoom siv nrog cov ntse txuas txuas no.

Kauj Ruam 2: Ua Lub Circuit Court ntawm Breadboard rau Kev Xeem

Ua lub Circuit Court ntawm Breadboard rau Kev Xeem
Ua lub Circuit Court ntawm Breadboard rau Kev Xeem
Ua lub Circuit Court ntawm Breadboard rau Kev Xeem
Ua lub Circuit Court ntawm Breadboard rau Kev Xeem

Ua ntej tsim PCB, thawj zaug kuv tau ua lub Circuit Court ntawm lub khob cij rau kev sim.

Thaum lub sijhawm ntsuas, Kuv tau tshaj tawm cov cai rau NodeMCU tom qab ntawd sim tswj hwm qhov txuas nrog lub pob nyem, kov hloov. Blynk App, ntsuas kub, thiab LDR.

Ntawm no RST tus pin ua haujlwm qis, yog li Touch sensor txuas nrog RST tus pin yuav tsum ua haujlwm qis.

Rub daim ntawv txuas rau txoj haujlwm NodeMCU no. Kuv tau hais txhua qhov txuas ntawm cov tsev qiv ntawv xav tau hauv cov cai.

Kauj Ruam 3: Tutorial Video rau Txoj Haujlwm IOT no

Image
Image

Hauv cov vis dis aus qhia, Kuv tau piav qhia txhua kauj ruam txhawm rau ua qhov cuab yeej ntse hauv tsev no kom ntxaws.

Yog li koj tuaj yeem yooj yim ua qhov haujlwm IoT no rau koj lub tsev.

Kauj Ruam 4: Nruab Blynk App

Nruab Blynk App
Nruab Blynk App

Nruab Blynk App los ntawm Google ua si tom khw lossis App khw tom qab ntxiv tag nrho cov cuab yeej xav tau los tswj cov qauv xa tawm thiab saib xyuas qhov kub thiab txias. Kuv tau piav qhia txhua yam hauv cov vis dis aus qhia.

Kuv tau siv 3 khawm widgets los tswj cov qauv xa tawm thiab hloov hom.

Thiab 2 ntsuas cov cuab yeej los saib xyuas qhov kub thiab txias.

Kauj Ruam 5: Hom Sib Txawv ntawm Smart Relay Module

Hom sib txawv ntawm Smart Relay Module
Hom sib txawv ntawm Smart Relay Module
Hom sib txawv ntawm Smart Relay Module
Hom sib txawv ntawm Smart Relay Module

Peb tuaj yeem tswj hwm kev xa xov ntse hauv ob hom:

1. Phau ntawv hom

2. Hom pib

Peb tuaj yeem hloov pauv hom yooj yim nrog khawm CMODE haum rau ntawm PCB lossis los ntawm Blynk App.

Hauv tsheb

Kauj Ruam 6: Phau Ntawv Hom

Phau ntawv hom
Phau ntawv hom
Phau ntawv hom
Phau ntawv hom

Hauv phau ntawv hom, peb tuaj yeem tswj hwm qhov hloov pauv los ntawm S1 & S2 kov hloov pauv lossis los ntawm Blynk App. Peb tuaj yeem saib xyuas lub sijhawm tawm tswv yim tseeb ntawm cov hloov pauv los ntawm Blynk App.

Thiab peb tseem tuaj yeem saib xyuas qhov ntsuas kub thiab av noo ntawm OLED zaub thiab Blynk App li koj pom hauv daim duab.

Nrog Blynk App, peb tuaj yeem tswj cov qauv xa tawm los ntawm txhua qhov chaw yog tias peb muaj internet ntawm peb lub xov tooj.

Kauj Ruam 7: Pib Hom

Nws pib hom
Nws pib hom
Nws pib hom
Nws pib hom

Hauv Hom pib, tus qauv xa tawm tswj los ntawm DHT11 sensor thiab LDR.

Peb tuaj yeem teeb tsa qhov kev txiav txim siab yam tsawg kawg nkaus thiab qhov kub thiab txias tshaj plaws hauv cov cai.

Kev Tswj Kub

Thaum ntsuas kub hauv chav hla dhau qhov ntsuas kub siab tshaj plaws uas tau npaj tseg ua ntej relay-1 tig rau thiab thaum chav sov dhau los qis dua qhov ntsuas kub tsawg kawg nkaus ua ntej qhov relay-1 yuav txiav tawm.

LDR Tswj

Ib txoj hauv kev zoo ib yam thaum lub teeb qib qis dua qhov relay-2 tig rau thiab thaum lub teeb txaus, qhov relay-2 tig tawm ncaj qha.

Kuv tau piav qhia ntxaws hauv cov vis dis aus qhia.

Kauj Ruam 8: Tsim PCB

Tsim PCB
Tsim PCB

Tom qab kuaj tag nrho cov yam ntxwv ntawm cov ntse hloov pauv tus qauv ntawm lub khob cij, kuv tau tsim PCB los ua kom cov kab hluav taws xob sib zog thiab muab txoj haujlwm zoo saib.

Koj tuaj yeem rub tawm PCB Gerber cov ntaub ntawv ntawm qhov IoT raws li kev tsim kho tsev hauv tsev los ntawm qhov txuas hauv qab no:

drive.google.com/uc?export=download&id=1EJY744U5df6GYXU8PtyAKucyPrD-gViX

Kauj Ruam 9: Txiav txim rau PCB

Txiav txim rau PCB
Txiav txim rau PCB
Txiav txim rau PCB
Txiav txim rau PCB

Tom qab rub tawm Garber cov ntaub ntawv koj tuaj yeem yuam kom PCB yooj yim

1. Mus ntsib https://jlcpcb.com thiab Kos Npe/Sau Npe

2. Nyem rau ntawm QUOTE NOW khawm.

3 Nyem rau ntawm "Ntxiv koj cov ntaub ntawv Gerber". Tom qab ntawv xauj thiab xaiv Gerber cov ntaub ntawv uas koj tau rub tawm.

Kauj Ruam 10: Tshaj Tawm Cov Ntaub Ntawv Gerber thiab Teeb Cov Qauv

Kev xa cov ntaub ntawv Gerber thiab teeb tsa Parameters
Kev xa cov ntaub ntawv Gerber thiab teeb tsa Parameters
Kev xa cov ntaub ntawv Gerber thiab teeb tsa Parameters
Kev xa cov ntaub ntawv Gerber thiab teeb tsa Parameters

4. Teeb tsa qhov yuav tsum tau ntsuas xws li kom muaj nuj nqis, PCB npog xim, thiab lwm yam

5. Tom qab xaiv tag nrho Cov Parameters rau PCB nyem rau SAVE TO CART khawm.

Kauj Ruam 11: Xaiv Chaw Xa Khoom thiab Them Nyiaj

Xaiv Chaw Xa Khoom thiab Them Nyiaj
Xaiv Chaw Xa Khoom thiab Them Nyiaj
Xaiv Chaw Xa Khoom thiab Them Nyiaj
Xaiv Chaw Xa Khoom thiab Them Nyiaj

6. Ntaus Chaw Xa Khoom.

7. Xaiv Txoj Kev Xa Khoom uas haum rau koj.

8. Xa daim ntawv xaj thiab mus rau qhov kev them nyiaj.

Koj tseem tuaj yeem taug qab koj daim ntawv xaj los ntawm JLCPCB.com.

Kuv cov PCBs tau siv 2 hnub los tsim khoom thiab tuaj txog hauv ib lub lis piam siv DHL qhov kev xaiv xa khoom.

PCBs tau ntim tau zoo thiab qhov ua tau zoo tiag tiag ntawm tus nqi pheej yig no.

Kauj Ruam 12: Txhuam Tag Nrho Cov Cheeb Tsam

Solder Txhua Yam Khoom
Solder Txhua Yam Khoom
Solder Txhua Yam Khoom
Solder Txhua Yam Khoom

Tom qab ntawd txhuam tag nrho cov khoom siv raws li daim duab qhia chaw.

Tom qab ntawd txuas NodeMCU, DHT11, LDR, thiab OLED zaub.

Kauj Ruam 13: Ua Haujlwm NodeMCU

Program NodeMCU
Program NodeMCU
Program NodeMCU
Program NodeMCU
Program NodeMCU
Program NodeMCU

1. Txuas NodeMCU nrog lub khoos phis tawj

2. Rub Txoj Cai. (Txuas nrog)

3. Hloov Blynk Auth token, WiFi Name, WiFi Password.

4. Hloov qhov ntsuas kub ua ntej thiab teeb pom kev zoo rau Hom Pib raws li qhov koj xav tau

5. Xaiv NodeMCU 12E lub rooj tsavxwm thiab PORT kom raug. Tom qab ntawd upload cov cai.

** Hauv txoj haujlwm no, koj tuaj yeem siv ob qho tib si 0.96 "OLED thiab 1.3" OLED zaub. Kuv tau qhia Txoj Cai rau ob qho OLED, upload cov cai raws li cov zaub OLED uas koj siv.

Kuv twb tau txuas cov cai hauv cov kauj ruam dhau los.

Kauj Ruam 14: Txuas Cov Khoom Siv Hauv Tsev

Txuas Cov Khoom Siv Hauv Tsev
Txuas Cov Khoom Siv Hauv Tsev

Txuas cov khoom siv hauv tsev raws li daim duab qhia chaw.

Thov ua tib zoo ceeb toom kev nyab xeeb thaum ua haujlwm nrog qhov hluav taws xob siab.

Ntawm no koj tuaj yeem txuas ncaj qha 110V lossis 220V AC khoom.

** Kuv tsis tau siv lub ntsej muag ntsuas rau tus pin RST vim nws ua haujlwm qis.

Kauj Ruam 15: Muab Qhov Ua tiav Circuit Court Sab hauv BOX

Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX
Muab qhov ua tiav Circuit Court hauv BOX

Kuv tau muab lub voj voog ua tiav tso rau hauv lub thawv yas. Raws li kuv yuav siv qhov haujlwm NodeMCU li Smart txuas ntxiv BOX.

Nws yuav pab tau heev thiab siv tau yooj yim.

Kauj Ruam 16: Thaum kawg

Thaum kawg
Thaum kawg
Thaum kawg
Thaum kawg
Thaum kawg
Thaum kawg

Qhib cov khoom siv 110V/230V.

Tam sim no koj tuaj yeem tswj hwm koj cov cuab yeej siv hauv tsev hauv txoj kev ntse. Kuv vam tias koj tau nyiam qhov haujlwm siv tshuab hauv tsev no. Kuv tau qhia tag nrho cov ntaub ntawv xav tau rau txoj haujlwm no.

Kuv yuav txaus siab rau nws yog tias koj qhia koj cov lus qhia muaj txiaj ntsig, Tsis tas li yog tias koj muaj lus nug thov sau hauv kab lus.

Yog xav paub ntau ntxiv cov phiaj xwm Thov ua raws TechStudyCell. Ua tsaug rau koj lub sijhawm & Zoo Siab Kawm.

Pom zoo: