4x3 keypad


Results 1 to 10 of 10

Thread: 4x3 keypad

Threaded View

  1. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Cool Multiple Buttons Using One Pin

    May I recommend the attached schematic as a solution to your limited pins?

    With the attached schematic, pot command can be used to read different values of each button hit. Even the combination of button hits can provide different readings.

    The key points are as follows.

    1. All resistors must be +/-1% or better tolerance.
    2. This application may not be suitable in the environments where ambient temperature changes sharply.
    3. “Select Case“command needs to be used to divert the resistor readings.

    Example:

    Pot porta.0, 255,BtnRead

    Select Case BtnRead

    Case is >20 and is <25 ‘Actual BtnRead=22, The safe reading range is wider then the resistor tolerance.
    Goto Menu1

    Case is >26 and is <31 'Actual BtnRead=28
    Goto Menu2
    .
    ..

    ….

    End select

    4. Resistor values need to be determined experimentally. If the values are too close then the range of one button may intersect with the range of another button.



    --------------------------------------------------
    Attached Images Attached Images  
    Last edited by sayzer; - 13th April 2006 at 11:30.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. 4x4 keypad Help
    By aaliyah1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th October 2010, 16:34
  2. keypad 4x3
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 15th July 2009, 06:34
  3. 4x3 keypad and an LCD.. need help.
    By taisen83 in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 6th January 2009, 09:34
  4. Keypad input test
    By Kalind in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th October 2008, 04:00
  5. Need help in matrix keypad coding
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 24th May 2008, 13:16

Members who have read this thread : 0

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