Logic Gadgets: OR gate

Icon
Name of gadget OR gate
Section Logic & Processing
Number of Tweak pages 1
Author LadylexUK, QuietlyWrong
Last updated 22 Feb 2019

Description

This gadget analyses two or more signals and produces a positive (true) signal if ANY of them is true. You would use this to activate something when any one of a selection of conditions needs to be true for an action to happen. You can add up to 10 conditions to this gadget (see tips below if you need more). For example if you had a crazy broomstick-basketball game with three hoops on each side, you could use an OR gate (along with other logic) to check whether the ball had gone through any one of the hoops and trigger a triumphant “Score!” event.

Example Tutorial (adapted from Media Molecule)

  1. Place 2 trigger zones overlapping each other so you have two zones and an area where both zones intersect
  2. Place a light
  3. Place a puppet
  4. Place an OR gate
  5. Connect the detected outputs on each of the trigger zones to the OR gate inputs A and B
  6. Connect the result of the OR gate to the power port of the light.
  7. In test mode possess your puppet and walk into the trigger zones and the overlapping area.
  8. You will notice the light comes on in every instance.
  9. Change the OR gate for an AND gate or an XOR gate to see the differences in these logic gadgets (for AND, the light will only come on in the overlapping area; for XOR, the light will come on with the puppet in either zone on its own but not the overlapping area).

Tweak Menus

  1. No. of Ports
    1a. Input
    1b. Output
  2. Inputs
    2a. Input
  3. Result
    3b. Output
  4. Power
  1. No. Of Ports
    Select how many inputs you are comparing here. The ports are activated in strict sequence from top to bottom, A to J.
  2. Inputs
    Wire your inputs into each port. An active port with no input will default to a “false” signal, though this is unimportant because one extra “false” signal won’t change the operation of the OR gate. (This is not the case for AND gates!)
  3. Result
    This will produce a signal of true (1) if ANY of the attached inputs is true (1). It produces a signal of false (0) only when ALL of the inputs are false (0).
  4. Power
    This is where you can turn the gadget on/off.

QW Tips

If you need to detect more than 10 conditions, you could use multiple OR gates together, each one detecting up to 10 signals, then each one outputting to another OR gate which would output true if any one of the umpteen original conditions is true. By nesting OR gates, any number of conditions can be checked.

However… You should also consider using some tags and a trigger zone gadget instead. Use the completion of each condition to activate a tag and then use the trigger zone to determine whether any one tag is switched on – just give all these tags the same name. And remember not to use that tag name for any other tags not related to this conditional test!

Useful Tutorials

Beginners guide to Logic Gates

One thought on “Logic Gadgets: OR gate

Add yours

  1. One point about nesting the OR gates in case you need to compare more than 10 inputs.
    As far as I know, you can connect more cables into one input. And as long as ony of them is 1, it will power that input port. So even for big number of inputs, only one OR gate should be needed. You just hook more wires per input.

    Like

Comments and Feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: