How to wire a 74HCT02 (NOR-gate)

integrated-circuitlogic-gates

I'm trying to make a logical NOR-gate using a 74HCT02 IC (datasheet), but I cannot figure out how to wire it. Below is a schematic of what I tried.

schematic

simulate this circuit – Schematic created using CircuitLab

The power source (V1) is coming from a transformer connected to the power net, it gives a 4.5 VDC output at 3.6VA maximum.

What I observe is that the led is always on, with little intensity difference when I press or release either button.

I do not have much experience regarding circuits with IC's, so I might be making some beginners mistakes here.

Best Answer

As drawn, your inputs to the gate will always be low. The resistors R2 and R3 pull it low (to ground/the negative side of the supply). Then when you push the switches they connect the inputs to low again, so they have no effect. Rewire the switches so when you push them they connect the inputs to the high side of the supply, that way you will get low until you push the switch, then they will override the resistors and provide high.