Hello all,
just to start, i am quite a Novice with Electronics so please excuse me if my thought process is completely wrong.
I am making a TOSlink switch to accept 4 incoming audio streams and has one output. to switch between them all, instead of using a 4-way mechanical switch, i wanted to use one button to cycle between the 4 inputs..
I realised early that a 2-bit binary number should do the job nicely, after doing a bit of research and checking the inventory at the local electronics store, i went for a Dual J-K Flip-Flop i got a MC74HC76 Click here for datasheet.
I decided to test the idea on a breadboard, I wired up 2 LED's so i could see the binary cycle (off-off,off-on,on-off,on-on) as i pressed the button. i plugged everything into a breadboard as shown in the image below
**broken link removed**
now everytime i press the button, i get a random set of leds. sometimes it doesn't change, sometimes it picks a random sequence, and every so often i get the next light in the sequence, i pressed the button 20 times writing down the result and did not see any kind of pattern forming. so i am at a total loss.
I added a resistor and a capacitor between the not gate and clock 1 just in case there was some kind of interference on the push button hoping to maybe smooth out the button press, but there was no difference.
I appreciate any ideas on how to get this to work
just to start, i am quite a Novice with Electronics so please excuse me if my thought process is completely wrong.
I am making a TOSlink switch to accept 4 incoming audio streams and has one output. to switch between them all, instead of using a 4-way mechanical switch, i wanted to use one button to cycle between the 4 inputs..
I realised early that a 2-bit binary number should do the job nicely, after doing a bit of research and checking the inventory at the local electronics store, i went for a Dual J-K Flip-Flop i got a MC74HC76 Click here for datasheet.
I decided to test the idea on a breadboard, I wired up 2 LED's so i could see the binary cycle (off-off,off-on,on-off,on-on) as i pressed the button. i plugged everything into a breadboard as shown in the image below
**broken link removed**
now everytime i press the button, i get a random set of leds. sometimes it doesn't change, sometimes it picks a random sequence, and every so often i get the next light in the sequence, i pressed the button 20 times writing down the result and did not see any kind of pattern forming. so i am at a total loss.
I added a resistor and a capacitor between the not gate and clock 1 just in case there was some kind of interference on the push button hoping to maybe smooth out the button press, but there was no difference.
I appreciate any ideas on how to get this to work