Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Tutorials
#1

Release Switch [Tutorial]

Archive: 5 posts


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.
2011-02-12 07:59:00

Author:
Unknown User


I made a similar sensor, called it the Signal Change Sensor (https://lbpcentral.lbp-hub.com/index.php?t=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)
2011-02-12 11:00:00

Author:
saarraz1
Posts: 86


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

Author:
waD_Delma
Posts: 282


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 happened2011-02-12 12:41:00

Author:
Unknown User


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

Author:
.jamo
Posts: 172


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.