Accelerator and brake pedal, Arcade, MAME, outrun
A base plate that ties together two common pedals to create a variable accelerator and brake combo into a USB plug and play controller.
Designed to work with a standard Arcade cabinet and can be unplugged and stowed when not in use. Works well with outrun. It returns variable accelerator and brake. It can also provide momentary switch output for games like time crisis.
You need two of these per controller
https://www.ebay.com.au/itm/204588237713
Code runs on an arduino leonardo, heavily inspired by this video which explains how it all works.
https://www.youtube.com/watch?v=HO6L_X6NUc0&t=2717s
The attached updated Throttle.ino file contains my arduino sketch which passes a accelerator and brake value from 0 - 1023, works well in outrun and other driving games.
It also returns two digital buttons in case you want a simple button press over an analogue value
A button = accelerator
B button = brake
In Mame it will register as an analogue value if you press the pedal gently (less than 50%) and a digital controller if you press it all the way when making the button assignment.
A pro micro or functional clone will work well but I used this one:
https://www.jaycar.com.au/leonardo-tiny-atmega32u4-main-board/p/XC4431
atmega32u4 is the important bit