Circuit design question, multiplexing 270 phototransistors


Closed Thread
Results 1 to 7 of 7
  1. #1
    rschader's Avatar
    rschader Guest

    Default Circuit design question, multiplexing 270 phototransistors

    Seeking info on the best (smallest, cheapest) circuit and controller where I can monitor 270 photo transistors. Would want to be able to tell if all of them are receiving a certain level of light, or which ones are not receiving enough light. Planning on using a PIC controller. Mainly interested how to best multiplex that many inputs into the limited number of inputs.

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    The DG408 is an 8 channel analog multiplexer. It needs 1 ADC pin and 3 control pins. It might be possible to use 8 of them, each with its own ADC pin, with their control lines in common but that still only gives you 64 channels so you would need 5 such setups (i.e. 5 PICs w/8ADC pins + 34 DG408s). That might still be better than using motorized rotary switches which get expensive and bulky. You could do it with 5 each PIC16F88 which only have 7 ADC pins. 5*7*8=280 total channelsYou can reduce the number of PICs to one by cascading the DG408s. This takes additional control lines and is a bit harder to visualize but (if my math is correct) you can have 448 channels with one PIC12F88 and 9 DG408s, needing 6 control lines.

    What type of output is needed?
    Last edited by dhouston; - 17th September 2009 at 17:47.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    My math was wrong. Cascading would require 56 DG408s for 448 channels.

  4. #4
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default

    I2C is the way I would go. Use PICs for the slaves.

    Steve

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    rschader, How fast are going to scan the matrix? What PIC are you intending on using? If it was me, I would switch the source for the phototransistors and use 1 a/d port. Less power and less to worry about as far as calibrating all of the a/d channels and multiple references with multiple PIC's.

    Dave Purola,
    N8NTA

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Reducing it to a single ADC pin would only require one more DG408 and three more control lines but it does complicate the switching logic, going from 6-bits (with 7 ADC pins) to 9-bits.

    40 DG408s + 1 PIC with 1 ADC pin and 9 control pins.

    However, there is only one ADC channel with a PIC - it's input is merely being switched internally so there''s no real difference between using all seven ADC pins on a PIC16F88 and using only 1 ADC and adding another DG408.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    If the OP could live with digital outputs for the photo transistor levels, then you could just use I/O expanders. Comparitors would be cheaper than analog switches. Some I/O expanders can read 26 I/O pins with one package.
    Tim Barr

Similar Threads

  1. Circuit Design Question
    By bradb in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th August 2009, 09:18
  2. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 15:55

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