Maduino Zero LoRaWAN Node

From MakerFabsWiki
Jump to: navigation, search

!!! This product is not on sale!!!

About the product

Introduce

LoRaWAN is a Low Power, Wide Area (LPWA) networking protocol designed to wirelessly connect the internet in regional, national or global networks. Maduino LoRaWan is an IoT (Internet of things) Solution based on ATSAMD21G18 MCU and LoRaWAN module. It can be a LoRaWAN node to transmit the data to the network by connecting LoRaWAN Gateway. Maduino LoRaWan is compatible with Arduino and can be programmed easily.

Model: Maduino Zero LoRaWAN Node
500px

Features

  • ATSAMD21G18, 32-Bit ARM Cortex M0+
  • Interface: I2C /18*GPIO
  • Arduino Compatible.
  • Support LoRaWAN protocol.
  • Operate frequency:803MHz~930MHz
  • Minimum receiving sensitivity:-137dBm
  • Max Transmit power: +21dBm
  • Power by USB or battery
  • Support Micro SD Card
  • Operating temperature:-40℃ ~ 85

Prepare before used

Hardware

  • Note that the LoRaWAN node not working without LoRaWAN router.
  • Please plug the LoRa antenna into the board.

Software

  • Install Arduino IDE for programming.

Transmit data to TTN

  • For transmitting the data to TTN(The Things Network), It is necessary to learn the use of TTN in advance, such as how to set an application, etc. After setting your application of TTN, it is worth paying attention to the three parameters: Device EUI, APP Key, APP EUI.
1. Enter the TTN website: https://console.thethingsnetwork.org/, and log in the account.
2. Go to the console, select a cluster to start adding devices. (I choose the EU)
3. Select Application on the page and add a new application.
4. Fill in the application ID and other information, then create it.
Maduino Zero LoRaWAN Node 107.jpg
5. Add an end device, select the manually to fill the Active mode as OTAA and LoRaWAN version, then follow the prompts to type the parameters that will set.
Maduino Zero LoRaWAN Node 108.jpgMaduino Zero LoRaWAN Node 109.jpg
-
Maduino Zero LoRaWAN Node 110.jpgMaduino Zero LoRaWAN Node 111.jpg
6. In the Device of the Application, three parameters will be seen that I had to put to the code.
Maduino Zero LoRaWAN Node 112.jpg
7. On the device page, it is necessary to set the payload formatters for decode the payload LoRaWAN node transmitted. Choose the Uplink and select the Javascript. Type in the following code and save.
function Decoder(b, port) { 
  var var1 = b[0];
  var var2 = (b[1] << 8) | b[2];

  return {
    field1: var1,
    field2: var2/10
  }
}
Maduino Zero LoRaWAN Node 113.jpg
  • Diagram
Maduino Zero LoRaWAN Node 103.jpg
  • Focus on the Maduino Zero LoRaWAN Node, follow the below list to connect the DHT11 sensor.
LoRaWAN Node DHT11
3V3 VCC
GND GND
D7 DATA
Maduino Zero LoRaWAN Node 106.jpg
  • Open the code obtained from Github with Arduino IDE.
  • Select the development board and port.
  • Replace the three parameters(Device EUI, APP Key, APP EUI) to yours in the code.
Maduino Zero LoRaWAN Node 104.jpg
  • Verify and loading it.
  • Wait for a minute, you can veiw something received in TTN.
Maduino Zero LoRaWAN Node 105.jpg
As the picture, the original payload is 3C0119, the date after payload formatter decoded is 60 and 28.1, that its mean the temperature is 28.1 C and humidity is 60%.
  • Below shows some AT commands used in the code.
AT+CDEVEUI=XXXXXX  Set the device EUI to XXXXXX
AT+CAPPEUI=XXXXXX  Set the APP EUI to XXXXXX
AT+CAPPKEY=XXXXXX  Set the APP KEY to XXXXXX
AT+CJOINMODE=0     "0" means to set the JOIN mode (the way of connecting the LoRaWAN)to OTAA.
AT+CJOIN=1,0,10,1  First "1" means to enable the JOIN, "0" means to turn off the auto-connect, "10" means the circle is 10S, "1" means sending one time.
AT+DTRX=1,2,5,XXXXX  "XXXX" is the string transmitted.

  • Note: When the LoRaWAN module works in OTAA mode, The operation frequency will be automatically set to the same frequency as the matching router, such as your router frequency is 868Mhz, the module will work in 868Mhz.

F&Q

You can list your question here or contact support@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.

Recources