The ProcessÂ widgetÂ inverts, smoothes out, or adds easing to incoming values and outputs the new values.
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.
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.