Page 1 of 2

LoRa on esp32 board?

Posted: Mon Apr 25, 2022 10:17 am
by Aduka_27
Hi guys,

What is the best way to implement LoRa module on esp32 board? I have already found some information and implementations with sx1276 module, but I want to check what the best options is. Before I used FiPy board and it was easy (just implement LoRa module) but with esp32 that's not possible.

Also, for this purpose I will need esp32 board with 16MB Flash and 8MB SPIRAM, but seems a bit hard to find one with these features. Does anybody know the board that can support these features?

Any kind of help is welcome! :D

Re: LoRa on esp32 board?

Posted: Wed Apr 27, 2022 6:08 am
by tepalia02
You can get some idea regarding interfacing LoRa with ESP32: https://randomnerdtutorials.com/esp32-l ... duino-ide/
You can embed the whole system in a PCB. Initially, you can make a PCB prototype at your home. This write up describes all the details regarding PCB manufacturing at home. This may help you.
https://pcbtracks.com/how-to-manufacture-pcb-at-home/

Re: LoRa on esp32 board?

Posted: Wed Apr 27, 2022 10:15 am
by Aduka_27
This implementation is based on using Arduino IDE, which means that the code is written in C. Is there any implementation in MicroPython (some modules that already exist for Pycom boards)?

Re: LoRa on esp32 board?

Posted: Thu Apr 28, 2022 1:42 am
by marcidy
Have you seen this? https://github.com/lemariva/uPyLoRaWAN

You should be able to use the driver from here and adapt the pins.

Re: LoRa on esp32 board?

Posted: Thu Apr 28, 2022 7:39 am
by KJM
The trouble with lorawan on esp32 is that they only seem to do ABP which probably won't work on the TTN v3 stack

Re: LoRa on esp32 board?

Posted: Thu Apr 28, 2022 9:39 am
by Aduka_27
I have already seen that link and checked the repo on GitHub. I saw that they are using Wemos® TTGO LORA32 868/915Mhz board. I am using esp32-wroever-ie as I have a bit "heavy" application to implement. Is it possible that this driver will work on my board as well?

In my case, ABP is not a problem to use, but if there are some issues in the implementation then I do not see a point there. What do you suggest, to change a board and focus on some other more suitable for LoRaWAN or to keep using this and trying to enable LoRa? Any kind of advice is useful!

Thanks! :D

Re: LoRa on esp32 board?

Posted: Thu Apr 28, 2022 5:32 pm
by marcidy
That project includes the sx127x.py driver which you should be able to use to get LoRa working.

Re: LoRa on esp32 board?

Posted: Fri Apr 29, 2022 12:17 am
by KJM
The last time I tried lorawan was 2 years ago on a pycom lopy4. Back then it would only TTN connect with ABP & I doubt it would work with TTN v3 these days although I could be wrong. TTN v3 seems opaque to me, I'll be interested to see if you can get a connection with whatever you decide to go with, good luck.

Re: LoRa on esp32 board?

Posted: Fri Apr 29, 2022 1:10 am
by marcidy
im specifically suggesting the sx127x.py driver, the original question was not about LoRaWAN. I don't use LoRaWAN, but i have taken that driver and modified it minimally to suit my needs, and it worked fine.

Re: LoRa on esp32 board?

Posted: Fri Apr 29, 2022 9:52 am
by Aduka_27
I will try for sure with the sx127x.py driver as I already saw some posts related to this module. I have already worked with LoRa on FiPy Pycom board but the same implementation is not possible on esp32-wroever-ie. Mainly what I need is to be able to send some results from inference task on another device/PC/Cloud. Is that possible with any of these LoRa implementations? :D