Difference between revisions of "LoraWanNode"

From RevSpace
Jump to navigation Jump to search
(Initial content)
Line 31: Line 31:
  
 
== Software ==
 
== Software ==
Tools:
+
=== Tools ===
 
* Arduino IDE 1.6.8
 
* Arduino IDE 1.6.8
  
 
=== Libraries ===
 
=== Libraries ===
 
I've used this version of the LoRa LMIC library: https://github.com/things4u/LoRa-LMIC-1.51.git
 
I've used this version of the LoRa LMIC library: https://github.com/things4u/LoRa-LMIC-1.51.git
 +
 +
=== Node firmware ===
 +
The firmware used on the arduino is the nano-lmic-v1.51-F.ino from the examples directory of the LoRa LMIC library.
 +
 +
Additionally I made the following changes:
 +
* in the library: replaced all instances of "arduino.h" to "Arduino.h" (capital "A")
 +
* changed the device address ("DevAddr") in the .ino file
 +
* changed the payload string in function do_send in the .ino file

Revision as of 17:31, 3 April 2016

Project LoraWanNode
350px
Description of how to set up an Arduino Pro Mini and an HopeRF RFM95 to create a LoraWAN node
Status Initializing
Contact bertrik
Last Update 2016-04-03


Introduction

This page describes the steps needed to create a simple LoraWAN node for the-things-network.

I've tested this on the TTN in the city of Utrecht.

Hardware

The hardware I've used is:

  • a HopeRF RFM95 module
  • an Arduino mini pro, 8MHz/3.3V
  • a CP2104-based serial-USB converter

The HopeRF RFM95 module is connected to the Arduino as follows:

  • pin VCC to arduino Vcc pin (3.3V)
  • pin GND to arduino Gnd pin
  • pin NSS to arduino pin D10
  • pin SCK to arduino pin D13
  • pin MOSI to arduino pin D11
  • pin MISO to arduino pin D12
  • pin DIO0 to arduino pin D4
  • pin DIO1 to arduino pin D5
  • pin DIO2 to arduino pin D7

Software

Tools

  • Arduino IDE 1.6.8

Libraries

I've used this version of the LoRa LMIC library: https://github.com/things4u/LoRa-LMIC-1.51.git

Node firmware

The firmware used on the arduino is the nano-lmic-v1.51-F.ino from the examples directory of the LoRa LMIC library.

Additionally I made the following changes:

  • in the library: replaced all instances of "arduino.h" to "Arduino.h" (capital "A")
  • changed the device address ("DevAddr") in the .ino file
  • changed the payload string in function do_send in the .ino file