The Process widget inverts, smoothes out, or adds easing to incoming values and outputs the new values.
Instructions
1 Connect
Connect and input and output
2 Set processing adjustments
Often the values coming from a widget will not match what the rest of your project needs. So you may need to “condition†the sensor values.
- Invert – Invert reverses the values so that an incoming value of 0 is the max value, and 1023 is the min value.
- Smooth – Conditions the values coming in to eliminate a jittery signal coming from the sensor.
- Ease – Gives the values a natural feeling sense of momentum.
- Output range min and max – These allow you to scale the incoming values to start at min and end at max. For example, typically sensor values range from 0-1023. Changing max to 500 would scale those values to have a range of 0-500.
3 More
Additional adjustments can be made in the “more†section of the widget. Click on the more tab, and you will see:
- Input range min and max – these allow you to change the values that are scaled to the output min and max you set on the widget. For example, if the useful values coming from the sensor started at 300 and went to 600, you could set the input range min/max to those values, and they would then be scaled to 0-1023 (if that’s what the widget min/max were set to).
- Ease amount – this sets the amount of easing that’s applied to the input values. A higher number is more easing, and slows down the rate of change of values.
- Smooth amount – this sets the amount of smoothing and increases the stability of the values. It also slows down the rate of change.