[Home]Super Simple Method For Controlling With A USB Joypad

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior major revision) (no other diffs)

Changed: 1c1
Not sure how to embed the video but here is a youtube video showing a simple to connect a USB controller to LinuxCNC. This was very helpful for me so thought I would share to help the not so technically gifted.

Tutorial on installing a remote pendent on linuxCNC using [qjoypad]




Changed: 3c3,45
http://www.youtube.com/watch?v=rZxxy6C0ErE
Summary: qjoypad is a utility that takes joypad button and joystick movements and turns them into keyboard strokes. These keyboard commands can be used to control linuxCNC. This tutorial shows how to install and configure qjoypad for linuxCNC.

installing qjoypad




qjoystick can be installed either by building the source code, or by downloading a binary file. The binary can be downloaded [here] however qjoypad has several dependencies that must be installed as well, so adding a repository and using apt-get is recommended.

#Install the repository GPG key:
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
#Add the following line to /etc/apt/sources.list by typing:
##sudo gedit /etc/apt/sources.list
##then add the following line to the file:
deb http://archive.getdeb.net/ubuntu/ lucid-getdeb games
##save the file.
#Update the package index:
sudo apt-get update
#Install qjoypad deb package:
sudo apt-get install qjoypad joystick

The final command installs qjoystick and the joystick kernel module, a required dependency which does not get installed by default.

Configuring qjoypad



This video provides most of the information on configuring qjoypad provided below.
[LinuxCNC with USB controller]

Now you have qjoypad installed, start it either by typing qjoypad or by running it from the applications menu. Now plug in your joypad. Right click on the joypad icon in the system tray, a menu will appear. From that menu click update joystick devices. NOTE: your computer might need to be restarted before this will work. Now left click on the system tray icon. It should open a window like this:

http://wiki.linuxcnc.org/uploads/QJoyPad_4.1.png

Click on the quick set button. The menus should guide you through configuration.

http://wiki.linuxcnc.org/uploads/Set_Joystick.png
http://wiki.linuxcnc.org/uploads/Choose_a_key.png

When you are done save by clicking the update button and typing in a name.

http://wiki.linuxcnc.org/uploads/Name_new_layout.png

It is recommended that you go back and change the threshold values for the joysticks (axis) on the controller so they aren't as sensitive.

AXIS command keys




[AXIS Keyboard Shortcuts]

note that qjoypad will not use multiple key shortcuts (uppercase shortcuts included) to get around this a button must be set to SHIFT, another to CTL, ETC

This tutorial is in large part based off of this video which provides most of the information on configuring qjoypad.
[LinuxCNC with USB controller]

Tutorial on installing a remote pendent on linuxCNC using [qjoypad]

Summary: qjoypad is a utility that takes joypad button and joystick movements and turns them into keyboard strokes. These keyboard commands can be used to control linuxCNC. This tutorial shows how to install and configure qjoypad for linuxCNC.

installing qjoypad

qjoystick can be installed either by building the source code, or by downloading a binary file. The binary can be downloaded [here] however qjoypad has several dependencies that must be installed as well, so adding a repository and using apt-get is recommended.

  1. Install the repository GPG key:
    wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
  2. Add the following line to /etc/apt/sources.list by typing:
    1. sudo gedit /etc/apt/sources.list
    2. then add the following line to the file:
      deb http://archive.getdeb.net/ubuntu/ lucid-getdeb games
    3. save the file.
  3. Update the package index:
    sudo apt-get update
  4. Install qjoypad deb package:
    sudo apt-get install qjoypad joystick

The final command installs qjoystick and the joystick kernel module, a required dependency which does not get installed by default.

Configuring qjoypad

This video provides most of the information on configuring qjoypad provided below. [LinuxCNC with USB controller]

Now you have qjoypad installed, start it either by typing qjoypad or by running it from the applications menu. Now plug in your joypad. Right click on the joypad icon in the system tray, a menu will appear. From that menu click update joystick devices. NOTE: your computer might need to be restarted before this will work. Now left click on the system tray icon. It should open a window like this:

Click on the quick set button. The menus should guide you through configuration.

When you are done save by clicking the update button and typing in a name.

It is recommended that you go back and change the threshold values for the joysticks (axis) on the controller so they aren't as sensitive.

AXIS command keys

[AXIS Keyboard Shortcuts]

note that qjoypad will not use multiple key shortcuts (uppercase shortcuts included) to get around this a button must be set to SHIFT, another to CTL, ETC

This tutorial is in large part based off of this video which provides most of the information on configuring qjoypad. [LinuxCNC with USB controller]


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited August 31, 2013 1:32 am by Nebk (diff)
Search:
Published under a Creative Commons License