5v/12vdc inputs and only one of those as outputs using PIC18fxxxx

Discussion in 'Power Electronics' started by StealthRT, Oct 27, 2016.

  1. StealthRT

    Thread Starter Senior Member

    Mar 20, 2009
    252
    0
    Hey all I am trying to find an IC that can accommodate having 2 inputs but only one output depending on what I send via a PIC18fxxxx micro controller. This sounds like it would be a DPST but I can't really find anything like that I can control from a PIC to choose what output needs to be on.

    The 5vdc and 12vdc will be to power a PC FAN. The 5 and 12vdc will be coming from the PC PSU.

    A 12vdc fan is around 0.25A ~4W
    A 5vdc fan is around 0.18A ~2W

    So something like so:
    Code (Text):
    1.  
    2.                     |------|
    3.     ---5vdc-in----->|  IC  |
    4.     ---12vdc-in---->|  ?   |-----5 or 12vdc-out-->
    5.     ---PIC pin-in-->|      |
    6.                     |------|
    7.  
    Or better visually is this:
    [​IMG]

    The PIC pin would control the IC to let it know which voltage to output.

    Does anyone know if this type of IC exists? I'll need to be able to do 10 outputs all together.
     
  2. Dodgydave

    AAC Fanatic!

    Jun 22, 2012
    8,133
    1,409
  3. StealthRT

    Thread Starter Senior Member

    Mar 20, 2009
    252
    0
  4. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    5,283
    1,996
    Here is one switch based on the 4066 and an inverter gate, Each 4066 would give you two such switches.

    Switch.PNG
     
    Dodgydave likes this.
  5. Dodgydave

    AAC Fanatic!

    Jun 22, 2012
    8,133
    1,409
    Same as above, but using two pic outputs complimentary instead of the inverter gate, so one goes high the other goes low, vice-versa....
    DSC_0244.JPG
     
    Last edited: Oct 31, 2016
  6. StealthRT

    Thread Starter Senior Member

    Mar 20, 2009
    252
    0
    Could you go ahead and draw that up for me please?

    And thanks for the drawing djsfantasi!
     
Loading...