Joystick Interface
-
I have a 3d printer and a CNC router that uses a Duet 2 Ethernet Controller. I want to build an joystick input to move the the router. Basically to setup the job. This is not a problem for 3d printing, but CNC does require this ability. Typing in gcode to move around is way to time consuming.
So - I've read that a 2nd rasp-pi (or in my case I will use pic controller or Arduino) to interface the joystick to the panel due port of the duet. But..
I have a few questions. I'm no gcode expert so please help..
-
What I know from the basic G0 is that I set a WCS location. What Gcode can be used, if possible, to keep on moving until some other gcode is send. At a feed rate that is send as part of the gcode. Is there gode like that? I've scanned the doc but do not remember about something like that.. Is this something that can be added if it does not exist.
-
Is it possible to send the gcode from a PC - via ethernet - to the Deut. it would be much easier to program an application.. And plugin a game console.
-
Is anyone keen on assisting with developing something like this.. I would be a great addition to any Duet based CNC.
-
-
There is a very active thread about interfacing a pendant with a wheel. Very, very similar:
https://forum.duet3d.com/topic/11389/cnc-style-pendant
There are links to working code in that thread.
-
@massynrt said in Joystick Interface:
What Gcode can be used, if possible, to keep on moving until some other gcode is send.
There isn't one at present.
Is it possible to send the gcode from a PC - via ethernet - to the Deut. it would be much easier to program an application.. And plugin a game console.
Yes, you can send GCode commands using the rr_gcode HTTP command
- Is anyone keen on assisting with developing something like this.. I would be a great addition to any Duet based CNC.
See Danal's post.
-
@dc42 said in Joystick Interface:
@massynrt said in Joystick Interface:
What Gcode can be used, if possible, to keep on moving until some other gcode is send.
There isn't one at present.
If there would be a command for stop and maintain the position, we could send g code to move on button down and the stop command on button up.
-
because the web interface made by Oozenest was written in Vuejs, which is my day job, my plan is to add to their interface so that it can watch for a whole bunch of keyboard shortcuts... and then make a pendant like as if it's a macropad (pretty simple in the mechanical keyboard community). Whatever I use to operate the web interface (and old used SurfacePro for example), just plug the pendant into that... voila... should be handy enough for pendant duty methinks
(switch based joystick could be added to this pendant keyboard no problem)
regarding the start-on-key-down/stop-on-key-up, the web interface could do this; poll the duet with the move gcode while ever the key is down and then stop polling when released.
-
@theKM said in Joystick Interface:
Vuejs
FYI I believe the Duet's DWC uses the same, but i never poked it in much detail.
-
FYI I believe the Duet's DWC uses the same, but i never poked it in much detail.
it uses Bootstrap and JQuery... which are totally fine frameworks, just that Vuejs is the current framework I'm using, and Oozenest's app is also CNC related, which just ticks more happier boxes for what I'm after
-
@theKM said in Joystick Interface:
it uses Bootstrap and JQuery
i know it says that on the front page, but
https://github.com/Duet3D/DuetWebControl/tree/master/src/components/lists
https://github.com/Duet3D/DuetWebControl/blob/master/src/components/lists/index.js -
@bearer my bad, I should have looked closer!
...all good, means any code should be portable at least... although I haven't had much need for a pendant with my printer