Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Prime Mover Throttle Controller for Electric System Demand
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Sea, Land, Mechanical
Tags: v1.15.3
File Size
Posted
27.067 KB
25 Sep @ 9:56pm
1 Change Note ( view )

Subscribe to download
Prime Mover Throttle Controller for Electric System Demand

Description
A simple 2x2 microcontroller that outputs throttle commands to a prime mover engine in response to electrical system demands. Use this in your diesel-electric powertrains when electric motors are used to provide propulsion with a diesel prime mover used only to create electricity at a generator.

Prime mover throttle output increases as battery charge decreases by measuring the rate of electrical system drain. Higher drain means higher throttle output and thus increased generator output. Output throttle will cut back as electrical demand decreases and will eventually sit at a minimum level when a) the battery is sufficiently charged and b) battery drain rate > 0.

Inputs:
* Boolean on/off signal - use the ignition for the prime mover.
* Battery level - numeric input, pull from any battery in the system that provides power to electric motors.

Outputs
* Numeric throttle out - send this to the engine controller for your diesel prime mover
* Video out - very basic status panel designed for a display AT LEAST 2 blocks wide.

Configurations
* Microcontroller properties to set minimum throttle output and battery charge level at which will result at full throttle below that level.
* Rate of throttle change can be adjusted in the Up/Down Counter logic block by increasing or decreasing the "Increment" parameter.

The Lua code uses a generalized moving average, so feel free to use it in other applications.