So I'm working on a project where I'd like to set up a gearmotor to move an object a certain difference. I've got this part of the project down using encoders and am able to enter in a distance I would like it to travel by using the serial monitor on my computer. To clear things up, everything works how I need it to when connected to my computer.
I would like to connect my arduino to an external power source, serial monitor, and keypad so when I enter in a number (not connected to my computer), the object will move to that distance. What's the easiest way to enter in information with a keypad so that the arduino can process and react accordingly?
Is it possible to use a keypad connected straight to the arduino, in the same way you would use one that's connected to your computer? I need the user to be able to enter in an input distance while the arduino is not connected to a computer. Is that possible?
I'm using an Uno so it does have 16U2 but I'm not familiar with HID code. Using a 3x4 keypad is something I've considered, just haven't had the materials to test yet. Would that be an easy method to enter in information?
This might be a dumb question, but would I get the arduino to remember a previous number pushed? For example, I push 14.2, how could I get the it to process it as this number, rather than "1", "4", ".", and "2"?