How to Build Electronics calculator using Arduino uno and TFT Display Shield

Electronics calculator using Arduino UNO and TFT Display Shield

Hello  friends,

                     Today I have something new to show you. As earlier mention in the title, I designed an ELECTRONIC  CALCULATOR  using Arduino UNO and 2.4" TFT Lcd Display Shield.


                       The system is built around Arduino UNO r3 microcontroller and 2.4" TFT LCD shield. The shield is designed in such a way that no connection error will occur. Arduino UNO can be powered by 9v or 12v adapted or USB cable. on board 3.3v regulator is available on LCD shield. LCD shield gets 5v supply from arduino and convert it into 3.3v using regulator ic 1117-3.3. further, this supply is given to the LCD. LCD consist of 2.4" resistive touch pad which use as an input device for the system. The LCD is interfaced to arduino with 8 bit data bus and 5 bit control bus. this control bus is connect to 5 analg pins of arduino and data bus is connected to digital i/o pins. Touch pad is also interface with  this bus . Alternatively, the touch pad and lcd is accessed through the microcontroller. Reset switch is available on tft lcd shield.




                The System wake up with a message. and wait for the user.
After that main calculator opens up as shown in the figure.

The system support most of the mathematical operations and also it supports the logical operations also which further more helpful for the programmer. it supports ADDITION,MULTIPLICATION,SUBTRACTION, and DIVISION.  However, it is possible to perform Logical OR and Logical AND operation. All operations are perform on decimal number and results are also printed in decimal number except that the OR , AND  operation produce the result in Binary. Apart from this  calculator can be used to obtain the percentage and power of a given number. It also calculate Modular of given number. Delete button is present there to delete the incorrect digit or sign pressed by the user.  The best feature which attract me towards this calculator is that it can produce, BINARY, HEX, OCTAL representation of given decimal number. Special buttons are given to select the appropriate operator.
Some pictures of  working module is shown below.


  1. it consumes low power and less space.
  2. Its also gives a negative answer.
  3. percentages is shown accurately up-to two digit after decimal point.
  4. No use of analog keys, used for input purpose, which saves the hardware .
  5. Each and every button animates after pressing it.
  6. It capable to print data to any serial device easily.

Working Video:


  1. It can perform an operation on a maximum of 6 digit numbers individually.
  2. 32767 this is the last number which can be converted into its equivalent HEX, BINARY or OCTAL number.
  3. any answer which contents more than 10 digit will likely to be wrong.
  4. At a time only one operation can be perform.
  5. Its not possible to use brackets "()" in this calculator. 


  1. library
  2. code
(Note: The library is based on you lcd.I am not sure that the same library will work on your project.)


Anonymous said…
Share the code, please to try it
Muhammad Taufiq said…
could you share the code?
Shubham Trivedi said…
Yes its work. Video shown in this post is proof of its working.
Unknown said…
The code does not look like the video. Missing bottom two lines of functions.
Shubham Trivedi said…
Can you explain in detail. Which two lines of functions?


Popular posts from this blog

How to interface 16x2 LCD with Raspberry Pi using GPIO & Python