Header Ads

4x3 matrix keypad interfacing with micrcontroller and Mikro C

In this tutorial I am show you how to interface keypad with PIC16F877A microcontroller. In this project I  am use 4x3 matrix keypad and LM16x2 Lcd display. In this project I am use Mikro C Pro For Pic Compiler for source code editing. Mikro c provide a keypad library working with 4x4 matrix keypad. You can watch this video or read the written tutorial below.






MATRIX KEYPAD



4x3 matrix keypad


Keypad is set of button. It contain digits,symbols&alphabetical letters. It can be (4x4),(4x3) & (3x2). 4x3 it means 3 column and 4 row. Matrix keypads are commonly used in calculator , digital scale, security systems ,electronic device etc. Matrix keypad is array of push switch. Push button switch leg are connected  to columns and rows. 4x4 matrix keypad contain (4*4)=16 push button switch. If we are use 3x4 matrix there are (3*4)=12 push button switch. 4x4 matrix keypad has (4+4)=8 pin connection and 3x4 matrix keypad (3+4)=7 pin connection.



4x4 matrix keypad structure

Pin Diagram


pin configuration of 4x3 matrix keypad


Circuit diagram of keypad circuit

circuit schematic



Mikro C Code:



Download

Click the download button for hex code:
download


No comments

Theme images by 5ugarless. Powered by Blogger.