# Anyone using LoRa modules?

**URL:** <https://forum.elixirforum.com/t/anyone-using-lora-modules/21740>\
**Category:** Questions\
**Tags:** nerves, raspberrypi\
**Created:** [April 18, 2019, 6:42pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740 "2019-04-18T18:42:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chbla](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chbla/32/9980_2.png) [@chbla](https://forum.elixirforum.com/u/chbla)\
**Post date:** [April 18, 2019, 6:42pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/1 "2019-04-18T18:42:51Z")

</div>

Hi there,

I just wanted to ask if anyone maybe used LoRa(Wan) RF modules with Nerves already?  
I have a couple of usecases where it would be nice, but don’t have a clue how this would work.

I assume via GPIOs/serial communication?  
Did anyone connect other RF modules or sensors like that?

Thanks,  
Christoph

---

<div class="post-metadata">

**Author:** ![simon](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/simon/32/16775_2.png) [@simon](https://forum.elixirforum.com/u/simon)\
**Post date:** [April 18, 2019, 8:15pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/2 "2019-04-18T20:15:35Z")

</div>

Not yet. I’m waiting for some [Kickstarter funded LoRa modules](https://www.kickstarter.com/projects/pisupply/iot-lora-boards-your-gateway-to-the-internet-of-th?ref=user_menu) to arrive (hopefully in the next few weeks) and I will be playing with them using Python to start with but would love to eventually develop a Nerves system with them. However for things like this I think I’m going to be in the hands of more experienced hardware-aware developers to create libraries for me.

---

<div class="post-metadata">

**Author:** ![chbla](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chbla/32/9980_2.png) [@chbla](https://forum.elixirforum.com/u/chbla)\
**Post date:** [April 19, 2019, 6:24am UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/3 "2019-04-19T06:24:59Z")

</div>

Same here - we are already using LoRa modules with arduinos and RPis, but I’m not an expert on low level programming.

It would be a nice combination, although probably not high in priority for the nerves community (e.g. OTA updates are not easily doable, low power is not a priority when using RPis, etc).

We have the use case that we need to integrate various devices over ethernet, process a lot of data, and send aggregations over a non-internet (LoRa) connection back.

---

<div class="post-metadata">

**Author:** ![ssachse](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ssachse/32/11251_2.png) [@ssachse](https://forum.elixirforum.com/u/ssachse)\
**Post date:** [May 8, 2019, 1:48pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/4 "2019-05-08T13:48:51Z")

</div>

Hello yes, right now I am evaluating some. I made some setups based on a BBGW with a Microchip RN2483. Then evaluated a lot of those esp32 based boards. Now we designed our own LoRaBoard based on recent Semtech chip you can attach to a beagle bone pocket. For more info you can contact me under [PMR-R & D GmbH - LoRaWAN](http://pmr-rnd.de/lorawan/) All software is mainly based on elixir/nerves

Cheers  
Stefan

---

<div class="post-metadata">

**Author:** ![brunosantanaa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brunosantanaa/32/9892_2.png) [@brunosantanaa](https://forum.elixirforum.com/u/brunosantanaa)\
**Post date:** [May 10, 2020, 12:57pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/5 "2020-05-10T12:57:26Z")

</div>

Hi all,  
I started a module for LoRa radios that use SPI. If anyone is interested in helping or giving suggestions, this project is on Github, in the link below:

> **[GitHub - brunosantanaa/Elixir-LoRa: Elixir LoRa - Send and Receive data using LoRa...](https://github.com/brunosantanaa/Elixir-LoRa)**
>
> Elixir LoRa - Send and Receive data using LoRa radios.

---

<div class="post-metadata">

**Author:** ![outlog](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@outlog](https://forum.elixirforum.com/u/outlog)\
**Post date:** [May 10, 2020, 1:42pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/6 "2020-05-10T13:42:22Z")

</div>

my lora modules are on the way - will check it out and give a hand soon!

goal is to connect to [https://www.thethingsnetwork.org](https://www.thethingsnetwork.org) right?

---

<div class="post-metadata">

**Author:** ![brunosantanaa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brunosantanaa/32/9892_2.png) [@brunosantanaa](https://forum.elixirforum.com/u/brunosantanaa)\
**Post date:** [May 10, 2020, 6:26pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/7 "2020-05-10T18:26:46Z")

</div>

The goal is to have a simple way to send and receive data via the LoRa network written entirely in elixir. And yes, you can connect to gateways of “The Things Network”.

---

<div class="post-metadata">

**Author:** ![outlog](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@outlog](https://forum.elixirforum.com/u/outlog)\
**Post date:** [May 11, 2020, 12:54pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/8 "2020-05-11T12:54:03Z")

</div>

awesome - keep us posted on progress, what works, what doesn’t etc - will be 3-4 weeks before I get the modules (and time)…

---

<div class="post-metadata">

**Author:** ![brunosantanaa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brunosantanaa/32/9892_2.png) [@brunosantanaa](https://forum.elixirforum.com/u/brunosantanaa)\
**Post date:** [May 11, 2020, 1:20pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/9 "2020-05-11T13:20:16Z")

</div>

4 weeks.. 😲…Did you have a problem with delivery because of COVID?  
Which radio did you buy?  
I have already tested the sending and receiving of packets with the RA-02 AI-thinker radio.

---

<div class="post-metadata">

**Author:** ![lucaong](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/lucaong/32/21794_2.png) [@lucaong](https://forum.elixirforum.com/u/lucaong)\
**Post date:** [May 11, 2020, 1:28pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/10 "2020-05-11T13:28:47Z")

</div>

Nice job @brunosantanaa! I never tinkered with LoRa, but I have been planning to do that for a while, and your library looks nice and simple to use.

One small thing, it looks like there is a typo, `paket` instead of `packet`: [Elixir-LoRa/lib/modem.ex at 1d634394f727c4dde7f76c97816edc602675ab3a · brunosantanaa/Elixir-LoRa · GitHub](https://github.com/brunosantanaa/Elixir-LoRa/blob/1d634394f727c4dde7f76c97816edc602675ab3a/lib/modem.ex#L94) (unless `paket` is a LoRa specific term, I don’t know details about it yet)

---

<div class="post-metadata">

**Author:** ![outlog](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@outlog](https://forum.elixirforum.com/u/outlog)\
**Post date:** [May 11, 2020, 1:56pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/11 "2020-05-11T13:56:15Z")

</div>

> [@brunosantanaa](#):
>
> 4 weeks… 😲…Did you have a problem with delivery because of COVID?

ebay - china to europe is usually 3-5 weeks delivery..

> [@brunosantanaa](#):
>
> Which radio did you buy?

sx1262 bare chip for nerves - pretty much same as sx1276 afaik - [https://youtu.be/lobNwqHLrag?t=169](https://youtu.be/lobNwqHLrag?t=169)

and an esp32 SX1276 board thing - so should be able to get that going on TTN, and then figure out getting nerves/elixir on as well.. and also have them talk to each other without any big network..

> [@brunosantanaa](#):
>
> I have already tested the sending and receiving of packets with the RA-02 AI-thinker radio.

awesome - will get back to you when I get the hardware..

anybody looking at hardware remember to look up your country’s frequencies here [https://www.thethingsnetwork.org/docs/lorawan/frequencies-by-country.html](https://www.thethingsnetwork.org/docs/lorawan/frequencies-by-country.html) and get a matching board/module..

---

<div class="post-metadata">

**Author:** ![brunosantanaa](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/brunosantanaa/32/9892_2.png) [@brunosantanaa](https://forum.elixirforum.com/u/brunosantanaa)\
**Post date:** [May 11, 2020, 1:56pm UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/12 "2020-05-11T13:56:58Z")

</div>

@lucaong.. Thanks for the remark!

---

<div class="post-metadata">

**Author:** ![outlog](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@outlog](https://forum.elixirforum.com/u/outlog)\
**Post date:** [August 14, 2020, 7:47am UTC](https://forum.elixirforum.com/t/anyone-using-lora-modules/21740/13 "2020-08-14T07:47:00Z")

</div>

@brunosantanaa finally got all the needed HW.. so will give it a go soon..

ended up going for the same module as you have, as to not complicate things

eg:  
2x RFM95(w) for europe 868Mhz (~9 usd on ebay)  
this breakout board/hat  
[https://www.tindie.com/products/qqqlab/rfm69-radio-hat-for-raspberry-pi/](https://www.tindie.com/products/qqqlab/rfm69-radio-hat-for-raspberry-pi/)  
fyi my board/hat came with ufl solder pads for connecting external antennas, which is very nice..

I also have a gateway [The Things Indoor Gateway | The Things Network](https://www.thethingsnetwork.org/docs/gateways/thethingsindoor/) since there wasn’t good/consistent coverage at my place - you can check [https://ttnmapper.org](https://ttnmapper.org) for gateways close by..

soon-ish I’ll get the radios ping-ponging on simple lora..

then attempt to get lorawan/ttn working building upon your wan branch [GitHub - brunosantanaa/Elixir-LoRa at wan · GitHub](https://github.com/brunosantanaa/Elixir-LoRa/tree/wan) - first a simple “abp” connect/send, then work from there (receive/otaa etc)..

I may start out using [https://github.com/ivajloip/rust-lorawan/tree/master/encoding](https://github.com/ivajloip/rust-lorawan/tree/master/encoding) via rustler for encoding/decoding packages if needed.. just to get something working asap..
