# Pico LoRaWAN

**URL:** <https://forum.core-electronics.com.au/t/pico-lorawan/16458>\
**Category:** Uncategorized\
**Created:** [21 February 2023 03:18 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458 "2023-02-21T03:18:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clint165695](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Clint165695](https://forum.core-electronics.com.au/u/Clint165695)\
**Post date:** [21 February 2023 03:18 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/1 "2023-02-21T03:18:53Z")

</div>

Hi Team  
Does combining the following work and are there libraries or example sketches available?  
I note the ‘Transmit Weather Data’ guide uses the Makerverse LoRa-E5 module. Is this a better choice?

> **[SX1262 LoRa Node Module for Raspberry Pi Pico, LoRaWAN](https://core-electronics.com.au/sx1262-lora-node-module-for-raspberry-pi-pico-lorawan.html)**
>
> This is a SX1262 LoRa Node Module For Raspberry Pi Pico with LoRaWAN Support

> **[PiicoDev LiPo Expansion Board for Raspberry Pi Pico](https://core-electronics.com.au/piicodev-lipo-expansion-board-for-raspberry-pi-pico.html)**
>
> The PiicoDev® LiPo Expansion Board for Raspberry Pi Pico is a great way to start experimenting with Raspberry Pi Pico/RP2040. Use the on-board PiicoDev connector to quickly and easily connect with the PiicoDev family of sensor modules without...

> **[Raspberry Pi Pico With Soldered Stackable Headers](https://core-electronics.com.au/raspberry-pi-pico-with-soldered-stackable-headers-1.html)**
>
> Raspberry Pi Pico with stacking headers pre-soldered to the board by our skilled makers here at Core Electronics.

Thanks  
Clint

---

<div class="post-metadata">

**Author:** ![David191372](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/david191372/32/6165_2.png) [@David191372](https://forum.core-electronics.com.au/u/David191372)\
**Post date:** [22 February 2023 02:56 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/2 "2023-02-22T02:56:53Z")

</div>

Hi Clint,  
I’m using that combination of modules in my project.  
I have two of them and they talk to each other peer to peer using these third party drivers

> **[GitHub - ehong-tl/micropySX126X: Semtech SX126X LoRa driver for Micropython...](https://github.com/ehong-tl/micropySX126X)**
>
> Semtech SX126X LoRa driver for Micropython and CircuitPython. - GitHub - ehong-tl/micropySX126X: Semtech SX126X LoRa driver for Micropython and CircuitPython.

I don’t know if you could use one device and connect to LoRa Wan with these drivers.  
I will publish a project document on Core Electronics with all the details shortly.  
There is a very simple ping pong example in the code. It sends the word “Ping” from one device to the other and the second device replies with the word “pong” I have tested up to 300m and it seems to do that no trouble. I hear it can go many KM’s line of sight.

---

<div class="post-metadata">

**Author:** ![Clint165695](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Clint165695](https://forum.core-electronics.com.au/u/Clint165695)\
**Post date:** [22 February 2023 05:34 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/3 "2023-02-22T05:34:44Z")

</div>

Thanks David - much appreciated.  
This sounds very promising. It would be brilliant is the devices can talk to each other P2P and one of the devices an uplink to the cloud at the same time etc. Is this what you are working on?  
Regards  
Clint

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [22 February 2023 05:48 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/4 "2023-02-22T05:48:36Z")

</div>

Hi Clint,

There is no clear winner between the two LoRa modules. It mostly comes down to your preference for the physical form factor and the supplied libraries to run the module.

---

<div class="post-metadata">

**Author:** ![Clint165695](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Clint165695](https://forum.core-electronics.com.au/u/Clint165695)\
**Post date:** [22 February 2023 08:22 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/5 "2023-02-22T08:22:10Z")

</div>

Thanks Trent.  
They both sound like good options based on preferences as you point out.  
I will take a closer look.  
Clint

---

<div class="post-metadata">

**Author:** ![Philip49445](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Philip49445](https://forum.core-electronics.com.au/u/Philip49445)\
**Post date:** [3 August 2023 05:44 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/6 "2023-08-03T05:44:53Z")

</div>

Hi David,  
Have you published your PICO / waveshare LoRa project yet?  
I am trying to use the exact same hardware configuration as you.  
The Waveshare LoRa Node module uses different PICO GPIO pins to the standard PICO SPI pins, did you use software SPI (softSPI) to interface with the Waveshare LoRa node or did you hash the connections with wires to get the Waveshare SPI pins connected to the standard PICO SPI pins?

Thanks  
Phil

---

<div class="post-metadata">

**Author:** ![David191372](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/david191372/32/6165_2.png) [@David191372](https://forum.core-electronics.com.au/u/David191372)\
**Post date:** [3 August 2023 08:45 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/7 "2023-08-03T08:45:09Z")

</div>

Hi Phil,  
I have published my project on Core Electronics with links to the GitHub repository. I didn’t have to muck around with pin conversions or anything to get it to work.  
My project has no trouble sending text messages between devices. I didn’t need to do anything tricky or special to get it to work. I recall the ping pong test that came with the modules worked out of the box. I’d say dumb your project down until it works and then add features one at a time and test between each addition. I’m working on a new feature release for my project but it’s a bit buggy at the moment.  
Dave

---

<div class="post-metadata">

**Author:** ![Philip49445](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Philip49445](https://forum.core-electronics.com.au/u/Philip49445)\
**Post date:** [5 August 2023 04:13 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/8 "2023-08-05T04:13:55Z")

</div>

Hi David,  
Thank you for your quick response. I have checked out your project post and found a lot of very useful information. I am experimenting with powering down my remote PICO + Waveshare LoRa Node soil moisture sensor using a nano power timer type TPL5010 to wake the PICO using an event on one of the GPIO pins. The remote stays awake just long enough to report a sensor value before going dormant again. This allows me to use a very small battery and solar cell. The remote sensor is woken once every hour or so. The timer allows times from 100mS to 7200 seconds. The time interval is set by a resistor, so I have a DIP switch to alter the times between normal operation and test/debug. I will post my project when I get it finished.

Regards  
Phil

---

<div class="post-metadata">

**Author:** ![David191372](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/david191372/32/6165_2.png) [@David191372](https://forum.core-electronics.com.au/u/David191372)\
**Post date:** [5 August 2023 07:39 UTC](https://forum.core-electronics.com.au/t/pico-lorawan/16458/9 "2023-08-05T07:39:45Z")

</div>

Hi Phil,  
Sounds like you are getting right into it.  
I needed to monitor the gate way more often. I can’t remember the exact command I used but I did a deep sleep for 10 seconds between checking the gate status and it saved heaps of power. The deep sleep effected the reset function in thonny so I turned it off during testing.  
Just for fun I added an encryption module to my project so others in the vicinity could not read my messages. Let’s face it you don’t want other people finding out how wet your potatoes are 🙂  
In other fun I set the clock on the main device from the internet and pass the correct time to the remote device.  
Good luck with your project. Let me know when you post. The guys at Core Electronics did give me a nice store credit, enough to fund my next project!  
Don’t forget to keep backup versions of your code as you add features.  
It can be really handy to step back in time if things go pear shaped.  
Ask me how I know 🤠  
David
