Need advice on my first project - calculator

Hello everyone, I am very new to Arduino, and apart from very small projects I made in highschool, I don’t have any other experience.

I want to make a basic Arduino calculator with 16x2 lcd and some buttons. I tried to find out if there is a way to power my project with batteries, but didn’t have any luck so far. Is that possible? And if it is, for how long would the batteries be able to power it? I’m hoping to have an on/off switch and be able to actively use it for at least 2-3 hours before needing to change the batteries.

Thanks in advance and sorry if I am not clear enough.

I haven’t bought any parts yet and I’ll be happy to take your suggestions.

Welcome to the world of Arduino!
Forget about batteries for now. You will HAVE to connect your Arduino to your PC in order to program it and then the PC can also power your project using the USB connection.
When it all is working as you want, then you can think about battery power.
Have you a plan for what you want each button to accomplish?
Good luck and go find some parts.

Yea, but you are going to need a battery holder for "cell" batteries like AA/C/D or you will need a 4.7 Volt LiON pack.

image

With the 6-cell, you will use the barrel jack on the Uno board.
If you use a 4.7 LiON pack, you will power from the 5 volt header pin.

My old calculator project:
https://forum.arduino.cc/t/dont-cross-the-streams-fp-scientific-calculator-serial-co-processor/144054

PS: Paul's response above is great ... worry about the programming but keep that power need in the back of your head as it will come up soon enough... like a phase-2 of project design.

Thank you for your reply :slight_smile:
I’m asking this question now because I want to order most of the parts I will need for the project at once.
I don’t think the programming logic will be a problem, and the main function i imagined are “hidden features” that would imitate the shift button on regular calculators.

Practically speaking, if you only order once, then order twice or three times the parts because some will get destroyed as you learn.

Thank you for your response, you gave me a really clear answer.
I’m sure the link you provided is going to be really useful later :slight_smile:

Hahah, thanks for the advice. I live in Serbia, and the parts here are way more expensive than online, and I want to reduce the cost. I will most likely order more parts that I will need.

Guessing at your experience, I think the calculator is a great project, because it seems simple, but has some interesting ‘kinks’ you may not be expecting!

Remember you need to inout multiple digits and accumulate the into a single operand - multiple times, so they can be modified with the operators - developing a result.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.