But it requires 4 resistors. A simple AND gate can be made with 2 diodes and a resistor. Cheaper, in terms of component count. The only down side is you get a crappy logic "0" level. With the LM324 and 4 resistors, you get a crappy logic "1" level.You can do it with one op amp. Set up as an adder. Set to high gain ( very high, sor of makes it a comparitor ) Bias to produce 0 output with either no or 1 input positive, and with V+ output for both inputs positive. There are several variations depending on which inputs you use, where you apply the bias, and there is the option of adding a bit of positive feedback. Calculation of values is left as an exercise. Output does not need to be open collector ( and use a rail to rail op amp with a single ended power supply )
Your right it sucks, but I was just trying to answer the question as asked ( but I gues you could do it the other way and just add the op amps to do nothing )But it requires 4 resistors. A simple AND gate can be made with 2 diodes and a resistor. Cheaper, in terms of component count. The only down side is you get a crappy logic "0" level. With the LM324 and 4 resistors, you get a crappy logic "1" level.
by Duane Benson
by Jake Hertz
by Aaron Carman