Cov txheej txheem:

Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay: 14 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay: 14 Cov Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay: 14 Cov Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay: 14 Cov Kauj Ruam (nrog Duab)
Video: Аппетитная уличная еда от шеф-повара французского происхождения в Японии: Очередь вокруг квартала! 2024, Kaum ib hlis
Anonim
Image
Image
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay

Hauv qhov haujlwm IoT raws li no, Kuv tau ua Tsev Automation nrog Blynk thiab NodeMCU tswj cov qauv xa tawm nrog cov lus tawm ntawm lub sijhawm. Hauv Phau Ntawv Hom, qhov kev hloov pauv no tuaj yeem tswj tau los ntawm Txawb lossis smartphone thiab, Hloov kev siv. 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.

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 ntsuas kub & av noo ntsuas tau (Hauv Hom Pib) 3. Cov cuab yeej siv hauv tsev tswj los ntawm Tsaus Sensor txiav (Hauv Hom Pib) 4. Saib xyuas qhov kub thiab txias ntawm chav nyeem ntawv ntawm OLED thiab Smartphone 5. Cov cuab yeej siv hauv tsev tau tswj nrog kev hloov ntawm phau ntawv 6. Tswj cov khoom siv hauv tsev hauv Is Taws Nem

Khoom siv

Cov Cheeb Tsam Xav Tau rau txoj haujlwm Smart House no

1. NodeMCU

2. DH11 Sensor

3. LDRV

4. 10k Resistors 5 tsis muaj

5. 1k Resistors 5 tsis muaj (R1 txog R4)

6. 220-ohm Resistors 2 tsis muaj (R5 & R6)

7. Optocoupler PC817 2 no

8. BC547 NPN Transistors 2 no

9. Diode 1N4007 2 tsis muaj

10. Diode 1N4001 1no

11. LED (1.5v) 3 tsis

12. Capacitors 100uF 2 no

13. SPDT 12V Relays 2 tsis muaj

14. 7805 tus tswj hluav taws xob 1 tsis muaj

15. Laub Hloov/ khawm 4 no

16. Txuas & dhia

17. OLED I2C Zaub (0.96 "lossis 1.3")

Kauj Ruam 1: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Qhov no yog daim duab qhia kev ua tiav rau qhov IoT raws txoj haujlwm hauv tsev 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 txheej txheem xa tawm ntawm tus kheej CMODE los hloov Hom (Phau Ntawv Hom, Hom Pib) RST kom rov pib dua NodeMCU Kuv tau muab 12V rau tus qauv xa tawm thiab siv 7805 tus tswj hluav taws xob los muab 5v rau NodeMCU.

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 ntsuas, kuv tau tshaj tawm cov cai rau NodeMCU tom qab ntawd sim tswj hwm kev xa rov qab nrog lub laub khawm, Blynk App, ntsuas kub, thiab LDR.

Rub daim ntawv txuas rau txoj haujlwm NodeMCU no.

Kuv tau hais tag nrho qhov txuas ntawm cov tsev qiv ntawv xav tau hauv cov cai.

Kauj Ruam 3: Nruab Blynk App

Nruab Blynk App
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 4: 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 2 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.

Kauj ruam 5: 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 laub-khawm lossis los ntawm Blynk App.

Peb tuaj yeem saib xyuas qhov xwm txheej ntawm lub sijhawm tiag tiag 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 6: 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 siab tshaj plaws ntawm qhov kub thiab lub teeb. Hauv Hom pib thaum chav sov hla dhau qhov ntsuas kub tshaj plaws ua ntej tshaj qhov hloov pauv-1 tig rau thiab thaum chav sov dhau los ua qis dua qhov ntsuas kub tsawg kawg nkaus ua ntej qhov kev xa tawm-1 hloov mus.

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 7: Tsim PCB

Tsim PCB
Tsim PCB

Raws li kuv yuav siv lub Circuit Court txhua hnub, yog li tom qab kuaj tag nrho cov yam ntxwv ntawm cov ntse hloov pauv tus qauv ntawm lub khob cij, kuv tau tsim PCB. Koj tuaj yeem rub tawm PCB Gerber cov ntaub ntawv ntawm qhov haujlwm ua haujlwm hauv tsev no los ntawm qhov txuas hauv qab no:

drive.google.com/uc?export=download&id=1LwiPjXC1JfeQ7q-e-pIqN0J9TTVAHo52

Kauj Ruam 8: Txiav txim rau PCB

Txiav txim rau PCB
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 9: 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, xim PCB, thiab lwm yam

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

Kauj Ruam 10: 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
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 11: Muab Tshuaj Txhuam Tag Nrho

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 12: Ua Haujlwm 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 13: 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.

Txuas 12Volt DC mov rau PCB raws li pom hauv Circuit Court.

Kauj Ruam 14: Thaum kawg

Thaum kawg
Thaum kawg
Thaum kawg
Thaum kawg

Qhib cov khoom siv 110V/230V thiab 12V DC.

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: