MAMEWorld >> Hardware
Previous thread Previous  View all threads Index   Threaded Mode Threaded  

Pages: 1

Tomu Breidah
No Problems, Only Solutions
Reged: 08/14/04
Posts: 6825
Loc: Neither here, nor there.
Send PM


Analog controls with an arcade controller board?
#392125 - 10/12/21 11:49 AM


I've seen a couple DIY/homemade controllers that have dual analog sticks that usually require an amount of programming/coding. But none with analog trigger controls.

I'm assuming such a set-up would mean there'd be 6 analog inputs.

Up and Down, Left and Right for the Left Stick (2)

Up and Down, Left and Right for the Right Stick (2)

Then a Left trigger (1)

And a Right trigger (1)

Are there any controller boards that would have connection terminals for such inputs?

Or would my best bet be to get something like an Arduino and... go from there?

-----------

What I'm wanting to make is something with a central board to have switches for the digital inputs/buttons to be wired to said board.

I'd essentially be replacing anything that has a rubber contact switch with a microswitch similar to an arcade controller. But I'd also want any of the analog controls to remain intact. Using parts like these...

https://www.amazon.com/dp/B01MY3PT76

or https://www.amazon.com/dp/B07R7736QH

and this for the triggers

https://www.amazon.com/Replacement-Trimm.../dp/B093LFL7R9/

To somehow be wired up to the board.

Or is that even possible?

Edited by Tomu Breidah (10/12/21 11:51 AM)



LEVEL-4



NaokiS
DSEM2 Fan
Reged: 08/24/21
Posts: 16
Send PM


Re: Analog controls with an arcade controller board? new [Re: Tomu Breidah]
#392131 - 10/12/21 07:48 PM


Not sure I've seen any analogue joystick like that. Sure, L and R on most controllers (especially GameCube ones) are analogue but not on the joystick trigger.

It sounds like it might be a custom job though.

If you make it yourself, I'd personally use something based around the Atmega32u4 (Arduino Mini, Leonardo, Teensy 2.0 or I think there's an Adafruit one too). There exists the Joystick library (https://github.com/MHeironimus/ArduinoJoystickLibrary) which makes converting analogue inputs to USB trivial, just read in the data and pass it to the library. It will do digital inputs too.



Tomu Breidah
No Problems, Only Solutions
Reged: 08/14/04
Posts: 6825
Loc: Neither here, nor there.
Send PM


Re: Analog controls with an arcade controller board? new [Re: NaokiS]
#392139 - 10/14/21 07:12 PM


> Not sure I've seen any analogue joystick like that. Sure, L and R on most controllers
> (especially GameCube ones) are analogue but not on the joystick trigger.
>
> It sounds like it might be a custom job though.
>
> If you make it yourself, I'd personally use something based around the Atmega32u4
> (Arduino Mini, Leonardo, Teensy 2.0 or I think there's an Adafruit one too). There
> exists the Joystick library (https://github.com/MHeironimus/ArduinoJoystickLibrary)
> which makes converting analogue inputs to USB trivial, just read in the data and pass
> it to the library. It will do digital inputs too.


I don't know why I finally thought to do this, but I searched for 'microswitch gamepad'

and this... Looks very interesting.

https://www.amazon.com/gp/product/B08J47Y4X4/ref=ox_sc_act_image_1?smid=A1F09YLIFN74DS&psc=1

Now I'd just need something that would equate to the analog triggers.

And yes. This would be a custom job. My idea (probably shouldn't post this, but what the hell - whatever makes it a reality) is to have a somewhat modular gamepad. The microswitches would be wired to the main control board (no large surface PCB like in normal gamepads). If something (particularly a button/switch) goes bad, I can just replace it by swapping it out. This seems more feasible than finding and ordering replacement rubber graphite contacts. And way more economical than replacing a whole gamepad.

In regards to analog triggers. I'm aware there are pots and hall effect sensors. Maybe the thing I linked to wouldn't work for that. Unless it'd require adding another board (such as an Arduino Mini). Or just going the route of an Atmega32u4 or any of the other things you suggested.

My goal is also a somewhat compact design, or at least not being bulky where one would hold it, and be more durable and/or fixable.


Edit: Okay. I see there are pins for R2 and L2, which would mean they're most likely digital and not analog. Hmm...

Edited by Tomu Breidah (10/14/21 07:19 PM)



LEVEL-4



NaokiS
DSEM2 Fan
Reged: 08/24/21
Posts: 16
Send PM


Re: Analog controls with an arcade controller board? new [Re: Tomu Breidah]
#392147 - 10/16/21 01:14 AM


That board you linked only has 4 analogue inputs for X and Y on the left and right joystick. There's nothing to say you *have* to use them for that purpose mind you, you could forgoe the right joystick and use the x and y for L and R.

Also, that board is pretty neat.. Gonna keep that on a list somewhere


Pages: 1

MAMEWorld >> Hardware
Previous thread Previous  View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  GatKong 
0 registered and 38 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 759