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

    Using M5Stack GPS Module v2.1 (ATGM336H) with Raspberry Pi Pico — No UART Output

    Scheduled Pinned Locked Moved Modules
    3 Posts 2 Posters 332 Views
    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.
    • O Offline
      obolland
      last edited by

      Context

      I am trying to use the M5Stack GPS Module v2.1 (ATGM336H) as a standalone UART GPS device with a Raspberry Pi Pico (MicroPython), not with an M5Stack host device.

      Goal

      My goal is simply to read raw NMEA sentences over UART.
      I want to receive standard NMEA output (e.g. $GNGGA, $GNRMC) from the module on a Pico UART RX pin.

      Hardware Setup

      GPS Module: M5Stack GPS Module v2.1 (ATGM336H)
      Microcontroller: Raspberry Pi Pico (MicroPython)

      Connections:

      GPS Module Pin 28 (5V) → Pico VBUS
      GPS Module Pin 1 (GND) → Pico GND
      GPS Module TX pin (various tested) → Pico GP1 (UART RX)

      Software (Pico / MicroPython)

      from machine import UART, Pin
      import time

      uart = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))

      print("Listening...")

      while True:
      data = uart.read()
      if data:
      print(repr(data))
      time.sleep(0.1)

      Also tested at 115200 baud.

      What I Have Verified

      5V is present at the module (measured with multimeter)
      Ground is correctly connected
      Pico UART is working (used successfully in another part of the project)
      SMA antenna is connected
      Tested both 9600 and 115200 baud
      Tested multiple DIP switch configurations (one switch ON at a time)

      Pins Tested for GNSS_TX (based on docs):

      Pin 13
      Pin 15
      Pin 22
      Pin 26
      Pin 2

      Observed Behavior

      At 9600 baud: I consistently receive a single byte: b'\xff'
      At 115200 baud: no data at all
      No readable NMEA sentences are ever received

      Understanding / Confusion

      From the documentation and schematic:

      GNSS_TX is routed via DIP switch to M-Bus pins marked GNSS_TX(SW)
      DIP switch labels reference host GPIO (e.g. G1, G3, G17, etc.), not M-Bus pin numbers
      It is unclear how DIP switch positions map directly to M-Bus physical pins for standalone use.

      Questions

      What is the exact DIP switch configuration required to expose GNSS_TX on a specific M-Bus pin (e.g. pin 13 or 15)?
      Which M-Bus pin should be used for GNSS_TX when using the module outside of the M5Stack ecosystem?
      What is the correct default baud rate for this module (9600 vs 115200)?
      Does the module require any initialisation or enable signal before UART output begins?
      Is there any known issue using this module standalone (without an M5 host)?

      Goal Clarification

      I am not trying to configure or parse GPS data yet — I only need to confirm that raw UART NMEA output is present.

      Any guidance on correct DIP switch configuration and TX pin mapping for standalone use would be greatly appreciated!

      O 1 Reply Last reply Reply Quote 0
      • O Offline
        obolland @obolland
        last edited by

        Bumping this - surely someone knows which pin exposes GNSS_TX?
        Any help greatly appreciated!

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

          Hello @obolland

          according to the schematic GNSS_TX becomes M5-RXD which is then available (depending on set dip switch) on GPIOs: 3, 13, 16, 34 or 35 which translates to pins 13, 22, 15, 26 or 2 on the M5 Stack bus.

          BTW: Since you are not stacking the module you can set all dip switches to 'on' at the same time (if you like).

          Note: I do not have the M5Stack GPS Module v2.1 so I cannot test this myself.

          Thanks
          Felix

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

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post