But, in this project our aim to do Peer to Peer communication between two Raspberry Pi modules or between a Raspberry Pi and an Arduino. Also commonly the Raspberry Pi is used as a LoRaWAN to get data from multiple LoRa nodes. There are many python packages that you can use with LoRa. Once the connection are made Arduino LoRa setup will look something like this below Since the module does not fit in a breadboard I have used the connecting wires directly to make the connections. The pin connection table is given below to help you to make the connections easily. In this project I have used the on-board voltage regulator. The circuit is give belowĪgain you can use the 3.3V pin on Arduino Uno or use a separate 3.3V regulator. The only difference will be instead of using the library from Sandeep Mistry we will use the Rspreal library based on Radio head which we will discuss later in this project. The connection for the Arduino module remains the same as that we used in our previous tutorial. My connection set-up of LoRa with Raspberry pi looks something like this below However Lora being a low power module should work on the 3.3V rail of Pi, I tested the same and found it to be working without any problem. Also few people suggest to power the LoRa module with separate 3.3V power rail as the Pi might not be able to source enough current. The connections are pretty straight forward, only problem you might face is that the SX1278 is not breadboard compatible hence you have to use connecting wires directly to make the connections or use two small breadboards as shown below. Note that the circuit diagram was created using the RFM9x module which is very similar to the SX1278 module, hence appearance might differ in the below image.
You can also use the circuit diagram below for reference. The connection table is shown below Raspberry Pi So we can directly connect the LoRa module with the Raspberry Pi.
The Raspberry pi also operates in 3.3V logic level and also has in-built SPI port and 3.3V regulator.
The SX1278 is a 16-pin Lora module that communicates using SPI on 3.3V Logic.
Raspberry spi programmer software#
Before we get into the software packages, let’s get the hardware ready.