Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
PWM boolean
   
Award
Favorite
Favorited
Unfavorite
Microcontrollers: Calculation, Microcontroller
Tags: v1.5.6
File Size
Posted
Updated
18.442 KB
31 Jul, 2022 @ 11:01am
31 Jul, 2022 @ 11:05am
2 Change Notes ( view )

Subscribe to download
PWM boolean

Description
Converts value from range [min; max] to a PWM boolean signal.
PWM is short for Pulse Width Modulation, see wikipedia.

Usage: Maintaining accurate boiler temperature/pressure. Saving electrical power on pumps.

Value 0.01 should give about 1 tick on, 99 ticks off.
Value 0.5 should give about 50 ticks on, 50 ticks off.
Value 0.99 should give about 99 ticks on, 1 tick off.
And so on.