Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Which keyboard encoder?  (Read 4817 times)

0 Members and 1 Guest are viewing this topic.

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Which keyboard encoder?
« on: August 06, 2004, 04:18:03 pm »
I am building a control panel for a friend with 44 inputs.
Which would be the best (read: cheapest) keyboard encoder to use?

I've done a keyboard hack, so I know the value of having a common ground...

Having a matrix encoder would be fine as long as it has remappable inputs. (so I can wire it up any way convinent.)

I'm concerned about the prices though.  $40 is a little more than he wants to spend...

My cat is giving me a strange look, so I better hurry up and post this. :o

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re:Which keyboard encoder?
« Reply #1 on: August 06, 2004, 04:34:37 pm »
I think you're pretty much out of luck in that price range.

The easiest (read: not a big hassle to connect) :) route to go would be an I-pac 4.

It's all screw terminals, has enough inputs for the 44 connections you want, is fully programmable, and is worth every penny of the money you will spend on it.

Ghoward

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 449
  • Last login:July 09, 2021, 10:45:22 pm
  • Mame rocks!!
Re:Which keyboard encoder?
« Reply #2 on: August 06, 2004, 05:52:33 pm »
I have to agree IPac4 is the way to go. I've built 2 machines and I used them on both with no problems.

Gary

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:Which keyboard encoder?
« Reply #3 on: August 06, 2004, 06:33:36 pm »
Don't expect to get a keyboard encoder that does 44 inputs for $40 or less...

spriggy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:January 28, 2024, 09:45:27 pm
Re:Which keyboard encoder?
« Reply #4 on: August 06, 2004, 06:36:27 pm »
There's an echo in this place....
I-Pac4.

2 years of button smashing testing, and still no problems with it.

"Once a Knight, always a Knight.   Twice a night.. and your doing alright!!" ::)

Bgnome

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 466
  • Last login:January 10, 2005, 04:05:16 pm
  • Who's da gnome?
Re:Which keyboard encoder?
« Reply #5 on: August 06, 2004, 06:51:33 pm »
unfortunately the I-PAC4 is gonna cost at least $77 after shipping.  that is a considerable amount above $40.  you really have to bend your budget around this one.  you have to realize that the CP is probably one of the more important aspects of the project and it is the encoder that makes the CP.

I am also planning on building a 4 player CP and have given this A LOT of thought.  There are several possibilities.

as mentioned, this is the nicest solution available but it will cost about twice what you want to pay.

my original plan was to use 4 digital psx pads and a lpt1 interface i had made.  it allows for 1 joystick and 10 buttons a piece which totals to 56 inputs, (same as I-PAC4).  unfortunately, although being fairly cheap for me (~$20 or so total), when i tested it, it was too much of a load on my old cpu.  i can barely run the games i want on my pII but this thing slowed it down too much.  i can sell this setup if someone is interested..

my next attempt was to look at a keyboard hack.  the one i got ended up blocking after 8 simultaneous inputs.  i believe that a keyboard hack is still the absolute cheapest way to go.  period.

now most people will say it is completely unworth your time and effort to attempt a keyboard hack now that very nice encoders are available for ~$30.  these options basically are the keywiz, with 32 simultaneous inputs, the IPAC-VE, also with 32 simultaneous inputs, or the mini-pac, with 28 simultaneous inputs at the moment.  obviously, none of these actually meets your requirement of 44, but there are ways to work with that.  For example, if you do not require all 44 to have simlultaneous inputs, you can use the Shazaam function on the keywiz.  you can also use the shift function on the IPAC-VE and the mini-pac.  there is a way to wire it so that the shifted function only requires one button press, but remember that any of these buttons are pressed, all other buttons will be shifted also.

if the shift/shazam thing doesnt work for you, consider adding a keyboard hack along with an encoder.  the mini-pac has an active passthrough for a PS/2 keyboard which you can hack for the necessary inputs.  this is the path i have settled on at the moment..

