Build a Calculator with Arduino UNO

Arduino UNO 14-02-26
14 0

Tutorial plan

1- Objective of the project

2- Required Components

3- Circuit Connections of system

4- Program of Arduino calculator

 

 

Objective of the project

The objective of this project is to design and build an electronic calculator using the Arduino UNO board, a 4×4 matrix keypad, and an LCD I2C screen.

This calculator allows the user to enter numbers and select mathematical operations using the keypad, while the LCD screen displays the entered data and the calculation results in real time.

This project helps learners understand how to interface input devices (keypad) and output devices (LCD display) with a microcontroller. It also introduces fundamental programming concepts such as data input, processing, and output.

By completing this project, students will gain practical experience in electronics, embedded systems, and Arduino programming, and will learn how to create a functional and interactive embedded application.

 

Required Components

1. Arduino UNO

Arduino Uno

The Arduino UNO is the main controller of the system. It executes the program written in Arduino language, reads the keys pressed on the keypad, performs the mathematical calculations, and sends the results to the LCD screen. It also provides power and communication to the connected components.

2. 4x4 Matrix Keypad

The 4×4 matrix keypad is an input device that allows the user to enter numbers (0–9) and mathematical operators (+, −, ×, ÷, =, C). It consists of 16 buttons arranged in rows and columns. The Arduino scans these rows and columns to detect which key is pressed.

4. LCD Display with I2C Module

The LCD I2C display is used to show: entered numbers, mathematical operations and calculation results.

5. Breadboard 

Breadboard

A breadboard can be used to make connections easier without soldering. It helps organize the circuit and allows quick modifications.

6. Jumper Wires

Jumper wires

Jumper wires are used to connect the keypad and LCD screen to the Arduino board. They ensure proper electrical connections between all components.

 

Circuit Connections of system

 

1- Connection of keypad to Arduino UNO

4x4 Keypad Arduino UNO
R1 pin 2
R2 pin 3
R3 pin 4
R4 pin 5
C1 pin 6
C2 pin 7
C3 pin 8
C4 pin 9

 

2- Connection of LCD I2C display to Arduino UNO

LCD I2C display Arduino UNO
VCC 5V
GND GND
SDA pin A4
SCL pin A5

 

Program of Arduino calculator

This program transforms the Arduino UNO into a functional calculator using a 4x4 matrix keypad for input and an I2C LCD display for output.

You need to install this libraries : LiquidCrystal_I2C  and Keypad.

0 comment

Leave a comment

Veuillez noter s'il vous plaît*

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Purpose of this website

Educational robotics refers to the use of robots and robotics technology to promote learning in educational settings. It involves the integration of technology, engineering, and computer science into the classroom, allowing students to engage in hands-on, project-based learning experiences.
In this context, our website represents an excellent resource for parents, teachers and children who wish to discover robotics.

Contact details

Zaouiet Kontech-Jemmel-Monastir-Tunisia

+216 92 886 231

medaliprof@gmail.com

Pictures of the articles

Robotic site created by Mohamed Ali Haj Salah - Teacher info