Table of Contents

this page is work in progress

n-PN LoRaWAN

n-PN LoRaWAN has been designed to offer a practical and cost effective solution for users seeking to add LoRa connectivity to their projects with minimal previous experience in networking. The form factor is based on n-Blocks and is customized for Pervasive Nation.

Overview

n-PN LoRaWAN board is a low-cost and easy-to-use development kit to quickly evaluate and start some development with LoRaWAN protocol using an ARM® 32-bit Cortex™-M and totally compatible with n-Best ecosystem. It is based on Murata CMWX1ZZABZ LoRa module and also features STM32L082 microcontroller. The exclusive combination of an Arm® Cortex®-M0+ core and STM32 ultra-low-power features, makes the STM32L082 the best fit for applications operating on batteries or supplied by energy harvesting. It is the ideal solution for users looking to design IoT projects with minimal previous experience in networking having a low power device.

Communication with the module can be achieved via UART, SPI, or I2C peripheral interfaces. GPIOs provide plenty of flexibility for connecting sensors, switches and status LEDs, and the module is powered from a 1.6 to 3.6 VDC supply.

Murata CMWX1ZZABZ Features


STM32L082 MCU Features

  • Up to 192 KB Flash, 20KB RAM
  • Low voltage 1.65 to 3.6 V
  • Dynamic Voltage Scaling
  • 5 clock sources
  • Advanced RTC w/ calibration
  • Multiple USART, SPI, I2C
  • Multiple 16-bit timers


SX1276 Features

  • LoRa Modem
  • 168dB maximum link budget
  • +20dBm - 100 mW constant RF output vs. V supply
  • +14dBm high efficiency PA
  • Programmable bit rate up to 300kbps
  • High sensitivity: down to -148dBm
  • Excellent blocking immunity
  • Low RX current of 9.9mA, 200nA register retention


Main Features of the Board

  • CMWX1ZZABZ Murata LoRaWAN module with Semtech (SX1276) + STM (STM32L0)
  • 2 user LEDs
  • 1 user and 1 reset push-buttons
  • Board expansion connectors:
    • 15 GPIOs with alternative functionality
    • 4 ADC channels
    • NFC antenna capability.
    • SPI capability
    • I2C capability
    • UART capability
    • Power supply and JTAG connections



Board Pinout




Getting started

To configure all the necessary tools to start working with the n-PN board, two main elements need to be downloaded by the user.

NOTES:

  1. KEIL IDE (MDK) may not have the libraries installed for the microcontroller embedded in the n-PN board, so a pop-up window will appear asking us to install those libraries. Just follow the instructions to install them up. You may reset your computer after the installation.
  2. If we double click on Button.uvprojx (a project file) and Windows does not recognise the extension file, just choose KEIL (MDK).

Integrated Development Environment (IDE)

As stated, KEIL IDE (MDK) was chosen, this section explains the minimum configuration to improve our work flow.


Firmware Structure


NOTE: A wire or U.FL-R antenna must be connected.

Examples

This simple example shows how to transmit a package using LoRaWAN protocol. A new relative humidity and temperature value will be read every one minute and its value will be stored in a package which it will be sent to the Pervasive Nation LoRaWAN server. The counter will be incremented as well.