Mechanical Logic Gates

MantridMantrid Lockpick Join Date: 2003-12-07 Member: 24109Members
What sort of mechanical logic gates can be constructed? I saw someone build a few in Garry's Mod, and I'd like to figure out how to build a few myself.

I've heard of people building NOT, AND and OR gates physically with things like Legos, but those use gears. Basically, I want to know what I can build in Garry's Mod. So, pulley's, weights, wheels, et cetera can be used, but no gears, electrical components, or fluids.

It may not even be possible, but its still worth an attempt.

Comments

  • NumbersNotFoundNumbersNotFound Join Date: 2002-11-07 Member: 7556Members
    Trying to build a really really complex calculator, are we?

    I'm pretty sure that with a few basic logic gates you can do aritmetic.
  • MantridMantrid Lockpick Join Date: 2003-12-07 Member: 24109Members
    I know that, I just need to know how to build the basic components to do Boolean Algebra using physical things (well, simulated physical things).
  • kill4thrillskill4thrills Join Date: 2004-06-24 Member: 29506Members, Constellation
    <a href='http://goldfish.ikaruga.co.uk/logic.html' target='_blank'>http://goldfish.ikaruga.co.uk/logic.html</a>

    looks waaaaay too complicated to build more than 1 or 2 in garry's mod. you'd be running at 10 fps...
  • GwahirGwahir Join Date: 2002-04-24 Member: 513Members, Constellation
    taking a look at how they actually work in there, they really aren't complicated at all.
  • DaJMastaDaJMasta Join Date: 2005-01-10 Member: 34750Members, Constellation
    Wow, lego logic, now thats some hawt stuff.
  • Omega_DeathOmega_Death Sith apprentice to a box of Cereal Join Date: 2003-08-06 Member: 19042Members
    My God! (Has a heartattack)
  • LikuLiku I, am the Somberlain. Join Date: 2003-01-10 Member: 12128Members
    Can someone explain to the retarded[AKA me] what that thing does?
  • Cold_NiTeCold_NiTe Join Date: 2003-09-15 Member: 20875Members
    What are these things?!?

    THEY TERRIFY ME.
  • MantridMantrid Lockpick Join Date: 2003-12-07 Member: 24109Members
    edited July 2005
    Okay, basically, they're the simplest, most basic component of modern computing.

    Basically, you have three basic logic gates, each which has a specific function:

    NOT, represented by ~
    NOT takes an input, then provides whatever it isn't. A will be our input, and Q our output. Bellow is what is called a Truth Table. Keep in mind that Boolean logic uses Binary.

    A | Q
    0 | 1
    1 | 0

    OR, represented by v.
    OR returns true if one or both of its inputs is true. A will be our first input, B our second, and Q out output.

    A | B | Q
    0 | 0 | 0
    1 | 0 | 1
    0 | 1 | 1
    1 | 1 | 1

    AND, represented by ^.
    AND returns true only if both of its inputs are true.

    A | B | Q
    0 | 0 | 0
    1 | 0 | 0
    0 | 1 | 0
    1 | 1 | 1

    From these three you can construct more complicated gates, such as NAND (NOT AND), NOR (NOT OR) and XOR (eXclusively OR).

    Edit: Using these, you can build very simple computational devices such as a single bit adder, which you can connect to more single bit adders, until you have a very simple calculator. And once you can do basic arithmatic, you're on your way to building a CPU.
  • 2_of_Eight2_of_Eight Join Date: 2003-08-20 Member: 20016Members
    So, trying to make a computer in Garry's Mod? Theoretically, it's possible. Right? If these gates are all it's made of.

    You'd have to remove friction, gravity, etc. All useless <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
  • SoulSkorpionSoulSkorpion Join Date: 2002-04-12 Member: 423Members
    Hehe... we had this as a tute question in Foundations of Computer Science 151 in the first week. That was fun <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->. Well, obviously not Garry's Mod; just how to implement logic gates mechanically.
  • kill4thrillskill4thrills Join Date: 2004-06-24 Member: 29506Members, Constellation
    <!--QuoteBegin-2 of Eight+Jul 13 2005, 10:30 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (2 of Eight @ Jul 13 2005, 10:30 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> So, trying to make a computer in Garry's Mod? Theoretically, it's possible. Right? If these gates are all it's made of.

    You'd have to remove friction, gravity, etc. All useless <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    but you'll need to join a lot of different gates together just to make a simple 1 bit adder (yes... just adding 1's and 0's) . if you want to add 4 bits, you'll need to put 4 of these together...

    a simple 1 bit full adder circuit (http://www.rwc.uc.edu/koehler/comath/images/fulladd.jpg) requires
    3 NOT gates
    6 AND gates
    2 NAND gates
    3 OR gates

    not really practical to build in gmod cause the welds, cables and pulleys take a LOT of cpu power to process, and you'll be doing tons of welds just to make a gate, so forget about building even simple calculators in gmod

    it's quite remarkable when you think about how little common folks know about how cpus work, and it takes so much design just to make a calculator that adds a couple of bits, let alone decimals, and complex math like square roots
  • GwahirGwahir Join Date: 2002-04-24 Member: 513Members, Constellation
    edited July 2005
    1 bit adder: xor gate

    1 bit adder with a carry: 1 xor gate and 1 and gate

    edit: also these are not the most basic components in modern computing, nmos and pmos transistors are.
  • NecroticNecrotic Big Girl&#39;s Blouse Join Date: 2002-01-25 Member: 53Members, NS1 Playtester
    As I have a completely un-scientific train of thought most of this makes not a lot of sense to me but I have sat down some late evenings and pondered how we went from this stuff you're yammering about to being able to post messages like this on an electric noticeboard, play 3d rendered simulators and create music on the same machine...
  • Soylent_greenSoylent_green Join Date: 2002-12-20 Member: 11220Members, Reinforced - Shadow
    edited July 2005
    <!--QuoteBegin-Gwahir+Jul 14 2005, 01:27 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Gwahir @ Jul 14 2005, 01:27 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> 1 bit adder: xor gate

    1 bit adder with a carry: 1 xor gate and 1 and gate

    edit: also these are not the most basic components in modern computing, nmos and pmos transistors are. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No wait conductors, semiconductors and insulators are... no wait atoms are. wait... no... electrons and nukleons... ah well quarks and electrons... strings?
  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    gj Soylent green, you just reached the 11th dimension <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->
  • ChronoChrono Local flyboy Join Date: 2003-08-05 Member: 18989Members
    thats some realy amazing stuff
Sign In or Register to comment.