My first calculator

  • The-Con
    17th Mar 2011 Member 0 Permalink
    Hi
    This is my first calculator. It could be a lot more simple, and easier to make, but I do know how to make the better ones. Any better designs that i could think of had already been done, and i didn't want to copy. anyway, It's only one digit, but i am planning on making it two digits and adding multiplication, division and subtraction. Any advice would be much appreciated.



    This is Version 2
  • dnerd
    17th Mar 2011 Member 0 Permalink
    its good, nice UI, but the addition core is much more complicated for what you need, do you know how to use binary?
  • HeyJD
    17th Mar 2011 Member 0 Permalink
    @dnerd
    Binary is hard... And complicated to learn.

    @The-Con
    good job!
    Though the loops of electricity could be smaller...
  • dnerd
    17th Mar 2011 Member 0 Permalink
    ok binary addition works like this:
    0+0=0
    1+0=1
    0+1=1
    and the tricky part
    1+1=0, carry one

    this is similar to the behavior of an EXOR gate, but the carry function ill let you figure out, the point is that you'll convert from dec. to bin. then calculate, then convert back to decimal
  • The-Con
    17th Mar 2011 Member 0 Permalink
    @dnerd
    @HeyJD
    Thanks, I just wanted to start out with something that didn't require alot of thinking power ,so I did what my mind considered a balance between logic and difficulty.
    I couldn't find a way to make the loop smaller that wouldn't involve removing the disabling function.
    I did do some research a while ago on binary things, so I understand things such as AND, NOT, OR, NAND, NOR, EXOR/XOR and i enjoy talking about this to friends and watching their blank confused faces... lol
  • dnerd
    17th Mar 2011 Member 0 Permalink

    The-Con:

    blank confused faces



    LOL IKR!!!!

    next i would reccomend working on a binary addition core, there a bit of work, but tons o fun when you finish, if u dont understand binary, google it :)
  • The-Con
    17th Mar 2011 Member 0 Permalink
    I will, The main problem i have is applying it in TPT. Thanks for the advice :)
  • The-Con
    17th Mar 2011 Member 0 Permalink
    *Bump*
    I added in the first post version 2 and Progress on the binary is being made, and untill then i am working on multiplication( it is functional but unfinished). I need a tip on the binary. How would i Convert binary to decimal?
  • dnerd
    17th Mar 2011 Member 0 Permalink
    V2 is very nice, and really fast. if you dont mind, could you explain how your addition core works? it looks kindof strange
  • The-Con
    17th Mar 2011 Member 0 Permalink
    Oh, um... it is set up in a grid. Each colum corresponds to a value/ input. For example if i were to spark the 0 on the pad thing, it would turn on all switches on the very first colum. Then if i were to spark 3 on the pad thing (on the second row of the two) it would spark all of row 4. After both inputs are inputed (That word sounds strange) only one output that corresponds to a number will be sparked and that will be the intervall between colum 0 and row 4, which if a value reaches the wifi, that sends (this is what the switch is for) a signal to the Other thing that looks strange. basically imaging an addition table... it is set out similar to that. I hope that makes sense.