Author Topic: Connect Moteino Mega w/LMIC to Public LoRaWAN Network  (Read 3005 times)

waskerley

  • NewMember
  • *
  • Posts: 2
Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« on: May 12, 2017, 07:27:15 PM »
Hello!  I am looking for a cheap way to connect to 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?

Darren

  • NewMember
  • *
  • Posts: 4
  • Country: ca
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #1 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

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #2 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.






Darren

  • NewMember
  • *
  • Posts: 4
  • Country: ca
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #3 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
« Last Edit: July 29, 2017, 06:14:42 PM by Darren »

Kylix

  • Jr. Member
  • **
  • Posts: 67
  • Country: ro
    • Omologazioni veicoli
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #4 on: March 02, 2019, 01:00:04 PM »
What differences are between Moteino Mega R2 and R3?
« Last Edit: March 02, 2019, 01:02:41 PM by Kylix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #5 on: March 02, 2019, 06:40:09 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.

Kylix

  • Jr. Member
  • **
  • Posts: 67
  • Country: ro
    • Omologazioni veicoli
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #6 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:





Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Connect Moteino Mega w/LMIC to Public LoRaWAN Network
« Reply #7 on: March 04, 2019, 07:16:37 AM »
My bad, just the reset circuit. LMIC was already done in R2.