Joypad confusion.

More
16 Oct 2012 21:03 #25385 by 109jb
Joypad confusion. was created by 109jb
Let me start out by saying I know next to nothing about doing any kind of custom setup in linuxCNC but I am willing to learn and hope I can get some help. I have LinuxCNC running on a 3-axis mill and right now I am just using keyboard and mouse to input into the software. I figured a way to start learning some of the in and out of linuxCNC would be to set up a joypad for the machine and customize the button settings and such. I will first get the thing set up and working before I move on to modifying the controls.

I tried doing a search on how to install a joypad, but I find multiple ways to do it. It also looks as if some of the methods were originated some time ago and the pages not updated in a long time. Also, being a newbie I find some of the stuff a bit confusing. What I am trying to figure out is if there is a certain preferred method to implement a joypad and if the instructions for that method are current. A step by step, or "Joypads for dummies" would be great but I just can't seem to find it.

Any help would be greatly appreciated.

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

More
16 Oct 2012 21:08 #25386 by BigJohnT
Replied by BigJohnT on topic Re:Joypad confusion.
I wrote this one and it is still current and up to date.

wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant

John

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

More
16 Oct 2012 21:47 #25387 by 109jb
Replied by 109jb on topic Re:Joypad confusion.
Thanks. That is one of the ones I found. Just wanted to make sure I had a good and current set of instructions to start from. I'll be giving it a go.

One more question. In the house I use the linuxCNC simulator on my laptop to play with stuff. I assume this will work on the sim right?

Thanks much

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

More
17 Oct 2012 07:15 - 17 Oct 2012 07:16 #25396 by Rick G
Replied by Rick G on topic Re:Joypad confusion.
I also use John's and would recommend it.

No reason not to use it on the sim.

The WIKI has information on using the joypad and different approaches.

Once you are up and running if you want to add more features you might get some ideas from...

wiki.linuxcnc.org/cgi-bin/wiki.pl?Adding...imple_Remote_Pendant

Rick G
Last edit: 17 Oct 2012 07:16 by Rick G.

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

More
20 Oct 2012 07:52 #25479 by 109jb
Replied by 109jb on topic Re:Joypad confusion.
Thanks guys. I got the joypad working in sim mode. John's simple one worked fine but the one with the incremental option didn't right away. I had to create a new sim profile to do it. This was because the canned 3-axis millimg machine sim uses a hal component to simulate automatic homing that interfered with the joypad. I created a sim profile to mot use auto homing and then the joypad worked fine.

I would like to modify the hal file for the joypad to use the mode switch to select incremental or jog mode. How it is now works, but I see no real way to determine if the mode is inc or jog except to just maje a move. I figure if it was tied to themode switch somehow you just look at the led next to the mode seitch and you know right away (ie: lit is inc, not lit is jog)

I guess I will have to learn some more to see if I can make that change.

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

More
20 Oct 2012 11:29 #25481 by BigJohnT
Replied by BigJohnT on topic Re:Joypad confusion.
Sounds like your having lots of fun now.

John

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

More
20 Oct 2012 11:56 #25483 by Rick G
Replied by Rick G on topic Re:Joypad confusion.

I would like to modify the hal file for the joypad to use the mode switch to select incremental or jog mode. How it is now works, but I see no real way to determine if the mode is inc or jog except to just maje a move


Good point, I found that to be a draw back.
If you look at the wiki I changed that to use two different buttons, the #4 for incremental and the #6? (the front button below the #4) for proportional.
That way just hit the right button and no more guessing. I also added two different audible beeps to confirm the mode using beep and the pc speaker.
Look at part two of the wiki.

Rick G

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

More
03 Oct 2018 13:18 #118402 by Henk
Replied by Henk on topic Re:Joypad confusion.
HI
Is the hal_joystick component still supported in 2.7 or was it a cutom comp? i dont seem to be able to load it in HAL. Maybe i should download and compile?

Thanks
Henk

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

More
05 Oct 2018 12:25 #118469 by andypugh
Replied by andypugh on topic Re:Joypad confusion.
It was deprecated in 2.4, and we are now at 2.7....

linuxcnc.org/docs/2.4/html/man/man1/hal_joystick.1.html

hal_input should do the same, and more.

linuxcnc.org/docs/2.7/html/man/man1/hal_input.1.html
The following user(s) said Thank You: Henk

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

Time to create page: 0.224 seconds
Powered by Kunena Forum