Git Product home page Git Product logo

open_boost_controller's Introduction

Open_Boost_Controller

This project is intended to implement a PID boost controller which retrieves engine data from a Megasquirt based ECU over the can bus. The ECU is configued in dash broadcast mode and the data definition is stored in MS_can_def.py. If you're using a different ECU, modify this file to match the can bus definition published by the manufacturer.

Setpoint is determined by a lookup table of RPM vs TPS, the value is determined by a linear interpolation using the current state and the 4 points on the table bounding it. Additional tables can easily be added using whatever parameters you desire, so long as they're available on the CAN bus. An example might be a modifier table based on coolant temperature, which is setup to subtract from the setpoint when the engine is too cold or too hot.

Integral windup protection is implemented by zeroing out the integral term unless the process is within some defined band around the setpoint. This, combined with an appropriate value for the P term, ensures that there's minimal overshoot during the initial spool up phase.

This has been implemented using an Adafruit Feather M4 CAN, which drives a common 4 port solenoid using an IRLZ44n MOSFET. Note a ~30v zener diode is strongly recommended to protect the mosfet from the inductive voltage spike which occurs when the circuit is opened. This also gives the controller better control authority over the solenoid in comparison to a flyback diode.

open_boost_controller's People

Contributors

copper280z avatar

Watchers

 avatar

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.