Cov txheej txheem:

Lora Arduino Control Relay Module Circuit: 12 Kauj Ruam
Lora Arduino Control Relay Module Circuit: 12 Kauj Ruam

Video: Lora Arduino Control Relay Module Circuit: 12 Kauj Ruam

Video: Lora Arduino Control Relay Module Circuit: 12 Kauj Ruam
Video: LoRa Arduino Project to control Relay with feedback | Lora Tutorial 2023 2024, Kaum ib hlis
Anonim
Image
Image
Lora Arduino Control Relay Module Circuit
Lora Arduino Control Relay Module Circuit

Hauv qhov haujlwm Lora no, peb yuav pom yuav ua li cas tswj cov khoom siv hluav taws xob siab nrog LoRa Arduino relay tswj Circuit. Hauv qhov haujlwm Arduino Lora no, peb yuav siv Reyax RYLR896 Lora module, Arduino, thiab 12v relay module los tswj 5 cov khoom siv hauv tsev nrog Lora lub tshuab xa khoom thiab tus txais. Yog li qhov no kuj tseem muaj txiaj ntsig zoo hauv kev ua haujlwm hauv tsev rau lub tsev ntse. Kuv yuav qhia daim duab qhia chaw ua tiav, Arduino Code, thiab tag nrho lwm cov ntsiab lus nrog yooj yim 6 cov kauj ruam los ua qhov Lora Arduino Project.

Khoom siv

Lora Modules REYAX RYLR896 2no

Arduino Nano 2 tsis

12v relay module 1no

FTDI232 USB rau serial interface board 1no

7805 tus tswj hluav taws xob 1 tsis muaj

22uF capacitor 1 tsis muaj

4.7k Resistor 1 tsis muaj

10k Resistor 6 tsis muaj

Push keyboards 5 tsis

Kauj Ruam 1: Txuas Lora Module Nrog PC

Txuas Lora Module Nrog PC
Txuas Lora Module Nrog PC
Txuas Lora Module Nrog PC
Txuas Lora Module Nrog PC

Ua ntej txuas LORA module nrog Arduino, peb yuav tsum teeb tsa qee qhov tsis xws li Chaw Nyob, Band rau Lora module siv AT cov lus txib. Yog li peb yuav tsum txuas Lora Module nrog USB rau lub rooj sib tham sib txuas raws li daim duab qhia chaw. Yog li peb tuaj yeem txuas Lora module nrog Laptop lossis PC. Ntawm no kuv tau siv FTDI232 USB rau Serial interface board.

Kauj Ruam 2: Teem Parameter rau Transmitter Lora

Teem Parameter rau Transmitter Lora
Teem Parameter rau Transmitter Lora
Teem Parameter rau Transmitter Lora
Teem Parameter rau Transmitter Lora

Ua ntej Txuas Lora module nrog lub khoos phis tawj. Hauv Arduino IDE xaiv PORT Tool-> PortOpen Serial Monitor thiab teeb Brud tus nqi rau 115200.

Tam sim no peb tuaj yeem teeb tsa qhov ntsuas nrog qee qhov yooj yim AT cov lus txib.

Ua ntej, ntaus AT ces nias tus yuam sij. Peb yuav tsum tau txais +OK hauv cov ntawv xov xwm.

Tom qab ntawv ntaus AT+ADDRESS = 0 los teeb qhov chaw nyob rau 0 rau tus xa xov Lora.

Tom qab ntawd ntaus AT+BAND = 865000000 los teeb tsa band 865MHz. Cov zaus siv rau LoRa Technology hauv kuv lub tebchaws yog 865 MHz txog 867 MHz. Koj yuav tsum teeb tsa pawg raws li koj lub tebchaws. Koj tuaj yeem google nws kom paub pab pawg rau koj lub tebchaws.

Lub neej ntawd Network id yog 0. yog li peb yuav tsis hloov nws rau qhov haujlwm Lora no.

Kauj Ruam 3: Teem Cov Parameter rau Txais Lora

Teem Cov Parameter rau Txais Lora
Teem Cov Parameter rau Txais Lora

Ib txoj hauv kev zoo sib xws, peb yuav tsum teeb tsa qhov ntsuas rau qhov tau txais Lora module.

Ua ntej, ntaus AT ces nias tus yuam sij. Peb yuav tsum tau txais +OK hauv cov ntawv xov xwm.

Tom qab ntawv ntaus AT+ADDRESS = 1 txhawm rau teeb tsa chaw nyob rau 1 kom tau txais Lora.

Tom qab ntawd ntaus AT+BAND = 865000000 los teeb tsa band 865MHz. Koj tuaj yeem google nws kom paub pab pawg rau koj lub tebchaws.

Lub neej ntawd Network id yog 0. yog li peb yuav tsis hloov nws rau qhov haujlwm Lora no.

Kauj Ruam 4: Tus Tshaj Tawm LoRa Arduino Circuit

Transmitter LoRa Arduino Circuit
Transmitter LoRa Arduino Circuit
Transmitter LoRa Arduino Circuit
Transmitter LoRa Arduino Circuit

