
*Here is a detailed explanation of the transistors: replace one piece of redstone in the main line with a repeater and remove the piece of redstone in front of it. This is why we split the lines, so there is one for each input.If you still do not know exactly how the adders are supposed to be, the are plenty of online tutorials(search for "minecraft redstone adders") note that the "x" things are the adders themselves. Create multiple of these and connect them together as shown.(note that the 7th image is the other side of the 9th one.) Also note that the bottom of the "x" are the inputs and every one has two. Now do exactly the same transistor thing after the memory switches as before.Place blocks, redstone torches and redstone as shown in images 3, 4 and 5. When you're done with this you can make a memory switch (see image 1) for every single one of the lines and invert them. Remember that if your redstone signal gets too weak you can boost it with a repeater. Connect all of the transistors that go to the same side of their splitted side together and the same for the other side. First run split all the binary lines in two( one side is fore before the sum token and one for after)and insert transistors(see image 2 and 3) into the now splitted lines. These are the components that do the calculations.
#REDSTONE REPEATER CODE#
when you input a five, the top lines should be activated in the order 1010 or on, off, on, off.(Also see picture.)If the code has more than one ones then place a repeater just in front of the block with the torch, so that the signal can go trough to the rest of the torches. Now, whenever you input a number, the torches will turn the top redstone lines on in the order of the code e.g.

You can think of the top 4 lines as the 4 digits of binary(remember that on is a one and off is a zero)Now, according to the codes in the fist step, place one block with a redstone torch on it below the top lines. Now run 4 redstone lines in the opposite direction over these lines, also with spaces between them.(There should be a 2 block space between the bottom ad top lines.

(Make sure you have at least 9 blocks in length where they are all next to each other on the same level. You have now started making the encoder, which turns the input numbers to binary. Next connect each to a redstone line, invert them (see picture 1) and get all the lines next to each other with a one block space between them. First you need to design and make a keyboard with a button for each number (0-9).
