I am trying to build a simple AND gate using 2 2N2222 transistors and the +5V source from an Arduino board. At first I tried the circuit without the R1 and R2 resistors but the output was 1 when B was 1 (second input) and 0 otherwise, regardless of A. After adding R1 and R2, if only B is 1 and A is 0 then the LED is dimly lit and if both inputs are 1 then the LED is brightly lit. Can I make it such that only when both inputs are true the LED is lit and off otherwise?
I also measured the current between R2 and Q2 and I'm not quite sure how to interpret the readings or what they mean. With the ampmeter on the scale 2m, with A = 1 the display reads .406 (which I presume means 0.4 mA?) and with the scale 20m, with A = 0, the display reads 2.23 (2.23 mA?) and with A = 1 the display reads 0.43 (which means 0.43 mA?). Am I reading the values correctly off the ampmeter and why does the current through B change if A is connected orn ot?