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.
- Input two numbers using a 4x4 keypad.
- Choose operation:
+,-,*,/. - Display result when
=is pressed. - Clear screen with
Cbutton. - Scrolling welcome message on startup.
| 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 |
- 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.
- Power the Arduino.
- A welcome message scrolls on the LCD.
- Enter the first number via keypad.
- Press the operation key (
+,-,*, or/). - Enter the second number.
- Press
=to calculate and display the result. - Press
Cto clear the screen and reset.
Arduino_Calculator.ino: Main codeREADME.md: Project documentation
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
If you have a picture or video of the setup, you can embed it here:
