ROBOTIC
TUTORIALS.COM

Popular Tutorial

Click on the image interested  to know what they are, how to do them and more...
Scroll down to check out to specific topic of tutorials on Electronics and Robotics.
Arduino Calculator
1

Items Required:


 PRODUCTS  QUANTITY
 Keypad  1  
 SPduino  1  Buy Now
 Starter Shield  1  Buy Now
 Connecting wires  8  Buy Now
 USB Cable  1  Buy Now

2

Components Specification

SPduino:

Starter Shield:

Keypad:
A 4*4 matrix keypads consists of 4 rows and 4 columns


3

Connection Procedure

  1. Interface Starter Shield and SPDuino board.
  2. Connect the keypad pins to starter shield pins as mentioned in the diagram.
  3. Connect the SPDuino board and laptop using USB cable and upload the program.
4

Keypad Pins Specification

  1. 0 to 9 : Numbers
  2. A : Plus Operator (+)
  3. B : Minus Operator (-)
  4. C : Multiplication Operator (*)
  5. D : Division Operator (/)
  6. * : Clear (Clears the screen)
  7. # : Equals (=)
Mapping of buttons with rows and columns



   Col0 Col1  COl2  Col3 
 Row0  1 A
 Row1  4
 Row2  7
 Row3  *




5

Sample Program

This calculator is designed based on Shunting Yard Algorithm.
It is a method for parsing mathematical expressions specified in infix notation. It can be used to produce either a post fix notation string, also known as Reverse Polish notation (RPN), or an abstract syntax tree (AST). The algorithm was invented by Edsger Dijkstra and named the "Shunting yard" algorithm because its operation resembles that of a railroad shunting yard. Please read the attached PPT for the better understanding of the algorithm.


HAPPY ROBOTING !!!
Home | Shop | Terms & Conditions | Privacy Policy | Disclaimer | Contact Us
Copyright © SP Robotic Works. All Rights Reserved.