i have recently found another possible option for 40+ inputs for <$40.  if this ends up working, i will definitely post it..

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #6 on: August 06, 2004, 07:02:18 pm »
$80 is way too much for me. :(
$40 for a matrix KB encoder, but it doesn't even prevent ghosting!

Looks like its gonna be a $0.50 keyboard hack for me. :-\

I better stock up on diodes...

Bgnome

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 466
  • Last login:January 10, 2005, 04:05:16 pm
  • Who's da gnome?
Re:Which keyboard encoder?
« Reply #7 on: August 06, 2004, 07:33:36 pm »
what keyboards do you get for 50 cents and do the diodes actually improve function?

and which matrix kb encoder?

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #8 on: August 06, 2004, 07:55:33 pm »
I get keyboards at garage sales, good will, church sales etc...
The diodes work great.  I haven't noticed a single problem on my 2 joystick + 19 button cabinet.

I was referring to the KE-18.  At $40, it's the only one I considered, but it doesn't have remappable keys and doesn't avoid ghosting.

Bgnome

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 466
  • Last login:January 10, 2005, 04:05:16 pm
  • Who's da gnome?
Re:Which keyboard encoder?
« Reply #9 on: August 08, 2004, 08:37:45 pm »
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&rd=1&item=6112252696
$40.50 shipped for a custom made kb encoder with 64 simultaneous inputs!  not programmable and actually comes with an AT connector instead of a ps/2 connector, but for 64 inputs, i'm not complaining..
i will post a review once i get it and wire it in..

here is the email i got from him after asking him some pertinent questions about the item:
Quote
Dear

Unlike other encoders on the market, this board was designed deliberately to
be used in high end Vegas type gambling devices where there is no room for
error.  This encoder does not "ghost" or miss any key stroke.  I wrote the code
on the PIC processor myself and had to include a TON of special routines to
insure that things like this did not occur in order to meet Nevada Gaming
regulations.  This board does NOT use a "keyboard chip" like other encoders do,
instead it has custom software written specifically for use in the gaming
environment.

Once you press a key, the encoder will send the make code (scan code) to the
PC only once.  If you hold the key down, it will NOT repeat the key scan code
(typematic mode, like on a regular PC keyboard).  The break code (0xF0 + the
scan code) is sent once the key is released.

Every key can be pressed at the same time without overrunning the keyboard
buffer in the PC.  This is because each input sends the make code once as
opposed to regular keyboard encoders which send the data for each key over and
over
until it overflows the keyboard buffer.  The order for which the key data is
sent is dependent upon which key is pressed first, and is prioritized
accordingly (this was one of the major requirements of the Nevada Gaming
Commission).  
The priority encoder section of the software will always select keys on CN1
first since in the original application this was designated as the
COIN/BILL/CREDIT/HOPPER input connector.
All other switch inputs have equal scan timing and are encoded in the order
in which they are closed.

On regular PC keyboards, if you press a key and hold it down, then press
another key, the PC will automatically switch from the first key pressed to the
next key pressed.  This is a "typewriter effect" and was intended to improve
typing skills on the keyboard.  This encoder does not do this and will allow as
many key entries one after the other as needed.  For example, if you move the
joystick to the right then press the FIRE button, the encoder will not "cancel"
the right move and only go with the FIRE button (you can try this on a
regular PC keyboard to see this effect).

Some of the encoders on the market are made using the "wedge" technique.  
This technique "wedges" key codes into the keyboard communications lines without

actually interpreting the data on the data and clock lines.  This technique
requires the use of a regular keyboard along with the encoder since the encoder
does not have a command interpreter.  The 64-key encoder is NOT a wedge device
and does contain all the keyboard command interpreters.  This will allow you
to boot your PC with only the encoder connected without getting "hung up" at
"keyboard not found" errors.  The encoder will also respond to all of the PC's
"wait" commands, which are transparent to the user, but are necessary to
prevent untimely data to be sent to the PC from the keyboard and prevent
misinterpreted keystrokes or buffer overflow.

This encoder is not a matrix-driven device.  It has 64 individual inputs
(single line to GROUND).  No special "matrix" wiring required.  Since it does
not
use a commercial keyboard encoder chip, issues such as blocking and ghosting
have been seriously addressed (as mentioned earlier) due to the absolute
professional original application for the board.

I have 74 of these boards in my stock.  There were about 40,000 of these sold
to various manufacturers OEM in the gaming industry.  This board was
designed, built and sold long before MAME, and now it's a rare find to get hold
of one
of these.  I still design such devices, but only for OEM manufacturers (not
for MAME users).

Spike Tsasmali,
Lupine Systems
http://www.lupinesystems.com
WolfmanSpike on Ebay
It's a WOLF Thing!

Return-Path: <******************>
Date: Sun, 1 Aug 2004 20:29:02 -0700
From: ******************
Reply-To: ********************
To: ******************
Subject: Question for item #6111001313 - 64-KEY KEYBOARD ENCODER FOR MAME
PROJECTS
X-eBay-MailTracker: 10023.347.0.1

Dear wolfmanspike,

I noticed that you mentioned that one could use this encoder for MAME.  Sine
I am unfamiliar with it and cannot fond much info about it, I have a couple
questions.
I understand some encoders still have ghosting/blocking issues like normal
keyboards.  Does this encoder operate by scanning a matrix and would it exhibit
such problems?  When you say the buffer can handle all the keys simultaneously
but the keystroke is only sent once, does the computer still register each
and all individual keystrokes at the same time?  Basically I would like to know
if one could press and hold all 64 keys at the same time and still have them
all register with the computer.
Also, you said no extra keyboard is required.  I only have a simple
understanding of how these things work so is it safe to assume that this will be

recognized as a normal keyboard in any computer that is ps/2 compatible, (with
the
AT>PS/2 adapter I presume)?

Thank you for your time and understanding.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re:Which keyboard encoder?
« Reply #10 on: August 08, 2004, 10:48:23 pm »
Ok dude.

If you or your friend is building a 4 player machine and the cost of the encoder is an issue, well then that is idiocy. How much do you plan on spending on the rest of it? I have done countless machines and keyboard and joystick hacks are a waste of time. Get real encoders.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

Nannuu

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 992
  • Last login:May 23, 2022, 11:55:21 pm
  • Anytime now, I'll start my cabinet
    • Will and Liliana's Projects and Family Photos
Re:Which keyboard encoder?
« Reply #11 on: August 09, 2004, 12:36:52 am »
Dang, Paige beat me to it.  What he said.
Next I'll be on fries, and that's when the big money starts rolling in.

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #12 on: August 09, 2004, 01:15:31 am »
Ok dude.

If you or your friend is building a 4 player machine and the cost of the encoder is an issue, well then that is idiocy. How much do you plan on spending on the rest of it? I have done countless machines and keyboard and joystick hacks are a waste of time. Get real encoders.
The controls barely cost $20 (ebay), and I had the wood laying around.  It's just a control panel, not a cabinet, so the cost so far has been very cheep (like me ;D )

I'm not about to spend 4 times the cost of the rest of the panel just for an encoder.

ThePaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 91
  • Last login:August 07, 2008, 02:57:16 pm
  • The Second to The Last Star Fighter
Re:Which keyboard encoder?
« Reply #13 on: August 09, 2004, 02:28:31 am »
Budget and BYOAC don't exactly go together...

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #14 on: August 09, 2004, 01:15:27 pm »
Strange...I built my 2 player upright cabinet for less than $100.

Cheap controls from ebay...
Free P133 from a friend...
Old monitor I had laying around...
Keyboard hack...

The only thing I really paid full price for was the particle board.

JustMichael

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1438
  • Last login:September 27, 2015, 01:19:40 am
  • Mmmmm!! Cheesecake!!
Re:Which keyboard encoder?
« Reply #15 on: August 09, 2004, 01:24:42 pm »
Yes keyboard hacks are cheap BUT most keyboards won't give great results for a 2 or more player cabinet.  I guess you could buy 4 cheap USB keyboards then and hack them but I don't recommend it.  You can always wait and save up some more money though...

ThePaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 91
  • Last login:August 07, 2008, 02:57:16 pm
  • The Second to The Last Star Fighter
Re:Which keyboard encoder?
« Reply #16 on: August 09, 2004, 02:24:13 pm »
Strange...I built my 2 player upright cabinet for less than $100.

Cheap controls from ebay...
Free P133 from a friend...
Old monitor I had laying around...
Keyboard hack...

The only thing I really paid full price for was the particle board.


An entire working cab for < $100  ?

got any pics?

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #17 on: August 09, 2004, 02:43:39 pm »

Here's a control panel closeup

Yeah, the first pic is crappy, but I will have my web site up and running soon with more pics.

patrickl

  • I cannot know for certain which will be tastiest
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4614
  • Last login:August 27, 2021, 09:25:30 am
  • Yo momma llama
    • PocketGalaga
Re:Which keyboard encoder?
« Reply #18 on: August 09, 2004, 03:12:45 pm »
I guess my cab will cost $0. Since after I bought all the stuff I need for it I now just have it "lying around". So it will cost me nothing to build a cab from it  ::)
This signature is intentionally left blank

ThePaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 91
  • Last login:August 07, 2008, 02:57:16 pm
  • The Second to The Last Star Fighter
Re:Which keyboard encoder?
« Reply #19 on: August 09, 2004, 03:20:50 pm »
I guess I'm doing something wrong... my trackball and mounting plate cost as much as your entire cab.

I just don't see any way around the IPAC 4 for what you are asking though.

electricd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:February 14, 2025, 07:59:10 pm
  • I'm not a llama!
Re:Which keyboard encoder?
« Reply #20 on: August 09, 2004, 03:42:36 pm »
Quote
I guess I'm doing something wrong... my trackball and mounting plate cost as much as your entire cab.

I second that!  I bought most of my parts directly from Happ (trackball, buttons, sticks, monitor, coindoor, etc), plus an IPAC4, OptiPAC, and Oscar's Spinner!  I think I have about $1600 in my cab, but I wouldn't change any of it.  You get what you pay for some of the time, and I believe that when it comes to a cabinent you plan on spending a lifetime playing, you really can't go cheap!

ED7

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #21 on: August 09, 2004, 03:54:26 pm »
One thing I think is a complete waste is the opti-pac.
Sure, it's well made and works great, but a mouse hack is soooo much cheaper.

Unless you don't know which end of a soldering iron to hold (go ahead, guess ;) ;D )
you should do a mouse hack.

