0

I made a prototype to test a few logic gates and found out that

  1. My AND gate (7408) Works like an OR Gate.

  2. My OR Gate (7432) is always on

  3. My XOR Gate (7486) is always off

  4. My NOT Gate (7404) works.

This is my test setup - Setup

The grey and Brown hanging wires are inputs, the LED up top is output. The current chip is the 74HC08N AND by TI.

Sometimes, the gates randomly work too.

EDIT

Adding Resistors and pulling to GND fixed all but the XOR (74F86PC) Gate, which still does not respond (With bypass capacitors, etc)

I Am Running at 3 V

So, help? Thanks! These are my first circuits, so a bit dirty, sorry.

Glorfindel
  • 1,245
  • 3
  • 15
  • 20
  • Did you connect unused inputs? – jippie Sep 11 '15 at 18:53
  • Are there any letters in between 74 and the remaining digits for all the used IC's? – jippie Sep 11 '15 at 18:53
  • Learn yourself to always use a decoupling cap across the power supply pins. As close as possible to the IC and order magnitude 100nF – jippie Sep 11 '15 at 18:56
  • 2
    The bypass capacitor is missing. There must be a 0.1uF ceramic capacitor connected directly between the power and ground pins of each IC, to compensate for the parasitic inductance of the leads. This is especially important with solderless breadboards and long wires. – MarkU Sep 11 '15 at 18:57
  • 2
    Are you using current limiting series resistors for the LEDs? – jippie Sep 11 '15 at 18:58
  • 2
    Related: http://electronics.stackexchange.com/questions/2272/what-is-a-decoupling-capacitor-and-how-do-i-know-if-i-need-one – MarkU Sep 11 '15 at 18:58
  • 5
    I don't see any current limiting resistors in series with your LEDs? I think you need them. – Ricardo Sep 11 '15 at 18:59
  • 1
    Are you returning the LEDs to +5V? A positive logic AND is a negative logic OR... Learn to draw schematics (e.g. in the schematic editor) ... it's at least as important as your wiring experiments. –  Sep 11 '15 at 21:27

1 Answers1

3

For CMOS logic parts like the 74HC family, the inputs are very high impedance, and don't assume any particular level when left unconnected. They must always be connected either directly, or through a resistor, to Ground or Vcc, in order for the chip to reliably see them as Low or High. ALL unused inputs MUST be connected to Vcc or Ground, even on the unused gates in the chip.

For bipolar TTL (plain 74xx, 74LS, 74ALS) the inputs source current, so will normally appear as high when not connected, and must be connected to Ground to be seen as a low.

As the comments mention, a bypass capacitor is desireable, but the lack of one wouldn't cause a problem with the simple test circuit you are using.

Peter Bennett
  • 57,014
  • 1
  • 48
  • 127