# I don't understand how gates work.

I'm not sure if this is the right board.

Gates work based on binary input, 0 and 1. But what defines "input?" Is it the presence of voltage?

Janus
Staff Emeritus
Gold Member
Yes, it the presence of voltage. Typically, a voltage below a certain level is considered a "0"(low) and one above a certain level is a "1"(high), with a "undefined" region between the two.

A lot of things can confuse people when first learning electronics so don't let it get you down. Binary, logic 1's and zero's are all different terms for ON and OFF. A logic gate is operated either ON or OFF. Each logic gate has different voltage levels as to what is classed as ON. It usually varies between 5V and 12V but there are many other values. You have to consult the data sheet for the logic gate that you are using. OFF is 0V.
Therefore for a 5V AND gate, 1 input at 0V and 1 input at 5V will output 0V. Both inputs at 5V will output 5V. Both inputs at 0V the output is 0V.
I hope this helps.
Keep up with the studying. It will all make sense in the end!

Craig

http://www.calibrepower.com" [Broken]

Last edited by a moderator:
vk6kro
If you consider an AND gate.
If both inputs are "1" then the output is a "1". Simple rule, but very powerful.

But what if you had one input high all the time?
Can you see that what comes out of the output would depend on what is coming into the other input. If it was a stream of pulses, they would come out of the output. If they were high, both inputs would be high so the output would be high. If they were low, one input is high but one is low so the output is low.

Now make that first input a Zero.
Now, it doesn't matter what comes into the other input. Nothing will get sent to the output.
At least one input is low so the output is low.

So, you can control the outputting of that stream of pulses just by putting a 1 or a 0 on the other input. Put a 1 there and they get through. Put a 0 there and they don't.

jambaugh