Matrix Keypad routine


Closed Thread
Results 1 to 40 of 135

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Single Port Pin

    Hello,

    I remember seeing an idea of connecting multiple (more than 1) switches on a single Port(analog) pin and working with the adc val.

    Cannot find this anymore on the forum.

    Any help on this topic/idea.

    regards

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    I don't remember where is the link, but you can do it easily just like that.

    From the analog port put some resistors in series to 5V. t the joints of the resistors put switch to ground. So every switch will result in different voltage at the ADC input. No switch pressed, the ADC will read 255 or 1023 (8 or 10 bit result).

    Ioannis

  3. #3
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Post Scanning Many Keys With One Input

    Hi charudatt,
    Quote Originally Posted by charudatt View Post
    Hello,

    I remember seeing an idea of connecting multiple (more than 1) switches on a single Port(analog) pin and working with the adc val.

    Cannot find this anymore on the forum.

    Any help on this topic/idea.

    regards
    TIP #5 Scanning Many Keys With One Input
    EDIT: TIP #7 4x4 Keyboard with 1 Input

    Microchip’s Tips ‘n Tricks (DS40040C)
    http://ww1.microchip.com/downloads/e...Doc/40040C.pdf

    Hope this helps,
    -Adam-
    Last edited by Pic_User; - 3rd July 2007 at 14:25. Reason: Added TIP #7

  4. #4
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Thanks

    Thank you Adam and Ioannis.

    That was exactly what I was looking for.

    regards

Similar Threads

  1. calculator-like code entry with matrix keypad and display
    By Dennis in forum mel PIC BASIC Pro
    Replies: 35
    Last Post: - 16th December 2009, 22:58
  2. Need help in matrix keypad coding
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th May 2008, 13:16
  3. I2C PCF8574 4X4 Keypad routine
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th January 2007, 21:25
  4. Inconsistent output on a 4x4 matrix keypad
    By markcadcam in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th November 2006, 03:54
  5. very basic matrix keypad question
    By kitcat in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th July 2006, 21:33

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts