Skip to content

sonik-br/GunconDuino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GunconDuino

PS1 Guncon controller as a Mouse or Joystick via Arduino Leonardo

Attention! Project updated on august 2021. It now uses the Leonardo's ICSP header and proper 3.3 volts.

If you want to use the guncon on the MiSTer, this code will not work. Check out my other project, the RetroZordAdapter. It also supports a lot more accessories.
If you already built a GunconDuino adapter and want to use on MiSTer you can use the new code from RetroZordAdapter. Pins are the same except the ATT pin. Check the documentation before using.

This is a work in progress project. It works as it is but I can't provide support. Use at you own risk.

See it in action https://www.youtube.com/watch?v=45CCB9uxqrk

PlayStation accessories works in 3.3v. You will need a voltage regulator and a level shifter.

I strongly recommend to use this shield

shield

If not using the shield then connect it this way:

controller pinout wiring leonardo icsp header

Before using it you will need the to install the libraries PsxNewLib and ArduinoJoystickLibrary.

This only works on a CRT at sd resolutions (15K)

It was tested with an oficial namco guncon and with a 3rd party one. Oficial guncon works perfectly. With my 3rd party gun the readings are not correct. I still need to try to fix this.

Usage

The adapter is also compatible with ps1/ps2 dualshock controllers. It's useful to use a controller when mapping the inputs on a emulator, then swap it for the guncon to play.

When connecting it to a PC it will be in a not enabled state. It will not report any mouse or joystick movement. It's possible to enabe it as a mouse or as a joystick:

Guncon DualShock Mode
Trigger Circle Mouse
A (Left side) Start Joystick

If need to disable it, point the gun outside of the screen and press A + B + Trigger.

The guncon needs to "scan" the entire screen before it can properly send the coorinates. Just point it at the screen and move slowly from side to side and top to botom. It's recommended to use a full screen white image when doing this.

Buttons are mapped as follows:

Guncon DualShock Mouse Joystick
Trigger Circle Left button Button 1
A (Left side) Start Right button Button 2
B (Right side) Cross Middle button Button 3

Credits

This piece of software would not be possible without the amazing PsxNewLib by SukkoPera.

It also uses a modified version of absmouse by jonathanedgecombe .

ArduinoJoystickLibrary by MHeironimus.

PS controller pinout by curiousinventor.

About

PS1 Guncon controller as a Mouse via Arduino

Topics

Resources

License

Stars

Watchers

Forks

Languages