Manipulating The Data of Arduino code using Keypad

Hello !!!

               Suppose I want to manipulate a particular part of the code say a value somewhere like delay etc things , then is it possible to do it with a keypad 4x4 by entering into some edit mode ??

Example :

if(digitalRead(22) == LOW)
{
digitalWrite(PIN45,1);
delay(100);
 }

Here in above code if I want to change the delay from 100 to 200 and don't want to connect it to the system or IDE and directly want to change it with the help of a 4x4 keypad or any input device

Then is it possible

:blush:

You could store the delay time in EEPROM and write a routine that reads the new value from your keypad perhaps?

But I want to make it randomly any from whole numbers

and too want to change any of the parameters like a wave file number from a music player design and etc things

That should be available on LCD and I need to move the cursor where i need to make the change

Smooth access !!! User friendly

There is a keyboard library for arduino to work with various keypads - you need to play with that, the examples provided and work out how to change the value of a variable with it .
Then look at how you can display that number on an lcd display .

Alternatively , and easier , you could use a pot to input your delay value. Make the delay value a scaled version of the pot reading .
Again after that you can print that value to the lcd .

Do you have google on your internets over there?

try searching

  display adjust parameters lcd keypad arduino

and poke around a bit. You not trying to do anything impossible, what hasn't been done many times before.

a7

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