• 1,134 views, 2 today
  • 79 downloads, 0 today
  • 5
  • 3
  • 12
thesneezingpanda's Avatar thesneezingpanda
Level 38 : Artisan Engineer
29
NEW ADDING + SUBTRACTING MACHINE HERE


Redstone Adding Machine


This adding machine takes two decimal values of 0 through 15, and using redstone adds them together, displaying the answer on two 7 segment displays.


The machine is quite large, so make sure you have lots of room to paste.


The machine works as follows:


1) Takes two decimal inputs chosen via lever

2) Encodes them into binary

3) Runs the two binary numbers through a 5 bit adder, producing the one final binary output

4) Decodes the binary output into decimal

5) Runs the decimal output through to the appropriate 7 segment display decoder line

6) Decodes decimal signal into 7 segment information

7) Displays number


The machine is a little slow because it has a lot to do, and because I didn't build it as efficiently as possible, but it functions, and all the parts are easy to access if you want to have a look around and learn how it works.


I'm currently working on an add/subtracter that takes two inputs up to 30, runs using buttons/RS NOR array and functions much quicker. The machine works and outputs in binary perfectly, just building the decoder for 60 different variations is a nightmare, not including negative numbers which I may or may not include....
Progress100% complete
Tags

Create an account or sign in to comment.

1
01/20/2012 9:29 pm
Level 13 : Journeyman Architect
morrisman27
morrisman27's Avatar
Nice! I wish I could as good as a redstoner as you :)
1
12/12/2011 10:51 am
Level 76 : Legendary Sweetheart
wldscarlet
wldscarlet's Avatar
Very nice!
Really hard to do like this but good to try learn how it works.
1
12/03/2011 6:31 pm
Level 53 : Grandmaster Pirate
RevolutionalRedStone
RevolutionalRedStone's Avatar
Thats pretty cool

If your new decoders getting too big; you might wanna use twos complement to implement negative numbers;all you do is imagine that your numbers start at -16 and go to 15 then; the first bit of the result is fed strait into the negative sign on the most significant screen and the remaining bits are decoded normally.
1
12/03/2011 6:51 pm
Level 38 : Artisan Engineer
thesneezingpanda
thesneezingpanda's Avatar
Yeah, that's pretty much how I'm going about it, I am just too lazy to decode the sixty numbers just for the addition ;) Thanks for the input, you explanation clears up a few things I was thinking about with the decoding of negative numbers though :)
1
12/03/2011 11:48 pm
Level 53 : Grandmaster Pirate
RevolutionalRedStone
RevolutionalRedStone's Avatar
Actually only a 30 output decoder is necessary if you use this method, negative outputs ( half the outputs ) decode identically to there positive counterparts.
1
12/03/2011 11:52 pm
Level 53 : Grandmaster Pirate
RevolutionalRedStone
RevolutionalRedStone's Avatar
However, since your probably also trying to increase the largest positive numbers which can be added; you may still have to include a mega decoder

Can't wait to see.
1
12/04/2011 6:38 am
Level 38 : Artisan Engineer
thesneezingpanda
thesneezingpanda's Avatar
Yeah, either way I still need to add decoders for the 0-60 positive values that can be attained, I'll use the two's compliment output that I get from the adders to deduce whether or not to display the negative sign
1
12/04/2011 7:09 am
Level 38 : Artisan Engineer
thesneezingpanda
thesneezingpanda's Avatar
I've uploaded the project so far here
1
12/03/2011 3:47 pm
Level 16 : Journeyman Goblin
Hawkken
Hawkken's Avatar
holy crap!
1
12/03/2011 3:26 pm
Level 9 : Apprentice Narwhal
JextheRex
JextheRex's Avatar
Fantastic.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome