0
\$\begingroup\$

I wonder how to make logic gates without transistors, logic-integrated circuits, or diodes. The components that I need are: two terminal push switches, a resistor, a 3v battery, led.

\$\endgroup\$
6
  • 3
    \$\begingroup\$ Is this a homework question? There are any number of "intro to digital logic" guides that use switch logic as an example. \$\endgroup\$
    – vir
    Jul 6, 2023 at 22:52
  • \$\begingroup\$ No. I was fiddling around with a breadboard and was wondering if it is possible to make logic gates without using transistors. \$\endgroup\$
    – Jadon Jung
    Jul 6, 2023 at 23:00
  • 1
    \$\begingroup\$ Two or more switches in series performs "AND" function, two or more switches in parallel performs "OR" function. Unfortunately, there's no way to do "NOT" directly, so it isn't a "universal" system of logic. \$\endgroup\$
    – Dave Tweed
    Jul 6, 2023 at 23:28
  • \$\begingroup\$ You can use relays and other electromechanicals and have a 5 horsepower computer: en.m.wikipedia.org/wiki/Harvard_Mark_I \$\endgroup\$
    – Bryan
    Jul 6, 2023 at 23:37
  • 1
    \$\begingroup\$ @DaveTweed what about a NC switch? \$\endgroup\$
    – jsotola
    Jul 7, 2023 at 1:25

1 Answer 1

3
\$\begingroup\$

Put the resistor in series with the LED. Put two switches in series and you will get an AND gate:

schematic

simulate this circuit – Schematic created using CircuitLab

Put them in parallel to get an OR gate:

schematic

simulate this circuit

Put one switch like in the circuit drawn below for a NOT gate:

schematic

simulate this circuit

\$\endgroup\$
3
  • 2
    \$\begingroup\$ Yes, but the "NOT gate" is not in a form that can be combined easily with the "AND" and "OR" configurations to create arbitrarily complex logic. \$\endgroup\$
    – Dave Tweed
    Jul 7, 2023 at 0:27
  • 3
    \$\begingroup\$ @DaveTweed Dude asks about making a logic gate (singular) without transistors and diodes, not about creating "arbitrarily complex logic". \$\endgroup\$
    – user344209
    Jul 7, 2023 at 0:55
  • \$\begingroup\$ Is it possible to make a xor gate using and,or,not gates? \$\endgroup\$
    – Jadon Jung
    Jul 7, 2023 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.