🤖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...

    General
    2
    3
    1.9k
    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
      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
        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
          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
          • First post
            Last post