I am bogged down in this project
I am bogged down in this project
I see no code what so ever here to write to the LCD, sure you have the library included but thats it
you need to create an instance of the LCD library and send the data to it as you read from the keypad
this might help get you started http://tronixstuff.com/2013/12/16/arduino-tutorials-chapter-42-numeric-keypads/
I have just spent the last while on the link you sent. What an excellent site. Thank you.
I will rewrite the sketch and get back to you with the question of sending the 3 digits to the radio.
You are a great resource.
Bill
Good luck, I look forward to hearing how you did
Peter
Good luck, I look forward to hearing how you did
Peter
I am coming along nicely in the time that I have to give to the project. Learning is hard at my age.
I am thinking about using the 74C922 keyboard decoder. I will give me a Data Available pin and includes de-bounce as well.
This will save me 3 pins and allow me to forgo the Mega.
My question is how hard is it to read and store BCD data.
I cant seem to find any help for inputting BCD to the Arduino. Can you help?
Bill,
I cannot help you with the 74C922 because, last time I looked, it was somewhat expensive here in the UK. I used the PCF8574 I2C I/O expander with a 4 * 4 matrix keypad. The PCF8574 is considerably cheaper than the 94C922 and to my mind much more flexible and versatile once you have mastered its control. Being I2C it only uses two pins on the Arduino and it has 8 programmable addresses.
The libraries I used are keypad_I2C.h and keypad.h. These libraries provide the value of the key pressed to the Arduino and you can choose what value each key represents, for example you could choose to return the ASCII value of the key, say 8. This value could be printed directly to an LCD or you could subtract ASCII 0 from it to get the numerical value.
I really like my I2C key pad, it works well along with my I2C LCD display on the same two pins! but with different addresses. I have had no issues with key bounce problems and I believe the library takes care of this anyway. There is no BCD manipulation.
hope that helps
Bob
I concur, the I2C 8574 is an easy chip to control and scanning a matrix keyboard has been done several times with it so there should be a few examples available on the web for you