Comments (13)
After some experiments I've got it working on MAME with racing games and simulating an Force Feedback Wheel.
https://www.youtube.com/watch?v=NGUYPHisn0s
And then my psx shield died :(
Still need to figure out what's happened.
from psxnewlib.
That is very cool! Thanks a lot! I'm very busy at the moment, but I will hopefully get to merging this soon.
Can you contribute a short document on how to configure MAME for this?
Also, did you fix your shield?
from psxnewlib.
Sure I can.
But I still need to finish the plugin. I'm struggling with the language and pointers :(
MAME does not support force feedback directly but there's an plugin for it. I'm editing this plugin to add support for the jogcon.
I will let you know when i publish the plugin code (and the arduino code)
The shield is still dead. I can code the shield LEDs to turn on. Pins are ok - tested them with a multimeter.
It started to malfunction from time to time then it completely stopped working.
Any advice on testing it?
from psxnewlib.
If you happen to accidentally bend the connector, sometimes the pins will break in an almost unnoticeable way, try looking at them with a lens.
You can also check the solder joints of the MOSFETs.
from psxnewlib.
Hi.
Published my working on:
https://github.com/sonik-br/FFBArcadePluginJogCon
It's all there. Arduino sketch and MAME plugin.
For MAME you should read the FFBArcadePlugin readme.
In short it's just drop the plugin in MAME's folder and edit mame.ini.
Then edit mame.ini and configure it's OSD OUTPUT OPTIONS.
output windows
This will let MAME send FFB commands to the plugin.
On the plugin side you just need to edit the included FFBPlugin.ini and set the correct serial com port.
from psxnewlib.
Hi. Published my working on: https://github.com/sonik-br/FFBArcadePluginJogCon
It's all there. Arduino sketch and MAME plugin.
For MAME you should read the FFBArcadePlugin readme. In short it's just drop the plugin in MAME's folder and edit mame.ini. Then edit mame.ini and configure it's OSD OUTPUT OPTIONS.
output windows
This will let MAME send FFB commands to the plugin.
On the plugin side you just need to edit the included FFBPlugin.ini and set the correct serial com port.
Hi! This sounds really great. I already have a JogCon working as wheel/paddle/spinner using Sorgelig's JogConUSB code on an Arduino Micro, so trying your project seems quite straightforward.
I flashed your Arduino sketch with your patched PSX lib and the paddle/spinner modes seem to work (with FFB stops for the paddle mode). The wheel mode does not have FFB enabled (it does not self-center) but I understand that it is because it is expecting to receive FFB serial commands. I replaced the Mame FFB plugin by your patched version and put the Arduino's port in the .ini file. All seem to be set properly but I get no FFB effects at all. I've tried to monitor serial communication on the Arduino port while running some FFB-enabled mame games but there was nothing.
The regular FFB plugin was working fine with other controllers I have so Mame outputs seem to be working fine.
So, it seems that the patched FFB plugin is not sending FFB commands to the jogcon for some reason. I'm using mame 233 if this means anything. Do you have any clues on what may be happening?
from psxnewlib.
Hi!
Please test this app. It will send serial commands to the arduino.
Be aware that you need to press any button on the jogcon from time to time or it will disable the motor.
Let me know if it works.
from psxnewlib.
Hi!
Please test this app. It will send serial commands to the arduino.
Be aware that you need to press any button on the jogcon from time to time or it will disable the motor. Let me know if it works.
Thanks! This worked fine: the app connected to the proper port (the same i set in the FFB plugin ini file) and the FFB commands produced the expected effects.
So it seems that for some reason the FFB plugin is not sending the serial commands. Does it maybe need special permissions? I'm using Windows 7 by the way.
from psxnewlib.
Don't need any special permission.
Try enabling log output on FFB Arcade Plugin. It should have some logging for the serial com port.
from psxnewlib.
Ok, this is what the log looks like when playing Outrunners:
loading original library...
C:\Windows\system32\dinput8.dll
library loaded
openning serial port for Arduino/Jogcon
\\.\COM45
successfully opened serial port
creating ffb loop thread...
Before CreateThread
After CreateThread
In FFBLoop
in initialize
numJoysticks =
6
Joystick: 0 / Name: Nintendo RVL-CNT-01 / GUID: 030000007e0500000603000000000000
Joystick: 1 / Name: Motion Controller / GUID: 030000004c050000d503000000000000
Joystick: 2 / Name: Motion Controller / GUID: 030000004c050000d503000000000000
Joystick: 3 / Name: Motion Controller / GUID: 030000004c050000d503000000000000
Joystick: 4 / Name: SparkFun Pro Micro / GUID: 030000004f1b00000492000000000000
Joystick: 5 / Name: vJoy Device / GUID: 0300000034120000adbe000000000000
No haptic joystick found, selecting first joystick matching the GUID: 4 / Name: SparkFun Pro Micro / GUID: 030000004f1b00000492000000000000
disabling all current FFB effects
setting haptic gain to 100
setting haptic auto center to 0
creating base effects...
Initialize() complete
Setting DefaultCentering & DefaultFriction forces...
Entering Game's FFBLoop loop
RomName = orunners
RunningFFB = RacingActive1
P1 value:
0
P2 value:
0
P1 value:
1
Doing sine...
P1 value:
1
P1 value:
1
P1 value:
1
P1 value:
1
P1 value:
1
P1 value:
1
P1 value:
1
Doing sine...
P1 value:
1
Doing sine...
Doing sine...
Doing sine...
Doing sine...
Doing sine...
Doing sine...
P1 value:
0
P1 value:
0
P1 value:
0
P1 value:
0
P1 value:
0
P1 value:
0
P1 value:
0
from psxnewlib.
Try with only the arduino connected. Remove all other joysticks.
Also, I have not tested this game. I 've got it working on SF Rush and Virtua Racing.
from psxnewlib.
Got it working with SF Rush. Thanks!
For the other games, the problem was that I was not using the correct versions. For instance, for Out Run only the deluxe sitdown version has FFB.
I also tried other Jogcon compatible controllers (not Namco's), such as the Logic3 topdrive reactor, and the driving feeling and FFB is even better. Great!
from psxnewlib.
Yeah. on VR you have to enter the service menu and set it as deluxe cab I think.
Done this project for fun. The Jogcon is not a great controller to play those arcade games.
If you want to use common FFB wheels I recommend to use a newer version of the FFB Plugin (from Boomslang). Mine is outdated.
Also check the official thread.
from psxnewlib.
Related Issues (20)
- Namco Volume Controller SLPH-00015 and 3.3V Arduinos support HOT 16
- Hardware SPI on Leonardo HOT 16
- Trying for most part of 2 days to get this working HOT 5
- Analog Dualshock controller (SCPH-1200) gives type "Guitar Hero". HOT 4
- Wireless Controller keeps disconneting HOT 8
- Multitap (devel branch) HOT 6
- Support for more boards HOT 16
- Generic controller not working HOT 3
- enableAnalogSticks not working HOT 5
- Library cannot compile for RP2040 devices HOT 3
- SCPH-1150 rumble HOT 4
- Seeking compatibility with Steering Wheel Madcatz Dual Force HOT 7
- Controller features detection HOT 1
- Agetec Bass Landing Fishing Controller SLUH-00063
- Multitap buttonPressed HOT 2
- A0 and A1 as OUTPUT for button press???????? HOT 3
- Joystick_ does note name a type; did you mean 'Joystick'? HOT 3
- Guncon support HOT 47
- PS1 Densha de Go controller one-handle version TCPP-20001 support HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psxnewlib.