Keypad/Membrane Switch


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Posts
    3

    Default Keypad/Membrane Switch

    Any assistance appreciated as I keep running round this so fast I’m in danger of disappearing up my own backside. I am trying to use a keypad or more probably a membrane switch, as I need to overlay them with pictures for kids to use. Rather than send letters or numbers to the LCD I need it to count the number of times a particular key has been pressed and display that number on the LCD.

    Hardware:-

    PIC ???
    20x4 LCD
    Keypad/Membrane Switch or even a switch matrix

    Software:-

    At switch-on or RESET the LCD should display a set of CONST str

    WORD1 WORD2
    WORD3 WORD4
    WORD5 WORD6
    WORD7 WORD8

    It should then scan the buttons and count the number of times each button (1 – 8) is pressed and hold these numbers in a set of variables

    On pressing the DISPLAY button the LCD should then show the corresponding number associated with each CONST word (or pictures as far as the child is concerned) if a button hasn’t been pressed then the number 0 should be displayed


    WORD1 0 WORD2 45
    WORD3 12 WORD4 22
    WORD5 6 WORD6 0
    WORD7 1 WORD8 14

    Grateful for any help

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Question

    Hi,

    What kind of assistance do you look for ???

    - Hardware definition
    - Scheme
    - Programming point to be explained to you
    - Program writing
    - Pic Programming

    - FULL PROJECT READY TO SWITCH ON ???

    I do not understand at all what you're waiting for us to do ....

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Sep 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Sorry Acetronics, it made perfect sense to me when I wrote it Now that I have re-read it I can see that it doesn't make any sense at all.

    What I'm strugling with is the keypad/membrane switch, though I can find lots of examples of interfacing a numeric keypad. If I was using a 3x4 KP/MS I could name the buttons and variables

    btn0.......btn7, btnre-set, btndisplay

    var num0.......num7

    The part I'm having difficulty with is the coding to scan the buttons and add a count to the appropriate var i.e.

    WHILE btndiaplay = NO

    SCAN btns

    IF any btn is pressed and 1 to that btn's var

    I hope this makes more sense and appreciate anyone offering help


    P.s. a 'FULL PROJECT READY TO SWITCH ON' would be nice, if anyone has one

Similar Threads

  1. counting switch events beginner
    By mrpete in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd April 2009, 16:08
  2. a switch and 2LED
    By win_832001 in forum mel PIC BASIC
    Replies: 4
    Last Post: - 11th October 2006, 22:06
  3. Newbie - 16F628A and switch latching
    By malc-c in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 19th May 2006, 02:35
  4. Switch Sequence
    By Tissy in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 13th February 2005, 20:36
  5. Switch Polling vs Interrupts
    By eric blair in forum General
    Replies: 1
    Last Post: - 17th October 2003, 09:38

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