Hi! I'm quite new to electronics and I'm trying to learn about it without breaking my arduino...
One of the first challenges I set myself up to was creating an AND logic gate without transistors... I found that can be done using "diodes", which only allow the current to flow one way.
So far so good, I made the AND to light a led if two pints are "HIGH", but I'm concerned about whats going on when my AND gate is LOW. In that case, the current avoids the led and goes through the diode straight to ground. I understand that connecting power straight to ground can damage the arduino the same way that I've been told that you should never plug together the + and - of a battery.
I simplified my circuit to illustrate my question.
When the switch is ON the DIODE gets HIGH on both ends so current can't flow though it and goes by the led.
When the switch is OFF the DIODE works normally and since there is less resistance, the current avoids the led.
Now, if current goes through the led, then the batteries 3V goes down by the resistor and the red led. But when the current goes through the diode, there is no voltage drop and it seems like the + and - of the battery are connected together. Isn't that dangerous?