As for my project, if I can't find a cheap encoder on ebay, I might just end up making an encoder myself.

electricd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:February 14, 2025, 07:59:10 pm
  • I'm not a llama!
Re:Which keyboard encoder?
« Reply #22 on: August 09, 2004, 03:58:31 pm »
Quote
Sure, it's well made and works great, but a mouse hack is soooo much cheaper.

Well at the time I built my cabinet, I was told it was the best/easiest way to get the trackball and spinner control hooked up.  I have to agree that it is VERY simple to setup and I haven't had a bit of trouble with it.  I do now, however, agree that a mouse hack would have definately been cheaper!  Either way, the optipac mounted next to the ipac4 looks cool in my cab!

ED7

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #23 on: August 09, 2004, 04:12:06 pm »
The optipac mounted next to the ipac4 looks cool in my cab!
So take the mouse out of its case and mount the board next to it.

Or take useless scraps of circuit board and mount those in the cab.  No one will know but you......... ;D

electricd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:February 14, 2025, 07:59:10 pm
  • I'm not a llama!
Re:Which keyboard encoder?
« Reply #24 on: August 09, 2004, 04:24:25 pm »
But knowing is half the battle! :)

Trimoor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 596
  • Last login:November 18, 2006, 09:01:46 pm
  • I like shooting out of helicopters.
    • Trimoor
Re:Which keyboard encoder?
« Reply #25 on: August 09, 2004, 04:34:51 pm »
But knowing is half the battle! :)
So just bang your head against the wall untill you can't remember.
Problem solved! ;D

greenacarina

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 06, 2013, 09:20:13 pm
  • glutton for punishment
Re:Which keyboard encoder?
« Reply #26 on: August 09, 2004, 05:16:16 pm »
OK....I'm finally getting my cab together (2 player cocktail). I was going to do the keyboard hack, but decided to step up and do it right.  I'm debating between the econo-Ipac and the mini-pac. Any thoughts as to which one is "better"???
Thanks!
Chris

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re:Which keyboard encoder?
« Reply #27 on: August 09, 2004, 06:26:31 pm »
It depends what you want.
The minipac has optical support, the I-pac doesn't.

I would vote for the I-pac, and then add an Oscar USB mouse hack for the trackball/spinners.

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re:Which keyboard encoder?
« Reply #28 on: August 09, 2004, 06:30:58 pm »
One thing I think is a complete waste is the opti-pac.
Sure, it's well made and works great, but a mouse hack is soooo much cheaper.

For MOST cabs I would agree with this.
I'm in the planning phase (read: trying to get my wife's junk out of my garage, so I have a place to work again) on a 3-P driving/2-P shooting cab that I will most likely be using an Opti-pac on.

That way I will only have ONE device to contend with at startup, config, etc...

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:Which keyboard encoder?
« Reply #29 on: August 19, 2004, 07:32:49 am »
One thing I think is a complete waste is the opti-pac.
Sure, it's well made and works great, but a mouse hack is soooo much cheaper.

Unless you don't know which end of a soldering iron to hold (go ahead, guess ;) ;D )
you should do a mouse hack.
Depends what you are doing.  The main advantage of the opti-pac is the auto-switching feature.  If you are only going to have a single spinner or trackball, then I agree a mouse hack will serve you better.  If you don't mind flipping a DPDT switch to select between trackball and spinner - a mouse hack will serve you better.  If you don't mind having your spinner active while you use the trackball, two mouse hacks (preferably with different ID strings or drivers) will work better.  But the main advantage of the opti-pac is you can have either the trackball or spinner available all the time, and whenever you move one, the other is disabled.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.