element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Just Encase
  • Challenges & Projects
  • Design Challenges
  • Just Encase
  • More
  • Cancel
Just Encase
Blog [Pool Water Monitoring] #7 LoRa Communication between Arduino MKR 1300 WAN and Arduino MKR 1300 WAN
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Just Encase to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: feiticeir0
  • Date Created: 22 Dec 2021 1:34 PM Date Created
  • Views 799 views
  • Likes 5 likes
  • Comments 0 comments
  • lora between two arduinos mkr 1300 wan
  • lora
  • Arduino MKR WAN 13000
  • lora communication
  • just_encase
  • lora communication arduino mkr 1300 wan
Related
Recommended

[Pool Water Monitoring] #7 LoRa Communication between Arduino MKR 1300 WAN and Arduino MKR 1300 WAN

feiticeir0
feiticeir0
22 Dec 2021

Just Encase logo

Hello everyone. Hope you're all safe .

After I received the kit and been able to read temperature values from the probe with one MKR 1300 WAN, today was time to try and start a conversation, using LoRa, between those two modules.

Hardware

  • 2x Arduino MKR 1300 WAN
  • 2x Antennas

Arduinos MKR 1300 WAN

It was a surprise to me that the Arduinos didn't come with an antenna. I really tough they would bring one. Nevertheless, I bought two to use in the project, but I also had two from my TTGO ESP32 Lora V1 . I

Libraries

First, we need to install the LoRa libraries, using the Arduino IDE.

With the IDE open, just go to Sketch -> Include Library -> Manage Libraries

Search for LoRa and install it

Install LoRa libraries

If you try to load an example from that library and run it, opening the serial console will let you know that it has failed...

Because I've read christophesky 5th blog, I know what's happening. Thank you.

If you go to the Github repository for the library, there's an information , in the section Compatible Hardware , that the firmware for the Arduino MKR 1300 WAN needs to be 1.1.6 or above.

We need to upgrade the firmware

The fix is simple enough, although requires another library.

Install the latest version of MKRWAN. In the 5th blog of christophesky he says it has read that the version needs to be 1.0.15, but I tried with the latest version and it has worked fine. Do what you feel .

MKRLAN library

Now that the library is installed, you need to open the example MKRWANFWUpdate_standalone

MKRWAN example

Upload it to your board.

After uploading it, open the serial console (115200 bauds), because you need to press a key for the firmware upgrade to start. I haven't done it the first time and the LoRa example still wasn't working...

Firmware upgrade press a key

When you press a key, the firmware upgrade starts and after a while it finishes.

firmware upgradingfirmware upgrade finished

After this, we're ready to start talking to each other.

Load the examples LoraSender and LoraReceiver

LoRa examples

After you upload them to your boards, the talk can start. Open the serial consoles and see the communication.

Note: You need to open two Arduino IDE's to be able to do this - having two serial monitors opened.

LoRa communicating

And there you have it. Both are speaking.

Later, I will send temperature values, using the Adafruit's High temperature probe connected to one Arduino MKR 1300 WAN to the other.

You have a good tutorial in the Arduino Website

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube