![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I'm in the early stages of dsigning and acquiring parts for a CNC router. I'm a linux user and have succesfully installed EMC2 and have made motors move! Now my thoughts have turned to a button console for easy control of EMC2 to suppliment the keyboard. I have seen examples where people have wired buttons via a Parallel port interface and created nets to connect to HAL inputs. Surfing the net I came across some MAME encoders (was looking for optical encoders on ebay) which are used for home arcade consoles. These are a neat solution for the gamers as they have the two player keys mapped with easy connections for buttons. But not really suitable for EMC2. So why not hack a keyboard to get the encoder, they are cheap ~$10 for a USB keyboard, and with a little time and effort should do the trick. |
|
#2
| |||
| |||
| By using a keyboard encoder we have USB connectivity for the console and we don't tie up a parallel port. Most people seem to trace out the buttons on the membranes to work out pin assignments. This is a real pain so I soldered on some ribbon cable and and idc plug so that the pin assignment could be aquired. A simple keyboard checking application is all that is needed. Plug the hacked encoder in and pin out the connection. |
|
#4
| |||
| |||
| Yes, why not? Would be really easy to find out the connections for the most important buttons, and with Halui you can map a bunch of new keys to get jogging and that kind of stuff. I bought a gamepad and have made everything from that. With some tricks I now have jogging for XYZ in three different speeds, must hold down a speed to make the pad safer. I also have stepping functionality and a uge cancel button. Best of all, I still have buttons left. ![]() Now when it's working, I will make a better looking box in alu and sneek some buttons from my neighbour workshop, he's renovating archade games and those buttons are very nice. http://wiki.linuxcnc.org/cgi-bin/emc...Remote_Pendant http://wiki.linuxcnc.org/cgi-bin/emc...pads_With_EMC2 Goto to the wiki and search for "joypad" and you'll get more reading. |
|
#5
| |||
| |||
|
I think you have to go trough the menues. But as I wrote, with halui you can map almost anything. |
| Sponsored Links |
|
#7
| |||
| |||
| Thanks for the pointer atex. The simplest way will be to wire directly the keys required, but Linux has a niftly utilty called xmodmap which allows the user to remap keys. This would allow any input to be used and then remapped to the appropriate AXIS shortcut key. Contemplating using a arcade style microswitch joystick as a multi axis jog input rather than an encoder MPG, the trick would be to add a third axis (Z) rotational axis to the joystick for full 3 axis control. By adding a NO "enable" switch in series with the axis jog switches will stop accidental jogging and be a kind of a dead man switch. Just need to figure out if this can be achieved with two keyboards connected, the standard keyboard and the control console / pendant, with the keymappings only being applied to the second keyboard. Looks like more googling required... Scott Last edited by scotta; 10-15-2009 at 03:54 AM. |
|
#8
| |||
| |||
I don't understand what you mean about the gamepad, I use the gamepad with the safety button functionality. I jog Z with a pair of buttons. If you buy a gamepad with an analog joystick (mine is simple and hardwirded to eiter 0 or 255) you have seamless feed as well. Push harder, higher speed. And if you buy the two joystick version you have a joystick for Z as well. |
|
#9
| |||
| |||
| I spent several years working for ABB Flexible Automation as an Applications Engineer, I suppose I'm use to Robot teach pendants which have a dead man switch that must be pressed and held while manually jogging the robot. It's not much fun accidentally moving a robot with a $$$ tooling hanging off the end. My thought was to build a similar, but simpler, sytle of pendant for manual control of the router I'm in the midst of designing. Is HALui capable of maping a second keyboard without confusing keycode coming from the main / standard keyboard? You would have to somehow assign the connected device ID?? Scott |
|
#10
| ||||
| ||||
| something that you may find handy is to find a keystroke display , one that will display what each key is , i tried to find an old download link to a good one for you but the link is now dead , if you can't find one then pm me or something and i will see if i can dig up the one that i downloaded , I'm sure I've got it here somewhere
__________________ A poet knows no boundary yet he is bound to the boundaries of ones own mind !! http://cnctoybox.org |
| Sponsored Links |
|
#11
| |||
| |||
As I wrote, I do have the dead man button. If you get a unique HW id from the keyboard then yes, halui would differ the keyboards. You didn't read the links I posted, did you? ![]() http://wiki.linuxcnc.org/cgi-bin/emc...Remote_Pendant |
|
#12
| |||
| |||
| Sorry, had a look back over the links you posted. Now I have some questions after trying to get the second keyboard connected with hal_input. Firstly when using a name specifier for the hal_input I kept getting a no device with name error, when using an eventN as the specifier and I would get a permission denied error. Ok, created a 51-plugdev.rules file in etc/dev/udev.rules with SUBSYSTEM=="input", mode="0660", group="plugdev" Rebooted and checked the permissions on the /dev/input/.. and the group was still root. I then checked to see if I actually had a group called plugdev, I didn't so a created one. Rebooted again, still no luck??? Should I have had a plugdev group by default? My emc2 installation was via the live CD. If I can get this to work then using hal_input will be the most flexible way of creating the console. Scott |
![]() |
| Tags |
| emc2 axis keyboard hack |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| keyboard hacking | dertsap | General Electronics Discussion | 20 | 12-08-2009 09:11 AM |
| Looking for how to set Keyboard Command for Z axis | LockTech | Machines running Mach Software | 5 | 05-14-2008 10:13 AM |
| Jogging 4th axis with keyboard? | Chuck Reamer | Tormach PCNC | 7 | 11-09-2007 09:44 AM |
| Feedrate control in EMC2? | pauldkeeton | LinuxCNC (formerly EMC2) | 4 | 11-06-2007 12:14 AM |
| "HACKING" the optional functions on the Haas control? | AMCTony | Haas Mills | 16 | 12-03-2006 11:28 AM |