Stormworks: Build and Rescue

Stormworks: Build and Rescue

Sharps Modular Engine ECU V4
118 Comments
IsTorLoop 9 Jul @ 8:08pm 
Engine speeds jump:joe:
Sharp  [author] 30 May @ 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 30 May @ 6:17am 
Could also be that i have a set throttle on the engine. A consent number to throttle input.
INTFGaming 30 May @ 6:15am 
My engine ran for 30 mins after lol. Maybe Flywheel?
Sharp  [author] 29 May @ 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 29 May @ 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 29 May @ 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] 27 May @ 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 26 May @ 9:21pm 
I dont know if i have to give credit but to be safe - https://steamhost.cn/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 12 Apr @ 5:49am 
The engine starts fine but if i throttle down to stop my boat the engine stalls and wont restart
m3 28 Mar @ 11:31am 
yeah that was the plan
it did infact work
Sharp  [author] 28 Mar @ 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 27 Mar @ 10:37pm 
can i use it to control two engines?
m3 19 Mar @ 7:08pm 
alright thx
btw made a tank and its almost finished using this controller
Sharp  [author] 18 Mar @ 5:59pm 
I would think you either need a bigger engine, Its most likely been held at 5 rps cause of the clutch
m3 18 Mar @ 12:51pm 
?
m3 18 Mar @ 12:15am 
when using a tracked vehicle the engine only hits 5 rps
when i want it to go to 30
Sharp  [author] 17 Mar @ 8:39pm 
Happens to the best of us
m3 17 Mar @ 8:36pm 
i may have not checked the composite
may or may not
Sharp  [author] 17 Mar @ 8:18pm 
Nice one, What was the problem in the end
m3 17 Mar @ 8:06pm 
might have fixed it
m3 17 Mar @ 8:04pm 
i have air, exhaust, fuel all connected
Sharp  [author] 17 Mar @ 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 17 Mar @ 7:56pm 
it repeats it btw
m3 17 Mar @ 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 14 Mar @ 9:16pm 
Why is the turnover not stable?
Sharp  [author] 14 Mar @ 7:39am 
Thank you =)
JDub3350 14 Mar @ 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 31 Oct, 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 31 Oct, 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 31 Oct, 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] 31 Oct, 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 31 Oct, 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] 31 Oct, 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 31 Oct, 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 31 Oct, 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] 10 Oct, 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] 8 Oct, 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 29 Sep, 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 21 Sep, 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] 14 Jul, 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 13 Jul, 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)
Sharp  [author] 11 Jul, 2024 @ 4:41pm 
Gearing or more/larger cylinders, Just cause you set the max to 20 rps doesnt mean it can actually reach 20 rps no matter what load you put on it
Logwn 11 Jul, 2024 @ 12:08am 
what can I change to run the engine at a higher RPS because it just runs at 6.7 rps max, I have the max rps set to 20
Cigarrette_Man 12 Jun, 2024 @ 3:39am 
actual good ecu
martens2007 5 Jun, 2024 @ 5:28am 
are you suposed to use a pusch button or a toggle button?
martens2007 4 Jun, 2024 @ 8:37am 
i have no idea how i do that
Sharp  [author] 4 Jun, 2024 @ 7:00am 
Can you send me the vehicle file on discord?
It should keep trying to restart at least, wont run if fuel,air or exhaust is missing
martens2007 31 May, 2024 @ 8:39am 
i have the isue that the engine turns on but after ~5 secends it just shuts off, wat am i doing wrong?
ibreathcheerios 7 Apr, 2024 @ 5:38pm 
Do you have the engine in the thumbnail on any of your builds?