Skip to content

bogumilbierc/mazda-rx8-throttle-pedal-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mazda RX-8 throttle pedal to M113 ECU adapter

Mazda RX-8 throttle pedal adapter for Mercedes M113 ECU (M113 V8 swap into RX-8).

OEM Pedals documentation

Adapter

How it works

Mazda RX-8 pedal has two sensors (potentiometers) that have voltage offset between each other.

M113 pedal has two sensors (potentiometers) that have one sensor being 2*voltage of the other sensor.

Adapter reads the voltage from Mazda pedal, converts it to M113 voltage with DAC (for one sensor) and then takes output from DAC and divides it by two using a simple resistor-based voltage divider for the other sensor.

Basic logic (runs in loop)

  1. Read voltages from both sensors on RX-8 pedal
  2. Calculate percentage from both sensors
  3. Validate if percentages are not out of sync (safety feature)
    • if they are, set the throttle limit to 30%
    • if they are not, clear the throttle limit
  4. Set output for DAC (for "high" pedal)

Components

  • Arduino Nano
    arduino nano
  • MCP4725 DAC
    mcp 4725 dac
  • RX-8 pedal plug
  • two resistors for voltage divider (I choose 4.7 kOhm, but it does not really matter)
  • some wires

Circuit diagram

circuit diagram

Circuit was drawn using https://www.circuit-diagram.org/.

Source code for the diagram is located in circuit cddx file

Assembled adapter

arduino_with_dac

Note: This is from a previous version, I've later on decided to insert wires from the top, as it makes it easier to mount the assembly in the case.

arduino in case

full adapter

Arduino IDE setup

  • Install Adafruit_MCP4725 library
  • Load project from arduino/pedal_adapter/pedal_adapter.ino

Adopting a similar solution for other swaps (different ECUs/pedals)

If You have a different swap than M113 You will need to:

  • read voltages from the throttle pedal
    • if they have the same logic as for mercedes (one is a multiplication of the other)
      • You need to recalculate DAC values using the script from "utils"
    • if they have different logic (offset, whatever)
      • You need to either:
        • use two DACs (easier but requires small code change)
        • use voltage subtractor (a bit more complex electronic wise, but no code changes required)

About

Mazda RX-8 throttle pedal adapter for Mercedes M113 ECU (M113 V8 swap into RX-8)

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages