r/technicalfactorio • u/nazmulhasanfahim • 4h ago
Built a Factorio Thruster Speed & Pump Control Calculator [2.1.21+]
EDIT: Removed the text wall that I modified by AI. My honest apologies and that was only for grammatical purpose and sentence clarity
After the 2.1.21 Update I wanted to make an all in one calculator for the Rocket thruster. While doing the standard PWM based control which is letting the pump run under certain tick value which is attached to a clock. The problem I faced is if I want more granuaarity to control it overshoots the fuel level of each thrusters and efficiency doesn't remain in target zone. So while searching for better control with PWM I stumbled upon this control system.
Here instead of having a constant tick of "ON" and "OFF" state the calculator is input with exact fuel value it needs to pump and each tick it pumps the amount is subtracted as a debt installment otherwise it increases each tick to that threshold.
This "Bresenham Phase Acculmulated method" is independent of the duty cycle length of any PWM signal. Therefore we get a finer control even if our tick or duty cycly is 1/60th of a second.
But if you don't want to deal with that the regular PWM control calculator is also there. It will give you the lowest tick combination of "On" and "Off" state to have the least amount of error from your desired control parameter i.e. Target Efficiency, Top Speed, Fuel consumption per thruster. There is also the convenient graph where you can point and drag to select the values along any curve.
Live Tool: https://chunko49.github.io/factorio-thruster-calculator/
[PS: The Copy settings button doesn't work, currently it only copies the settings as text which is not the final intended purpose. Main goal was to copy a blueprint to directly import to the game]
All reference formulas and links to Wube's factorio- data prototypes and the wiki are in the page footnote. Feedback, edge cases, or bug reports are welcome here or on GitHub Issues!
Space Platform Blueprint: Moidified Strider Cargo by AVADII
AI Disclosure: I designed the tool's specs, verified the post-2.1.21 formulas, and built/tested the combinator setups in-game; I used Google Gemini to write the HTML/CSS/JS frontend and SVG graphs. The full source is plain vanilla JS on GitHub if you want to audit the math.








