Author Topic: LMIC-library and Moteino Mega  (Read 36688 times)

ursm

  • NewMember
  • *
  • Posts: 8
  • Country: ch
Re: LMIC-library and Moteino Mega
« Reply #15 on: July 03, 2016, 04:31:36 AM »
very well made!
thanks for picking up our ideas

looking forward seeing it in the store  :)

Charly86

  • Jr. Member
  • **
  • Posts: 74
  • Country: fr
Re: LMIC-library and Moteino Mega
« Reply #16 on: July 04, 2016, 07:00:23 PM »
Guys,

I proposed a software fix for LIMC to works without connecting DIO0/DIO1 and DIO2, since LIMC does not put device in sleep mode and just scan port change, device is wot waked by hardware IRQ
So all can be done in soft just pooling RFM IRQ register, works fine on my ESP8266 and should be the case for Moteino Mega ;-)

See https://github.com/matthijskooijman/arduino-lmic/issues/24/

But your EUI64 chip on board rocks !!!

lukas

  • NewMember
  • *
  • Posts: 2
  • Country: ch
Re: LMIC-library and Moteino Mega
« Reply #17 on: July 13, 2016, 09:41:22 AM »
Great work, Felix, looking forward to the new Moteinos! RE library: this one https://github.com/matthijskooijman/arduino-lmic just uses 20k, when you disable JOIN, PING and BEACONS in config.h. So the R4 ones work great now, just in case you wan to upgrade that pcb as well :)

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: LMIC-library and Moteino Mega
« Reply #18 on: July 29, 2016, 08:38:54 AM »
PCBs arrived and I assembled a panel.

UPDATE: the LMIC variant of MoteinoMEGA can now be ordered from here (choose LMIC variant option): https://lowpowerlab.com/shop/product/119

If you want to order these before they become "official" just order the MoteinoMEGA-LoRa and mention in the comments you want the LMIC/EUI variant and I will send you this, and I will include the EUI chip for you to solder if you want the EUI64 MAC.



Charly86

  • Jr. Member
  • **
  • Posts: 74
  • Country: fr
Re: LMIC-library and Moteino Mega
« Reply #19 on: July 29, 2016, 08:51:22 AM »
Hey, nice boards Felix, Love the silk pin indication of RFM module, much easier to place it ;-)

TomWS

  • Hero Member
  • *****
  • Posts: 1930
Re: LMIC-library and Moteino Mega
« Reply #20 on: July 29, 2016, 09:58:15 AM »
Nice configurability with very clearly marked options.  I like that you put the serial eeprom on it also. 

So this board will accept an RFM69HCW?  Probably will be my go to Mega if that's the case.

Tom

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: LMIC-library and Moteino Mega
« Reply #21 on: July 29, 2016, 10:01:57 AM »
Thanks Tom,
Yes it will take the RFM69HCW (equivalent to 69HW but with LoRa pinout - the "C" in HCW meaning "pin backwards compatible").
Basically this board will be the new MoteinoMEGA-LoRa R2.

I need some extra logistics before I can pick & place the EUI on there so until then the EUI64 chip & 4.7k resistors come separately in a bag  ;)

ursm

  • NewMember
  • *
  • Posts: 8
  • Country: ch
Re: LMIC-library and Moteino Mega
« Reply #22 on: July 29, 2016, 01:38:40 PM »
PCBs arrived and I assembled a panel.
If you want to order these before they become "official" just order the MoteinoMEGA-LoRa and mention in the comments you want the LMIC/EUI variant and I will send you this, and I will include the EUI chip for you to solder if you want the EUI64 MAC.

Hi Felix
It would be a pleasure testing two of the "preshop" boards.
You get an order from me.
Please RFM95 , flash and EUI64

Thanks for finishing our ideas to a new version

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: LMIC-library and Moteino Mega
« Reply #23 on: July 29, 2016, 03:27:09 PM »
You're welcome and thanks for the order.
Below's a sample native code that will read the MAC address from the included Microchip 24AA02E64 EEPROM:

