Barotrauma

Barotrauma

View Stats:
GameJayRemy Dec 16, 2022 @ 2:53pm
Sustained signal?
Essentially I'm trying to get a motion sensor to only send a signal if it detects an object for x amount of time, say 2 seconds.
< >
Showing 1-5 of 5 comments
AlienJesus Dec 16, 2022 @ 3:08pm 
relay and a delay. once the signal is received by the delay it will toggle the relay off in X seconds, which cuts the signal off for the motion sensor running through it.
GameJayRemy Dec 16, 2022 @ 3:08pm 
I figured it out messing around some more.

If anyone is interested, Have a motion sensor send the signal to a delay component for X amount of time, the delay sends a signal to a AND component. The AND component also recieve's a Signal directly from the motion sensor.

I had to use a 2nd motion sensor to send an off signal when stepping out of range though, otherwise it just stayed on.
GameJayRemy Dec 16, 2022 @ 3:09pm 
Originally posted by AlienJesus:
relay and a delay. once the signal is received by the delay it will toggle the relay off in X seconds, which cuts the signal off for the motion sensor running through it.

Edit** So I tried this method and when its on toggle state, the door never opens and just makes a noise likes its opening and closing constantly.
Last edited by GameJayRemy; Dec 16, 2022 @ 3:16pm
AlienJesus Dec 16, 2022 @ 3:22pm 
you need to tick the "reset when signal is received" box in the delay comp.

And if you are wiring a door its a bit diff. My method is just to cut off the signal the motion sensor sends. That box will stop it from doing that though.

You could also state out of relay to set state of door. Dont use the delay signal for that. Use the delay to toggle the relay state.
Last edited by AlienJesus; Dec 16, 2022 @ 3:30pm
Quazy Dec 17, 2022 @ 5:38pm 
there is a detection interval in the motion detector itself. it not perfect but it can produce this effect of only being able to change state every x seconds.

great for airlocks where someone may get pushed out of detection zone breifly when the door opens.

taking from the detector OR delay for immediate open and delayed close.
taking from the detector AND delay for delayed open and immediate close.

note u may want to reset the AND delay. so the door cant immediatly open on the next state change

Last edited by Quazy; Dec 17, 2022 @ 6:04pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Dec 16, 2022 @ 2:53pm
Posts: 5