Mike's Forums

Versatronics RV series Pick & Place machines => RV Hardware => Topic started by: Mike on August 27, 2010, 01:12:16 AM

Title: Using a PC joystick for setup
Post by: Mike on August 27, 2010, 01:12:16 AM
Anyone who'se set up an RV will know that using the mouse to move the head around when setting up is a major PITA as you have to keep looking at the screen instead of the head.

I had a play with a cheap USB PC gamepad (About a fiver on Ebay) , and a utility called AutoHotkey to make this process somewhat quicker by assigning pad buttons to the movement arrow and speed buttons.
(http://electricstuff.co.uk/forumfiles/P1030109.jpg)
(http://electricstuff.co.uk/forumfiles/P1030107.jpg)

I've only tried this under Win98SE - As I recall win95 doesn't really do USB properly...
Make sure the joystick/pad you get has at least all the buttons shown above.
Download and install Auto Hotkey (http://www.autohotkey.com/)
Install joystick driver (mine came with a CD - I installed this before plugging the pad in, but it may be that Windows already has generic drivers for it so may be worth trying without the CD first).
Check that the joystick works using The "Gaming controllers" bit of Windows' Control panel  You may need to install DirectX to get this working.
Once you have confirmed its working, download and run This AutoHotkey (.ahk) script file (http://electricstuff.co.uk/forumfiles/placepad.ahk). (Right-click and do "save as..")
When you've confirmed it works, copy the script file into your Programs/start group to make it run automatically at startup

Whenever the RV Place 'move' dialog is displayed, the joypad buttons will now do everything you need to set up a position without taking your eyes off the machine!





Title: Re: Using a PC joystick for setup
Post by: Mike on January 20, 2011, 06:34:40 PM
BTW the settings in the file above don't work if Windows display settings are  in 'large fonts' mode, however RV Place's screen redraw issues seem subjectively worse in this mode anyway so probably not an issue..!
Title: Re: Using a PC joystick for setup
Post by: phonoplug on October 23, 2011, 06:55:59 PM
Actually got round to trying this today, having bought the gamepad some 6 months ago!

Thanks Mike - very helpful!
Title: Re: Using a PC joystick for setup
Post by: P968CS on June 28, 2013, 07:14:44 PM
Hi Mike

What version of Autohotkey are you using? I've installed 1.1.03, the oldest I can find on the web, but get the message that it requires a newer version of Windows to run. I'm obviously running Win 98Se on the versatronics PC.

Cheers

Clive
Title: Re: Using a PC joystick for setup
Post by: Mike on June 29, 2013, 10:46:50 AM
I use 1.0.48.05.
I've put a copy here http://electricstuff.co.uk/forumfiles/AutoHotkey104805_Install.exe
Title: Re: Using a PC joystick for setup
Post by: SteveW on May 31, 2014, 09:03:49 PM
I've finally got round to trying this. Blooming excellent, thanks, Mike!
Title: Re: Using a PC joystick for setup
Post by: Mike on September 24, 2015, 06:06:30 PM
Minor update  - I got tired of all the down-clicking to move down to set feeder biases.
The left-hand rear down button now sets down increment to 50, clicks down 28 times to put it about 3mm above the tape, , then resets it to 10 for fine adjust.

TAKE CARE NOT TO PRESS IT TWICE!!!!!!
Title: Re: Using a PC joystick for setup
Post by: Jason on September 24, 2015, 06:45:33 PM
I always use the auto-height and have had no problems with it.
Title: Re: Using a PC joystick for setup
Post by: Mike on September 24, 2015, 07:22:27 PM
I don't think I've ever tried that....

I tend to find that x/y tweaks are often necessary- not sure if it retains offsets from when it auto-adjusts the pick position.

Title: Re: Using a PC joystick for setup
Post by: alanambrose on January 19, 2018, 05:10:58 PM
Nice, for the record with this:

NEW USB 2.0 Wired Game Controller Gamepad Joypad for Laptop PC Computer Black UK

https://www.ebay.co.uk/itm/NEW-USB-2-0-Wired-Game-Controller-Gamepad-Joypad-for-Laptop-PC-Computer-Black-UK/272870223237?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649 (https://www.ebay.co.uk/itm/NEW-USB-2-0-Wired-Game-Controller-Gamepad-Joypad-for-Laptop-PC-Computer-Black-UK/272870223237?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649)

from eBay seller 'tulip63', it picked up the drivers from the standard Win98 install and worked plug-and-play out of the blocks. Very good :)
Title: Re: Using a PC joystick for setup
Post by: trev on January 20, 2018, 01:49:14 PM
Great timing, many thanks. Just what I needed.
Title: Re: Using a PC joystick for setup
Post by: trev on January 28, 2019, 02:13:51 PM
I actually managed to use the joystick with my upgraded win98 amachine with some passive feeders. Made such a difference!

Thanks again for this.

Trev