Mechanical AND and OR Gate

this guide will show you how to make a mechanical AND and OR gate. (AND and then OR):

The AND Gate

First, let’s define an AND gate. An AND gate take in 2 true/false values and gives us a true values if both of the inputs are true and gives us false if at least one if false. This is pretty easy to implement with trigger chains. If even one is inactive in the chain, then the chain won’t complete. So we have the concept, now let’s implement it!

First, we need our inputs. I’m using trigger activation states. You’ll need to convert your true/false into trigger activation states to use this. Let’s take a look at the system I made:

image

The 2 triggers in the bottom left is the data that is encoded into. Make those 2 triggers receive on “Start AND Gate” and have a delay of .1. The first should broadcast on “Set Bool 1” when its triggered. The second should broadcast on “Set Bool 2” when its triggered. Make the bottom right trigger broadcast on “Start AND Gate” when its triggered. You will start your AND gate using this trigger. if you want to say it. Wire it to the trigger above it. This trigger should have a delay of .15. Next, make the trigger above that (grey left side) not active on game start. Make it deactivate on “Start AND Gate” and activate on “Set Bool 1”. For the people who actually read a guide before saying nice guide. Do the same with the trigger above that but with “Set Bool 2”. Wire the top one to a trigger that does stuff for the true case. I used a counter for testing purposes.

Fun Fact

If the trigger is inactive, the orange part of the trigger will turn grey. Also, wires also run clockwise, so you can tell the direction it runs without having to see the little line move.

Now, make the trigger all the way to the top left be triggered by “Start AND Gate”. It should have a delay of 1. It should trigger the trigger to its right. That trigger should be the one for “False” and should be deactivated by the true case.

WIP

4 Likes

ooooo cool! Nice (eventual) guide idea!

2 Likes

Can’t wait to see the full guide!

1 Like

You’ll use counters, right?

right?

2 Likes

No. Counters are just there to test it.

1 Like

I’m confused what a OR gate is.

1 Like

But… like… aren’t they more mem-efficient?

1 Like

If one thing is true, or another thing is true, then it outputs true.

3 Likes

Maybe… They are. It breaks my heart, but counters are better than triggers.

1 Like

ah ok.
Nice guide, @getrithekd !

1 Like

The only problem is that you can’t easily send out a signal if it doesn’t meet the criteria. With any check, you need a confirm and a deny signal, and the counters only send out a confirm.

1 Like

My system does exactly that, that is outputs a channel for no and yes.

1 Like

Wdym they can’t send out a confirm?

1 Like

Oop, i meant they only send out a confirm, not a deny

1 Like

I still think that counters are better for this case because counters can’t really store data as well as triggers.

1 Like

bump
(um, getrithekd, i think you ran out of editing time for this)

edit: ARGH my e key

2 Likes