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

    Is it possible to connect two M5Atom with a cable...

    Scheduled Pinned Locked Moved General
    3 Posts 2 Posters 3.2k 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.
    • K Offline
      kmk68
      last edited by

      Hello,

      Is it possible to connect two M5Atom with a cable by UART - without any additional equipment?
      "White" socket used to connect sensors?
      Possibly with an interleaved cable?
      And using interrupts?

      Kind regards,
      Kajetan

      1 Reply Last reply Reply Quote 0
      • C Offline
        Cognitive5525
        last edited by

        Depends what you what you want to achieve.
        If you mean to connect for programming/flashing the module - probably not.
        You would need to reconfigure the UART0 to pin 26/32 - I'm not even sure this can be done.
        If you just want to connect a "serial console" to communicate with your own running program then yes.
        You just need to set up UART1 or 2 to GPIO26 and 32 in your own program.
        Your console must be 3.3V TTL though

        1 Reply Last reply Reply Quote 0
        • C Offline
          Cognitive5525
          last edited by

          Sorry!
          For some reason I completely overlooked that you wanted to connect two devices together.

          So the answer is yes! Get a Grove cable:
          https://shop.m5stack.com/products/4pin-buckled-grove-cable?variant=16804807082074

          Remove/cut the the red (+5v) wire and setup the UARTs on both devices with "crossover" pin-config.
          I.e.:

          • Device A UARTx Tx=32 Rx=26
          • Device B UARTx Tx=26 Rx=32

          or vice versa.

          I'm not sure what you mean by "using interrupt", but you could (with same cable) define say pin 32 as output on device A and the same pin as an input defined to an interrupt on Device B and then perhaps the opposite with Pin 26

          1 Reply Last reply Reply Quote 1

          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