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

Turn on/fade off

Archive: 11 posts


Okay logic freaks... I need your help. I'm trying to get something (say, a light) to turn on instantly, stay on for say 20 seconds, but then fade off over a few seconds rather than just turning off again instantly. Is this possible with the new logic in any way?

Thanks for racking your brain for me.
2011-03-27 01:27:00

Author:
Rustbukkit
Posts: 1737


Set the on switch to activate a timer when its turned on, tweak the timer for the time you want it on, then set it to activate another timer that will activate the fade overtime, connect the 1st timer to the 2nd and both to an "OR switch,and connect that to the light.

I actually built something like that a while back.

Tell me if it works, or if I screwed up the instructions. xD
2011-03-27 01:47:00

Author:
Silverleon
Posts: 6707


You could transmit a 100% signal using a battery through an AND gate with a 20 second timer for the first bit. After that you'd need to break the signal between the battery and the light (by reseting the timer) and activate a countdown timer in a parallel circuit which will act to fade the light.

Edit: ^Yaru's suggestion is simpler and therefore superior!
2011-03-27 01:50:00

Author:
Ayneh
Posts: 2454


Thanks for the replies. I should have mentioned you need to reply in a way similar to talking to me like I'm a child... as I'm reeeeally horrible with logic.

I "think" I know what your describing here though. I'll give these ideas a shot and see what happens.

Thanks very much.
2011-03-27 04:03:00

Author:
Rustbukkit
Posts: 1737


Off the top of my head i would say hook a toggle into a timer. set the timer to start count up. This will act as your delay.

Now have that run into a second timer set to start count up as well, and run that into a NOT gate. This will act as your dimmer.

Run the NOT gate out into an AND gate along with the output from your original toggle. Run that out to your light set to dimmer.

Here's what happens. When you flick the switch and the toggle activates, it starts the first timer and completes the AND gate going to your light. Since the second timer is run through a NOT gate, you are now instantly getting 100% to your light. once the first timer finishes, it activates your second timer to count up. since this is going through a NOT gate, the signal is inverted so it dims the light.

Now just hook the reset signal to reset both timers and the toggle when it is done, and you are ready to trigger it again.
2011-03-27 04:19:00

Author:
tdarb
Posts: 689


Well... after hours of mucking around, none of these suggestions seem to be working... and everyday I learn to hate logic a little bit more.

The closest of all these solutions was tdarb's, but that deosn't seem to be applicable in this case either (plus, I had to add a third timer to actually get it working properly). This solution works on it's own, but I need about 30 of these set-up's all in a row on a sequencer - lighting up in sequence, holding in their ON state for the same duration, then all fading off in sync.

So... I think I'm pooched. I have a workaround using destroyers if I can't figure this out... but it looks pretty terrible for the effect I'm trying to achieve.

If nothing else comes to mind, I guess I'll have to wait until one of my logic savvy buddies pops on line and has some spare time to help out this old logitard.

Thanks for trying though.... I really appreciate your efforts.

Cheers!
2011-03-27 07:39:00

Author:
Rustbukkit
Posts: 1737


Set a counter of 1 to output into a timer set for 20 seconds and to start count up. Also come from the counters output to input 2 of a 3 port selector. The output of the 20 second timer goes to the input of state 3 on the selector. Nothing is in the input or output of state 1 of the selector, which is the current state. Output 2 on the selector goes into an or gate. Output 3 on the selector goes into a timer set to the length of the fade tweaked to start count down. Output from this timer to the other port of the or gate and the output of the or gate goes to the light. Whatever triggers the counter will turn on the light, and after 20 seconds, state 3 of the selector will fade the light. And make sure you set the light's input action to dimmer. I didn't explain it very good so you might not understand it from reading it, but it's easy to follow step by step to create it. I haven't tested this but It should work unless I overlooked something.2011-03-27 08:13:00

Author:
riverad08
Posts: 104


Thanks riverad08. One of the kind folks here have offered to hop online with me and see if they can help with it. I'm still going to give this a shot too though. I'll grab my Iphone and try to go through these instructions like I did the others... off my teeny tiny screen.

Thanks again.
2011-03-27 08:22:00

Author:
Rustbukkit
Posts: 1737


I don't have time to fire up the game and build one right now (usually I solve logic problems by building them myself) but I'll give it a shot anyway. Let me know if it doesn't work.

Set your "few seconds" timer's output to inverted and wire it into and AND gate wired into the light set to dimmer. Set the timer's input action to begin counting up. Plug your 20 second timer into the few second timer's input. Now hook whatever turns your light on into a counter set to 1. Hook the counter to the 20 second timer, the few second timer's reset, and the second input of the AND. Hook the few seconds' timer into a NOT and wire it back into the counter's reset.

If the inverted timer works the way I think it does (I haven't used inverted timers much), this should work.
2011-03-27 08:26:00

Author:
Sehven
Posts: 2188


Although there should be a clean electronic, gate, timer etc method of doing it, i think the most spaghetti-cable free and easier way to understand or built by amateurs, like myself, should be using a sequencer this way. Not sure about delays on this kind of design.

http://oi53.tinypic.com/2i0vfig.jpg

Some adjustment at the sequencers timing as well as where to put the battery and the timer in it, should be needed.
2011-03-27 11:36:00

Author:
zupaton
Posts: 167


Or, you could hook a tag sensor labeled something like..er.."Light".. to the light and then use tags to manipulate the intensity.
It is very flexible as you can just trigger a tag labeled "Light" every time you want the light on(as long as the tag is within the detection range, of course.

In your case, you could still use this setup:



http://oi53.tinypic.com/2i0vfig.jpg


But instead of wiring the OR gate directly to the light, wire it to the tag instead.

Be advised though, the tags cannot be on the same circuit board as the sensor.
2011-03-27 12:15:00

Author:
Discosmurf
Posts: 210


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.