Cov txheej txheem:

Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module - Lub Tswv Yim Hauv Tsev Automation: 15 Kauj Ruam (nrog Duab)
Video: 🤞8 YAM COV NEEG TXAWJ NTSE ZAM TSIS UA YOG DAB TSI?🚫 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Hauv Tsev Automation
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Hauv Tsev Automation
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Hauv Tsev Automation
Yuav Ua Li Cas Ntse Tsev Siv Arduino Control Relay Module | Lub Tswv Yim Hauv Tsev Automation

Hauv qhov haujlwm tsim kho vajtse hauv tsev no, peb yuav tsim tus qauv ntse hauv tsev uas tuaj yeem tswj tau 5 yam khoom siv hauv tsev. Qhov kev hloov pauv no tuaj yeem tswj tau los ntawm Txawb lossis smartphone, IR chaw taws teeb lossis TV nyob deb, Kev hloov pauv ntawm tes. Qhov kev tshaj tawm ntse no tseem tuaj yeem paub qhov kub hauv chav thiab tshav ntuj kom qhib thiab tua lub kiv cua thiab lub teeb.

Qhov ntse tshaj tawm no muaj cov yam ntxwv hauv qab no:

1. Cov cuab yeej siv hauv tsev tswj los ntawm Bluetooth txawb

2. Cov cuab yeej siv hauv tsev tswj los ntawm TV Chaw Taws Teeb (Infrared)

3. Cov cuab yeej siv hauv tsev tswj los ntawm qhov kub thiab txias ntsuas tau

4. Cov cuab yeej siv hauv tsev tswj los ntawm Tsaus Sensor

5. Zaub LIVE kub & Vaum nyeem ntawv.

6. Cov cuab yeej siv hauv tsev tswj nrog kev hloov ntawm phau ntawv

7. Inbuilt Arduino yog li Arduino tus lej tuaj yeem xa mus rau tus qauv xa tawm.

Khoom siv

Cov Cheeb Tsam Yuav Tsum Muaj rau Cov Tsev Ntse Tsev:

1. ATMEGA328P microcontroller

2. HC05 Bluetooth Module

3. DHT11 Sensor

4. OLED Zaub (128 X 32)

5. 1738 Infrared Txais

6. PC817 Optocoupler (5 tsis muaj)

7. BC547 NPN Transistors (5 tsis muaj)

8. 1N4007 Diodes (5 tsis muaj)

9. 1N4001 Diode (1 tsis muaj)

10. LEDs 5 hli (6 tsis muaj)

11. 22pF Capacitors (2 tsis muaj)

12. 100nF (104) Capacitor (1 tsis muaj)

13. 100uF Capacitor (1 tsis muaj)

14. 220-ohm Resistors (10 tsis muaj) (R6 txog R10)

15. 1k Resistors (7 tsis muaj) (R1 txog R5)

16. 10k Resistors (8 tsis muaj)

17. 2k (1no) & 4.7k (1no) Resistor

18. LDR (1 tsis muaj)

19. 16MHz Crystal, 20. Khawm Khawm (8 tsis muaj)

21. 5V tshaj tawm (5 tsis muaj)

22. Jumper (2no), txuas, IC puag

23. FTDI 232 USB rau Serial interface board lossis Arduino UNO

24. PCB

Kauj Ruam 1: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Nov yog daim duab qhia kev ua tiav rau qhov haujlwm hauv tsev no. Kuv tau piav qhia qhov Circuit Court hauv cov vis dis aus qhia.

Kuv tau siv ATMEGA328P micro tswj los tswj 5 channel relay module. Kuv kuj tseem txuas nrog HC05 Bluetooth module, 1738 IR tus txais los tswj kev xa tawm los ntawm Bluetooth thiab Infrared chaw taws teeb. Thiab DHT11 qhov ntsuas kub & av noo thiab LDR los tswj kev xa khoom cia.

Hauv Circuit no, peb tuaj yeem siv ob qho 5V lossis 12V relay tab sis peb yuav tsum hloov cov resistors raws li tau hais hauv kab lus.

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 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 daim duab Arduino mus rau Atmega328P microcontroller siv USB rau Serial interface board (FTDI232) tom qab ntawd sim tswj kev xa xov nrog Bluetooth, TV chaw taws teeb, ntsuas kub, LDR, thiab lwm yam.

Kuv kuj tseem tau teeb tsa txhua tus microcontroller tus pin uas siv hauv Circuit no.

Kauj Ruam 3: Hom Sib Txawv ntawm Smart Relay Module

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

Hauv qhov phiaj xwm ntse hauv tsev no peb tuaj yeem tswj hwm tus qauv xa tawm hauv ntau hom:

1. Hom Bluetooth

2. Infrared Hom

3. Hom pib

4. Phau ntawv hom

Peb tuaj yeem hloov pauv yooj yim nrog CMODE thiab SMODE khawm haum rau ntawm PCB.

Txhawm rau hloov hom:

1. Nias lub CMODE khawm.

2. Tom qab ntawd nias lub SMODE khawm kom xaiv hom.

3. Tom qab xaiv hom rov nias lub CMODE khawm.

Kauj ruam 4: Bluetooth Tswj Hom

Bluetooth Tswj Hom
Bluetooth Tswj Hom
Bluetooth Tswj Hom
Bluetooth Tswj Hom
Bluetooth Tswj Hom
Bluetooth Tswj Hom

