The NEW Build Your Own Arcade Controls

Main => Main Forum => Topic started by: Scotty on May 02, 2020, 12:19:16 pm

Title: Question on hacking light switches for arcade parts
Post by: Scotty on May 02, 2020, 12:19:16 pm
Is there any reason a standard household (on/off) switch would not work if connected to a keyboard encode for a gear shifter for a game like Pole Position in Mame?   It just has the two position high/low joystick switch in Mame, so I can not see why it would not work.

Also, what about a dimmer switch connected to an analog encode for use as a paddle for games like Pong?

Title: Re: Question on hacking light switches for arcade parts
Post by: Titchgamer on May 02, 2020, 01:18:57 pm
Is there any reason a standard household (on/off) switch would not work if connected to a keyboard encode for a gear shifter for a game like Pole Position in Mame?   It just has the two position high/low joystick switch in Mame, so I can not see why it would not work.

Also, what about a dimmer switch connected to an analog encode for use as a paddle for games like Pong?
Theoretically you could use a 2 way light switch as a gear shifter switch but I am not sure why you would bother as lots of other types of 2 way switches out there that would do a better job.

As for the dimmer no. Its a variable resistor in essence you need something with a servo.
Title: Re: Question on hacking light switches for arcade parts
Post by: PL1 on May 02, 2020, 05:06:36 pm
Is there any reason a standard household (on/off) switch would not work if connected to a keyboard encode for a gear shifter for a game like Pole Position in Mame?   It just has the two position high/low joystick switch in Mame, so I can not see why it would not work.
Yes, Pole Position used a shifter with a single microswitch so a simple light switch would work assuming you use MAME v0.151 or newer or one of the dedicated builds that disable MAME's default toggle behavior for the gear change input.

               As of MAME v.151, the shifter toggle can be disabled in the game's individual cfg file!
                More info here:http://forum.arcadecontrols.com/index.php/topic,135345.msg1397466.html#msg1397466 (http://forum.arcadecontrols.com/index.php/topic,135345.msg1397466.html#msg1397466)

To work with games that had shifters with two microswitches, you could use a 3-way switch like S1 in this diagram.
- Connect your daisy-chained ground to the Common screw. (lower right)
- Connect one encoder input to the red Traveller wire screw. (upper left)
- Connect the other encoder input to the black Traveller wire screw. (upper right)

(https://ricardolevinsmorales.com/wp-content/uploads/2018/09/leviton-3-way-switch-wiring-diagram-decora-wiring-diagram-leviton-dimmer-wiring-diagram-3-way-new-light-funky-leviton-3-way-switch-10a.jpg)

Also, what about a dimmer switch connected to an analog encode for use as a paddle for games like Pong?
Theoretically, you could add a resistor to change the dimmer switch variable resistor (Atari paddle) into a half-range potentiometer, but the dimmer is very likely to have problems with jitter so it's probably not worth the effort.

(http://forum.arcadecontrols.com/index.php?action=dlattach;topic=142133.0;attach=326906)

IMHO it's better to use a high-quality, long-life potentiometer for this.


Scott