Main > Lightguns |
DIY Pedals - Wiring / Interface Question? |
(1/2) > >> |
Fursphere:
I've got a pair of Sinden lights on my cabinet, and I've got them working with RetroArch and MAME. I picked up a pair of industrial foot pedals I'd like to get working for games like Time Crisis. I'm not sure how to go about wiring them up and interfacing them? I've got an extra IPAC-2 USB controller that I can use (seems like a waste for just two buttons, but I've already got it so whatever). Is there any particular keyboard keys I should map them too? Or just anything, and then just map them in game to "pedal" ? Feels too simple... thanks |
PL1:
--- Quote from: Fursphere on April 03, 2023, 05:04:43 pm ---I picked up a pair of industrial foot pedals I'd like to get working for games like Time Crisis. --- End quote --- To be clear, what electronic components do they use -- microswitches, potentiometers, or optos? --- Quote from: Fursphere on April 03, 2023, 05:04:43 pm ---I'm not sure how to go about wiring them up and interfacing them? I've got an extra IPAC-2 USB controller that I can use (seems like a waste for just two buttons, but I've already got it so whatever). --- End quote --- Wiring is easy. - Wire pedal microswitches the same way as microswitch arcade buttons. - Wire potentiometers as described here in the wiki. (You can't do this with an IPac.) - Wire optos with 5v, ground, Data A, and Data B. (You can do this with a 2015 or newer IPac.) Do you have an Arduino like a Pro Micro lying around? - With the right choice of firmware, it will work with any of the 3 types of pedal components mentioned above. --- Quote from: Fursphere on April 03, 2023, 05:04:43 pm ---Is there any particular keyboard keys I should map them too? Or just anything, and then just map them in game to "pedal" ? --- End quote --- Assuming that you have microswitch pedals, use keyboard keys that aren't used as MAME defaults. (B, E, H, M, N, etc.) --- Quote from: Fursphere on April 03, 2023, 05:04:43 pm ---Feels too simple... --- End quote --- It's not rocket surgery. ;) :lol Scott |
Fursphere:
Sorry, they are microswitch based. Have both NC and NO wiring options. (NO is what I'll be using) Thanks for the info (and the unused MAME key list). Very helpful! Now I just need a small project box. |
PL1:
--- Quote from: Fursphere on April 03, 2023, 07:17:54 pm ---they are microswitch based. Have both NC and NO wiring options. (NO is what I'll be using) --- End quote --- You've got it. ;D One other possibility to consider: Is there already an encoder in your setup for joysticks/buttons/admin buttons or are the only controls the two guns? - If you already have an encoder in your setup, you can either connect the pedals to unused inputs or piggyback the pedals on rarely-used inputs like P1B6 and P2B6. --- Quote from: Fursphere on April 03, 2023, 07:17:54 pm ---Thanks for the info (and the unused MAME key list). Very helpful! --- End quote --- Glad to assist. :cheers: Scott |
bandicoot:
I use this code https://github.com/crankyoldgit/mame-ipac-emulator with a pro micro and edit it to have "B" and "N" key that not interfer emulator i 've 3d print this https://www.thingiverse.com/thing:5022017 and buy two pedals from alixpress from here https://fr.aliexpress.com/item/1005001399341850.html |
Navigation |
Message Index |
Next page |