When posting, press the 3rd button from the left in the top row
it will insert 'bracket img bracket' and 'bracket /img bracket' in the message.
Paste the link to your .jpg format picture in between.
Also, resize your images to be around 640 pixels wide <- -- ->.
It looks like your first image is a velleman keypad; here is some code I modified from the keypad tutorial to read it
// added Keypad example from playground
// modified to send character in a buffer to the receiver from 4x4 matrix
// Velleman 4 x 4 matrix keypad
// keypad 1 (Col1) to D10
// keypad 2 (Col2) to D9
// keypad 3 (Col3) to D8
// keypad 4 (Col4) to D7
// keypad 5 (Row1) to D6
// keypad 6 (Row2) to D5
// keypad 7 (Row3) to D4
// keypad 8 (Row4) to D3
// Rows have Internal Pullups
#include <Keypad.h> // Matrix Keypad library
// set up the Keypad
const byte ROWS = 4; // Four rows
const byte COLS = 4; // Four columns
// Define the Keymap
char keys[ROWS][COLS] =
{
{ '1','2','3','A' } , // row 1
{ '4','5','6','B' } , // row 2
{ '7','8','9','C' } , // row 3
{ '*','0','#','D' } , // row 4
};
// Connect keypad ROW1, ROW2, ROW3 and ROW4 to these Arduino pins.
byte rowPins[ROWS] = { 6, 5, 4, 3 }; // Keypad uses internal pullups? No externals supplied
// Connect keypad COL1, COL2, COL3, COL4 to these Arduino pins.
byte colPins[COLS] = { 10, 9, 8, 7 };
// Create the Keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup ()
{ // other setup code}
void loop ()
{
// go read the keypad
char key = keypad.getKey(); // reading the keypad
if(key) // same as if(key != NO_KEY)- did something change?
{
// do something with the keypress, such as:
switch(key){
case '0':
// insert action to do on button 0 being pressed
break;
case '1':
//
break;
:
:
case '#'
//
break;
:
:
case 'D':
//
break;
} // end switch
} // end if key pressed
// other actions
} // end void loop
Can't help with the LCD, don't recognize it, haven't used one yet.
[img]http://i.imgur.com/LmaTC.jpg[/img]
[img]http://i.imgur.com/v1aJs.jpg[/img]