Code: [Select]
#include <Wire.h>         //http://arduino.cc/en/Reference/Wire

void setup(void)
{
  Serial.begin(115200);
  Serial.print("wire init...");
  Wire.begin();
  Serial.println("done");
}

void loop(void)
{
  Serial.println("Loop...");
  readEEPROM_MAC(0x50, 0xF8);  //0x50 is the I2c address, 0xF8 is the memory address where the read-only MAC value is
  delay(2000);
}
 
void readEEPROM_MAC(int deviceaddress, byte eeaddress)
{
  Wire.beginTransmission(deviceaddress);
  Wire.write(eeaddress); // LSB
  Wire.endTransmission();
  Wire.requestFrom(deviceaddress, 8); //request 8 bytes from the device

  while (Wire.available()){
    Serial.print("0x");
    Serial.print(Wire.read(), HEX);
    Serial.print(" ");
  }
  Serial.println();
}

Should produce this output:


wire init...done
Loop...
0x0 0x4 0xA3 0xB 0x0 0x19 0x7F 0xB7


The bold part is the MICROCHIP identifier (constant), the italic part is the variable part (unique with each chip).
« Last Edit: July 29, 2016, 05:07:47 PM by Felix »

galluta

  • NewMember
  • *
  • Posts: 1
  • Country: us
Re: LMIC-library and Moteino Mega
« Reply #24 on: August 26, 2016, 12:32:01 PM »
@Felix

Just got a new Moteino Mega. I followed the this thread but I am not sure what pins to soder.

Should I soder these?

Pin mappings (through non-bridged solder jumpers):
DIO1=>D22, DIO2=>D21, RST => D3


Also on the RFM95 shouldn't it be DIO0 and DIO1?

Thanks

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: LMIC-library and Moteino Mega
« Reply #25 on: August 26, 2016, 01:25:47 PM »
Should I soder these?

Pin mappings (through non-bridged solder jumpers):
DIO1=>D22, DIO2=>D21, RST => D3

Also on the RFM95 shouldn't it be DIO0 and DIO1?

Should you? It's up to you. The board works exactly the same as before, but it offers you an easy way to connect those DIOs/RST to given pins without using wires.
DIO0 is always hardwired to D2 already.

ursm

  • NewMember
  • *
  • Posts: 8
  • Country: ch
Re: LMIC-library and Moteino Mega
« Reply #26 on: August 26, 2016, 02:16:22 PM »
Just got a new Moteino Mega.
sorry that I was so lazy replying here.
we made good experience with the new board and used for the LMIC library

Code: [Select]
/* Pin mapping                           for the new Moteino Mega R2 with solder bridges*/
const lmic_pinmap lmic_pins = {
  .nss = 4,
  .rxtx = LMIC_UNUSED_PIN,
  .rst = 3,
  .dio = {2, 22, 21},                      // DIO0, 1, 2
};

thanks Felix for the new board layout
« Last Edit: August 29, 2016, 08:59:08 AM by Felix »

johnmiddleton

  • NewMember
  • *
  • Posts: 4
  • Country: gb
Re: LMIC-library and Moteino Mega
« Reply #27 on: October 09, 2016, 12:23:31 PM »
Hi - what do the marked solder bridges do - sorry for the noob question

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: LMIC-library and Moteino Mega
« Reply #28 on: October 10, 2016, 08:23:02 AM »
Hi - what do the marked solder bridges do - sorry for the noob question

They are SMD 0805 pads for adding passives. Generally you don't need to worry about those. They are marked with || which would suggest they are for capacitors.

perky

  • Hero Member
  • *****
  • Posts: 873
  • Country: gb
Re: LMIC-library and Moteino Mega
« Reply #29 on: October 10, 2016, 02:37:09 PM »
They are SMD 0805 pads for adding passives. Generally you don't need to worry about those. They are marked with || which would suggest they are for capacitors.

Interesting, the 3.3V one is obvioulsy for a decoupler, but a cap on the antenna? Was that some attempt at matching (or using 915MHz modules for 868MHz or something)?