I want to have a series of 12 memory cells to control an analog clock I am trying to make. I have a hopper clock that triggers every 100 seconds (the equivalent of an hour in a Minecraft day) and each time it activates, if cell i is active, I want cell i+1 to activate and all others to be off. Ideally also if the cell 12 is activate and the clock triggers again, I want to deactivate 12 and activate 1 so it wraps around.
I was experimenting around with having a RS NOR latch for each memory cell, and then with each pulse of the clock, for each memory cell, I pass through the pulse and the S value into and AND gate and if true, that will trigger the next memory cell in the array to be set true and also to trigger the reset of the current memory cell.
I can't seem to get this working well though. What I have https://imgur.com/QIctUwt so far seems to be close. The torches on top of the bricks are the S values of each RS NOR gate. When the hopper click first triggers, the leftmost cell turns on. Then it triggers again, and the leftmost cell turns off and the second cell turns on. But then, as the hopper clock keeps triggering, the leftmost cell just keeps toggling on and off. I think I messed the logic up somehow.
There must be an easier way to do this, but I can't seem to think of it. Any suggestions into how to make this easier?