Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Communication with a raspberry pi?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    3
    742
    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.
    • JoduWeiundefined
      JoduWei
      last edited by

      Is there a way to communicate with a raspberry pi via gcode? I want to trigger events. Network, one wir gpio or something else? Is there a "best" way?

      1 Reply Last reply Reply Quote 0
      • resamundefined
        resam
        last edited by

        You can use M42 to toggle a digital pin on the Duet, which you can read in on your RPi.
        Or you can use Telnet to connect via Wifi, and use M118 to send text messages from the Duet to the RPi.
        Or connect your Duet via USB to the RPi and use the regular serial connection (bi-directional).

        If you look through the forum, there are a couple of posts that describe this (including a few of mine).

        1 Reply Last reply Reply Quote 0
        • JoduWeiundefined
          JoduWei
          last edited by

          Thank you!
          I think im going to connect the pi with a "data only" usb cable.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA