Giter VIP home page Giter VIP logo

sh2-speed-density's Introduction

sh2-speed-density

Hitachi SH2 ASM Speed Density algorithm for Subaru/Renesas/Denso SH-2 ECU

I wrote this a number of years ago while hacking on my 2004 WRX STI and adding a bigger turbo and exceeding the airflow limit of the mass airflow sensor.

This is a code example for the AJ243 revision ECU, Renesas 7055 SOC based on Hitachi SH2, built by Renesas and used by Subaru cars from the mid-2000s to operate the engine.

It calculates an airflow based on a speed-density algorithm and 3D map of volumetric efficiency and engine RPM, and intake air temperature.

The code can be assembled to machine code with the KPIT SH2 toolkit and appended into an "empty" area of the flash ROM, along with hacking the new code location where the MAF sensor is read, pointing it to the SD code instead.

The Renesas 7055 chip comes with a 512KB embedded flash rom and 32kb RAM, operating with a single core 40mhz processor and a bunch of GPIO pins to talk to all the engine sensors and a simple serial bus over OBD2.

This was a fun project so I could cram a GT3076R turbo in my car and reach well over 400hp.

This is long abandoned but posting on Github for those interested.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.