Hauv lub tshuab xa hluav taws xob Lora Circuit, peb tau txuas nrog lub tshuab xa tawm Lora module nrog Arduino Nano raws li daim duab kos duab.

Hauv Transmitter Lora Circuit, 5 lub pob nyem tau txuas nrog Arduino tus lej pin D2, D3, D4, D5, D6. Thaum twg los xij peb nias ib lub laub-khawm, lub teeb liab xa mus rau tau txais Lora module los qhib lossis kaw qhov sib txuas sib txuas.

Ntawm no kuv tau ua qhov faib hluav taws xob nrog ob tus tiv thaiv 4.7k thiab 10k kom poob qis 5v logic qib mus rau 3.3v logic qib. Arduino tuaj yeem xa cov teeb liab ntawm 5v qib kev xav tab sis Lora module RYLR896 tuaj yeem txais lub teeb liab ntawm 3.3v qib kev xav. Yog li peb tau txuas qhov kev faib hluav taws xob ntawm Arduino TX tus pin thiab Lora RYLR896 RX tus pin.

Kauj Ruam 5: Tau Txais LoRa Arduino Circuit

Tau Txais LoRa Arduino Circuit
Tau Txais LoRa Arduino Circuit
Tau Txais LoRa Arduino Circuit
Tau Txais LoRa Arduino Circuit

Kuv tau txuas nrog qhov tau txais Lora module nrog Arduino Nano raws li tau txais Lora Circuit daim duab.

Hauv tus txais Lora Circuit, Kuv tau siv Arduino tus lej pin D8, D9, D10, D11, D12 los tswj 12v relay module.

Ntawm no qhov faib hluav taws xob tsis xav tau vim Arduino tuaj yeem tau txais lub teeb liab ntawm 3.3v qib kev xav los ntawm kev tau txais Lora module RYLR896.

Kuv tau siv tus ntsuas hluav taws xob 7805 (5-volt) los pub 5v muab rau Arduino Circuit.

Kauj Ruam 6: Tsim PCB rau Relay Module

Tsim PCB rau Relay Module
Tsim PCB rau Relay Module
Tsim PCB rau Relay Module
Tsim PCB rau Relay Module

Hauv qhov haujlwm LoRa no, Kuv tau siv 12v relay module. Koj tuaj yeem yuav cov qauv xa tawm hauv online tab sis raws li kuv xav tau cov qauv xa tawm hauv feem ntau ntawm kuv cov phiaj xwm, yog li kuv tau tsim PCB rau Relay module.

Koj tseem tuaj yeem rub tawm Garber cov ntaub ntawv rau 12v relay module los ntawm qhov txuas hauv qab no

drive.google.com/uc?export=download&id=1gSz2if9vpkj6O7vc9urzS6hUEJHfgl1g

Kauj Ruam 7: 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 8: 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 9: 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. Hauv kuv qhov xwm txheej, 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 10: Ua Haujlwm Ob Qhov Arduino

Image
Image

Tam sim no tso cov cai rau tus xa thiab txais Lora Arduino Circuit.

Kuv tau piav qhia ob qho Arduino code hauv cov vis dis aus ntsig txog. Kuv yuav pom zoo kom saib cov vis dis aus kom nkag siab zoo.

Rub tawm daim duab Arduino rau qhov haujlwm Lora Arduino:

drive.google.com/uc?export=download&id=1jA0Hf32pvWQ6rXFnW1uiHWMEewrxOvKr

Kauj Ruam 11: Txuas Cov Khoom Siv Hauv Tsev

Thaum kawg, Lora Project Npaj
Thaum kawg, Lora Project Npaj

Tam sim no peb yuav txuas 5 lub cuab yeej siv hauv tsev nrog 12v relay module raws li daim duab qhia chaw.

Thov ua raws li kev tiv thaiv kev nyab xeeb kom raug thaum txuas 110v lossis 230v thauj khoom nrog cov qauv xa tawm.

Kauj Ruam 12: Thaum kawg, Lora Project Tau Npaj Lawm

Tam sim no peb tuaj yeem tswj hwm 5 lub cuab yeej siv hauv tsev siv lub tshuab xa hluav taws xob Lora. Ntawm no kuv tau txuas 5 230v AC lub teeb nrog cov qauv xa tawm. Tam sim no yog tias kuv nias ib lub laub khawm, lub teeb tshwj xeeb yuav qhib.

Hauv thaj chaw nyob deb nroog nrog qhov haujlwm Arduino Lora no, peb tuaj yeem tswj cov khoom siv hluav taws xob siab los ntawm 10 km deb yam tsis muaj Bluetooth lossis WiFi ntaus ntawv. Yog li qhov no muaj txiaj ntsig zoo rau Arduino txoj haujlwm hauv cheeb tsam deb nroog.

Kuv vam tias, koj nyiam txoj haujlwm LORA no.

Thov qhia koj qhov kev tawm tswv yim ntawm qhov haujlwm LoRa no. Ua tsaug rau koj lub sijhawm.

Pom zoo: