element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Internet of Things
  • Technologies
  • More
Internet of Things
Blog Low-Cost LoRaWAN Gateways!
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shabaz
  • Date Created: 15 Dec 2023 2:47 AM Date Created
  • Views 10495 views
  • Likes 17 likes
  • Comments 33 comments
  • lorawan
  • lora
  • SX1250
  • lorawan gateway
  • SX1261
  • SX1301
  • SX1302
Related
Recommended

Low-Cost LoRaWAN Gateways!

shabaz
shabaz
15 Dec 2023


I saw in an e-mail an advert for LoRaWAN gateway modules, so I took a quick peek, and was surprised at how low-cost they had become. These can be used with any computer, such as a Raspberry Pi, to wirelessly monitor or control sensors and actuators, both DIY and ready-made.

image



In the not-too-distant past, the average price was about £200 GBP to build up a LoRaWAN gateway with no outdoor-friendly enclosure. Now it’s less than half that price using these LoRaWAN modules which come in 868 MHz and 915 MHz variants.

For anyone unfamiliar with it, LoRaWAN is a wireless network that allows for small quantities of information to be sent to or received by LoRaWAN nodes.

A typical LoRaWAN node (blue dashed line below) could consist of a sensor, microcontroller and wireless transceiver, all operating from a battery that could last years. The node will communicate with a LoRaWAN network. There are several providers, and you’d need to check coverage maps to see if any provider has gateway devices installed nearby. Those gateway devices connect to the Internet, and the data makes its way to servers owned by the provider. Some providers offer free accounts, others are paid. You can log in and view your LoRaWAN node data, or connect to it using an application programming interface (API).

image

If there isn’t a gateway near you, then you can install your own (green dashed line above), and configure it to connect to the service provider infrastructure via the Internet. I currently use a LoRaWAN gateway built around a Raspberry Pi with a RAK2245 HAT board plugged on top. With that, I can use homemade LoRaWAN nodes (for instance Pico IoT LoRaWAN EasyNode  ) or commercial off-the-shelf ones.

The RAK2245 and Raspberry Pi gateway has been very reliable. I have no issues with it, except that it’s more expensive than I’d like, so I didn’t want to purchase another RAK board until prices come down.

The RAK2245 HAT board uses an older chip from Semtech, called SX1301. The Elecrow modules use the newer SX1302. The Elecrow module was low-cost, at about $24. This is what the module looks like with the metal can lifted:

image

It looks very well built, and I believe it is closely following reference designs from Semtech. At the top-left is the SX1302 “baseband processor” chip that performs the modulation/demodulation for multiple channels (LoRaWAN gateways can manage communication from many nodes simultaneously; it’s not just tuned to one channel). To the right of that, are two SX1250 chips that take the baseband modulated information and up-convert it to the radio frequencies that are required (it is around 868 MHz in some locations such as Europe, and 915 MHz in other such as USA). Further to the right is a Skyworks SKY66420 chip that contains transmit/receive amplifiers and switching, and it is wired to an antenna connector at the far right. The SKY66420 accepts RF from the topmost SX1250 chip, and amplifies it and directs it to the antenna. For RF reception, the chip is attached to both SX1250 chips (you can see the RF signal split in the center of the board).

At the lower-left of the board, the missing chip is used for a USB interface that I didn’t purchase; I wanted to use the SPI interface that the SX1302 chip supports directly. The other missing chip to the right of that is SX1261, which is used for providing more optimal radio usage, by listening to the channels to provide a quality/interference type of assessment.

There are no components on the underside of the board:

image

To use the board, it would need to be wired via SPI to a computer, running LoRaWAN gateway software. There is a Pi HAT adapter board that could be used. I didn’t purchase it (I was hoping to just DIY it), but due to lack of time I’ve decided to just order it for now; it’s about $17.

image 

(image source: Elecrow website)

I think that if anyone is interested in LoRaWAN, I don’t think it’s going to get much cheaper to build a gateway! Obviously for a real deployment ready-made gateways would be used (and many are ruggedized for outdoor use; Seeed Studio has some nice outdoor-capable gateways for $399 which is low-cost compared to some of the competition). However some of the indoor gateways are very low cost, ballpark £100. I wanted to go the Pi route however, just to learn a bit about the underlying code, and perhaps peek at the SPI traffic too.

In total, the LoRaWAN gateway module, plus the Pi HAT, costs about $42 including shipping. Add on the cost of a Pi and a basic antenna, and the total is easily under £100 GBP! Since it doesn’t require the latest Pi for operation (I’m using the Pi 3 with the RAK module), then if you already have a Pi then it could be repurposed for this.

Currently I don’t know how easy/hard it is to set up, and how it will perform. I’m hoping it’s as good as the RAK module, I’ve never used any Elecrow modules before, but I did purchase a childrens project kit from them in the past, and it was pretty decent. Of course that means absolutely nothing where RF is concerned! Anyway, fingers crossed, and I'll report back after I've given it a go.

Thanks for reading!

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 1 year ago in reply to shabaz +1
    There is an error in the software instructions. incorrect git command: git clone github.com/.../LR1302_HAL correct: git clone github.com/.../LR1302_loraWAN.git Then cd ~/LR1302_loraWAN/LR1302_HAL…
  • Jan Cumps
    Jan Cumps over 1 year ago in reply to Jan Cumps +1
    more changes needed: the global_conf.json.sx1250.EU868 file is located in the packet_forwarder folder. Except for the changes mentioned on the wiki, I also had to change the GPS tty device from:…
  • Jan Cumps
    Jan Cumps over 1 year ago

    Irish sea, traffic to Dublin

    image

    Oddly, nothing like that in the Mediterranean. A bit between Gibraltar and Tanger. But not the same scale

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 1 year ago in reply to Jan Cumps

    Some of those serpentines on a lower scale. I indicated those that are not on - or parallel with - a road, waterway or rail track.

    image 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 1 year ago

    I detected this pattern, roughly between Brussels and Ghent

    image

    Three symmetrical vectors in a LoRa wasteland. They aren't following a road or rail.

    I *think* that there are underground gas pipes there. And that each dot represents a control post / valve spot...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 1 year ago in reply to Jan Cumps

    Looks like it converges at the Humber Sea Terminal at Killingholme.

    https://en.wikipedia.org/wiki/Humber_Sea_Terminal#Humber_Sea_Terminal

    Lots of roll-on roll-off automotive and lift-on lift-off container freight.

    Looks like some are stopping off at Immingham Dock as well.

    https://en.wikipedia.org/wiki/Immingham_Dock

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 1 year ago in reply to Jan Cumps

    Nice heatmaps! Impressive seeing LoRaWAN embraced by ships in this way.

    • Cancel
    • Vote Up 0 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