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 a ELECTRONIC  CALCULATOR  using Arduino uno and 2.4" TFT Lcd Display Shield.

Construction

                       The system is build around arduino uno r3 microcontroller and 2.4" tft lcd shield. The shield is designed in such way that no connection error will occur. Arduino uno can be powers 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 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 microcontroller. Reset switch is available on tft lcd shield.

  

Working:

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

The system support most of mathematical operations and also it supports the logical operations also which further more helpful for 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 percentage and power of 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 appropriate operator.
Some pictures of  working module is shown below.
   


Advantages:

  1. it consumes low power and less space.
  2. Its also gives 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:

Limitations:

  1. It can perform operation on maximum 6 digit numbers individually.
  2. 32767 this is last number which can 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. 

Code:

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

Comments

Post a Comment

Popular posts from this blog

HOW TO USE MASM 8086 ON WINDOWS 7/8.1/10