PDA

View Full Version : Release Switch [Tutorial]



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.

saarraz1
02-12-2011, 10:00 AM
I made a similar sensor, called it the Signal Change Sensor (http://www.lbpcentral.com/forums/showthread.php?48824-LOGIC-TOOLS-Speed-Sensor-Signal-Change-Sensor)which sends out pulses on positive/negative signal switches.
I used 2 timers, each set to "Start Count Down" and had each connected to their own reset input to create the pulse, and connected a the input to the first timer, and it's complement to the second timer.
The main use of this I think would be to create synchronous systems (implement a clock interface)

waD_Delma
02-12-2011, 10:37 AM
Why you use timer to give the pulse? I would only hook NOT gate to counter that resets itself.

un-imaginative
02-12-2011, 11:41 AM
I tried using the self resetting counter, and for some reason it didn't work, at least for the thing I needed it for this seemed to be the simplest solution. It may be because the Counter resets itself too quickly or something, but when I tried that nothing happened

.jamo
02-12-2011, 12:00 PM
My release switch was a little different. Still works though ;]