DIY-Sim-Racing-Active-Pedal

This DIY active pedal design is based on the original design from @tjfenwick.

Disclaimer

This product is essentialy a robot. If not interacted with care, it may cause harm. I’m not responsible for any harm caused by this design suggestion. Use responsible and at your own risk.

Discord

For better communication, a Discord server has been created. Feel free to join, research before you build and ask questions.

Hardware

ESP32

The embedded code of the DIY active pedal runs on an ESP32 microcontroller. Some PCB design, which hold the ESP32 breakoutboard, the ADC breakoutboard and connectors are uploaded to the Wiring directory. They were used to proof the concept. The regular ESP32 is currently recommended over the ESP32 S2, as it has a FPU and it performs better with the stepper library. ESP32 S2 is losing steps currently.

ESP32 PCB ESP32 S2 mini PCB

A more sophisticated custom PCB is currently under development and tested. Please refer to the Discord for up-to-date designs.

Mechanical design

Here are some examples of mechanical designs awesome DIYers have done:

Design Link
Tjfenwick design
Bjoes design
GWiz design
ChrGri design

BOM

The BOM refers to the pedal design which I have choosen, see here.

Software

ESP32 code

Architecture

A Doxygen report of the sources can be found here.

Built from source

To flash the code, e.g. via Ardiono IDE to esp32.

flash prebuilt binaries via webflasher

HASN’T BEEN TESTED YET: The prebuilt binaries for the regular ESP32 can be found here. They can be flashed via the ESP webflasher.

SimHub plugin:

The SimHub plugin was designed to communicate with the esp32 to (a) modify the pedal configuration, e.g. the force vs. travel parameterization and (b) to trigger effects such as ABS oscillations.

image

To install the plugin, copy the plugin binaries content to your SimHub directory, e.g. C:/Program Files (x86)/SimHub

Misc

Pedal kinematics calculation

To get a better understanding of the motion and forces, a python script for simulation of the pedal angle, the pedal angular velocity and maximum pedal force has been written. Feel free to tune the pedal geometry as needed. The simulation result for my pedal geometry looks as follows:

Todo