LED problem

this is a rough sketch

this is a rough sketch

pls guys someone reply pls pls

ok, i am no expert when it comes to this stuff, so take what i say with a grain of salt. but if i had to guess, the ground from one of your LEDs is activating your AND gate. take a look at the diagram i attached. that is my guess what is happening. but again, i could be completely wrong. im just letting you know what my guess is when it comes to this problem.

My take is slightly different from that of suicidalacorn's... I think that with either 01 or 10 and therefore activating the R xor G LEDs, there's enough of a "short" across the AND gate for it to read both its inputs as 1's.

(Which is what suicidalacorn was saying, on second thoughts, now that I see his annotated pic....)

Do some measuring with your meter...

thanks for your reply.

but can you give me a suggestion to stop this?????

pranoy:
but can you give me a suggestion to stop this?????

Lose the 74' and do the whole thing in software....

how do u suggest i do it in software?????????????

i dont have enough pins

pranoy:
this is a rough sketch

So now do a proper one, showing each LED and the series resistor connected to each LED along with values.
In other words a schematic that people can understand.

What are you trying to achieve? You mentioned a traffic light. Do you mean that you only want one of the LED's on at a time or do you want the Yellow to light up when the Red AND Green are on?

You may want to use inverters as well if you want only one on at a time.

pranoy:
how do u suggest i do it in software?????????????

i dont have enough pins

Well so far you mentioned only the 3 LEDs, so that would need 3 i/o pins instead of the 2 you have used so far- how many LEDs do you need then?

(Btw a question is not going to get answered any faster with ??????????????? than just with ?)

I remmember once trying to dirrectly drive a seven segment display with my Arduino and the segments were really dim I checked and found that I forgot to put

pinMode(segment, OUTPUT);

!

Put the 01, 10, 11 as address bits into different logic - like a 74xx138, 74xx139 - selected out (#1, 2, 3) will go low, pull one cathode low.

I want the LED to be ON one at a time with the ouputs ( 01,10,11)

There is only one 220 ohm resistor at one of the output pins.

I don't have enough pins so i have to go with 2 pins itself.

the ???????????????? is something i got from chatting in fb.

There is only one 220 ohm resistor at one of the output pins.

You need another on the output of the logic gate.

this is a fair ckt dgm with only one yellow LED

thanks mike

but i tried it in a 2 way traffic scenario. but still the yellow light turns ON when Red comes in one of the tracks

What is IC1?

7408 and IC

i meant AND ic