Arduino based USB Pendant for Linuxcnc

More
14 years 2 months ago #23022 by JR1050
Replied by JR1050 on topic USB Pendant for Linuxcnc
Arceye,

I love this!! Very cool.Im tring to get a Pokeys or Ipac to function as a simple i/o board,Im running into a problem in as much as the device puts out an actual keyboard character,several of which are Emc hot keys.After looking at your above code,it seeems as though it would be possible to write a comp to address either of these boards.You are obviously very good at this,can you give me some pointers as to where to start?Thanks.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago - 14 years 2 months ago #23027 by ArcEye
Replied by ArcEye on topic Re:USB Pendant for Linuxcnc

You are obviously very good at this,can you give me some pointers as to where to start?

Flattery is always a good place to start!

From what I can see of the PoKeys device (and iPac), it emulates keyboard and joystick and is a plug-in USB HID device.
This means it is writing directly to the keyboard buffer (well , generating keyboard events which go to the app with focus) and sending pointer events etc.

That is not quite the same as the arduino with keypad, because it is communicating by serial port (albeit over USB) to a receiving program which is interpreting the packets and taking requested actions.

You will have to tell me what you are trying to do exactly and what you have tried thus far.

Have you looked at attaching it in the same way as you would a game-pad using hal_input?
Might be an altogether simpler method
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant

and Rick has added all sorts recently
www.linuxcnc.org/index.php/english/compo...id=47&id=22895#22947

regards
Last edit: 14 years 2 months ago by ArcEye.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23035 by dangercraft
Arceye,
That is one nahhh-is setup. :laugh:

I just have one question...
Where did you get the enclosure?

Frank

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23038 by JR1050
Well,lets just say I call ducks ,ducks....getting a hand held pendent to do all that is impressive.


Anyway,my goal is to build more traditional pendent with common switches and knobs,similar to my Fadal or Yasnac.Presently on the Hardinge Im using gpio with a 5i20 and opto 22 racks for my limited pendent.Opto 22 is an overkill for operator buttons,takes up a bunch of valuable cabinent space and is pricey.I was thinking if i had a 32 input terminal board that acted similar to gpio pins,but via usb,a pendent would be a snap.I could write a pendent comp and be done.

I started with a pokeys and hal input.I couldnt get it to work at all.I then went to the Ipac2 with hal input,which shows the state of the changing inputs,Problem is the Ipac puts out actual keys,which are Emc hot keys.In addition,it also has all these wonky hal pin names and even after reprogramming the thing,several of the pins dont work and the hal names dont always follow the physical pin they should.

I suppose I could open the Axis python file and remark out the hot keys,but this is a rigged temporary fix.Sooo,thats why Im here.By trade Im a toolmaker.not a c++ programmer,not that I havent learned and I am interested,but this is a lot.Sometimes its easier to ask the person who invented the wheel about it, rather then reinventing it!!

Any suggestions??Thanks ahead of time!!

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23042 by ArcEye
Replied by ArcEye on topic Re:USB Pendant for Linuxcnc
dangercraft wrote:

Arceye,
That is one nahhh-is setup. :laugh:

I just have one question...
Where did you get the enclosure?

Frank


Farnells, dont have the reference to hand, search under black ABS handheld and thats how I found them.

regards

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23053 by ArcEye
Replied by ArcEye on topic Re:USB Pendant for Linuxcnc

just have one question...
Where did you get the enclosure?


Now found the reference

uk.farnell.com/hammond/1592etsdbk/enclosure-handheld/dp/1877189

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.535 seconds
Powered by Kunena Forum