Simple Arduino Calculator

About: Visit my blog on Tumblr to get more than just the tutorials that are posted there, but I will try to get all of them posted on both sites!

This is a simple calculator made using an LCD keypad shield and an Arduino Uno. It can do Multiplication, Addition, Subtraction and Division (It leaves answers that involve division with remainders eg 7 / 2 = 3 R1 (R being remainder)). Sorry, no fractions or decimals.

My calculator i used at school broke, so i built this one to replace it temporarily.

This requires just an Arduino Uno and LCD Keypad shield (

ANYWHO! Onto the instructable!

Step 1: Connect Your Shield

Pretty simple. Just sorta slot it on the board. It already has all the connections in the right positions for you (If you got the one I did). There isn't much to this part.
If you got one that requires you to make all the connections yourself, I won't be too much help there. You would probably be able to find instructions where you bought it.

Step 2: Configure Your LCD

If you upload and run this code, it will print a number on your screen. This should give you the follow results:

When you press select, you should get 722;

When you press left, you should get 480;

When you press up, you should get 132;

When you press down, you should get 309, and;

When you press right, you should get 0.

If those numbers are different, you will need to alter the code. Write down what numbers you got for what button and keep it handy for the next step.

Step 3: Upload Your Program

This step could go one of two ways.

If you ran the code in the previous step and everything matched up, upload this to the Arduino and you are completely finished. Run a few calculations to make sure it works.

If you ran the previous step and it didn't match up, you have a tedious few minutes ahead of you. Go through and change all the times 722 is used, change the number to the one you got when you pressed SELECT. Do the same for 132 with UP, 0 with RIGHT, 309 with DOWN and 480 with LEFT.

Step 4: Finished

Now you're all done! If something isn't working and you would like some help with it, message me and we can try work through it.



  • Trash to Treasure

    Trash to Treasure
  • Remix Contest

    Remix Contest
  • Build a Tool Contest

    Build a Tool Contest

9 Discussions


2 years ago

is it possible to take voice output of the final result???

if yes, then p;ease provide necessary help

there is a problem in uploading it shows can't set com state '\\'com6 could you tell e why this happen cause i am completely new to arduino

1 reply

Make sure you have to correct port selected before you press upload. (Disconnect Arduino. Open tools>Serial port. Connect Arduino. Select the serial port that appears after it is plugged in)


The code is uploaded, in a text file. Just copy and paste it into your IDE.

Maccattack213Conor M

Reply 3 years ago

I would, but I am busy with exams at school at the moment. I will try to get onto it as soon as I can though.

Conor M

3 years ago

Sorry didn't realise the time was there

Conor M

3 years ago

Can you upload program please