Can I control duet3 with arduino or windows app?
-
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.
-
@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.
-
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.