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

    M5Stack GRBL 13.2 Module serial connection

    Modules
    2
    4
    233
    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.
    • N
      nathannnn
      last edited by

      Hi everyone,

      I’m trying to communicate with my M5Stack GRBL 13.2 module through serial, but I’m not sure if I’m doing it correctly or if it’s even possible.

      I’m currently using a USB to UART TTL adapter connected to my laptop. Here's how I connected it:

      • RX of the adapter → TXD2 of the GRBL 13.2
      • TX of the adapter → RXD2 of the GRBL 13.2
      • GND is also connected between both

      I’m not connecting VCC, as the GRBL is powered separately with a 12V adapter.

      For now, I'm trying to send G-code commands (like $X, G1 X10 F100) via a serial terminal (Arduino IDE), but I don’t get any response.

      My final goal is to connect the GRBL module to a Raspberry Pi 5 and send G-code from it to control stepper motors.

      Any advice or a basic working setup would be greatly appreciated!

      Thanks in advance.

      robskiR 1 Reply Last reply Reply Quote 0
      • robskiR
        robski @nathannnn
        last edited by

        @nathannnn are you sure you can talk to it via uart pins as it looks like they are not connected between mbus and atmega, isn't it I2C path you need to use?

        mbusgrbl.PNG

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

        N 1 Reply Last reply Reply Quote 0
        • N
          nathannnn @robski
          last edited by

          @robski The documentation says the GRBL 13.2 module uses I2C, so I originally thought everything had to go through that. However, my main program already communicates over UART, and I’d really prefer not to rewrite everything just to use I2C.

          I also tried connecting directly to the ATmega328P pins instead of going through the MBUS, but nothing happened — no response at all.

          To troubleshoot, I flashed GRBL v1.1 onto the module, but that seems to have broken everything. It’s no longer responding the way it used to.

          Is there any way to make this work over UART reliably, or did flashing v1.1 kill compatibility with the M5Stack ecosystem?

          Thx for the answer

          N 1 Reply Last reply Reply Quote 0
          • N
            nathannnn @nathannnn
            last edited by

            Just to clarify my motivation:

            • I would like to upgrade the Module firmware to GRBL1.1 instead of 0.8
            • I would like to communicate with the Module from a raspberry pi via raw serial commands and not the high level I2C Library provided by M5
            1 Reply Last reply Reply Quote 0
            • First post
              Last post