Gamoover

[move]Le staff Gamoover vous souhaite la bienvenue ;)

[Beta] - BackForceFeeder : feeder vJoy FFB pour racecabs

Démarré par njz3, Mardi 17 Mars 2020, 19:02:44 PM

hadeys

Hello, I've been having some issues with my PWM2Happ setup. I'm trying to connect my Happ active steering assembly directly to my PC, so I'm not using any additional arcade driver boards. I'm also using Aganyte's Sega FFB Controller Hack. I've tried to read on the forums about how to properly wire and configure the boards, but so far have run into two issues. Firstly, rotating the wheel causes all three (X, Y & Z) axes to change in value. Second, I cannot get the motor to respond to any force feedback effects. Here's the steps that I've taken so far;

Software Configuration
  • I've updated the Arduino Mega 2560 to version 20231227T002603Z-001 of the `SegaFFB + Pwm2m2 or Pwm2Happ` firmware
  • I've installed VJoy version 2.2.1
  • I've configured a new VJoy device with X, Y, Z axes 16 buttons continuous POV hat and all FFB effects enabled as shown in Gojirien's tutorial
  • I've installed BFF version 0.7.0.102 & obtained the license
  • I've configured my hardware in BFF with Target Hardware = "PWM_CENTERED", "Pin Mapping for FFB" = true, "Digital PWM" = true. Then I restarted the manager, committed EEPROM and reset.

Hardware Configuation
  • I only have one control connected to the Sega FFB Controller Hack, which is the 100k ohm pot of the Happ Active Steering Assembly
  • I've connected the 5v VCC pad and ground to the outer fixed terminals of the 100k ohm steering pot
  • I've connected the center sweeper terminal of the steering pot the the "Steering" pad (pin A0 of the Arduino)
  • I've connected the "tx" solder pad of the Sega FFB Controller Hack (pin D14 of the Arduino) to Rx0 of the PWM2Happ board, and I've connected the "-" solder pad (Ground) to the ground of the PWM2Happ board
  • I've connected a 24v 15A DC power supply to the "+" and "-" terminals of the PWM2Happ board and verified with my multimeter that it is getting the full 24v.
  • I've connected the "M+" and "M-" terminals of the PWM2Happ board to the leads of the Happ Active Steering Assembly's motor

When I rotate the wheel, I can see both in the VJoy driver software and in BFF that all 3 axes change in value, which doesn't seem correct. Additionally, I haven't been able to get the motor to respond to any FFB effects. I have tried running several different types of effects with Fedit, and though I can see that the effect is running through the BFF logs and diagnostics window, the motor does not turn.

Here's the BFF logs from one of my attempts at running a constant force feedback effect;
9:23:00 PM | IMPOR|    2.415718:[MAIN] Running as standard user, trying realtime priority
9:23:00 PM | IMPOR|    2.416239:[MAIN] Setting realtime priority failed, got: High
9:23:00 PM | IMPOR|    2.423637:[MANAGER] Program configured for FFB with vjoy
9:23:00 PM | IMPOR|    2.600328:[MANAGER] Changing control set for Default
9:23:01 PM | IMPOR|    3.646051:[MANAGER] Found io board on COM3 version=0.1.9.0 type=IO BOARD ON MEGA2560
9:23:01 PM | IMPOR|    3.646758:[MANAGER] Program configured for PWM_CENTERED
9:23:01 PM | IMPOR|    3.692763:[MANAGER] Initializing IO board
9:23:01 PM | IMPOR|    3.693070:[USBSerial] Performing IO board initialization
9:23:02 PM | IMPOR|    4.728377:[USBSerial] IO board initialization done
9:23:02 PM | INFOR|    4.728873:[MANAGER] Configuring IO board for pwmmode=5
9:23:02 PM | INFOR|    4.747261:[MANAGER] Configuring IO board for wheelmode=2
9:23:02 PM | INFOR|    4.764303:[MANAGER] Configuring IO board for pedalmode=5
9:23:02 PM | INFOR|    4.781562:[MANAGER] Configuring IO board for ffbcontrollermode=1
9:23:03 PM | INFOR|    4.826862:[MAMEOutputsAgent] Entering HiddenWindow Thread
9:23:03 PM | INFOR|    4.840597:[FFBMANAGER] [UNDEF] step 0   to [DEVICE_INIT] step 0
9:23:03 PM | INFOR|    4.844413:[FFBMANAGER] [DEVICE_INIT] step 0   to [DEVICE_RESET] step 0
9:23:03 PM | INFOR|    4.850877:[FFBMANAGER] [DEVICE_RESET] step 0   to [DEVICE_READY] step 0
9:26:04 PM | INFOR|  186.238677:[FFBMANAGER] [DEVICE_READY] step 0   to [DEVICE_RESET] step 0
9:26:04 PM | INFOR|  186.238736:[FFBMANAGER] [DEVICE_RESET] step 0   to [DEVICE_READY] step 0
9:26:04 PM | INFOR|  186.450447:[FFBMANAGER] [DEVICE_READY] step 0   to [DEVICE_RESET] step 0
9:26:04 PM | INFOR|  186.454243:[FFBMANAGER] [DEVICE_RESET] step 0   to [DEVICE_READY] step 0
9:26:05 PM | INFOR|  187.677784:[FFBMANAGER] [DEVICE_READY] step 0   to [DEVICE_RESET] step 0
9:26:05 PM | INFOR|  187.678902:[FFBMANAGER] [DEVICE_RESET] step 0   to [DEVICE_READY] step 0
9:26:19 PM | INFOR|  200.845773:[FFBMANAGER] [DEVICE_READY] step 0   to [DEVICE_RESET] step 0
9:26:19 PM | INFOR|  200.848578:[FFBMANAGER] [DEVICE_RESET] step 0   to [DEVICE_READY] step 0
9:26:22 PM | INFOR|  204.190546:[FFBMANAGER] [DEVICE_READY] step 0   to [DEVICE_EFFECT_RUNNING] step 0
9:26:36 PM | INFOR|  218.419004:[FFBMANAGER] All effects done
9:26:36 PM | INFOR|  218.419022:[FFBMANAGER] [DEVICE_EFFECT_RUNNING] step 0   to [DEVICE_READY] step 0
9:26:42 PM | INFOR|  224.353534:[FFBMANAGER] [DEVICE_READY] step 0   to [DEVICE_EFFECT_RUNNING] step 0
9:26:50 PM | INFOR|  232.037500:[FFBMANAGER] [DEVICE_EFFECT_RUNNING] step 0   to [DEVICE_RESET] step 0
9:26:50 PM | INFOR|  232.039369:[FFBMANAGER] [DEVICE_RESET] step 0   to [DEVICE_READY] step 0

Here's the wiring


BFF hardware config


VJoy showing the axes in different wheel positions (Centered, fully left, and fully right)




Any information or further debugging steps would be greatly appreciated. Thank you!

Aganyte

#961
Can you connect potentiometers on accel and brake ? (5 Kohms if possible).

Can you also test your motor directly with 24v power supply ?

hadeys

Thanks for the advice on connecting both pedals as well, that fixed the issues with the multiple axes changing together.

As far as the FFB and motor goes, I reconnected the motor back up with my old Immersion Force Feedback board that I was running it from previously. With the Immersion Force Feedback board and the same 24v 15a power supply, the force feedback effects are working correctly.

When I run any effects in Fedit using the PWM2Happ board, the voltage reads 0 across the M+ and M- terminals and the motor doesn't turn. I can see 24v DC on the High Power solder pads on the PWM2Happ board.

I tried running effects from both Fedit as well as from the M2 Emulator, both of which worked correctly when I tested them with the old Immersion board.

Aganyte

I can prepare a program for you to inject into the FFB controller which will request constant torques (for example 5 seconds on the right, then 5 seconds on the left). This should allow us to know if the problem is software or hardware. What do you say ?

hadeys


Aganyte


Tathan

Hello tout le monde,

En cherchant à optimiser mon setup, j'avais déjà eu l'occasion de remarquer que même minimisés, le BackForceFeederGUI consommait + de mémoire que le BFF.

Quand je mettais l'option "originale" du BFF qui consistait à démarrer l'outil en même temps que le PC, je tournais toujours autour des 45000K~70000K de mémoire.

Avec ce petit script qui lance le BFF en fond, je tourne plutôt autour des 12500~30000K.

Ce script est moins "pratique", car il ne fait même pas apparaître l'outil à l'écran, si vous voulez le fermer, il faut aller dans le Gestionnaire de Tâches. (Pas super pratique si vous êtes en train de faire des tests, et encore moins si vous êtes en train de monter une config)

Mais si vous le faites fonctionner au démarrage du PC avec lequel vous comptez jouer, il suffit de mettre ce script dans AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup et c'est, pour l'instant du moins, la solution la plus efficace que j'ai trouvé!

N'oubliez pas que pour pouvoir avoir la priorité "en temps réel", il faut que le raccourci auquel fait appel le script s'ouvre en tant qu'administrateur!

https://mega.nz/file/qepyATSD#TCI349WXQXaiSi7o7TX9a52fpmXn3XuKIgriYem9KUw

brentg

Hi All
Great bit of software!
I am waiting on the PWM2HAPP board so in the meantime am setting up all buttons and lights.

Cruisin USA conversion
Question on the H-Shifter.
4 gears - 4 switches all setup in backforcefeeder.
What good does the H4 shifter decoder do?  Is it any use to me?
Finally - for the Hi/Lo only games - how do I map that so low is 1st or 3rd (top of H shifter) and Hi is 2nd or 4th?
I read about turning toggle off in Mame game.cfg files but wondered if something could be done in backforcefeeder to get the same results.

Many thanks
Brent

Tibal

H4 shifter decoder is useful for 3 switch shifters, like in Sega cabs.
Useless to you if you have 4 switches.

For High/Low, I guess standard mapping is fine : when 1st or 3rd shift is held,  Low button is kept active. Same for 2nd/4th and High button. Toggle mode should be deactivated.


brentg

H4 decoder - leave it alone then :) thanks.  ^-

In Mame most hi/lo games just have a gear change button - one single - surely it will get out of sync if i was to map to all 4 buttons?

Thanks

Tibal

#970
Then just map all 4 switches to the same vjoy hi/lo button, and put a "hold time (ms)" of about 200 for all of them.
Edit : ...if each press toggles high or low. If maintaining is high and releasing is low (or the opposite) it's different

brentg

Am I missing something with the Keystroke emulation editor?



I do not have any controls to add, duplicate or close.  I have maximised the window and right clicked everywhere.
Makes it impossible to map multiple keys.

Thanks
Brent

njz3

You found a bug that was fixed a few days ago.
Please update the BFF to latest version on github.

brentg


Mgt1275

Hello
Je vais me bouger et (enfin) passer de la 6X a 7X j'ai vu ce message : "A noter: les fichiers de configuration sont compatibles avec la 0.6.x, aucune conversion nécessaire."

J'en déduis que  que le passage a la 7 est transparente pour la conf des jeux ? Ca me semble clair mais je préfère une confirmation vu le nombre de jeux et confs modifiées au fur et a mesure des heures de jeux XD

Merci par avance  :)

Greg
You TOKI to me ?

njz3

Non, malheureusement j'ai changé après la v0.7.0.79 (dispo sur github) afin d'introduire des noms de boutons.