very annoying java breadboard problem

Thread Starter


Joined Jan 25, 2007
hey guys, i ran this applet off of

anyhow this is my problem

I wanted to create a simple and gate using the SN7408J chip.

I initially set up my circuit as shown below,

(you might have to click on the image again, when the new tab opens up to see it in better quality)

this was supposed to be my 00-LEDoff circuit because the two switches are set to off and 0 represents off. however the LED lights up! Its an AND gate so its supposed to light up when both switches are turned on. I hope u guys got my problem.

This is what my 01-LEDoff circuit looked like (it also shows what pin does what)

This is what my 10-LEDoff circuit looked like

and this is supposed to the 11-LEDon circuit, but it doesn't light up!

thnx 4 ur time


Joined Apr 20, 2004

Your problems are due to not having your inputs properly pulled up or tied to ground. A floating input will rise to the operating point of the logic and cause oscillations. It's even possible for these oscillations to overheat and destroy the chip. For TTL, the pull-up resistors should be 4.7K. Just about any other logic family can use larger resistances of 20K.

To work right, your switches should switch to ground. The inputs should be pulled up to Vcc as above.

Your LED needs a current limiting resistor, too. See for how to calculate its value.

Things should work better after the changes.


Joined Apr 20, 2004

Not to be disagreeable, but straight TTL inputs should never be tied to Vcc. Always use a resistor. It's safe to go direct with any of the CMOS families.

To expand on this, pins 4 & 5, 10 & 11 and 12 & 13 need to be tied to ground or pull up high. These are the unused inputs.