# Inverters/NOT gate without transistors

**URL:** <https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793>\
**Category:** Factual Questions\
**Created:** [December 10, 2020, 7:55pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793 "2020-12-10T19:55:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)\
**Post date:** [December 10, 2020, 7:55pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/1 "2020-12-10T19:55:48Z")

</div>

So an inverter or NOT gate (not to be confused with the AC/DC power inverter) is an abstract electric component that takes one input at either a high or low voltage state, and has one output which is the opposite voltage state of the input. At least that’s how I understand it.

Normally you would use a transistor. I’m wondering how it can be made without transistors.

One idea I was thinking about is to use an old-fashioned relay with two contacts, the kind with a spring.

~Max

---

<div class="post-metadata">

**Author:** ![casdave](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@casdave](https://boards.straightdope.com/u/casdave)\
**Post date:** [December 10, 2020, 8:06pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/2 "2020-12-10T20:06:04Z")

</div>

It really depends on what you are tryiing to achieve - does it have to switch a significant current, does it have to operate at a particular speed?

Certainly you can use relays as a form or logic - I used to work on clickety clack telephone exchanges that used such logic extensively.

OTOH a simple latching mechanical switch can do it to an extent.

Also do you want a latch system to retain the current condition or do you want it to return to a particular state when you lose power and then restore power - like a safety switch.

---

<div class="post-metadata">

**Author:** ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)\
**Post date:** [December 10, 2020, 8:11pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/3 "2020-12-10T20:11:11Z")

</div>

I’m not actually building one, just a question borne out of curiosity. But I had in mind using it for logic, as in simple appliances, not so much as a safety switch.

~Max

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [December 10, 2020, 8:15pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/4 "2020-12-10T20:15:11Z")

</div>

A transistor is by far the easiest way to do it.

Assuming that this is some sort of thought exercise, you can also create a logic inverter with vacuum tubes.

It would probably be a bit slow (even slower than a relay) but you could use a heating element and a bi-metallic disk, with a switch connected to the disk.

There are also mechanical solutions, such as using a lever to invert the position of a switch or lever, for example.

If you want something practical for an appliance, you’re better of sticking to transistors and relays. Appliance controls are much more sophisticated and reliable if you use a microcontroller to do all the fancy logic stuff.

---

<div class="post-metadata">

**Author:** ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)\
**Post date:** [December 10, 2020, 8:17pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/5 "2020-12-10T20:17:28Z")

</div>

