1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Showroom (In Progress) DIY FFB Wheel and pedal set

Discussion in 'DIY peripherals' started by mr_stench, Jun 18, 2021.

  1. mr_stench

    mr_stench New Member

    Joined:
    Jun 18, 2021
    Messages:
    5
    Balance:
    48Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Some work in progress for full size, gross, sim racing cockpit... clutch and brake pedals from BMW E39, throttle pedal from BMW E46. Quick made board with 3 arduinos converting sensor signals to 0 - 5V analog for feeding to Arduino Leonardo FFB wheel. Hall angle sensor module AS5600 on the clutch, cheap load cell on the brake, gas pedal uses original hall sensor

    IMG_20210618_231906581.jpg IMG_20210618_231843502.jpg IMG_20210618_231920753.jpg IMG_20210618_232008369.jpg IMG_20210618_232023548.jpg IMG_20210618_232057303.jpg IMG_20210618_232141341.jpg IMG_20210618_232158155.jpg IMG_20210618_232212756.jpg IMG_20210618_232253676.jpg IMG_20201128_192333150.jpg
    • Like Like x 4
    • Creative Creative x 1
  2. BoomBoYang

    BoomBoYang New Member

    Joined:
    Jun 2, 2021
    Messages:
    25
    Balance:
    - 56Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    Really admire you these will be the real car parts of the craftsmen, for me this novice only worship the share.
  3. mr_stench

    mr_stench New Member

    Joined:
    Jun 18, 2021
    Messages:
    5
    Balance:
    48Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    The steel frame is under construction...

    Frame.jpg
    • Like Like x 1
  4. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,897
    Location:
    London
    Balance:
    11,610Coins
    Ratings:
    +458 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Can you use one arduino for the wheel and the pedals ?
  5. mr_stench

    mr_stench New Member

    Joined:
    Jun 18, 2021
    Messages:
    5
    Balance:
    48Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Unfortunately... i don't have that much knowledge in software programming. I use AI-Wave firmware for the leonardo which has only three 10-bit analog inputs.

    BMW gas pedal angle sensor outputs between 0.4 - 4.3V and it's better to use external arduino in combination with 12-bit ADC (ADS1015) and 12-bit DAC (MCP4725) with some mapping to achieve full swing 0 - 5V. That way the loss of resolution is smaller...

    AS5600 hall angle sensor module on the clutch has I2C interface... it cannot be connected directly to Leonardo.
    Again some code and MCP4725 for analog output 0 - 5v.

    For the brake i use HX711 and load cell. I tried the option for direct connection (pins 5 - 7) but i don't like how it behaves. I wrote some messy code with automatic zeroing every time brake pedal returns (ISR triggered by stoplight sensor).

    Bottom line is... i just use what i have and what i can :) . Maybe is possible to combine these three codes into one arduino but i don't know how to do it without increasing overall latency of the pedals...

    Now added latency is 2.2ms for the Gas, 1ms for the Clutch, 12ms fog the Brake.
    • Agree Agree x 1
  6. mr_stench

    mr_stench New Member

    Joined:
    Jun 18, 2021
    Messages:
    5
    Balance:
    48Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Throttle pedal mounted in place and some very crude spray painting....

    IMG_20210710_190458632.jpg Blur.jpg
    • Like Like x 1
  7. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    230
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,457Coins
    Ratings:
    +136 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I admire the work but I think you're over complicating things there that are just going to add to the delay in the signal and affect reliability.

    it's great to try to get 'full swing' but in reality you are compromising more important factors (speed) to achieve precision.

    All the A-D/D-A conversions take time and for no realistic benefit. You're ensuring a 12 bit signal but then sampling it at 10bit anyway. You'd be better off with OSH which samples at 12bit to start with.

    That load cell interface is slow - I think it can only do 100hz from memory. Stick with a normal Load cell amp (i.e INA122PA) and stay fully analog and feed the signal straight into your controller.

    Not hating on your work at all - If you're happy with it then all the best to you but coming from a background in electronics I can speak from experience that the KISS strategy is often the best.
  8. mr_stench

    mr_stench New Member

    Joined:
    Jun 18, 2021
    Messages:
    5
    Balance:
    48Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Hey, i know it's not the best way to do it but for amateur gamer like me... it's fine :)

    I'm getting kinda old and my reaction times are probably far worse that those 12ms brakes latency... ;)

    Initial tests results are not bad at all... the worst problem so far are my driving "skills" :rolleyes:



    The steering wheel produce 6Nm holding torque at 6.2v. Linearity is good above 10% minimal force which i thing is normal for such heavy wheel with timing belt drive.
    • Like Like x 1