I purchased an SN74LS74AN ic and the pinout is (unless I am mistaken) like this:
I did the following:
pin 14 to power, pin 7 to ground, pins 1 & 4 via 10k ohm resistors to power, pin 6 to pin 2 (Q' to Data input), pin 3 to power with a simple push button
also, pins 5 and 6 go to ground via 100 ohm resistors and blue LEDs
my intention is to make a circuit so that when I push my push button (which goes to pin 3), the LED which is 1 goes to 0, and the LED which is 0 goes to 1 and so on.
here it is in falstad
i believe the clock input for this chip is edge triggered
Anyhow, it is not working. can someone help me figure out why? bear in mind I am a beginner.
Edit1: by not working I mean either one of the LEDs is turned on. i don't have any mechanism of predicting which one will be on. pressing my push button to pin3 does not change the current state.
Kindly,