Scrap Mechanic

Scrap Mechanic

53 ratings
Scripted Engine Dyno
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
36.933 KB
Apr 8, 2023 @ 3:31am
Sep 20, 2023 @ 2:10pm
13 Change Notes ( view )

Subscribe to download
Scripted Engine Dyno

Description
An engine dyno which is utilizing scriptable computers with PID to find torque.

You still need the modpack for the smart engine and the meter, as the scriptable computers mod lacks good alternatives unfortunately.

New Much Better Dyno:
https://steamcommunity.com/sharedfiles/filedetails/?id=3274060388

How It Works:
For those who dont know how a dyno works or who havent seen this ever being made in sm, this device is made to measure the 3 values of your engine/motor. It does so by connecting the output of your engine to the input of the dyno and by it applying resistance until it hits 0 rpm (or the set target RPM) at which point it must have hit peak torque. The torque of the resistance can then be directly outputted as engine torque and together with engine speed the power can be outputted aswell. As its applying torque and measuring speed, a dyno graph can be drawn, representing the torque and power curve of your engine. To display all values and the graphs, it is using the large screens from the scriptable computers mod, aswell as the scriptable computers itself. This simplifies logic a lot compared to more traditional modpack dynos, while also allowing for a much better and more descriptive UI with the screens and more accurate values.

All credit for its functionality goes to Ben Bingo for writing the scripts, as he did all the work on it. I (Kein Anderer) mainly helped with testing, development and setting up the functions and only made the dynos design.

Important To Note:
Make sure to not dyno your engine below advanced physics. The smart engine bearing is not gonna be able to tranfer torque properly, which will give you incorrect values.

Left Display:
Average speed: Displays average speed, coming out of an averaging table
Speed @ PK PWR: Displays the speed detected when it made peak power
Current speed: Displays raw speed directly read from the meter
Average torque: Displays average torque, coming out of an averaging table
Max torque: Displays the highest absolute torque detected
Torque @ PK PWR: Displays the torque detected when it made peak power
Current torque: Displays raw torque directly out of the scripted computer
Average power: Displays average power, coming out of an averaging table
Max power: Displays the highest absolute power detected
Current power: Displays raw power, which takes raw speed and raw torque into account

To change the displayed units for torque & power, press on the units itself. You can cycle through metric or imperial torque and power.

RPM - Engine speed in revolutions per minute
DPS - Engine speed in degrees per second
NM - Torque in newton-meters
LBFFT - Torque in foot-pounds
HP - Power in horsepower
KW - Power in kilowatts

Right Display:
Blue curve: Torque curve, corresponding unit on the left display
Red curve: Power curve, corresponding unit on the left display

Both curves have their range between top engine speed on the left and the target speed on the right.

Controls:
START/STOP (green): Starts or stops the dyno run.
RESET (green): Quickly restarts the dyno.
TGT speed (+/- adjuster): This controls the engine speed, at which you want to find torque and can be important to define a bottom end limiter for your dyno run (and the graphs), which is very important on engines that stall/reverse at lower speeds.
Count speed (+/- adjuster): This adjusts how quickly the dyno counts up torque and can be lowered for more sensitive engine or increased for higher torque engines to save time. It should normally not be necessary to adjust this value, as the default tune should cover pretty much everything.
Value averaging (+/- adjuster): This is the main modifier for all the averaging values on the dyno, which adjusts the table size. It can help to increase accuracy for specific engines, where a smaller table size reduces value inerta for more accurate numbers and a bigger table size will make them more of a constant to increase number consistancy.
Torque scale (+/- adjuster): This adjusts the graphs height in the y-axis, specifically for torque. It can be useful to see more of the graph if needed.
Power scale (+/- adjuster): This adjusts the graphs height in the y-axis, specifically for power. It can be useful to see more of the graph if needed.
SCRN refresh (+/- adjuster): This adjusts the speed at which the screens refresh themselves, which can be very important for those that want to reduce lag or increase accuracy.
White physical button: This works as a hard reset for the computer and is only really necessary if you modify its script yourself (accessed in the green gate through the window). Make sure to hold it for a bit aswell.

I should point out that circling over the +/- adjusters increases the speed at which they increase/decrease. This makes inputting bigger values a lot faster.

Basic Guide On How To Use It:
- weld the engines output to the dyno input
- weld the engines frame to the dynos body
- weld the dyno to the ground
- set your values, start by pressing "START/STOP", press the white button only if the display is bugged

If you are interested in a mechanical sm community, you can check out this discord server:

https://discord.gg/6r46PkYr9s

Tags:
Engine, Rpm, Torque, Horsepower, Engine Dynamometer, Tool
39 Comments
Ben Bingo  [author] Jun 29, 2024 @ 1:07pm 
Hey! There is a new version of this dyno available on the steam workshop which offers many more features and a lot more fps optimisation, you can find it here: https://steamcommunity.com/sharedfiles/filedetails/?id=3274060388
Ben Bingo  [author] Jan 15, 2024 @ 3:23pm 
just a side note, me and Kein really appreciate the overwhelming support that this dyno has gotten, we are very glad that this has opened up an opportunity for newer players to get into piston engines/alternative power and also good players who strive to get better performance out of their engines.

Thank you.
Ben Bingo  [author] Jan 15, 2024 @ 3:23pm 
For people having issues with things such as the dyno starting to start infinitely, touch screen issues, and recently the dyno breaking after being put on a lift and such, I have tried to bug find but ultimately found some base issues, one being people having a cracked version of scrap mechanic and also the recent update to the scriptable computer mod, It slightly changes how things are ran and I cant seem to get the dyno to be stable.

Even though there are some issues right now, I wont be continuing to develop the code for the dyno anymore, I have a new fully lua dyno in the works, that will be its own dedicated mod and should be much better on performance, optimisation and accuracy. Apologies for the bugs, but stay tuned for the bigger and better dyno coming.
nico_qwer Nov 4, 2023 @ 6:51am 
Thanks for making this, its really nice. However, while it can measure RPM and torque, and it does graph torque and power, The power value stays at 0, even if i set it to average, current or max.
mkirker2011 Oct 20, 2023 @ 12:30pm 
my dyno is not displaying anything
Ben Bingo  [author] Oct 4, 2023 @ 2:35pm 
@Z3RO_GRAV make sure you have the required mods installed to spawn this in
Z3RO_GRAV Sep 29, 2023 @ 11:37am 
or failed to bui.ld
Z3RO_GRAV Sep 29, 2023 @ 11:34am 
ik keaps saying something about the blueprint not working
Ben Bingo  [author] Sep 21, 2023 @ 12:27am 
@egg corporation Some general lag optimisations, a torque count limiter to make the dyno more accurate with super high rpm inputs, the max torque is now more accurate, there is now reverse detection and there is now an indicator that shows you weather the tgt speed is in manual or automatic mode.
Ben Bingo  [author] Sep 21, 2023 @ 12:24am 
@Uncle Chadpa That sounds really odd, have you got the correct scriptable computers mod? There are some mods that are modifications of the base scriptable computer mod on the workshop, the one that the dyno was made for is linked in the required items.