PDA

View Full Version : Morphing Algorithm Switch and If:and Switch



lionhart180
06-25-2009, 05:36 PM
Well,firstoff I'd like to say hi, been awhile guys. My internet's been a bit off soit's been hard to upload stuff and play lbp so I took a break, but I'm back now!

I'm currently working on a new switch I've named the Morphing Algorithm Switch, a binary (on/off) built to swap between on and off on each hit.

Normally buttons will simply turn on a light when you are on them, then turn the light off when you get off.

I wanted to make a switch that will turn the light on when he hit it, keep the light on when you get off, but turn the light off when you hit it a second time. I tried a massive variety of combinations, sometimes involving three entire steps of movement with the switch, then realized I was way overcomplicating it.

Here's what I cam up with. First make a simple and/or switch, Thats the one with the two pistoned blocks on left and right side of a path in a block, with a free moving third block between them. Make two switches bounce the block back and forth and viola, one button can make a door open, a different switch can make it close.

Now to turn it into a MA switch, you'll need to do some tweaking, first off you need to line the bottom layer of your path the block slides on with a thin layer of glass.

Second, make the free moving block glass if it already isnt. Next, make the pistons's max length really really short, and set their speed to super fast, but not too fastthat they move through the block and break, but so they have enough strength to barely move but bump the block all the way to other side.

Finally, hook up your button or grab switch to BOTH pistons and set it to directional. Make sure when you grab it both pistons push inwards at same time in synch perfectly. You may need to change the direction of one piston.

Here's how it works. Say its a button switch hooked up, and the block is on the left side. When you grab it both pistons twitch inwards a hair super fast and stay there. The left piston bumps the block to the right side, but the right piston is already out and doesnt push the block back.

This turns on the light, and it stays on even after you let go. Grab it again and the block is bumper back and the light gos off and stays off.

:D

Next switch of mine, the If:and switch. This switch is another example of what sound slike a complicated task, but turns out to actually be a simple switch to make.

First, build a simple one way switch, thats just a single block in a tube with a piston on itthat slides it from one side of tube to other.

Now build an identicle tube right below it as close as possible, you can even put them in the same tube so they rub on each other.

Next, instead of having a key on a block and switch on wall, put the key on one block and the switch on the other.

Now simply build two two way sponge switches and stick em in your level. Hook each switch up to one of the pistons and set them both to directional.

How does it work and what does it do?

Well, basically when both switches are the same way the light is on, and when different it'll go off. In other words, it will give the illusion that both two way switches will turn your lght on and off!

Cool huh?

I am still working on a way to layer it with three switches,which is proving much more difficult.

I apolagize if anyone has made switches similiar to or identicle to these switches, Iam not taking any actual credit for these, but thought you guys might be interested in these two. I'll post more interesting not that run of the mill switches I've engineered offline if you want...

Here's some examples: You can attach a grab switch on the handle of a three way switch. Hmmmmm :idea:

rtm223
06-25-2009, 06:48 PM
Not meaning to burst your bubble, but there are a lot of these devices around. But, most people just look at what others have done and copy it, but you've gone away and worked it out for yourself, then shared it so I commend you for that :)

A point on terminlogy. The and/or switch you describe is generally known as a RS latch, or set-reset. The Morphing algorithm switch is a t-type latch, or toggle switch. The If:and is an NEXOR logic gate, or NOT(XOR).

The morphing algorithm and the and/or switch can be made in simpler ways than you propose, but as I said it's great you're working this stuff out for yourself rather than just copying others.

If you do fancy looking around at stuff other people have made, incinerator22 has a neat level on logic (in the showcase atm)

BSprague
06-26-2009, 08:01 PM
It is a very interesting concept, but as rtm223 said, it's been done. Check out Randofu's Advanced Logic Lesson for some interesting logic gates.

dawesbr
06-26-2009, 08:06 PM
It has already been done, but I admire your ingenuity. Reading your description for the first switch also gave me an idea. If you had it as two pistons either side of a /\ shape, you wouldn't need to worry about timing and what have you.

Incinerator22
06-29-2009, 05:31 PM
lol I dont want to laugh at you for how comlex yours sounds, but there's an easier way to do it. It's called a state switch and hears how it works. You make a circle with two squares or hooks on it that are equidistant from each other, and put a magnetic key switch on one of them. Then put some kind of blocker either with a piston or wobble bolt that's set to one shot, and attach the button to the one shot switch. Each time you jump on the button, the blocker goes off the circle, the circle spins around halfway, and then the blocker goes back on the circle catching on one of the squares or hooks on the circle. It sounds pretty complex to explain, but its amazingly simple, yet nonetheless genius. If you want to see it try my level, switches, tricks, and logic concepts for experts and dummies alike. :)

rtm223
06-29-2009, 05:54 PM
Actually incenerator your design is barely, if at all, simpler in than the one described here. Plus the notched wheel designs are sketchy in the fact that unless configured correctly they can tear themselves apart.

I have a t-type flip-flop which is simpler than yours as well :p

Shermzor
06-29-2009, 10:27 PM
Smallest state is one that I picked up in micro logic gates. I sure wouldn't know how it works but with about 6 pistons on a tiny piece of dark matter that's the best bet.

Simplest is a level that I copied (the original author made it copyable so naturally it got stolen and I want to find out who made it because it has an awesome logic puzzle); a U shape in glass, each end of the U has a piston, when activated both pistons spring out and the key will be tossed either side.

rtm223
06-29-2009, 10:38 PM
Here's some examples: You can attach a grab switch on the handle of a three way switch. Hmmmmm :idea:
Ohhhh, only just saw this. I'm sure I tried it a couple of months ago and it didn't work. Is this a sneaky update or was I being a spaz?

Shemzor, your post confuses me...

Smallest state is one that I picked up in micro logic gates. I sure wouldn't know how it works but with about 6 pistons on a tiny piece of dark matter that's the best bet.
What's this?