NOT Gate
A digital logic NOT gate (inverter) that outputs the opposite logic level of its input.
Component Preview
A logic gate that performs logical negation. If the input is HIGH, the output is LOW. If the input is LOW, the output is HIGH. This is commonly referred to as an inverter.
Overview
The NOT Gate is a fundamental logic component that reverses the logic state of its input. In OpenHW Studio, this component is essential for creating complex logic expressions and conditional inversions within simulated digital circuits.
Pin Reference
| Pin | Type | Description |
|---|---|---|
| IN | input | Digital logic input. Expects HIGH (1) or LOW (0). |
| OUT | digital | Digital logic output. Driven to the opposite state of IN. |
Configurable Attributes
This component currently has no configurable attributes.
Working Principle
Truth Table
| IN | OUT |
|---|---|
| 0 (LOW) | 1 (HIGH) |
| 1 (HIGH) | 0 (LOW) |
The Boolean expression for a NOT gate is Y = A' (or NOT A). It physically models logical negation.
Wiring Diagram
Example of a logic NOT gate wired to an Arduino Uno and an LED (with a resistor).

Example Arduino Code
To test the NOT gate using an Arduino, you can generate logic states on an output pin and read the inverted result on an input pin.
const int pinIn = 2; // Connect to IN of NOT Gate
const int pinOut = 3; // Connect to OUT of NOT Gate
void setup() {
Serial.begin(9600);
pinMode(pinIn, OUTPUT);
pinMode(pinOut, INPUT);
Serial.println("NOT Gate Truth Table Test:");
}
void loop() {
// Test LOW state
digitalWrite(pinIn, LOW);
delay(10);
int resultLow = digitalRead(pinOut);
Serial.print("IN: 0 => OUT: ");
Serial.println(resultLow);
delay(1000);
// Test HIGH state
digitalWrite(pinIn, HIGH);
delay(10);
int resultHigh = digitalRead(pinOut);
Serial.print("IN: 1 => OUT: ");
Serial.println(resultHigh);
delay(1000);
}Simulation Notes
- The NOT gate component in the simulator evaluates the logic state instantaneously (zero propagation delay).
- Floating inputs (disconnected pins) may lead to undefined behavior. Always ensure the input is driven HIGH or LOW.
Notes / Warnings
- Voltage Levels: The simulator treats standard 5V or 3.3V signals as logic HIGH.
