Sensor data ramp after inactivity

Oct 14, 2011 at 9:12am

Sensor data ramp after inactivity

Howdy people,

I have a situation where I need the data being captured by a distance sensor to ramp down to a 0 value after a specified period of inactivity.

For example, In the attached patch, the slider represents the sensor data and if it was to stop at, say 68 without change for more than 10 seconds, I need it to slowly ramp back down to 0 until it collects data again.

Any ideas?

#59300
Oct 14, 2011 at 11:27am
– Pasted Max Patch, click to expand. –
#213210
Oct 14, 2011 at 2:26pm

I think this does what you want.

– Pasted Max Patch, click to expand. –
#213211
Oct 14, 2011 at 9:35pm

Thanks Christopher – that’s exactly what I was after!

#213212

You must be logged in to reply to this topic.