🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Connecting to a LoraWAN Gateway with Core2 and Module LoRa868

    Modules
    2
    2
    3.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      paul-k
      last edited by

      Hello Forum,

      is there anyone who managed to connect to a LoRaWAN Gateway (e.g. from TTN) with a Core2 and the LoRa868 Module (this one: https://docs.m5stack.com/#/en/module/lora868 not the com version)?
      I am using Arduino framework and tried using the MCCu LoRaWAN LMIC library, but without success.

      I could not find any tutorials either on the net for this approach.
      Seems the heltec WiFi LoRa 32 board achieves the task with the very same basic hardware components (SX1276, ESP32) according to multiple tutorials, yet for the M5Stack Core2 with the Module LoRa868 I cannot find any.

      Any hint would be highly appreciated.

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by felmue

        Hello @paul-k

        how far did you get? Is the M5Core2 talking to the LoRa module?

        Keep in mind that the LoRa module was designed for M5Stack (Fire, Gray, etc.) and some GPIOs have changed from M5Stack to M5Core2. You can find a comparison here.

        I don't have the LoRa module, but from looking at the schematic this should be the GPIO mapping:

        LoRa      <-> M5Core2 <-> Name

        GPIO18  <-> GPIO18   <-> SCK
        GPIO23  <-> GPIO23   <-> MOSI
        GPIO19  <-> GPIO38   <-> MISO
        GPIO5    <-> GPIO33   <-> CS
        GPIO26  <-> GPIO26   <-> RST
        GPIO36  <-> GPIO36   <-> DIO0 / INT

        Note: on M5Core2 by default GPIO33 is used as external I2C (SCL) on the Groove port A. Luckily external I2C is not enabled by default so that should not interfere. Just keep in mind that you cannot use the LoRa module and external I2C.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post