Decoding rotary switches


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    timmers's Avatar
    timmers Guest


    Did you find this post helpful? Yes | No

    Default

    .... or use a parallel in serial out shift register. By cascading several registers you can have as many inputs/outputs as you like.

    Tim.

  2. #2
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    Steve:

    Figure 3 illustrates a resistor network, which changes a
    4x4 keypad into a switchable resistor matrix. The
    resulting resistance is read by an ADC or a capacitor
    charge timer, which determines the key that is pressed.
    This is practical only when one key is pressed at a time.

    ... so that doesn't really work in this case, but those are good links from Microchip, thanks

    Al: I think the usual solution is to use diodes like you say.

    Tim: I'll have to think about that

    Thanks for the inputs

    Andrew

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    So I haven't explain it correctly then... and i wasn't refer to a 4x4 matrix directly but multiple switch with a single I/O and a single (or multiple) ADC channel. Food for thoughts
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    Actually this is really one of those situations where I'm trying to force a solution to a problem - I picked up a bag of these switches for a couple of dollars and now I'm looking for a use. The application is just to provide a knob to control the duty cycle of three different PWM module. The easiest solution is just using a pot and an ADC channel - three pins, some case commands and it's done.

    Sometimes one's head gets lost in a dark place !

    Andrew
    Last edited by AndrewC; - 29th March 2009 at 10:33.

Similar Threads

  1. scanning BCD switches
    By dsicon in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th June 2008, 17:57
  2. Rotary encoders
    By mister_e in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st February 2007, 16:57
  3. two BCD switches
    By Mugel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st November 2006, 22:53
  4. switches & LEDs ... my first attempt
    By yankee in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 28th January 2006, 12:51
  5. Two switches per pin!!!
    By picnaut in forum General
    Replies: 4
    Last Post: - 18th June 2004, 19:02

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