Add separate up/down timeouts #65

Closed
opened 2020-08-09 17:23:21 +03:00 by skorokithakis · 1 comment
skorokithakis commented 2020-08-09 17:23:21 +03:00 (Migrated from github.com)

My use case is one where I have a light sensor that goes low when something blocks a (closing) door. When it goes low, it does so fairly immediately with little noise, but high is more noisy (because it's floating and the pullup resistor is a bit weird).

It would be very useful if I could define a different interval for going low vs going high. I care about seeing a low immediately (I don't want the door to hit whatever is in the way) and don't mind false positives, plus low is not as noisy so a smaller interval is more reliable. The high interval could be 300 ms, since I don't really care to be quick about detecting when the obstacle has left.

My use case is one where I have a light sensor that goes low when something blocks a (closing) door. When it goes low, it does so fairly immediately with little noise, but high is more noisy (because it's floating and the pullup resistor is a bit weird). It would be very useful if I could define a different interval for going low vs going high. I care about seeing a low immediately (I don't want the door to hit whatever is in the way) and don't mind false positives, plus low is not as noisy so a smaller interval is more reliable. The high interval could be 300 ms, since I don't really care to be quick about detecting when the obstacle has left.
thomasfredericks commented 2020-08-09 17:27:41 +03:00 (Migrated from github.com)

When the state changes just change the interval. Also, it seems your problem is more hardware than software.

When the state changes just change the interval. Also, it seems your problem is more hardware than software.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/thomasfredericks_Bounce2#65