My first calculator

  • Synergy
    17th Mar 2011 Member 0 Permalink
    So what you guys are doing is your not actually making a logical adder. The creator of this post made exact predetermined solutions. This is only possible because he used small numbers and therefore there wasnt that much to code for.

    You want to make an adder. Wikipedia offers a good tutorial. However note that wikipedia also literally gets it wrong. The logic diagrams are wrong. Just google around and you will find some good tutorials. For each bit you will need 6 logic gates. I think it is something like 3 xor 2 or and 1 AND. I cant remember. Carrying is easy. Just make sure to use carry full adders.

    I suggest using binary, performing the calculations then converting back to a readable output. Converting binary to 7 segment is amazingly difficult, so don't focus on that until you have alot of background information on what you are trying to achieve.

  • The-Con
    17th Mar 2011 Member 0 Permalink
    OK. I have made this Binary adder. I haven't created a binary to decimal converter yet (because it looks scary). You may have to zoom to see the answer shown in Switch. (I have made a much larger version, but I won't post it because it is similar, the only difference is that it can calculate larger numbers)

    EDIT: save did not work

    (This idea has probably been used to death... i don't know because when i look at someone elses calculator, it just looks like a bunch of lines)
  • Synergy
    17th Mar 2011 Member 0 Permalink
    I don't really understand how to use it. Needs instructions.
  • The-Con
    17th Mar 2011 Member 0 Permalink
    Ok, I included a few instructions within the creation.
    EDIT: I just discovered it does not work anymore
  • The-Con
    17th Mar 2011 Member 0 Permalink
    *Bump*
    I made this, Which should now make sense. The previous one that this replaces did not add properly. Please give feedback. (Does anyone know a technique to convert binary to decimal?)

  • jalfor
    17th Mar 2011 Member 0 Permalink
    A simple binary adder can be created by making a grid of xor gates with a carry (if there are two inputs then you shift the output to the left). With the binary to base ten thing, you need to (this is from Massey101 and it is the best way I can think of) put metal across and fill in PSCN in the middle and when you want the metal coming across (the binary input) you have NTCT but when the number (base ten(up)) is not one that you want with the binary you have to have PTCT. If you create it correctly it works really well.