wikiroute

networking recipes

User Tools

Site Tools


simple_lora_prototype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
simple_lora_prototype [2017/10/01 19:23] – [6. Modifying the Radio Parameters] samersimple_lora_prototype [2021/08/28 01:47] (current) samer
Line 3: Line 3:
  
 In the following, we present a prototype of LoRa communication between two wireless modules. This enables to get basic insights on the implementation of the technology and prepares some advanced prototypes and experimentations. In the following, we present a prototype of LoRa communication between two wireless modules. This enables to get basic insights on the implementation of the technology and prepares some advanced prototypes and experimentations.
-===== -Hardware and Cost =====+===== - Hardware and Cost =====
  
   * Arduino Uno or Mega (x2) for [[https://www.amazon.fr/SODIAL-ATmega2560-Microcontroleur-Arduino-Module/dp/B00OPO44UE/ref=sr_1_3?ie=UTF8&qid=1468680586&sr=8-3&keywords=arduino+mega | 10 USD]].   * Arduino Uno or Mega (x2) for [[https://www.amazon.fr/SODIAL-ATmega2560-Microcontroleur-Arduino-Module/dp/B00OPO44UE/ref=sr_1_3?ie=UTF8&qid=1468680586&sr=8-3&keywords=arduino+mega | 10 USD]].
Line 9: Line 9:
   * 868 MHz Antenna (x2) for [[http://fr.farnell.com/rf-solutions/ant-8whip3h-sma/ant-868mhz-whip-hinged-sma-3dbi/dp/2305899?MER=BN-2305899| 5 USD]].   * 868 MHz Antenna (x2) for [[http://fr.farnell.com/rf-solutions/ant-8whip3h-sma/ant-868mhz-whip-hinged-sma-3dbi/dp/2305899?MER=BN-2305899| 5 USD]].
  
-===== -Software =====+===== - Software =====
  
   * RadioHead: The Packet Radio library for embedded microprocessors can be downloaded from [[http://www.airspayce.com/mikem/arduino/RadioHead/]] or from this [[http://www.airspayce.com/mikem/arduino/RadioHead/RadioHead-1.61.zip|direct link]].    * RadioHead: The Packet Radio library for embedded microprocessors can be downloaded from [[http://www.airspayce.com/mikem/arduino/RadioHead/]] or from this [[http://www.airspayce.com/mikem/arduino/RadioHead/RadioHead-1.61.zip|direct link]]. 
   * Arduino IDE: Specific OS versions can be downloaded from [[https://www.arduino.cc/en/Main/Software]].    * Arduino IDE: Specific OS versions can be downloaded from [[https://www.arduino.cc/en/Main/Software]]. 
  
-===== -Compatibility =====+===== - Compatibility =====
  
 This tutorial is written for : This tutorial is written for :
Line 24: Line 24:
 Beware of the necessary modifications, if any of the previous specifications is not supported in your case. Beware of the necessary modifications, if any of the previous specifications is not supported in your case.
  
-===== -Installation =====+===== - Installation =====
  
 Start by plugging the Dragino shields on the Arduino devices and mounting the antennas as shown in Fig. 1. Start by plugging the Dragino shields on the Arduino devices and mounting the antennas as shown in Fig. 1.
Line 43: Line 43:
 </WRAP> </WRAP>
  
-===== -Running Basic Sketches =====+===== - Running Basic Sketches =====
 Start by setting the central frequency of the LoRa modules. For this, open the ''RH_RF95.cpp'' file locate in the ''RadioHead'' folder and change the frequency to 868.1 Mhz: Start by setting the central frequency of the LoRa modules. For this, open the ''RH_RF95.cpp'' file locate in the ''RadioHead'' folder and change the frequency to 868.1 Mhz:
  
Line 54: Line 54:
 [{{ :client-radiohead.png?direct&600 ||Figure 2. Client serial monitor}}] [{{ :client-radiohead.png?direct&600 ||Figure 2. Client serial monitor}}]
 [{{ :server-radiohead.png?direct&600 ||Figure 3. Server serial monitor}}] [{{ :server-radiohead.png?direct&600 ||Figure 3. Server serial monitor}}]
-===== -Modifying the Radio Parameters =====+===== - Modifying the Radio Parameters =====
  
 The typical configuration for LoRa modules consists of 125 KHz sub-channels, a coding rate of 4/5, and a spreading factor equal to 7. This configuration ensures higher data rates but is more vulnerable in case of harsh radio conditions. If you want to ensure more robustness to noise on the radio channel or extend the coverage, you may change the module configuration to a stronger coding rate of 4/8 and a spreading factor of 12. This obviously comes at the expense of lower data rates! The procedure is explained in the following. The typical configuration for LoRa modules consists of 125 KHz sub-channels, a coding rate of 4/5, and a spreading factor equal to 7. This configuration ensures higher data rates but is more vulnerable in case of harsh radio conditions. If you want to ensure more robustness to noise on the radio channel or extend the coverage, you may change the module configuration to a stronger coding rate of 4/8 and a spreading factor of 12. This obviously comes at the expense of lower data rates! The procedure is explained in the following.
simple_lora_prototype.1506878622.txt.gz · Last modified: 2017/10/01 19:23 by samer