Krask Modular engine ECU for marine engines
Ship engine ECU from Krask marine
Does what it says on the tin! ECU delivers power equally as well as at least zizos. This ECU started as zizos, I've completely modified it from the ground up but the core principle remains the same
Features
[list]
[*] Automatic clutch/reverse. Set your throttle to -1 min and max 1. Clutch engages at 0.15 and reverse engages at -0.15
[*] Auto restart, auto start when you turn the key etc etc. You can disable both of these and use a manual starter if you wish
[*] RPM and Manifold temp outputs: Connect them to dials and see those numbers
[*] Fail to start: Will cease cranking after 10 seconds if the engine wont start. Cycle key to reset
[*] Plugin for the krask MOB system, declutches engine when man overboard is true.
[*] Reacts automatically if you are supercharged or not (Large air pump on air manifold)
[*] Gradually reduces power until stop to prevent overheat.
[*] Rev limiter: Its set to 20, you can set to whatever you want. The engine will not rev unless the engine is clutched in. This can be turned off.
[*] If the starter is engaged, the clutch isnt. This cannot be overridden.
[*] Fully LUA based
[/list]
Microcontroller options
[list]
[*] Air to fuel ratio: 14 by default. Change it to whatever you want. i copied the range zizo gives, dont see any reason to go outside of this
[*] Max RPS: set the desired rev limiter point.
[*] Max engine power: Leftover from zizo's, i kept it in because i sometimes do reduce the engine power myself.
[*] Limiter aggression: Play with this number a bit if youre not happy with how the limiter works. Will probably update the limiter in the future im not happy with it.
[*] Auto restart: Enable/disable the starter engaging when the engine stalls (On by default)
[*] Failure to start: After 10 seconds of cranking with no start, stop starters. Turn key off and on to reset. (On by default)
[*] Allow engine to rev in neutral? Stops the engine being able to rev when the clutch is not engaged. (Off by default)
[*] Automatic clutch and reverse? If On, set the throttle to be min -1 max 1 and use that to control the boat going forwards and backwards. My personal preference is to use a button for the clutch and a button for reverse, but do as you will! (On by default)
[*] Autostart when turning key? Engages the starter when you turn on the key. (On by default)
[/list]
First ECU ive posted and need feedback to make it better! I'm mostly posting this for a group of friends who build similar boats to mine but i dont mind the general public using it.
Any logic nodes in the red box can be deleted if you want to make the ECU smaller.
Credit ofc to Zizo, i basically reverse engineered his and made my own based on it.
Update:
I made a small update to this. Refer to the picture of how to setup drivetrain if confused. Check out the krask Screen addon for this :D It allows you to change the microcontroller defaults (Autostart etc) after the vehicles spawned and removes the need for a bunch of stuff. [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3658807574]https://steamcommunity.com/sharedfiles/filedetails/?id=3658807574[/url]
You only need the nodes in the pink box to get the engine to run if you'd rather handle the clutch yourself.