Pi LoRa™ Lora Hat is a low-power consumption data transmission board, comes with an onboard CH340 USB TO UART converter, Voltage Level Translator(74HC125V), E22-900T22S/E22-400T22S SMA antenna connector that covers 868MHz/433MHz frequency band ,IPEX antenna connector, LoRa™ Spread Spectrum Modulation technology with auto multi-level repeating.
First take 2 LORA Hat board and set jumper position as mention below:
Mode Selection Jumper : we are going to use pi GPIO pin 13 and 15 to control MODE Selection
LoRa mode selection jumpers
Device Selection Jumper(Board Selection, This is also mention in the board) :
Set is as MODE 1 to enable USB to LORA Communication (Without raspberry pi)
Set is as MODE 2 to enable PI to LORA Communication (With raspberry pi)
In this folder you see two python codes
NOTE: There is difference in latest Raspberry Pi 5 terminal use as compared to previous Pi 4 and 3. To Use LoRa HAT with Raspberry Pi 5 you will have to change Serial access port as shown in below code
# For previous Raspberry Pi 4 & 3
lora = serial.Serial(port = '/dev/ttyS0', baudrate = 9600, parity = serial.PARITY_NONE, stopbits = serial.STOPBITS_ONE, bytesize = serial.EIGHTBITS, timeout = 1)
# replace ttyS0 with ttyAMA0 for RPi 5
lora = serial.Serial(port = '/dev/ttyAMA0', baudrate = 9600, parity = serial.PARITY_NONE, stopbits = serial.STOPBITS_ONE, bytesize = serial.EIGHTBITS, timeout = 1)
In this folder you see two application
Pi Lora Broadcast (with LCD display), In this folder you see three files
Pi Lora Homeautomation (with LCD display), In this folder you see three files
You will simply need to make one device to work as reciever and another one is as a transmitter. So that you can communicate to each other and this can be done with any of our LoRa products mentioned above. For working with our other products please follow the below link:
For this, you need to use Lora onboard USB
Go to the Lora GUI folder, and run the LORA_GUI.py file. from this file, you can configure the Lora and you are able to transmit, receive the data (eg: baud rate, channel etc) Follow the steps to configure the Lora module:-
-> For changing frequency using Software for 868MHz & 915MHz LoRa module:
Frequency = 850.125MHz + CH*1MHz
0-83 total of 84 Channel available
So, when 5 selected Frequency = 850.125MHz + 5*1MHz Frequency = 855.125MHz
-> For Changing Frequency using Software for 433MHz LoRa Module: Frequency = 410.125MHz + CH*1MHz
0-83 total of 84 Channel available
So, when 5 selected Frequency = 410.125MHz + 5*1MHz Frequency = 415.125MHz