Interfacing hex keypad to arduino.Full circuit diagram, theory and program