Need help with some project

Hello. I need some help with a simple project: I need to recieve distance from ultrasonic range sensor, and if it will be in some range (e. g. from 5 to 30) servo will rotate on some angle, and then I need delay (servo will not rotate back again to previous angle even if distance is out of the range). So here is my patch without delay, I just dont know where to put it. In Arduino IDE this project is reeeally simple. Can anyone help me?


I suggest using an extra flip-flop

BTW, I see the pattern “set to 1 for X seconds, then reset to 0” is quite common. Maybe we should make a standard node for it… along with between node.

Many thanx, it works!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.