Need support about firmwares for ffb wheel and 3 pedal loadcell

I am making opensource firmware for ffb wheel and 3 loadcell pedal. i code for arduino 1st. I have not much time, no need helps to finish them soon.
1. 3 Loadcell pedal for arduino pro micro: finished, it works well.
I will add button for shifter and make vibration for pedal or even shifter.
2. Ffbwheel for arduino leonardo
A. Finished
- pc recognized it as ffb device.
- read increment encoder w/wo Z index upto 32 bit, calculate velocity, acceleration of axis.
- download ffb report
- force calculator:
+ constant force
+ ramp force
B. Todo
- force calculator
+condition effect:
According to this page:


https://developer.apple.com/documentation/forcefeedback/ffcondition?changes=__8&language=objc



depend on Effectype, metric is one of these:

spring - exerts a force proportional to the displacement

damper - exerts a force proportional to the position velocity

inertia - exerts a force proportional to the position acceleration

friction - exerts a constant force when the position is changing

if metric < cpOffset - deadBand

force = (metric - (cpOffset - deadBand)) * negativeCoefficient;

else if metric > (cpOffset + deadBand)

force = (metric -(cpOffset + deadBand)) * positiveCoefficient;



Because metric value is in [-1.0,1.0] so need normalize it.

string: metric=(currentPositionEncoder/encoderRange) => OK

friction: metric = (currentPositionEncoder- lastPositionEncoder)/encoderRange => OK

I don't have idea for damper and inertia, how to normalize currentVelocity and acceleration.

currentVelocity = (currentPositionEncoder- oldPositionEncoder)/(currentTimeInMillis - lastTimeInMillis) => metric = ??

acceleration = (currentVelocity-lastVelocity)/(currentTimeInMillis - lastTimeInMillis) => metric = ??
+ periodic effect: not yet investigated.
- pwm: use analogwrite(pin, force)
- UI config: not yet investigated
After finished all for arduino, i will make code for stm32 later if it work well :)!
If anyone is interested in this project, pls join to finish it soon.
Video test pedal:
 
Last edited:
Lastest feedback :)!
#car_simulator_firmware

#vnm_simulation

CarSimulatorFirmware is one of the open firmwares of VNM Simulation.

It is created to replace the end of life firmware MMOS, some features:

- Support 12 effects and can adjust individually effect gains.

- Support telemetry ffb (only Assetto corsa at the moment, need time to add other game like ACC, Rally,...)

- You can connect directly to analog input pa4,pa5 of Ac servo driver without external DAC.

and it will be add many feature later.

Go to my discord to get newest version and discuss about the firmware:https://discord.gg/NDk4pYdView attachment 382999
Hi,
I have made a ffb steering wheel same as other a motor, ibt2, and Arduino Leonardo with 3 pedal based on potentiometer, 7 button shifter plus more button I want to add as ets/ats2 need more than 7 gear and for drifting I want to add a load cell handbrake (hx711)
Is firmware you made can be modified as one want to or already support my requirements

Future upgrade can be a 100kg loadcell to brake pedal


One more question can integrate more Arduino pro micro according to need
Please help i am one step away
 
Upvote 0

What are you racing on?

  • Racing rig

    Votes: 528 35.2%
  • Motion rig

    Votes: 43 2.9%
  • Pull-out-rig

    Votes: 54 3.6%
  • Wheel stand

    Votes: 191 12.7%
  • My desktop

    Votes: 618 41.2%
  • Something else

    Votes: 66 4.4%
Back
Top