This repository contains Arduino sketches for establishing bi-directional communication using LoRa modules and Bluetooth serial, enabling wireless data transmission between devices in real-time.
The repository includes two Arduino sketches:
Configures an Arduino board as a LoRa receiver. It initializes the LoRa module, receives data packets, prints them to the Serial Monitor, and sends them to a connected Bluetooth device using Bluetooth Serial.
Sets up an Arduino board as a LoRa sender. It initializes the LoRa module, sends data packets typed into the Serial Monitor via LoRa to the receiver.
- Arduino boards (two for sender and receiver)
- LoRa modules (compatible with SX1278/SX1276)
- Bluetooth module (for communication with LoraReceiver)
- Arduino IDE
- Libraries: LoRa, SPI (included with Arduino IDE), BluetoothSerial (for LoraReceiver)
-
Clone the repository:
git clone https://github.com/shashwat/LoRa-Communication-System.git
-
Open each
.inofile in the Arduino IDE. -
Upload
LoraReceiver.inoto one Arduino board andLoraSender.inoto another. -
Follow the wiring instructions and ensure all necessary modules are connected properly.
- Upload
LoraReceiver.inoto the Arduino acting as the receiver. - Upload
LoraSender.inoto the Arduino acting as the sender. - Open the Serial Monitor for each Arduino to view communication logs and debug messages.