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
Save The Bees Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Save The Bees Design Challenge
  • More
  • Cancel
Save The Bees Design Challenge
Blog Honey Bee Safe: LoraWan First Tries
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Save The Bees Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 5 Mar 2023 10:09 PM Date Created
  • Views 1702 views
  • Likes 8 likes
  • Comments 12 comments
  • save the bees
  • savethebeesch
  • Honey Bee Safe
  • nicla vision
  • lorawan
  • mkr wan 1310
  • arduino
Related
Recommended

Honey Bee Safe: LoraWan First Tries

ntewinkel
ntewinkel
5 Mar 2023
Honey Bee Safe: LoraWan First Tries

As the bee detector is intended for use in the field, it will be best if we can use some sort of wireless connectivity to pass the information along to a central server, ideally allowing us to view results from anywhere using a browser.

The MKR WAN 1310 has Lora long-range connectivity built-in, so I'm hoping that we will be able to connect to a nearby LoraWan gateway receiver from The Things Network, which is free to use for this kind of project.

Checking the map on The Things Network website, I see I have two nodes nearby, but the Comox node, serendipitously named "comox-beeheaven", is only about 2.5km away from my house.
The Things Network around Comox

However, it likely has to travel through some houses and definitely through some forest, to get there. I think the clear-line-of-sight ratings are for about 10km, so if I'm lucky it might just work.

The MKR WAN board does not come with an antenna, so I added an antenna that I still happened to have from a past project, in the hopes that I will be able to get enough range. I bought it for a GPS project, but the description seems to indicate that it should also work with the frequencies used for LoraWan. Ideally I would have a bigger better and more specifically tuned antenna, but it would likely take too long to get one in for this project.
MKR WAN 1310 with GPS Antenna

I was able to find a few examples of how to get started for using this board, so I won’t repeat those details. In a nutshell, however, you need to install support for the board in the Arduino IDE, which then provides several samples you can use to take the next steps.
To use The Things Network, you will also need to set up an account there.

After doing the first quick setup, the board told me some cool details, including the special identifier for the board, which I then used to register it with The Things Network. 

Unfortunately, it was not able to connect to a gateway from its location on my desk in my office.
However, this location would require the signal to pass through several walls and another building to get there, so my next plan is to take it to the back deck of our carriage house, which places my board and antenna about 16 feet (5 meters) off the ground with no other buildings nearby, and a more clear line to the receiver. However, there is still that forest to deal with, so I might have to settle for just using WiFi, but I sure hope the LoraWan method works!

It looks like the Nicla Vision board does also support WiFi by itself, so I may need to fall back on that option if I’m not able to make contact with the LoraWan receiver.

The other next hurdle I have to deal with is that I don’t have a laptop anymore! So getting serial console information from the MKR WAN board while on the back deck of the carriage house will require some kind of clever workaround… Maybe I can use a little Android phone I have, or else I can probably set up a Raspberry Pi up in the carriage house suite with a loooooong USB cable to the MKR board.

That’s it for now! I will let you know how things go :)

  • Sign in to reply

Top Comments

  • shabaz
    shabaz over 2 years ago +2
    Hi Nico, Is that definitely a 915 MHz antenna you have? I think that's the US freq most popular for LoRaWAN? If it is specifically a GPS antenna, I think it may not work well (GPS is ballpark 1.5 GHz…
  • shabaz
    shabaz over 2 years ago in reply to ntewinkel +1
    I see... I just checked the datasheet, looks like it may work (aim is to have the line low at the frequency of interest). You might still run into issues because that antenna doesn't have a lot of gain…
  • ntewinkel
    ntewinkel over 2 years ago in reply to shabaz +1
    Would a WiFi antenna like this one work? (it came with an ESP32-CAM)
  • jc2048
    jc2048 over 2 years ago in reply to ntewinkel

    It's larger than you might think from looking at the picture of it. The N connector at the base is something like 20mm diameter. It's intended for a robust outdoor installation.

    If you go through their antenna selection, I imagine there will be other, more compact, ones with smaller connectors.

    You'd also need cable, connectors, and an adaptor cable to connect to the miniature connector on the board. Those would probably come to more than the antenna in cost.

    The right frequency range and the correct orientation are pretty fundamental. If you are trying for a connection to a single, distant, fixed point, then a directional antenna would work more efficiently: it would have much more gain than the omnidirectional antenna in the link, but you do have to point it in the right direction. There's also the question of cost, though it's perfectly possible to make antennas for yourself. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 2 years ago in reply to jc2048

    >Wouldn't something like this be more appropriate.

    Absolutely yes! I wish e14 had tossed one into the box.

    I can’t tell size from the listing, but judging by some YouTube videos by Andreas Spiess, the antenna doesn’t even have to be big, or on a pole, for it to work, but it does need to be the right type.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ralphjy
    ralphjy over 2 years ago in reply to jc2048

    On sale, too Relaxed...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 2 years ago

    Wouldn't something like this be more appropriate.

    https://www.newark.com/multicomp-pro/mp001584/whip-antenna-902-928mhz-1dbi/dp/41AH4620

    That's an outdoor aerial that could go on the top of a pole.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 2 years ago in reply to ntewinkel

    Hi Nico,

    Those ones are very unlikely to work. The green adafruit FONA one is your best bet, but if that doesn't work, then it could be a gain issue, if at all it is possible to get the coverage. Although LoRaWAN is good for long range, that's still under ideal conditions unfortunately.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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