Connecting a Arduino to the Duet and getting data from it
-
Hey, I wanted to connect my arduino directly the the Duet3D expansion and get data which I can print on the web interface, any help or guidance on approaching this would be appreciated. I wanted to go directly since the use of a raspberry pi is causes a large degree of delay on the web interface.
-
@vishnu-dhanda a couple more specifics about your use case might help people share their ideas. Right now I would point you at https://docs.duet3d.com/en/User_manual/Connecting_hardware/IO_GPIO and depending whether you want to push something to RRF either using triggers or using daemon.g to regularly check GPIO state and calling macros accordingly. Either way you would need to look into Gcode meta commands.
The easiest way to surface anything you do in DWC will be the BtnCmd plugin, or alternately writing your own plugin.
-
If you connect the Arduino via serial to the Duet board, you could use something like serialOM.py to talk to the Duet and make use of the Object Model and direct GCode via serial commands to effect any changes (even bidirectional). You would still need to look into meta commands and BtnCmd or comparable to surface any info in the Web UI.