Hello there
Can I print a formula value by pressing the key 4 times with the keypad?
can you share sample code. e.g. volume formula
Yes
When is our assignment due to be handed in ?
What "formula value"?
Which key is "the" key?
Sure:
void setup()
{
}
void loop()
{
}
I compiled and tested it
the equation looks like this Q=mc(Tf-Ti)
I want to write m, c and T values with keypad
Please clarify what you want to do
Do you want to press a single key to enter each value, ie just 3 keypresses, one for each value, as the title of the topic implies ?
More likely you want to use the keypad to enter a number, press an "enter" key, enter a second number then a third number
Here is some advice on entering a multi digit number using a keypad
Ok, I think I understood.
Let's me translate your sentence:
How to enter a multi-digit number by pressing keyboard buttons 3 4 times?
Did I guess it?
When the arduino is running, the formula Q=m.c.(Tf-Ti) will be displayed.
Then m=? I will write the value of m.
Then c=? I will write the value of c.
Then Tf=? I will write the tf value.
Then Ti=? I will write the value of Ti.
Finally, the Q value will appear on the screen.
Read the advice in the link that I posted. It shows how to enter a multi digit number
How about using a ready to use pocket-calculator for that?
Or your smartphone with a calculator app?
You received not the solution you asked for because your first question is too global:
"Can somebody post the complete code that does (unclear description of what the code shall do)"
You clarified what the code shall do. Well done.
Still you have shown way too less own effort. And you haven't asked a specific question about some basic code that you used as a start.
This is the reason why you only received a link to "how entering multi-digits with a keypad works
It is up to you to demontrate some real own effort through
post information about
- what microcontroller you are using
- what display you are using
- what keypad you are using
posting a first piece of code as a code-section
and asking a specific question.
google is your friend
https://www.google.de/search?q=arduino+keypad+input+multiple+digits
best regards Stefan
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.