Story
By making a simple transmitter and receiver, it can monitor and provide real-time feedback from a distance of 10 kilometers without using any WIFI and Bluetooth signals.
That is, I only need to use a few simple small buttons to control the lights connected to the relay module and get feedback from the LEDs. Know whether to send or receive signals.
Required component for Transmitter
REYAX RYLR896 Lora Module
Arduino Nano
220-ohm Resistor
4.7k Resistor
10k Resistor
5-mm LED 3no
Push buttons 4no
Required component for Receiver
REYAX RYLR896 Lora Module
ESP8266 NodeMCU
5v 4-channel Relay Module
4.7k Resistor
10k Resistor
Lora transmitter circuit
A voltage divider was made using 4.7k and 10k resistors to step down the 5 volt logic level to 3.3 volt logic level.
Used the INPUT_PULLUP function in the Arduino IDE instead of using a pull-up resistor
Power the circuit using any 5V DC power source or 9V battery.
The connection diagram is as follows
Lora receiver circuit
A voltage divider was made using the same 4.7k and 10k resistors to step down the 5 volt logic level to the 3.3 volt logic level.
Connect the LoRa module after powering the NodeMCU
Power NodeMCU and relay module using 5V 2Amp power supply
(Please take appropriate safety precautions when connecting)
Making PCB for receiving LoRa circuit
Gerber files can be downloaded on the right
Assembly and solder
Next we can start assembling and soldering the PCB components
Required PCB components
1. Relays 5v (SPDT) (4 no)
2. BC547 Transistors (4 no)
3. PC817 Optocuplors (4 no)
4. 510-ohm 0.25-watt Resistor (4 no) (R1 - R4)
5. 1k 0.25-watt Resistors (5 no) (R5 - R9)
6. LED 5-mm (5 no)
7. 1N4007 Diodes (5 no) (D1 - D5)
8. Push Buttons (4 no)
9. Terminal Connectors
10. 5V DC supply
Remaining installation and connections
Connect the NodeMCU board with the PCB.
Connect the Appliances With the Relay Module
Connect the LoRa Module With Arduino and ESP8266
AT Commands
1.AT Commands used for the Transmitter LoRa module
AT+ADDRESS=1
AT+NETWORKID=5
AT+BAND=865000000
2.AT Commands used for the Receiver LoRa module
AT+ADDRESS=1
AT+NETWORKID=5
AT+BAND=865000000
Codes for This LoRa Project
Code can be downloaded below
Finally, you can control appliances using the transmitter LoRa circuit and also monitor real-time feedback from the receiver LoRa circuit.