3D Joystick support for moving cutter

Hi-

I would like be able to move the cutter using a joystick (http://goo.gl/za01xx), or a 3D mouse (http://goo.gl/0QAaYw). This would save a lot of preparation time. Thanks.

-Peter

1 Like

For auxiliary input devices, another good candidate is the Jog Shuttle Express.

http://ergo.contour-design.com/ergonomic-mouse/shuttlexpress

Here is a video of me jogging the Nomad over the weekend with an Express (Tormach-branded) while I was briefly bypassing the Arduino and controlling the Nomad with Mach3 (step & direction) through the PCā€™s parallel port for diagnostic reasons

http://www.prototrains.com/misc/P1080232.avi

The Express has variable-speed continuous jogging with the spring-loaded ring, and programmable increment jogging with the center spinner. Iā€™ve been using one for years on my Tormach and greatly enjoy it. Choose an axis and move it.

1 Like

This is definitely on the to-do list to have some form of Carbide-supported jogging pendant, since itā€™s not always possible to have your laptop/keyboard in a good position for jogging while youā€™ve got your head in/over the machine.

One of my suggestions was just USB Xbox controller support X-D

-Jonathan

Might I suggest a Wii Nunchuck, youā€™ve go the hand controller with it being cheap, and easy to interface with the microprocessor, as itā€™s i2c communications. (Though, I donā€™t know if there are any constraints with it and grbl. I think grbl leaves the i2c pins available.

Itā€™s got the thumb joystick for x-y, and 2 buttons which could do Z.

Thatā€™s not a bad idea, however:

  1. Itā€™s not a standardized physical connection, and weā€™d then have to put the connector for it somewhere
  2. We donā€™t really need to or want to try to run the GRBL directly that often, because thereā€™s a lot of juggling that goes on at the Carbide Motion level of things that is handling work-offsets and a lot of state management, therefore the controller needs to connect to the computer not to the machine at the cabinet/board/GRBL controller level.

Hopefully that clears it up a bit :smile:

A USB cable-connected Xbox controller is $40 bucks at Best Buy or even cheaper online Iā€™m sure, for an off-brand version.

-Jonathan

In setting up jobs I do find it important (well, usefulā€¦) to have both continuous and incremental movement. On my Tormach and lathe, I have the incremental movement set up for the minimum increment, which is .0001" on both machines. The center knob on the Shuttle Pro has 24 or 32 pulses per revolution so it is easy to move up pretty close to the edge of the part/stock with the continuous jog (having variable speed is really nice tooā€“the farther I turn the ring the faster the axis goes, up to full rapid speed) and then I spin the knob until I get to the actual surface.

How would you do the same with an Xbox controller? Does it have a proportional joystick? I havenā€™t played a video game for probably 20 years (other than my temporary Mame phase where I built a Tempest simulator) so Iā€™m not familiar with how they work these days. Back in the early Atari days it was just left/right/up/down but at a standard rate.

I know this sounds like a silly suggestion, but I do this for my laser cutter and have found it handy for the Nomad also (poor manā€™s remote shuttle/jog controller)ā€¦

ā€¦I have an optical mouse connected to my controlling PC, so I set the increment I want (fast/slow/1mm/0.1mm/etc), and put the cursor over the direction button I am trying to move (X/Y/Z), then lift the mouse up and the mouse cursor stays on the buttonā€¦ now (if your mouse cord is long enough) you can go over to the CNC and get your head/eyes in alignment with whatever you are trying to zero or align, and click the mouse button to advance the cutter ā€¦ sounds goofy, but it is incredibly useful. Yesā€¦ you do need to put the mouse back down if you overshoot and/or need to choose another axis, but it still is a quick way of advancing the cutter to set a zero point or similar without having to keep going back to the keyboard.

The Wii Remote is a Bluetooth device. Link here: http://www.shapeoko.com/wiki/index.php/Pendant

Thatā€™s true, so it could be an option! He had said the Nunchuck, so I wasnā€™t sure if he meant the main controller or the added joy-stick partā€¦ which is the part with the non-standard connection.

@Randy The Xbox controller has two analog sticks, one Dpad, a trigger and ā€œshoulderā€ button on both left and right, and a set of four buttons on the right side, so youā€™d have X/Y movement at multiple speeds (two sticks) and an incremental (d-pad presses) as well as Z movement at two rates/increments (triggers and shoulder buttons), and then for the buttons you could set zeros per-axis with three of them and still have one button left over to turn the spindle on/off for use with an edge-finder.

Thatā€™s my thinking, anyway :wink:

I had meant the nunchuck as they are easy to interface over i2c (and I have one Iā€™ve used for that purpose on a failed self-built cnc machine Mainly failed as I was absolutely brand new, was using wood, insufficiently powerful motors insufficiently braced, you name it. Also, trying to write a gcode interpreter sucks. GRBL rocks by comparison).

I think that the controller over bluetooth would be far better, and eliminates the cord completely. (And a usb hub.-Whomever thought a single USB was a sufficient even for a tablet was clearly not me.)

Iā€™d like to build a ā€˜control boxā€™ with manual X, Y, Z and spindle speed/direction controls along with readouts so that I can run the machine as a manual mill (the controls would generate gcode). Iā€™m thinking about using Taig or Sherline handwheels along with shaft encoders, hooked to a microcontroller board.

Whatā€™s the right place in the ā€˜architectureā€™ to plug this in? Should it talk GRBL directly to the hardware over USB, or would it talk to some interface exposed by Carbide Motion?

Thatā€™s a question for @robgrz as to where in the pipe you could put it, because I donā€™t know that you could ā€œborrowā€ the serial stream from Carbide to send to GRBL directly, nor that youā€™d want to, nor that weā€™ve got an interface anywhere in the code you could plug into.

Weā€™ve thrown the idea around of an interface for an integrated controller (hence the speculation as to how to do it/what to do in threads like this ;-)) but to the best of my knowledge Rob hasnā€™t settled on anything yet.

I am using a USB hub for the Nomad and my 3D printer since they are across the room from the controlling computer (for now). After reading this topic about having local control, I decided to try a simple USB numeric keyboard plugged into the same hub. You cannot select the step increment with it but otherwise I can easily operate all 3 axis while standing at the machine without any modification. Simple enough for an $8 keypad.

A numeric keyboard sounds like a good idea, together with a bit of scripting in autohotkey (autohotkey.com) it should be possible to control everything.

I worked up a control scheme which seemed sensible:

  • cross pad is used for jogging in X- and Y- (mapped to the arrow keys)
  • 1 and 2 are used to jog Z- up and down
  • the + and - buttons are used to switch between 1mm and 0.1mm unit ā€” Iā€™ve been debating using A for slow and B for fast, but Iā€™d liefer use them to toggle between workspaces ā€” if there were keys for increase / decreasing the jog increment that would work.

Really wish that there was a way to initiate homing ā€” pressing the home button for that would be perfect

HI all- I originally posted this request and should have replied long ago. Apologies. I use this http://amzn.to/1W6ulMW which is multi-platform and am very happy with it. I have added a cheap IKEA flexible LED so that I can see the tip of the tool (and its shadow on the stock). I will add a Supereyes Y002 7mm 200X Handheld USB to make the cutter adjustment even more precise and will add a movie to show some action. Apologies again for slow feedback. All the best. -Peter

Not sure where this thread has gone but today I connected an old USB X-Box 360 controller and have mapped the controls for Carbide Motion using a program called XPadder. It would be better if there were keyboard shortcuts in Carbide Motion to associate with zero (x, y, z and all), home, measure tool and start/stop but it works well for initial setup without needing the computer right next to the machine.

1 Like