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

    Can I control duet3 with arduino or windows app?

    Scheduled Pinned Locked Moved
    RepRapFirmware on other controllers
    3
    3
    407
    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.
    • Dennis_kimundefined
      Dennis_kim
      last edited by

      Can I control duet3 with arduino or windows app?

      I am going to use the Duet3 6hc board to control the step motor/sensor, etc. with an app I made, not the web provided by Duet.

      Or, I wonder if it is possible to modify the web source provided by Duet.

      Duet3 has not been shipped yet, so we are investigating in advance.

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Dennis_kim
        last edited by dc42

        @Dennis_kim yes you can do that. From Windows, your best option is to send HTTP commands to the Duet network interface. See https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests. It's also possible to control the Duet via its USB port.

        From Arduino, if the Arduino is network enabled, you can do the same. If not then the easiest way is probably to connect a UART port on the Arduino to one of the two UARTs on the 6HC (via a level shifter if it is a 5V Arduino). Although I can't think of many applications for which I would still use an Arduino rather than a RPi Pico.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • achrnundefined
          achrn
          last edited by

          If your windows / arduino can generate HTTP you can use https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests. This is quite a straightforward interface, e.g. a GET of http://11.22.33.44/rr_gcode?gcode=G28 will execute G28 (ie home all) on the duet machine at 11.22.33.44. It has file operations (upload, download, list, delete etc.), execute arbitarray gcode, and let you get any part of the object model (which lets you check almost every element of the state or status of the machine).

          If you install curl you can do this from pretty much any scripting language (even .bat files).

          If you have a Pi connected to the duet device there's also the DSF: https://github.com/Duet3D/DuetSoftwareFramework This will let you do anything the duet can do, but requires more detailed and particular programming knowledge.

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