CNC Touch Control App
Posted: Fri Nov 18, 2011 11:41 am
I'm planning to make an android app that basically gives the user touch control of the CNC (think finger painting in wood). I've only barely started but the general idea is that the app will map screen coordinates to the CNC cut area and moving your finger around on the screen will move the CNC around. On the device it would appear to the user as a simple paint app.
Update: It lives!
- Tic Tac Toe fail: http://www.youtube.com/watch?v=V-9eZLgqRHw
- Tic Tac Toe fail (cont'd): http://www.youtube.com/watch?v=lq2xrWOY0eg
- Smiley face demo: http://www.youtube.com/watch?v=vLpZSTjCVJE
How it works:
Three pieces of software,
- android application translates screen presses into gcode and feeds this data over the network to a...
- java server running on the CNC computer which simply dumps the gcode into a text while which is read by a...
- vbscript executing within mach3 which just keeps reading gcode from a specified file
Current features:
- Supports G00 (fast movement on tap), G01 (slow movement for cuts with long click/drag), G02 for circles
- Bit gets lowered when a "long click" is detected on screen, stays lowered until finger is lifted from screen (in path mode)
- Ability to specify cut depth
- Tool path drawn on screen while cutting (like a paint app)
- Additional cut modes - line, circle, rectangle
- Ability to redefine cut area on the fly
Current challenges:
- occasionally crashes when you get too far ahead of the machine
Future ideas:
- gyro control (kurtis noted this could make some killer art)
- specify feed rate on the fly (as simple as issuing a G94 F<X> command, currently must set this up within mach3)
Code: http://code.google.com/p/touch-cnc/
- this is my first ever android app and I haven't done java in a long time so I know the code isn't perfect
- a few values are still hard coded in (such as my screen size), will change in future revision
Update: It lives!
- Tic Tac Toe fail: http://www.youtube.com/watch?v=V-9eZLgqRHw
- Tic Tac Toe fail (cont'd): http://www.youtube.com/watch?v=lq2xrWOY0eg
- Smiley face demo: http://www.youtube.com/watch?v=vLpZSTjCVJE
How it works:
Three pieces of software,
- android application translates screen presses into gcode and feeds this data over the network to a...
- java server running on the CNC computer which simply dumps the gcode into a text while which is read by a...
- vbscript executing within mach3 which just keeps reading gcode from a specified file
Current features:
- Supports G00 (fast movement on tap), G01 (slow movement for cuts with long click/drag), G02 for circles
- Bit gets lowered when a "long click" is detected on screen, stays lowered until finger is lifted from screen (in path mode)
- Ability to specify cut depth
- Tool path drawn on screen while cutting (like a paint app)
- Additional cut modes - line, circle, rectangle
- Ability to redefine cut area on the fly
Current challenges:
- occasionally crashes when you get too far ahead of the machine
Future ideas:
- gyro control (kurtis noted this could make some killer art)
- specify feed rate on the fly (as simple as issuing a G94 F<X> command, currently must set this up within mach3)
Code: http://code.google.com/p/touch-cnc/
- this is my first ever android app and I haven't done java in a long time so I know the code isn't perfect
- a few values are still hard coded in (such as my screen size), will change in future revision