Ntawm no peb yuav siv HC05 Bluetooth module thiab Bluetooth Arduino app los ntawm lub khw ua si los tswj cov qauv xa tawm ntawm lub xov tooj. Koj tuaj yeem siv lwm cov apps tab sis koj yuav tsum hloov kho txoj cai kom raug.

Raws li qib kev xav ntawm HC05 yog 3.3volt tab sis rau microcontroller qib logic yog 5volt. Yog li kuv tau siv qhov faib hluav taws xob nrog 2k thiab 4.7k resistor thaum txuas RX ntawm HC05 rau TX ntawm Atmega328P.

Kauj ruam 5: Infrared Tswj Hom

Image
Image
Infrared Tswj Hom
Infrared Tswj Hom
Infrared Tswj Hom
Infrared Tswj Hom

Ntawm no peb yuav siv lub 1738 Infrared receiver los tswj cov qauv xa tawm los ntawm TV chaw taws teeb. Koj tuaj yeem siv ib qho chaw taws teeb pom kev deb tab sis koj yuav tsum tau txais tus lej Hex tus lej ntawm cov nyees khawm nyob deb thiab hloov txoj cai raws li.

Koj tuaj yeem xa mus rau daim vis dis aus uas kuv tau piav qhia yuav ua li cas koj thiaj tuaj yeem tau txais tus lej hex yooj yim los ntawm lub TV hauv xov tooj cua khawm.

Koj tuaj yeem siv ib qho khawm uas tsis siv los ntawm cov chaw taws teeb los tswj cov qauv xa tawm.

Kauj Ruam 6: Hom Kub thiab Teeb Lub Teeb

Kub thiab Lub Teeb Tswj Hom
Kub thiab Lub Teeb Tswj Hom
Kub thiab Lub Teeb Tswj Hom
Kub thiab Lub Teeb Tswj Hom
Kub thiab Lub Teeb Tswj Hom
Kub thiab Lub Teeb Tswj Hom

Hauv Hom pib, qhov kev hloov pauv ntse no tuaj yeem tswj tau los ntawm chav ua ntej ntsuas kub thiab tshav ntuj. Nws muaj DHT11 qhov ntsuas kub thiab av noo paub qhov kub thiab huab cua tom qab txhua 5-thib ob ntu.

Thaum qhov ntsuas kub hla tus nqi ua ntej tshaj qhov ntsuas kub tau hais tseg hauv Arduino code qhov txuas 1 thiab kev xa tawm 2 tig rau.

Thaum qhov kub tau qis dua qhov ntsuas kub me me uas tau hais tseg hauv Arduino code qhov kev xa tawm 1 thiab kev xa tawm 2 tig tawm.

LDR Tswj

LDR tau teeb tsa ntawm PCB kom paub lub teeb ib puag ncig. Nws ua raws li lub sensor tsaus.

Thaum qhov ci ci dhau los ua qis dua tus nqi ua ntej Relay 3 thiab Relay 4 tig rau.

Thaum lub teeb ci ntsa iab hla tus nqi ua ntej tshaj Relay 3 thiab Relay 4 tig tawm.

Thov xa mus rau Embedded video nyob rau sab saum toj kom nkag siab zoo dua.

Kauj Ruam 7: Phau Ntawv Hom

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

Cov Relay module kuj tuaj yeem tswj tau tus kheej los ntawm cov nyees khawm thawb rau ntawm PCB.

Muaj 5 lub laub khawm S1, S2, S3, S4, S5 kom qhib thiab tua Relay1, Relay2, Relay3, Relay4, Relay5 feem.

Thiab muaj RESET khawm txhawm rau tua txhua qhov kev xa tawm ntawm ib lub sijhawm.

Kuv tau piav qhia txog kev ua haujlwm ntawm Circuit hauv cov vis dis aus qhia.

Kauj Ruam 8: Tsim PCB

Tsim PCB
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, peb tuaj yeem pib 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=180s0bidnq6u6ilYs4vcLQwcjJ2zMrFZP

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
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 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
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
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 atmega328P microcontroller, HC05, thiab tag nrho cov ntsuas.

Kauj Ruam 13: Program Microcontroller

Program lub Microcontroller
Program lub Microcontroller
Program lub Microcontroller
Program lub Microcontroller
Program lub Microcontroller
Program lub Microcontroller

1. Txuas USB rau Serial interface board (FTDI232).

2. Rub tawm daim duab Arduino. (Txuas nrog)

3. Xaiv pawg Arduino UNO thiab PORT kom raug. Tom qab ntawd upload cov cai.

Kauj Ruam 14: Txuas Cov Khoom Siv Hauv Tsev

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

Txuas 5 lub tsev khoom siv 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 5Volt DC muab rau PCB raws li pom hauv Circuit Court. (Kuv tau siv kuv lub xov tooj txawb qub)

Kauj ruam 15: Thaum kawg

Thaum kawg
Thaum kawg
Thaum kawg
Thaum kawg

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

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.

Koj tseem tuaj yeem mus ntsib peb lub vev xaib rau ntau txoj haujlwm zoo li no:

Yog xav paub ntau ntxiv txog qhov haujlwm Thov ua raws TechStudyCell. Ua tsaug & Zoo Siab Kawm.

Pom zoo: