Rybek
Terrarian
I seem to be making a habit of these posts, so why stop?
N.B: I do play modded Terraria, but that shouldn't affect anything.
Anyway, I've been working on a 7 segment numerical display, and I've run into a small issue with my reset mechanism. To display a number, you flick the switch assigned to it, which toggles AND gates that then output to the display. Since this means I have to manually reset every active switch to display the current number, I installed a reset mechanism, also using AND gates. The purpose of this is to automatically reset any active switches whenever another is flipped. Here's a rough explanation of how it works. Also, in case you don't understand my notation, the number represents when it happens, the letter helps differentiate between different processes.
1)Switch "x" is flipped
A2)Up to 4 different AND gates (out of 7 total, one for each segment of the display) are toggled depending on the number chosen
A3)AND gates then send the signal down a wire which is connected to each AND gate along that column, and outputs to the display
A4)The number is shown on the display
B2)A signal is sent to a reset mechanism, toggling the top lamp of that rows reset AND gate, as well as the bottom lamp of the other rows reset AND gates(Default position is both off)
B3)If another number was already displayed, then the activation of its bottom lamp means that the AND gate activates(in case you're confused, the top lamp is already on, due to the number currently being displayed)
C3)If another number is already displayed, then all the rows not activated have their bottom lamp toggled off again
B4)The AND gate resets, and sends a signal back down the wire to toggle the AND gates off again, effectively doing my job for me, and turning off the previous switch
Now the issue is,that when I go from one number to another, although it does reset, it resets completely, making the number I went to a sort of "new default" for the display. One thing I also would like help on, but is less pressing, is that to transition again, I need to prime the reset gate again, so I effectively flick switch "x" twice when going "y" --> "x" --> "z" , which gets tiring. Anyway, back to the "default" problem. In a nutshell, the reset gates turn both lamps off again, while the display is showing a number other than 0. Therefore, when I input another number, it toggles the torches it needs to toggle to get from 0 to that number, instead of the torches it needs to toggle to get from "x" to that number, so I get some pretty weird digits.
Here is my design:
Nearly forgot, the switches begin at 1 at the bottom, and go up to 9. I omitted 0, since I figured my reset mechanism would suffice, but clearly not. Might try adding a 0 switch to help, but the default setting would still change. Any ideas on how to keep the default at a set number unless I want to change it, in case, oh, I don't know, I flip a lever and input a number to be the new default?
P.S. The images might not show, since I can't seem to preview them.
N.B: I do play modded Terraria, but that shouldn't affect anything.
Anyway, I've been working on a 7 segment numerical display, and I've run into a small issue with my reset mechanism. To display a number, you flick the switch assigned to it, which toggles AND gates that then output to the display. Since this means I have to manually reset every active switch to display the current number, I installed a reset mechanism, also using AND gates. The purpose of this is to automatically reset any active switches whenever another is flipped. Here's a rough explanation of how it works. Also, in case you don't understand my notation, the number represents when it happens, the letter helps differentiate between different processes.
1)Switch "x" is flipped
A2)Up to 4 different AND gates (out of 7 total, one for each segment of the display) are toggled depending on the number chosen
A3)AND gates then send the signal down a wire which is connected to each AND gate along that column, and outputs to the display
A4)The number is shown on the display
B2)A signal is sent to a reset mechanism, toggling the top lamp of that rows reset AND gate, as well as the bottom lamp of the other rows reset AND gates(Default position is both off)
B3)If another number was already displayed, then the activation of its bottom lamp means that the AND gate activates(in case you're confused, the top lamp is already on, due to the number currently being displayed)
C3)If another number is already displayed, then all the rows not activated have their bottom lamp toggled off again
B4)The AND gate resets, and sends a signal back down the wire to toggle the AND gates off again, effectively doing my job for me, and turning off the previous switch
Now the issue is,that when I go from one number to another, although it does reset, it resets completely, making the number I went to a sort of "new default" for the display. One thing I also would like help on, but is less pressing, is that to transition again, I need to prime the reset gate again, so I effectively flick switch "x" twice when going "y" --> "x" --> "z" , which gets tiring. Anyway, back to the "default" problem. In a nutshell, the reset gates turn both lamps off again, while the display is showing a number other than 0. Therefore, when I input another number, it toggles the torches it needs to toggle to get from 0 to that number, instead of the torches it needs to toggle to get from "x" to that number, so I get some pretty weird digits.
Here is my design:
Nearly forgot, the switches begin at 1 at the bottom, and go up to 9. I omitted 0, since I figured my reset mechanism would suffice, but clearly not. Might try adding a 0 switch to help, but the default setting would still change. Any ideas on how to keep the default at a set number unless I want to change it, in case, oh, I don't know, I flip a lever and input a number to be the new default?
P.S. The images might not show, since I can't seem to preview them.