> [@engineer\_comp\_geek](#):
>
> a heating element and a bi-metallic disk

How does that work?

~Max

---

<div class="post-metadata">

**Author:** ![casdave](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@casdave](https://boards.straightdope.com/u/casdave)\
**Post date:** [December 10, 2020, 8:21pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/6 "2020-12-10T20:21:26Z")

</div>

Using valves is way faster than relays - the original electronic computor used valves.

You can very easily get in to the 10s of MHz switching - that would be trivial, you can go much much higher than that

---

<div class="post-metadata">

**Author:** ![Crafter\_Man](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/crafter_man/32/458_2.png) [@Crafter\_Man](https://boards.straightdope.com/u/Crafter_Man)\
**Post date:** [December 10, 2020, 8:21pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/7 "2020-12-10T20:21:45Z")

</div>

Light bulb shining onto a photocell, where the latter has a pullup resistor. When the light bulb is on (1 or “high”), the photocell will conduct and produce a low voltage. When the light bulb is off (0 or “low”), the photocell will be high resistance and produce a high voltage.

Heater and NTC thermistor, where the latter has a pullup resistor. Same as above.

There are lots of ways of make a NOT function using heaters, relays, light bulbs, motors, etc.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [December 10, 2020, 8:22pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/8 "2020-12-10T20:22:30Z")

</div>

> [@Max\_S](#):
>
> How does that work?

It’s not terribly practical. As I said it’s more of a thought experiment.

If you heat up a bi-metallic disk it will change its shape as the different metals pull against each other at different rates (this is basically how your car’s thermostat works and how non-electronic furnace thermostat switches work). So your logic “input” heats up the heating element, and causes the disk to snap to its “hot” position, flipping the switch off. Turn off your logic input, the disk cools and snaps back to its “cool” position, and flips the switch on.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [December 10, 2020, 8:25pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/9 "2020-12-10T20:25:05Z")

</div>

> [@Crafter\_Man](#):
>
> motors, etc.

A motor with a normally closed centrifugal switch would be another thinking-outside-the-box type of solution (and has some practical applications as well).

---

<div class="post-metadata">

**Author:** ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)\
**Post date:** [December 10, 2020, 8:26pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/10 "2020-12-10T20:26:05Z")

</div>

> [@engineer\_comp\_geek](#):
>
> If you heat up a bi-metallic disk it will change its shape as the different metals pull against each other at different rates (this is basically how your car’s thermostat works and how non-electronic furnace thermostat switches work).

Okay, that makes sense. I was looking it up and found all these bimetal thermostat components.

~Max

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [December 10, 2020, 8:41pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/11 "2020-12-10T20:41:00Z")

</div>

I was very surprised to learn many years ago that the first op-amps used vacuum tubes. I learned this because the device I’d “inherited” in our lab was built this way. The Op Amp was in a drawer that I had to slide out. According to the Wikipedia page on them, the first Operational Amplifier dates to 1941.

So my immediate thought, which has been stated many times here already, is to use vacuum tubes (“valves”).

---

<div class="post-metadata">

**Author:** ![gonzoron](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gonzoron](https://boards.straightdope.com/u/gonzoron)\
**Post date:** [December 10, 2020, 8:55pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/12 "2020-12-10T20:55:04Z")

</div>

Trained monkey who flips a switch when a light turns on?

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [December 10, 2020, 9:03pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/13 "2020-12-10T21:03:12Z")

</div>

> [@Max\_S](#):
>
> I was looking it up and found all these bimetal thermostat components.

It’s the same idea. It’s really the same as an electromagnetic relay, except that instead of a magnet it uses the bending force from differential thermal expansion.

---

<div class="post-metadata">

**Author:** ![Marvin\_the\_Martian](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/marvin_the_martian/32/2898_2.png) [@Marvin\_the\_Martian](https://boards.straightdope.com/u/Marvin_the_Martian)\
**Post date:** [December 10, 2020, 9:32pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/14 "2020-12-10T21:32:47Z")

</div>

You could build some fairly complex logic using relays. There used to be a tic-tac-toe playing machine at the Franklin Institute (back in the 1960s) that used relay logic. I believe my intro digital logic design textbook mentioned relay-based logic as well.

ETA: Professor teaching the course said that relay-based logic was used in elevator controllers back in the day.

---

<div class="post-metadata">

**Author:** ![TriPolar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tripolar/32/3008_2.png) [@TriPolar](https://boards.straightdope.com/u/TriPolar)\
**Post date:** [December 10, 2020, 9:40pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/15 "2020-12-10T21:40:46Z")

</div>

Another thermal approach is a wax motor. They use thermal expansion to create linear actuators and are in used as thermostats.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [December 10, 2020, 9:45pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/16 "2020-12-10T21:45:03Z")

</div>

> [@Marvin\_the\_Martian](#):
>
> I believe my intro digital logic design textbook mentioned relay-based logic as well.

You can build a [fully-fledged computer](https://en.wikipedia.org/wiki/Z3_(computer)), with floating-point math and other features, using just relays.

[This guy](http://www.nablaman.com/relay/about.php) made one fairly recently, inspired by the Z3.

---

<div class="post-metadata">

**Author:** ![Marvin\_the\_Martian](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/marvin_the_martian/32/2898_2.png) [@Marvin\_the\_Martian](https://boards.straightdope.com/u/Marvin_the_Martian)\
**Post date:** [December 10, 2020, 11:05pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/17 "2020-12-10T23:05:49Z")

</div>

The basic rule is that you can implement any digital logic, combinatorial or sequential, with only NAND gates. Not very efficiently, but theoretically possible. So you could (in theory) build a digital computer in any technology which can implement the NAND function.

(Note: only NOR gates would work as well.)

---

<div class="post-metadata">

**Author:** ![Melbourne](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Melbourne](https://boards.straightdope.com/u/Melbourne)\
**Post date:** [December 10, 2020, 11:28pm UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/18 "2020-12-10T23:28:32Z")

</div>

> [@Max\_S](#):
>
> I’m wondering how it can be made without transistors.

Resistor Diode Logic came after tubes and before Resistor Transistor Logic.

(After that came Transistor Transistor Logic, AKA ‘TTL’, and then CMOS.)

---

<div class="post-metadata">

**Author:** ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)\
**Post date:** [December 11, 2020, 12:12am UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/19 "2020-12-11T00:12:55Z")

</div>

> [@Melbourne](#):
>
> Resistor Diode Logic

I don’t think you can implement a NOT gate with only diodes and resistors. At least I can’t think of a way.

~Max

---

<div class="post-metadata">

**Author:** ![am77494](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@am77494](https://boards.straightdope.com/u/am77494)\
**Post date:** [December 11, 2020, 3:22am UTC](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793/20 "2020-12-11T03:22:08Z")

</div>

Back in the 90’s I worked on some old chemical plants and oil platforms that had old pneumatic controls. Those were some fine devices. As part of the controller system, they did the NOT gates but also had pneumatic integration and differentiation 😀 They also recorded data on a circular graph paper.

[Next page](https://boards.straightdope.com/t/inverters-not-gate-without-transistors/927793.md?page=2)
