Stormworks: Build and Rescue

Stormworks: Build and Rescue

Sharps Modular Engine ECU V4
126 Comments
m3 Oct 3 @ 3:28pm 
How do I get it to idle
Ive tried setting it to idle and stuff and it never does
The constant revving is annoying
gordonbinning Sep 27 @ 3:54am 
how do i spand it in
Sharp  [author] Sep 17 @ 12:02pm 
it could be added, currently the default setting ( 0 - 1 ) aims to a set rpm between the min rps and max rps so with a bit of math you could convert it via a function block from target rpm to 0 to 1
Stray Angel Sep 16 @ 12:28pm 
I like this very much. I use target RPM style is it possible to convert this to target RPM instead f 0-1 values.
This is awesome af! Only lacking better read out on the battery. I have an Eboost motor for when temps get a bit toasty and the battery information simply shows 0. When the eboost is off it shows some swatts but no charge till full or till empty as with the fuel information which is neat, if only the battery would report as well as the fuel does. I tried looking at your script to see if I could fix it but LUA is not a language I can code in and it is too much for me to try and get into. If you would not mind having a look at the battery information to have it as functional as the fuel information that would be awesome! Unless it is not possible with the data available. Thank you for making this, it is by far the best ECU on the workshop! I have tried a few others...
Jason_Nighthawk1 Aug 19 @ 2:18pm 
the exhaust systems (im not confident in this but ill take a look) ,2 air intakes and 4 fuel intakes are connected, 4 starters are connected (ill double check this), engine is a prebuilt, the manifolds are in what i believe in order (ill redo or delete them if they're the problem)
Sharp  [author] Aug 19 @ 5:05am 
Could be a load of reasons, stuff like no exhaust, fuel or air. To starter not connected so the ecu cant actually start the engine.
Jason_Nighthawk1 Aug 18 @ 7:45pm 
so i got everything hooked up and im getting a "low RPM" warning
IsTorLoop Jul 9 @ 8:08pm 
Engine speeds jump:joe:
Sharp  [author] May 30 @ 11:54am 
Just going through it ( its been awhile )
If you shut it off from the on/off, The pids will turn off 5.5 seconds after which will then set the air & fuel throttles to 0. Assuming you arent adding a constant to those throttles.

I might add a update so that when you turn the ecu off, it cuts throttle immediately instead of 5.5 seconds. Unsure why i did that tbh
INTFGaming May 30 @ 6:17am 
Could also be that i have a set throttle on the engine. A consent number to throttle input.
INTFGaming May 30 @ 6:15am 
My engine ran for 30 mins after lol. Maybe Flywheel?
Sharp  [author] May 29 @ 1:44pm 
If ecu on, it will maintain rps. IF ecu off, It will default to 0. It may take a second to turn off.
INTFGaming May 29 @ 12:53pm 
Sharp, I added two number switch boxs before the air and fuel output nodes. I connected a consent 0 to the off output and connected the on/off to the engine on/off input node. This effectively shuts my engine down when i turn the key off.
INTFGaming May 29 @ 12:17pm 
I need to find out why i cant shut my engine off. Idk if its a error on my end or something with the ecu. Ima go over my logic along with looking at adding a fuel starve logic to fix it.
Sharp  [author] May 27 @ 6:16am 
No you arent required but its nice for the people who make the controllers, plus i like to see what people do with them
INTFGaming May 26 @ 9:21pm 
I dont know if i have to give credit but to be safe - https://steamcommunity.com/sharedfiles/filedetails/?id=3488454954
2nd Ship I'm working on. Improved off my last attempt but still wip. This ecu is the best one i have found so far. Managed to get temps stable around 80C.
VIIDoors Apr 12 @ 5:49am 
The engine starts fine but if i throttle down to stop my boat the engine stalls and wont restart
m3 Mar 28 @ 11:31am 
yeah that was the plan
it did infact work
Sharp  [author] Mar 28 @ 3:07am 
It would be better to use one ecu per engine, it likely will be fine if they are similar engines if you used one ecu though
m3 Mar 27 @ 10:37pm 
can i use it to control two engines?
m3 Mar 19 @ 7:08pm 
alright thx
btw made a tank and its almost finished using this controller
Sharp  [author] Mar 18 @ 5:59pm 
I would think you either need a bigger engine, Its most likely been held at 5 rps cause of the clutch
m3 Mar 18 @ 12:51pm 
?
m3 Mar 18 @ 12:15am 
when using a tracked vehicle the engine only hits 5 rps
when i want it to go to 30
Sharp  [author] Mar 17 @ 8:39pm 
Happens to the best of us
m3 Mar 17 @ 8:36pm 
i may have not checked the composite
may or may not
Sharp  [author] Mar 17 @ 8:18pm 
Nice one, What was the problem in the end
m3 Mar 17 @ 8:06pm 
might have fixed it
m3 Mar 17 @ 8:04pm 
i have air, exhaust, fuel all connected
Sharp  [author] Mar 17 @ 7:59pm 
Its likely not able to start due to something missing like air, fuel or exhaust
If the afr isnt around 12-15 then air or fuel is missing. If it starts and runs for a sec then dies you are missing exhaust
m3 Mar 17 @ 7:56pm 
it repeats it btw
m3 Mar 17 @ 7:53pm 
when i turn the engine on it get to about 2.7 on rps and just turns on and off and the engine wont start
1 CHANCE Mar 14 @ 9:16pm 
Why is the turnover not stable?
Sharp  [author] Mar 14 @ 7:39am 
Thank you =)
JDub3350 Mar 14 @ 7:13am 
@Sharp- I've tried nearly every popular ECU type microcontroller I think, and yet its yours that always ends up on the vehicle. Thanks for your time and contributions! :steamthumbsup:
Etyneo Oct 31, 2024 @ 11:12pm 
Ok, coming back to the problem after some sleep helps. That and More Testing. I managed to find a PID slider setting that allows the engine to be stable at any of the valid throttle settings, under various gearing and load conditions. Perhaps the PID slider for the older version wasn't actually doing anything, even though the logic seemed to indicate it should be.

