LowPowerLab Forum

Hardware support => General topics => Topic started by: waskerley on May 12, 2017, 07:27:15 PM

Title: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: waskerley on May 12, 2017, 07:27:15 PM
Hello!  I am looking for a cheap way to connect to https://www.thethingsnetwork.org/ (https://www.thethingsnetwork.org/), or any other public LoRaWAN network, and the moteino looks like it could be a good fit.

Will I be able to connect without any major problems?  Are there any guides on how to get started?
Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Darren on July 21, 2017, 07:57:12 PM
I am trying to do the same, I have found this site with a very good tutorial using an arduino uno as there are no really good 915 mzh Lora examples for the moteino.

http://www.mobilefish.com/developer/lorawan/lorawan_quickguide_build_lora_node_rfm95_arduino_uno.html

I was confused with LMIC library, and some changes to wiring on the moteino as per this article (I bought the moteino LR and moteino mega LR a while ago)

https://github.com/lukastheiler/ttn_moteino

Glad to share my experience/knowledge/failures with you
Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Felix on July 24, 2017, 07:36:11 AM
The LMIC chip option is available on the MoteinoMEGA, and here's the schematic of that board.
The LMIC chip is on the I2C pins (+ pullups). Other than that there are 3 jumper pads that connect Dio1 Dio2 and RST to the MEGA's D21, D22 and D3.

(http://i.imgur.com/crYMyPg.png)

(http://i.imgur.com/hz634FT.png)

(http://i.imgur.com/grNuC7M.png)
Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Darren on July 29, 2017, 05:30:12 PM
Thanks Felix this worked for me.

The LMIC pin mapping for this board that worked for me:

lmic_pinmap pins = {
.nss = 4,
.rxtx = 7, // Do not worry about this one - not connected RFM95
.rst = 3, // Reset pin D3 - solder the pad on the board
.dio = {22, 21, 0}, //Solder the D22 and D21 pads on the board - D22, D21 - 0 is not used and sometimes if I used LMIC_UNUSED_PIN I would get a compile error.
};

In your config.h file change the radio freq by uncommenting #define CFG_us915 1 and commenting #define CFG_eu868 1
Also uncomment #define CFG_sx1276_radio 1



//#define CFG_eu868 1
#define CFG_us915 1
// This is the SX1272/SX1273 radio, which is also used on the HopeRF
// RFM92 boards.
//#define CFG_sx1272_radio 1
// This is the SX1276/SX1277/SX1278/SX1279 radio, which is also used on
// the HopeRF RFM95 boards.
#define CFG_sx1276_radio 1
Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Kylix on March 02, 2019, 01:00:04 PM
What differences are between Moteino Mega R2 and R3?
Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Felix on March 02, 2019, 06:40:09 PM
Quote from: Kylix on March 02, 2019, 01:00:04 PM
What differences are between Moteino Mega R2 and R3?
Very small difference, added 1 cap to the reset circuitry and the LMIC EUI64 chip SOT23-5 pads + 0603 pullup resistors.
Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Kylix on March 03, 2019, 02:22:43 AM
I already see those changes in the R2 version you published 3 posts up, that's why I asked :D:

(http://i.imgur.com/hz634FT.png)
(http://i.imgur.com/grNuC7M.png)

Title: Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
Post by: Felix on March 04, 2019, 07:16:37 AM
My bad, just the reset circuit. LMIC was already done in R2.