un-imaginative
02-12-2011, 06:59 AM
This is how to make a 'Release Switch', it detects when a switch is released sending a single signal pulse to the output. It can also be modified to have a delayed trigger after release. This may not be the most useful switch but I needed it in a level I'm working on so I'm sure other people can find a use for it.
Plus it is really simple to make, all you need is a 'NOT' gate, 2 counters and a timer (the second counter isn't essential but prevented it from glitching).
Components Set Up:
Counter #1: Target Count = 1, Current Count = 0, Inverted = NO
Counter #2: Target Count = 1, Current Count = 0, Inverted = Yes
Timer: Instant - Target Time = 0.1s, Current Time = 0.0s, Input Action = Start Count Down, Inverted = NO
_____..Delay - Target Time = Delay, Current Time = 0.0s, Input Action = Start Count Up, Inverted = NO
Circuit Set Up (As in Image):
- The Release Switch Input goes into the NOT Gate Input
- The NOT gate Output goes into the 2 Counter Inputs
- The Output of Counter #1 goes into the Timer Input
- The Timer Output goes to the Reset of both Counters as well as the Release Switch Output
http://img12.imageshack.us/img12/4442/releaseswitch.jpg
Hope you find this useful, feel free to ask if you have any questions.
Plus it is really simple to make, all you need is a 'NOT' gate, 2 counters and a timer (the second counter isn't essential but prevented it from glitching).
Components Set Up:
Counter #1: Target Count = 1, Current Count = 0, Inverted = NO
Counter #2: Target Count = 1, Current Count = 0, Inverted = Yes
Timer: Instant - Target Time = 0.1s, Current Time = 0.0s, Input Action = Start Count Down, Inverted = NO
_____..Delay - Target Time = Delay, Current Time = 0.0s, Input Action = Start Count Up, Inverted = NO
Circuit Set Up (As in Image):
- The Release Switch Input goes into the NOT Gate Input
- The NOT gate Output goes into the 2 Counter Inputs
- The Output of Counter #1 goes into the Timer Input
- The Timer Output goes to the Reset of both Counters as well as the Release Switch Output
http://img12.imageshack.us/img12/4442/releaseswitch.jpg
Hope you find this useful, feel free to ask if you have any questions.