Main > Main Forum
Cheapest Keyboard Encoder
<< < (4/8) > >>
PL1:

--- Quote from: CoryBee on August 09, 2013, 12:30:11 pm ---So here is my dilemma, I need 4 encoders and am tired of hacking so many gamepads. Groovy game has the eco-wiz for 25 but that puts me at 100 bucks before shipping which I don't like the sound of......

There aren't enough inputs for one of these guys or I would go with that. If I understand correctly it has 21 inputs? Degenatron's video says it has 22 but that is probably a typo. 22 is enough, 24 is preferable. 21 is not enough so ---steaming pile of meadow muffin---....

--- End quote ---
You're going to solder either way, only difference is the size of the pad.

The AVR video is from his earliest prototype before he changed a few things around for greater versatility IIRC.

Newer AVR Encoder and KADE firmwares are configured like this.

24 Pins
--------
20 Dedicated inputs (all of which are usable as shifted functions)
1 Hardware Button (HWB) input for "shifted" functions (like P1 Start on IPac or the Shazaaam! on KeyWiz)
1 Reset
1 5v supply
1 Ground

To make 22 inputs (20 dedicated, 2 shifted) with the current KADE firmware:
- Wire 18 dedicated inputs straight from button to input
- Wire the other two inputs (19, 20) "backward" with the COM terminal connected to the encoder input, the NO connected to ground and the NC terminal going to buttons 21 and 22.
- For Button 21 (shifted 19), connect the wires from the NC terminal on 19 and HWB using one diode on each line as shown in the diagram linked above.
- For Button 22 (shifted 20), connect the wires from the NC terminal on 20 and HWB using one diode on each line as shown in the diagram linked above.
NOTE: If you leave out the diodes, pressing button 21 will also give you 22 because they are both tied to HWB

To make 25 inputs using the older AVR firmware, wire the 8 joystick inputs like this and wire the other 12 inputs direct:


One easy way to make a removable harness like the Xin-Mo is to solder on two 12 pin headers and buy 6 of these 4-pin pre-crimped .187" harnesses from Paradise along with a daisy chain.
 


--- Quote from: CoryBee on August 09, 2013, 01:35:35 pm ---Only wish the minimus was 22 inputs...I can make due with that. But 21?! You are just messing with me now :(

--- End quote ---
You can have up to 40 inputs (20 dedicated, 20 shifted) with current KADE firmware.

You can have 25 inputs using the older AVR firmware if the joysticks are wired like above.

Nobody's messing with you -- follow the directions I posted and it will work.

LMK if you have any questions.


Scott

EDIT: Since other links to AVR sources were requested, try here or here.
yotsuya:
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.
PL1:

--- 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
CoryBee:
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!
BadMouth:

--- 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.
Navigation
Message Index
Next page
Previous page

Go to full version