Skip to content

abdelwahab-ahmed-shandy/Arduino-Calculator-4x4-Keypad-LCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Arduino Calculator - 4x4 Keypad & I2C LCD

A simple calculator built using an Arduino Uno, a 4x4 keypad, and an I2C LCD screen. This project allows users to input two numbers, choose a basic operation (+, -, *, /), and view the result on the LCD. It was created as part of a university project, where I contributed to the code development and logic design.


๐Ÿ› Features

  • Input two numbers using a 4x4 keypad.
  • Choose operation: +, -, *, /.
  • Display result when = is pressed.
  • Clear screen with C button.
  • Scrolling welcome message on startup.

๐Ÿ“ท Hardware Used

Component Description
Arduino Uno Microcontroller board
4x4 Keypad For inputting numbers and operations
I2C LCD (16x2) To display input and results
Jumper Wires & Breadboard For connections

๐Ÿ“Œ Circuit Overview

  • Keypad Rows (R1โ€“R4) connected to Arduino pins 9, 8, 7, 6
  • Keypad Columns (C1โ€“C4) connected to Arduino pins 5, 4, 3, 2
  • I2C LCD โ€‹โ€‹connected via A4 (SDA) and A5 (SCL)

Note: The I2C address used in the code is 0x27. If your LCD uses a different address, modify it accordingly.


๐Ÿš€How It Works

  1. Power the Arduino.
  2. A welcome message scrolls on the LCD.
  3. Enter the first number via keypad.
  4. Press the operation key (+, -, *, or /).
  5. Enter the second number.
  6. Press = to calculate and display the result.
  7. Press C to clear the screen and reset.

๐Ÿ“‚ Project Files

  • Arduino_Calculator.ino: Main code
  • README.md: Project documentation

๐Ÿ™‹โ€โ™‚๏ธ Contributions

This project was implemented in collaboration with a university colleague. I contributed to:

  • Writing and structuring the Arduino code -Designing the interaction logic
  • Testing and debugging the calculator functionality

๐Ÿ“ธ Demo (Optional)

If you have a picture or video of the setup, you can embed it here:

![Project Demo](/main/images/Arduino_Calculator-3.jpg)

๐ŸŒ Let's Connect

LinkedIn Medium GitHub

About

An Arduino-based calculator using a 4x4 keypad and I2C LCD to perform basic arithmetic operations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages