LoRa on esp32 board?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Aduka_27
Posts: 27
Joined: Thu Apr 14, 2022 11:00 am

LoRa on esp32 board?

Post by Aduka_27 » Mon Apr 25, 2022 10:17 am

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

tepalia02
Posts: 99
Joined: Mon Mar 21, 2022 5:13 am

Re: LoRa on esp32 board?

Post by tepalia02 » Wed Apr 27, 2022 6:08 am

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/

Aduka_27
Posts: 27
Joined: Thu Apr 14, 2022 11:00 am

Re: LoRa on esp32 board?

Post by Aduka_27 » Wed Apr 27, 2022 10:15 am

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)?

marcidy
Posts: 133
Joined: Sat Dec 12, 2020 11:07 pm

Re: LoRa on esp32 board?

Post by marcidy » Thu Apr 28, 2022 1:42 am

Have you seen this? https://github.com/lemariva/uPyLoRaWAN

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

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: LoRa on esp32 board?

Post by KJM » Thu Apr 28, 2022 7:39 am

The trouble with lorawan on esp32 is that they only seem to do ABP which probably won't work on the TTN v3 stack

Aduka_27
Posts: 27
Joined: Thu Apr 14, 2022 11:00 am

Re: LoRa on esp32 board?

Post by Aduka_27 » Thu Apr 28, 2022 9:39 am

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

marcidy
Posts: 133
Joined: Sat Dec 12, 2020 11:07 pm

Re: LoRa on esp32 board?

Post by marcidy » Thu Apr 28, 2022 5:32 pm

That project includes the sx127x.py driver which you should be able to use to get LoRa working.

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: LoRa on esp32 board?

Post by KJM » Fri Apr 29, 2022 12:17 am

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.

marcidy
Posts: 133
Joined: Sat Dec 12, 2020 11:07 pm

Re: LoRa on esp32 board?

Post by marcidy » Fri Apr 29, 2022 1:10 am

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.

Aduka_27
Posts: 27
Joined: Thu Apr 14, 2022 11:00 am

Re: LoRa on esp32 board?

Post by Aduka_27 » Fri Apr 29, 2022 9:52 am

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

Post Reply