I'm trying to figure at how to wire relays to make a AND gate. I have 2 12v dc inputs and would need to make a AND logic gate that outputs 12v dc. What relays do I need and how would I wire them? Thanks
Doesn't have to be relays if there is another option. I just need to figure out how to make a AND gate that outputs 12v DC.Is requirement to use only relays?
You need to read a little about the standard functions of relays, before you begin this, there are already programmer mistakes, which we are discussing in another thread.
It seems like a waste of money to use high current relays for simple logic level stuff. Getting a small transistor and resistor kit makes a lot more sense. Then just use an and gate like this.There's more than one way to do it. This is the most common.
You can use any 12V SPDT relays. If you're in a hurry, automotive cube relays are readily available. Some such as the one pictured have the needed suppression diode built in. The terminals accept 0.250" female quick disconnects or can be mounted on a socket base.
The O.P. set those parameters. Cost is barely a factor for a one off. Have you read the thread?It seems like a waste of money to use high current relays for simple logic level stuff. Getting a small transistor and resistor kit makes a lot more sense. Then just use an and gate like this.
https://www.amazon.com/Transistor-2...qid=1535424457&sr=8-4&keywords=transistor+kit
https://www.amazon.com/Cutequeen-75...8&qid=1535424439&sr=8-3&keywords=resistor+kit
live wire, despite I agree with you 100% on the unnecessary complexity of the circuit, the proposed diagram only works with MOS transistors - as soon as a voltage is present on the "B" input, the Base-Emitter diode is forward biased and therefore a small voltage is present on the output pin. The ideal scenario would be to use a NAND and then invert its output.It seems like a waste of money to use high current relays for simple logic level stuff. Getting a small transistor and resistor kit makes a lot more sense. Then just use an and gate like this.
https://www.amazon.com/Transistor-2...qid=1535424457&sr=8-4&keywords=transistor+kit
https://www.amazon.com/Cutequeen-75...8&qid=1535424439&sr=8-3&keywords=resistor+kit
Or you can spend 7 dollars on transistors and get 200, and if you get a few resistors, you can make tens of gates. For the same price. You can also get a ton of logic gates for about the same price. They often include many gates in one chip.Relays work fine for what I needed and only cost me $15 for 5 of them.