I was searching for a way to use diodes to make a NOT gate.
I found a circuit online and simulated it in an application.
The configuration has a battery (1),where the negative terminal is connected to the cathode of a diode and the positive was connected near the ground (1) of the circuit. The ground (1) was also connected to the cathode of the diode.
The cathode of the diode was connected to the anode of an LED and the cathode of that LED was connected to the positive of the second power source and goes to the second ground (2). The negative terminal of that second power source was connected to the anode of the diode I mentioned earlier which goes down to the ground (1).
I tried to analyze what was going on.
I turned on the switch on the left, and the LED turned off. I turned the switch off, the LED turned on. I removed the ground and the outcome changed. The circuit does not act like a NOT gate anymore. What is happening?