Should be noted that for my 16 cylinder 3x3 engine I need to set the PID slider to around 10-12% with the current (4E) version to reach stability. The older version worked with the PID slider at 100%.
Etyneo Oct 31, 2024 @ 12:09pm 
What I'm working on isn't on the WS, but I think I might have found you on Discord...if not I'll have to keep looking.
Etyneo Oct 31, 2024 @ 11:54am 
Should be noted the version of the ECU that is working is whichever one was the most recent on 5/16/2024 (US date format).
Sharp  [author] Oct 31, 2024 @ 11:54am 
I do have a laptop i use for college, just has no gpu. send me a ws link or find me on discord and send a xml and ill look at it tomorrow
Etyneo Oct 31, 2024 @ 11:47am 
After looking at the logic, it seems that in both versions, the PID slider should be doing something in both. Though it may do something slightly different in 4E compared to 4.

In 4E (the newest version), it seems to be flipping between 'off scale high' and 'off scale low' as the PID rapidly sets the fuel/air throttle high, then negative low, back and forth. the PID slider only serves to slow the process down, but does not stabilize it. The math you're using for the PIDs is too complicated for me, but I'd guess you may have typo'd somewhere when entering a number or operator.

I'd love to be able to give you the save I'm working with so you can see it for yourself, but I understand your computer is down.
Sharp  [author] Oct 31, 2024 @ 10:59am 
From memory, their was a version where adjusting pid sensitivity did nothing. The pid sensitivity property also got changed so make sure they are similar
Etyneo Oct 31, 2024 @ 10:36am 
Ok, some more trouble shooting seems to indicate that the problem is in the air and fuel throttle PID setup. Whatever you did between version 4 and 4E made the PID way more sensitive. Altering the PID slider in properties helps, but does not completely solve the problem. Unfortunately, your PID logic is too complicated for me to make sense of, but I can tell you altered it a bit in the newer version.
Etyneo Oct 31, 2024 @ 10:21am 
A shame your computer died. I'm now having issues with version 4E of your ECU running an engine that version 4 runs just fine. I duplicated the settings (with the exception of the new ones that did not exist in the older version) and the ECU will not set the throttle to keep the engine running smoothly. The desired throttle jerks, often into negative values resulting in the engine being choked out momentarily before the ECU gives a moment of positive throttle.
Sharp  [author] Oct 10, 2024 @ 7:55am 
Usually I would say yes, but unfortunately my gaming laptop decided to leave us prematurely ( short circuited ) so I can not play sw for some time.

I suspect you may just be building it wrong somehow, They are complicated when its all shoved at you with no reference.
Theirs some good vids about building modulars on youtube.
https://youtu.be/WISSNAoVX-s?si=piB0ewZBwnw5ccu1
Selsun [Danger Dolphin] Oct 8, 2024 @ 6:21pm 
I've been trying to get my modular engines to work for a long time. I tried your ECU and still no luck. I'm really not sure whats wrong at this point. Would you be interested in looking at it?
jenkadagger Sep 29, 2024 @ 12:32pm 
i was using 3x3 pistons and i only had 4 of each manifold for all 380 pistons, so yeah that's probably why it didn't work. i was just messing around to see if i could get a massive engine to run without spending much time on it.
as of right now i have been working on a turbine engine + gas engine combination using your ecu, i might upload it if its a success ;)
ryu1940 Sep 21, 2024 @ 2:40pm 
Thank you for this! I added it to my ship and it makes for a smooth start up and run!
Sharp  [author] Jul 14, 2024 @ 2:40am 
You sure?
Do have a 256 cylinder 1x1 engine just to see and it worked
It did help having a fuel and air manifold every 3 or so metres as engine efficiency goes down per cylinder the further its from a manifold it seems

But to make a 380 piston engine it must have been 23.75 metres long with 1x1 cylinders
jenkadagger Jul 13, 2024 @ 5:49pm 
this ecu wont work with my 380 piston engine :(
(this is a joke. it also is true though, i tried it and it didnt work lol)