I need some advice if possible regarding making a memory cell, specifically what type of memory cell I should look at employing. I assume I want a T-Flip-Flop but I'm not too sure.
Basically the switch is going to be used as a track selector for a rail system, each location is connected to at most two other stations. What I'm attempting to do is probably best explained in a picture:
As you can see I would like to have the current state of particular junction saved in a particular state. When a button is pressed it toggles the state of that lever which is then saved again. I'm assuming for this I would want a T-Flip-Flop switch and I would need to feed the input buttons from all stations to meet at the input end of this switch, would that be correct?