LED Binary Calculator

LED Binary Calculator
You can't calculate binary values "as is" on most handheld calculators and using the windows one is just a pain, so i decided to make my very own (binary only) calculator.
This calculator supports all the basic functions like : NOT,OR,AND,XOR, addition,subtraction,multiplication,division and modulo.

So join me as we are going to enter the world of ones and zeros and play with some LEDs and switches along the way!


 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts List

Parts List
Like any electronics project you will need to get some basic tools  like:
a soldering iron, some solder wire, a cutter, a needle nosed plier,some wire, wire striper, and some desoldering tools fro fixing mistakes along the way.

The parts for the calculator:
1. 32 LEDs.
2. 8 resistors( The value is determent by the type of LEDs, in my case 91 ohm).
3. 74HC595 shift register.
4. 9 1KOhm resistors.
5. 4 2n4401 transistors.
6. A Perfboard.
7. ATtiny2313.
8. 16 tact switches with 4 pins.
9. some pin headers.
10. A programmer for the micro.
11. 9V battery holder.
12.A slide switch.
13. 7805 voltage regulator
14. 100nF cap
15. 10uF cap

« Previous StepDownload PDFView All StepsNext Step »
55 comments
1-40 of 55next »
Jan 18, 2012. 8:55 PMpilotavery says:
Would you sell it? $30?
Jan 10, 2012. 6:56 PMcosmicr says:
how come you don't need a resistor per led? they are wired in parallel but there is only one resistor per row?
this article: http://www.kpsec.freeuk.com/components/led.htm#series says it wouldn't work?

also, using 91 ohms and 5v does that mean your led current is 55mA? That seems high to me and using (Vin-Vled)/(Iled) it would mean your led is 0.086V? I'm confused.

But thanks for the great instructable, I'm planning on using these concepts to make a bit led array (as soon as I get my head around it!)
Nov 13, 2011. 3:53 PMm1s73r says:
I've got a question:

So, you're using blue LEDs and resistors with 91ohm... But my question is what's the source voltage? Doesn't the voltage regulator lower it to 5V ? Therefore you should use 120ohm resistors - am I right?

Thanks
Nov 15, 2011. 5:46 AMm1s73r says:
Oh ok, hopefully mine work better... I bought 50 LEDs + 50 resistors for just 6,77 $ But anyways, thanks for answering my question!
Aug 28, 2011. 7:30 AMmwagner63 says:
Which switches in the wiring diagram connect to the transistors?
Aug 24, 2011. 6:12 PMmwagner63 says:
How do you read the answer lines. I'm a noob when it comes to binary as i just started learning it. Also what is LSB and MSB.
Aug 26, 2011. 6:42 PMmwagner63 says:
Thanks but I have one more thing. In the schematic you have the switches numbered. Could you help me out by telling me which number switch does what function? I had difficulty understanding the wiring diagram of the switches. Thanks again.
Jul 21, 2011. 6:30 PMemihackr97 says:
hi, I just want to tell you, you could have read all the pushbuttons with only 1 pin, an ADC, you would have to connect all the buttons in a resistor series and Gnd on the other side, that would give you some 7 extra pins
May 27, 2011. 10:52 AMcallain says:
Is it bad if you replace the 74HC594 by a 74HC795N or a 74HC795D ??
Thanks !
May 27, 2011. 12:23 PMcallain says:
So is it ok ?
May 8, 2011. 4:59 PMrtty21 says:
VERY NICE soldering work! I greatly respect the work, thought, and effort you have put forth into this project!
May 6, 2011. 11:05 AMsexysaqib says:
I'm trying to make this calculator, but the schematic you've provided doesn't work when I simulate it in proteus design suite. Can you help?
Feb 1, 2011. 11:02 AMgigavolt says:
It's too bad u can't enter this into the Microcontroller contest!
Jan 30, 2011. 7:19 AMshane11 says:
OK so im new at circuitry so bear with me i know programming and trying to get started in circuits so where do i make a programmer to put the code on the device and also how much about did the project cost to make thank you.
Jan 29, 2011. 4:15 PMshane11 says:
IS there a way i can do this without soldering????
Oct 26, 2010. 3:10 AMmenghuei321 says:
My programmer cannot read the attiny28l chip, can I use pic chip like pic18F4620 to replace the attiny? If can, can I use the same HEX file you have provided?
Oct 26, 2010. 1:42 AMmenghuei321 says:
Wanna ask if I use the attiny28, can I still using your HEX file which you have provided?
Oct 23, 2010. 8:39 PMmathman47 says:
I always like hardware/firmware that does something completely different and shows how to save pins.Just wish desktop PCs were as flexible as these little & cheap micro-controllers. I paid $289 for my i7-930 and my Arduino was $34.

I wonder why it took 17 days for Instructables to send me an email that this was published? Keep up the good work.
Oct 18, 2010. 8:51 PMmenghuei321 says:
seems you have used the pin PD0 to pin PD6 have been used by the led circuits, then why you connect the buttons to pin PD0 to pin PD7 again?? It is pin PB but not PD in the circuit above?
Oct 13, 2010. 1:33 AMmenghuei321 says:
can I use attiny28 to replace attiny2313 ? attiny28 got 28 pins, but attiny2313 got 20 pins.
Oct 14, 2010. 8:25 AMmenghuei321 says:
thx
Oct 13, 2010. 1:31 AMmenghuei321 says:
can i use attiny28 to replace attiny2313 ? Is it the same function for these two micro cips because I found that attiny28 contain 28 pins which have the pin same like attiny2313 but attiny2313 with 20pins.
Oct 10, 2010. 4:25 AMmertaxoy says:
hello Syst3mX,
i want to make this binary calculator with an arduino. Can u help me about the schematic and programming ?
thnks.
Sep 24, 2010. 10:42 AMmertaxoy says:
(removed by author or community request)
1-40 of 55next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
84
Followers
4
Author:Syst3mX(Vadim)
Electronics and LEDs what can be better ?! :D