Many Analog Inputs


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Ioannis

    70 pots ... wow, how much hands to drive them ??? two 8 channel low Ron multiplexers could do it ... makes 8 I/O ports

    for the keyboard ... 7 port lines can give you 42 buttons ... the trick is just to add a series diodes with each button, and swap the line levels that test the buttons.

    Total is 15 I/Os ...

    Sorry for Sayzer, but 35 resistors will really be too close a value to each others ( 3% steps ) ... will give a rock'n roll decoding !!! and we do not talk about the POT command !!!

    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default Many Analog inputs

    Thanks for the replies.

    Well for the buttons I think I 'll choose the matrix method (5x7 or more for the future).

    About analog I came up with a scheme like this:

    The pots will be grouped in 8 rows by 9 or more columns.

    One end will be grounded. The other end will be joined for every row together and powered by a PIC pin output.

    All wipers in one column will be joined together through a schotky diode and grounded by a 1M resistor, then input to a Analog multiplexer. The output of the multiplexer will be driving the A/D of the PIC.

    I know the above idea will lack precision, but this really does not matter a lot if the error is common for all pots.

    For the history, the application is a MIDI controller for a music plug-in that has on software many "analog controls" on screen. The idea is not to use the mouse to change the control but a real knob.

    Any comments welcome.

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default

    Most multiplexer provide a low resistor between the IN/OUT, i don't see any kind of problem by using it. just make sure you smooth the signal at the output and you should be in business.
    I already done something like that with almost the same requirement. The main difference was that i used few a/d and few multiplexers and all the POT was always connected to AVdd and AVss, the output to the Multiplexer, multiplexer out to an opamp (to match 100K impedance), then to the PIC a/d.

    Have fun!
    Steve

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

Similar Threads

  1. Erratic analog inputs .
    By timseven in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th October 2009, 22:34
  2. pic18f analog comparator problem
    By david.silaghi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th May 2009, 09:38
  3. Multiple analog inputs ?
    By rngd in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th February 2008, 15:13
  4. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 18:14
  5. analog inputs on 16F716
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th October 2005, 04:07

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