NODE TO NODE COMMUNICATION ON LORA WITH RASPBERRY PI 4
What is LoRa?
LoRa, short for long-range, is the physical layer or the wireless modulation utilized to create a long-range communication link. LoRa is based on Chirp Spread Spectrum (CSS) modulation, which maintains the same low power characteristics as FSK modulation but significantly increases the communication range.
Key Features of LoRa Technology
Consumes low power
Connects millions of nodes
Availability of LoRaWAN networks for speedy deployment of IoT applications
Single Gateway can connect 10,000s of nodes
Simple Architecture, easy to deploy
Uses 863 MHz – 928 MHz ISM bands which are available worldwide
NOTE - In code, we use wiring pin numbers and for circuit connection, we use physical pin numbers. For reference, the GPIO table is given below:
Now we are going to set up LoRa Node to Node communication using Raspberry Pi 4. In Node to Node communication, we use two nodes. One of the nodes we configure as Transmitter and another node as Receiver
Step 1: Libraries
For LoRa communication we have to set up some libraries
SSH into the Raspberry Pi
In a terminal, run
sudo apt-get install wiringpi
Test wiringPi’s installation
$ gpio -v
$ gpio readall
If the gpio readall command does not output the reference of pin numbers, ensure you have installed the latest version.