3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED Binary Calculator

Step 5It's Programing Time

It\
«
  • IMG_0264.JPG
  • IMG_0263.JPG
  • IMG_0261.JPG
This is the last thing to do, to make the calculator run.
I wrote a basic program for it so it can calculate all the needed things, I have the description of what every button does in the picture.

People who know C can easily adapt my code to make it run on the arduino or other platforms it's just a matter of changing the output and input commands. The code is fully documented so you can understand what each line does.
If you're going to use an ATtinty2313 I have added an HEX file as well to save some time. And if your going to use the HEX file remember to set the fuses to use the internal oscillator on 8Mhz.

I used the USBasp to program my micro but you can use any program you like or have at home.
   
« Previous StepDownload PDFView All StepsNext Step »
3 comments
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?

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!
99
Followers
4
Author:Syst3mX(Vadim)
Electronics and LEDs what can be better ?! :D