Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

Independent Switches, same function

Archive: 23 posts


Apologies if there's already a thread, I couldn't find one.

I've a set of platforms on pistons and I'd like to control the direction of them from two seperate buttons or 2/3 way switches.

e.g. The platforms are raised, you lower the platforms from switch A, cross them, then pull switch B and they raise back up to get you to point C. Easy enough, but I'd like the player to be able to raise and lower the platforms from both switches......???
2010-05-18 14:37:00

Author:
julesyjules
Posts: 1156


Use some form of AND-able three ways (that's what I call it anyway, cuz the first time I used it / created it I needed it wired up to an AND gate). I have one that I made (for the forklift in my 00Sack-Revenge barrel section). It works very well, but is a bit large in that it relies on shafts of glass and floaty material:
http://i168.photobucket.com/albums/u180/v0rtex2002/APhoto_1.jpg
As discussed in this thread:
https://lbpcentral.lbp-hub.com/index.php?t=13354-3-Way-AND-switch-logic
There are other options for achieving this (mag key on the 3-Way sponge handle, etc), but I found them tricky to get working consistently.

Attach the left-right outputs of this switch/gate to two OR gates and the output of those to an off-camera 3-Way with winches attached.

Did that make any sense?
2010-05-18 14:53:00

Author:
v0rtex
Posts: 1878


Thanks Vortex, thats a big help!2010-05-18 18:08:00

Author:
julesyjules
Posts: 1156


I've a set of platforms on pistons and I'd like to control the direction of them from two seperate buttons or 2/3 way switches.

Actually, I did an example very similar to this for someone else. It consists of four doors which can be toggled open/closed by any of three separate buttons, and utilizes a three-input OR gate, and a toggle switch.

If that sounds like it's of any use, then check out my copyable level entitled "Examples for synchronizerman v6".
2010-05-18 19:23:00

Author:
Aya042
Posts: 2870


A toggle would be the simplest solution (I'm guessing I know what aya has done there). The three-way switches is probably best done with the mag key bolted to the handle method as per the linked thread. If you want two way switches, that may be a little awkward. If you want two ways, it'll get a little bit more interesting.

So depends what interface you actually want on them
2010-05-18 19:33:00

Author:
rtm223
Posts: 6497


Thanks for posting guys.


If that sounds like it's of any use, then check out my copyable level entitled "Examples for synchronizerman v6".

Thats perfect! and looking at it, there's no way i would have worked that one out. I tried the bolted on mag switches too and couldn't get my head round what needed to go where.
Thanks Aya, its moments like this I want to give the site a big hug!
2010-05-18 21:19:00

Author:
julesyjules
Posts: 1156


I think this is something I needed for IA and really struggled to find a way. I needed two 3 way switches to do the exact same job and no one could really come up with a solution for me.

The one I thought of was putting a mag switch on the background just behind the handle and the key on the handle so when you pulled it it activated...but I could never get the key to actually attach to the handle...are you guys saying that's possible now?

In the end I was lucky as the switches were perfectly level...so I just connected a rod upto each handle so when one moved they both moved.
2010-05-18 21:27:00

Author:
jackofcourse
Posts: 1494


It's not possible in my books - It might be if you are really clever like Aya.

Jack, I think using string would work too - even if they weren't on the same level... Lemme check...
2010-05-18 21:39:00

Author:
Richasackboy
Posts: 619


String would only work if you were pulling not pushing...as when you pushed it would just bunch up 2010-05-18 21:42:00

Author:
jackofcourse
Posts: 1494


Absolutely, it's possible with the three way. Probably always has been. I posted a full solution over at the workshop aaages ago, and have half the device sitting on my moon, could have it up and running in about 10 mins if anyone wants it?

All you need to do is to bolt the magnetic key onto the three way handle and then have mag keys to detect left and right.
2010-05-18 21:48:00

Author:
rtm223
Posts: 6497


What do you mean by bolt it on?

I don't have any reason to know this any more other than curiosity but I remember when I did try just placing the key on the handle it looked like it had worked...and then when you moved the handle the mag key just stayed exactly where it was floating on nothing!
2010-05-18 21:52:00

Author:
jackofcourse
Posts: 1494


WEll you have to attach it using a piece of material, which is bolted to the handle, as per the linked thread.

On a side note, what I have lying around on my moon is a latching 3-way, using a similar technique. Basically it has three positions and outputs a normal threeway signal as usual, but will not automatically return to the center point - sackboy has to manually move it to center. Just a subtle variant on the existing switch that I thought might be cool
2010-05-18 21:55:00

Author:
rtm223
Posts: 6497


Ah that makes sense, why I didn't try that I have no idea

Granted, it was about a year and a half ago, I forgive myself!
2010-05-18 21:58:00

Author:
jackofcourse
Posts: 1494


In the end I was lucky as the switches were perfectly level...so I just connected a rod upto each handle so when one moved they both moved.

ha! Thats my kind of logic!
2010-05-18 22:08:00

Author:
julesyjules
Posts: 1156


ha! Thats my kind of logic!

Simple and effective
2010-05-18 22:17:00

Author:
jackofcourse
Posts: 1494


Simple and effective

Yep. It's often the case that a simple physics-based solution beats everything else. I recall a similar situation where comph challenged me to come up with a device whereby pulling a three-way in either direction would trigger one of two different sound objects, so I ended up connecting a piece of material with an attached mag key directly to the switch handle with a rod, and using two offscreen mag switches to trigger the sound, rather than bothering to even connect the wire from the three-way to anything.
2010-05-19 00:02:00

Author:
Aya042
Posts: 2870


Yeah - I tried the bolted mag key, but I had difficulty getting it to act consistently - especially in the neutral zone. That's why I ended up creating the object shown in my earlier post. If you guys have got the bolted mag-key solution working tho, it's definitely going to be more thermo friendly and less obtrusive than mine (and... if so, anyone willing to share theirs?? )2010-05-19 14:28:00

Author:
v0rtex
Posts: 1878


Wow, late to the party... but if you are willing to use two 2-way switches, has anyone considered something as simple as an XOR (exclusive OR)? Based on what you have described, this would be ideal (and amazingly simple) if you want the platforms to just change positions (either up or down) when either of the switches is flipped. To be honest, I'm a bit confused why everyone has focused solely on a three-way switch interface, since based on your intended use it sounds like you would prefer a simple 2-way switch setup.

If not, then skip over the rest of what I am about to explain.

An exclusive OR, when taking two directional inputs can serve very much the same purpose as two light switches in your house operating the same light. Since either one can turn the light ON or OFF, neither has a default ON position, or a default OFF position. Thus, flipping either switch will just change the "state" of your output. In other words, flipping the light switch would either turn the lights on if they were previously off, or off if they were previously on. Well, we can accomplish the same thing with a platform using this very simple setup:

http://img199.imageshack.us/img199/2596/aphoto1k.jpg

Here, we have put both the key and the switch on moving parts (piston controlled), which are wired directly from the two way switches. Note that the radius for the magnetic key switch is fairly small, but still "catches" the key when they are "matched up."

http://img94.imageshack.us/img94/7200/aphoto2t.jpg

Here, we have flipped one of the switches, and now the lights are off. In terms of what you would do, this could lower a platform by using a directional output on that magnetic key switch.

http://img243.imageshack.us/img243/9272/aphoto3.jpg

But now we have flipped the other switch, and so the lights are back on. This could be the re-raising of your platforms.

http://img17.imageshack.us/img17/5999/aphoto4v.jpg

And finally, this illustrates that returning to the first switch and flipping it again will still turn the lights off. This could be a scenario where the platform again lowers, say in the event that the player died and had to respawn.

Did that make sense, or was I too vague?

2010-05-20 02:45:00

Author:
comphermc
Posts: 5338


Comph, that's actually the only solution I did understand on this thread xD
Once rtm really gets into his logic-speak, I'm lost.
2010-05-20 06:21:00

Author:
KablooieKablam
Posts: 364


*Reinvents light switches*

Oh yeah, I forgot about that...
2010-05-20 09:56:00

Author:
rtm223
Posts: 6497


bla bla smarty pants

While you were typing all this out and being all clever...there were 81.5 posts put on the forum that were rude and abusive...and you missed them all because of your helpfulness. You're a terrible mod, get your priorities right smarty pants!

I actually explained an XOR to someone using the light switch example the other day too!

To be fair, I wasn't trying to help anyone in this thread I was just being selfish and exploiting it to talk about a similar thing I needed ages ago
2010-05-20 12:22:00

Author:
jackofcourse
Posts: 1494


To be honest, I'm a bit confused why everyone has focused solely on a three-way switch interface, since based on your intended use it sounds like you would prefer a simple 2-way switch setup.

Oddly enough, that was the first thing I thought of, but I misread the OP.

Where it said "2/3 way switches", I interpreted that as "2 or 3 switches", and thought that a combinational solution with more than two switches would start getting a bit too complex, so I suggested a sequential solution with buttons which could be trivially extended with any additional number of buttons.

But, with a two-switch setup, this XOR solution is the most efficient.



While you were typing all this out and being all clever...there were 81.5 posts put on the forum that were rude and abusive...and you missed them all because of your helpfulness. You're a terrible mod, get your priorities right smarty pants!

I second that.

You don't see me replying to this thread when there's mod work to be done... oh, wait...
2010-05-20 12:22:00

Author:
Aya042
Posts: 2870


Comph you genius. Oh lordy, it's actually so simple when you see it in front of you that it's almost depressing....2010-05-20 14:31:00

Author:
julesyjules
Posts: 1156


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.