586,042 active members*
3,811 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Benchtop Machines > Want to Make a Hand Pendant from a Gamepad
Results 1 to 18 of 18
  1. #1
    Join Date
    Mar 2004
    Posts
    42

    Want to Make a Hand Pendant from a Gamepad

    Hello,
    I am going to attempt to use a cheap USB gamepad as a hand pendant. I've read several threads where people have done similar things, but I'm looking for quick and easy.
    Has anybody used just a cheap USB gamepad and a key mapping software to map (for example) the left button on the gamepad to the left arrow on the keyboard, etc., etc.? Then somehow mapped any of the buttons on the gamepad to the .001, .01 & .1 increments?

    I was hoping to get a little encouragement before I wasted a few hours and $25.

    Thanks,
    Greg

  2. #2
    If you are using Mach 3, I have a tutorial for Keygrabber that comes with it to assign
    the keys to any button.
    You can set them up to do pretty much anything you wish.
    The Shuttle Pro and Xpress are cool too and can be used as an MPG. Cheap on Ebay.
    Hoss
    http://www.hossmachine.info - Gosh, you've... really got some nice toys here. - Roy Batty -- http://www.g0704.com - http://www.bf20.com - http://www.g0602.com

  3. #3
    Join Date
    Oct 2008
    Posts
    33
    Another possibility would be to use an emulator such as GlovePIE. This can map the keys of any game pad and emulate the keys. So now the d-pad on a ps3/wiimote can be used to emulate the arrow keys and page up and down for jogging. You can check it out here.

    I would also recommend the keygrabber that hoss mentioned if using Mach3 (great tutorial on his site for it)

  4. #4
    Join Date
    May 2006
    Posts
    1469
    Again if you are using Mach3 then look at the Xbox 360 controller.

    It has a Mach3 plugin written specifically for it.

    Greg
    Attached Thumbnails Attached Thumbnails Xbox.jpg  

  5. #5
    Join Date
    Dec 2004
    Posts
    1865

    Game pad control of my bridgeport.

    If using Mach3, Keygrabber and a logitech dual action gamepad plus a couple of hours = one honkin' machine addon.

    Since key grabber allows for 4 different sets of controls/pages of controls, you can have a ton of options. I currently am only using one page, but will expand into the second one as I need more and more control.

    Iy you are in fact using Mach3 and need more help, feel free to ask.

    Mike
    Warning: DIY CNC may cause extreme hair loss due to you pulling your hair out.

  6. #6
    Join Date
    Mar 2004
    Posts
    42
    Yeah, i forgot to mention that I am using Mach 3.
    Sounds like I'll be able to do exactly what I want. I'll give it a go this weekend and see how it turns out.
    Thanks for all the input.

  7. #7
    Join Date
    Mar 2004
    Posts
    42
    Alright, I got the logitech dual action controller, fired up key grabber, and everything is working PERFECTLY so far.
    But I do have two questions that would save me a bit of time hunting if anybody here could be so kind.

    1. Is there a button that could enable/disable the gamepad jogging? I'd hate to bump one of the sticks and crash my tool. I tried toggling the "jog on/off ctrl-alt-j" but that didn't do it.
    2. Is there a quick mapping to make the d-pad be incremental jogging all the time? (meaning that the stick is always continuous jog and the d-pad is always incremental jog) I read that the x-box controller plug-in is set that way so I would assume it is possible.

    thanks again for all the help.
    -greg

  8. #8
    Join Date
    Jun 2008
    Posts
    197
    Quote Originally Posted by glentner View Post
    Alright, I got the logitech dual action controller, fired up key grabber, and everything is working PERFECTLY so far.
    But I do have two questions that would save me a bit of time hunting if anybody here could be so kind.

    1. Is there a button that could enable/disable the gamepad jogging? I'd hate to bump one of the sticks and crash my tool. I tried toggling the "jog on/off ctrl-alt-j" but that didn't do it.
    2. Is there a quick mapping to make the d-pad be incremental jogging all the time? (meaning that the stick is always continuous jog and the d-pad is always incremental jog) I read that the x-box controller plug-in is set that way so I would assume it is possible.

    thanks again for all the help.
    -greg
    What I do is assign a button the shift keypress which enables the rapid jogging when your pressing the jog buttons. Otherwise you jog at the normal jog speed. Also I don't have my jogging assigned to sticks just pushbuttons. It's too easy to bump a stick and also to jog in the wrong direction. I have a cheapy gamepad that I use but the buttons tend to get stuck in the down position so I'm going to rip one of these apart and wire it up to normal pushbuttons. I want the axis jogging controls to be on-off-on rocker switches.

    Rick

  9. #9
    Join Date
    Dec 2004
    Posts
    1865
    Quote Originally Posted by glentner View Post
    Alright, I got the logitech dual action controller, fired up key grabber, and everything is working PERFECTLY so far.
    But I do have two questions that would save me a bit of time hunting if anybody here could be so kind.

    1. Is there a button that could enable/disable the gamepad jogging? I'd hate to bump one of the sticks and crash my tool. I tried toggling the "jog on/off ctrl-alt-j" but that didn't do it.
    2. Is there a quick mapping to make the d-pad be incremental jogging all the time? (meaning that the stick is always continuous jog and the d-pad is always incremental jog) I read that the x-box controller plug-in is set that way so I would assume it is possible.

    thanks again for all the help.
    -greg
    1.I would have to check, but I thought that toggling the jog on/off would do it.

    2. You can just set up a key to switch back and forth, but I don't know if there is a way to do what you want.

    Did you get it setup so mach3 starts with keygrabber running all the time so the gamepad works at mach3 startup?
    Warning: DIY CNC may cause extreme hair loss due to you pulling your hair out.

  10. #10
    Join Date
    Mar 2004
    Posts
    42
    Spent a little more time on this project.
    First, I did just add an incremental/continuous button for single step jogging by the d-pad (which for whatever reason it still allowed continuous jogging by the sticks). I tried adding a button to the Mach3 screen to single step for each direction, but it wouldn't allow "G91 G0 .001 G90" to single step, and the screen editor doesn't allow for two lines of G-code (to put the G90 on a second line). So I'm still screwing around with that idea.
    Also, the jog on/off only turns on and off the jogging of the d-pad, not the sticks, so I'm still looking for an "enable/disable" game pad button.

    All-in-all, the $25 gamepad and mapping of buttons will be very beneficial to me.

  11. #11
    Join Date
    Feb 2009
    Posts
    102
    I have a wireless xbox 360 controller and the appropriate Mach3 plug-in. It's fun to hide outside of my shop and jog the machine when someone else is checking it out. Gives them a good scare!

    I do use the controller for other things, too...

  12. #12
    Join Date
    Dec 2008
    Posts
    30
    I picked up a Logitech Dual Action controller from eBay. It works great. You can download the 'profiler' from Logitech. I haven't had to use the 'profiler' because Keygrabber does everything I need so far. Makes it handy to use with other programs and games.

    I'm using it with all the axis, feedrate increase/decrease, load g-code, cycle start, feedhold, and program rewind. I like it because most of what I do setting things up can be done with it in my left hand. I'll post some pictures later.

    They have a ton of them (nearly 100) over there starting at around $11.00 with 'Buy it Now'. Quite a bit cheaper than the shuttle. Logitech Dual Action controllers on eBay.

  13. #13
    Join Date
    Mar 2006
    Posts
    80
    Hi, I am using Mach3 and recentlly added the Xbox 360 controller as my pendant. I'm also using the Mach3 plugin written specifically for it. It is working fine, however I can not find the correct wording for assigning the "auto tool zero" to one of the buttons on the Joystick.
    Could you plese help me on that one?
    Thanks!!

  14. #14
    Join Date
    Jan 2010
    Posts
    10
    Quote Originally Posted by Greolt View Post
    Again if you are using Mach3 then look at the Xbox 360 controller.

    It has a Mach3 plugin written specifically for it.

    Greg
    I keep getting a error when I load the Dll. file into the plug-in folder. any ideas? do you have a good dll.?

  15. #15
    Join Date
    May 2006
    Posts
    1469
    I don't use this device but have a look in this thread for more info,

    http://www.machsupport.com/forum/ind...c,12753.0.html

    Greg

  16. #16
    Join Date
    Jan 2010
    Posts
    10

    Talking

    Thanks for the lead. I got it to work. You just need to go into config / plugin. Then you will see the 360 controller. And it work right away. $23 bucks at walmart and you have a joystick.

  17. #17
    Join Date
    Feb 2004
    Posts
    313
    Great thread!

    Here's how you can use the Logitech with EMC:

    http://wiki.linuxcnc.org/cgi-bin/emc...Remote_Pendant
    ~Don

  18. #18
    Join Date
    Jan 2010
    Posts
    10
    Is there any atvantage to using a Logitech over a XBox 360?

    Side note: I picked up the wireless 360 today and was going to give it a shot. I will let you know howe it goes.

Similar Threads

  1. New Hand Control Pendant for MACH
    By Torchhead in forum News Announcements
    Replies: 9
    Last Post: 09-29-2010, 02:52 AM
  2. Replies: 3
    Last Post: 05-18-2009, 12:00 PM
  3. Replies: 2
    Last Post: 04-08-2009, 11:27 PM
  4. REAL CHEAP GAMEPAD as PENDANT
    By micsit1 in forum Mach Wizards, Macros, & Addons
    Replies: 13
    Last Post: 05-29-2008, 07:19 AM
  5. coverting from Right-hand to left-hand coordinate system
    By eltonr in forum Uncategorised CAM Discussion
    Replies: 6
    Last Post: 10-15-2004, 02:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •