ranenbg / Arduino-FFB-wheel

Stand-alone DirectInput USB device recognized in Windows as a joystick with force feedback functionality, based on BRWheel by Fernando Igor from 2017.
155 stars 21 forks source link

Force feedback stops working #36

Closed Matteo2607 closed 10 months ago

Matteo2607 commented 10 months ago

I encountered a problem while using the software. When I connect the Arduino and start playing everything is ok, but as soon as I hit a curb, or a sudden change of direction or in any case a rapid variation, the force feedback stops working. The peculiar thing is that only the force feedback stops working, while the encoder and pedals continue to work, but to solve the problem I have to disconnect and reconnect the Arduino, which is a problem in the race. Is there any parameter I can change to fix the problem? or some other firmware version to use? I currently use 200a.hex the configuration is as follows: Bts7960 arduino leonardo 24v 500w dc motor encoder 1024ppr

ranenbg commented 10 months ago

Hi, that seems wierd, I didn't come across such issue. Which game is it?

Firmware v200a is not the lattest, give it a try with v220a.

Matteo2607 commented 10 months ago

the problem occurred on the assetto corsa and assetto corsa competizione . trying to do right left quickly in the gui I encountered the same problem. Now I will try with the 220a. And I make a video with the problem.

ranenbg commented 10 months ago

You have to be very careful with such a powerful motor. It has a big back EMF, it can easily generate voltage above 27V when spinnig it quickly, which is dangerous for bts. You may want to look into some brake resistor circuits.

If the problem is from the firmware side, I can have a look, I have asseto corsa. Also, make sure to put 3.3k or even down to 1k pullup resitors on encoder lines A and B, if you see some step skipping - wheel lose center after some time.

Matteo2607 commented 10 months ago

The encoder Is okey. This is the video, where u can see the issues. https://streamable.com/jlf024 https://streamable.com/q7wzlg

ranenbg commented 10 months ago

Unfortunately, there is no information important for me to see what is the actual problem. You didn't mention the conditions of when this happens and if it is reproduceable. Try enabling ffb monitor in wheel control and follow what happens with ffb signal. See if you can pinpoint moment when the ffb cuts out.

Matteo2607 commented 10 months ago

Hi, sorry for my absence. I solved the problem by setting the ffb to approximately 50%, and the minimum force to 3%, in this way the problem does not arise.

ranenbg commented 10 months ago

Great that you managed to solved it.

So the issue was due to your hardware, probably something was either overheating or entering into some sort of protection, overcurent or overvoltage.

ranenbg commented 10 months ago

I'll close the issue as it was not firmware or software related.