Main > Main Forum
Cheapest Keyboard Encoder
PL1:
--- Quote from: CoryBee on August 09, 2013, 02:50:39 pm ---To PL1, Ow....That hurt my head....and I have designed some tricky PCB designs before.....
Can I request one of your fancy pants diagrams to show how I can get the 22 inputs I need?
Cheers and as always thanks!
--- End quote ---
RandyT did the original great diagram that I've modified below. :notworthy:
For 22 inputs, the first 18 are wired like normal.
Orange dot = connection, no dot = no connection
Shazaaam! = HWB on AVR
19 is wired like X below. (Upper left) Button 19 not pushed = encoder input 19 passed to switch 21.
20 is wired like Y below. (Lower left) Button 20 not pushed = encoder input 20 passed to switch 22.
21 (shifted 19) is wired like Shazaaam! + X. (Upper right)
22 (shifted 20) is wired like Shazaaam! + Y. (Lower right)
You can add up to 18 more shifted buttons using this same method.
Scott
Maximus:
Is this any good? - 30 Inputs... $35 inc shipping
http://www.ebay.com/itm/USB-30-input-keyboard-Emulator-Encoder-/171075235552?pt=LH_DefaultDomain_0&hash=item27d4e0eee0
yotsuya:
--- Quote from: PL1 on August 09, 2013, 02:40:14 pm ---
--- Quote from: yotsuya on August 09, 2013, 02:17:53 pm ---I'd love a low-cost encoder that only did like 5 keystrokes for specific uses. Maybe I need to hack a 10-key pad.
--- End quote ---
Scott
--- End quote ---
Why wouldn't I be serious? I'm working on a project that would benefit from a keyboard encoder but I really don't need OMG 22, no 44 KEYSTROKEZZZZZ!!!!11!!! for $50 shipped when all I need is four total.
BadMouth:
--- Quote from: yotsuya on August 09, 2013, 04:13:09 pm ---Why wouldn't I be serious? I'm working on a project that would benefit from a keyboard encoder but I really don't need OMG 22, no 44 KEYSTROKEZZZZZ!!!!11!!! for $50 shipped when all I need is four total.
--- End quote ---
This is where the AVR would be great if it could be found as cheaply as it once was.
Once upon a time there was a UK dealer selling them for $4.
I think I paid around $20 for two of them from foundmy by the time shipping was added.
I plan to use them for the start, coin, view, exit, & radio buttons on my twin driving cab build.
I wanted something that would register as a keyboard for those few buttons because it makes navigating PC games easier.
There are probably other AVRs running the same chip that would work just as well as the minimus.
Someone else just needs to figure out what they are and test it. ;)
PL1:
--- Quote from: BadMouth on August 09, 2013, 03:07:09 pm ---
--- Quote from: CoryBee on August 09, 2013, 02:50:39 pm ---To PL1, Ow....That hurt my head....and I have designed some tricky PCB designs before.....
Can I request one of your fancy pants diagrams to show how I can get the 22 inputs I need?
Cheers and as always thanks!
--- End quote ---
If I understand correctly, the third switch registers as both the other switches being pressed.
Both switches aren't going to be tripped under any other circumstances because they are opposite directions on the same joystick.
(when you press P1 start, both UP and Down would register)
I guess the KADE firmware translates that into a different input, but you could also do this with any encoder and map it as a combo in MAME.
That would work for your purposes if the coin buttons were only going to be used in MAME.
The extra switch on the end (ESC) makes it more confusing, ignore it until you understand...then add it back.
--- End quote ---
You've got the idea behind the "impossible" combinations.
At this time ::) . . . the current release of the KADE firmware doesn't support them, only the older AVR firmware does.
Pressing the P1 Start button applies ground to both P1 Up and P1 Down which the firmware translates into a keystroke of "1".
Pressing the Cancel button applies ground to P1 Up, P1 Down, P2 Up, and P2 Down which the firmware translates into a keystroke of "Esc".
Scott