Two inputs at different voltages in parallel

Discussion in 'The Projects Forum' started by jonfarrugia, Jan 7, 2014.

  1. jonfarrugia

    Thread Starter Member

    Feb 19, 2010
    20
    1
    I have two micro processor in which I need to connect both of them to the same single pole switch which is grounded on one side. One of the micro processors is sitting at 12v while the other is sitting at 5v. I just cant connect these two inputs together and than connect them to the grounded switch...can I?
    connecting them together may cause damage or premature triggering. What circuit should go between them? They are just inputs so there should only be a few ma of current. I was considering a diode between the inputs but thought the voltage drop across the diode might cause issues.

    The current circuit is very similar to the one attached.
     
    azizi92 likes this.
  2. wayneh

    Expert

    Sep 9, 2010
    12,093
    3,033
    That arrangement will cause a bit more current to flow from the 12V source than from the 5V source. You could increase the 10K resistor to reduce the current. Otherwise I don't see a problem, but I must admit I don't quite understand why the micro is sourcing current at its input pin?
     
    azizi92 likes this.
  3. inwo

    Well-Known Member

    Nov 7, 2013
    2,433
    315
    I think diodes would be better.
     
    azizi92 likes this.
  4. inwo

    Well-Known Member

    Nov 7, 2013
    2,433
    315
    What is the "logic low" level?
     
  5. jonfarrugia

    Thread Starter Member

    Feb 19, 2010
    20
    1
    Do you mean something like this:
     
  6. jonfarrugia

    Thread Starter Member

    Feb 19, 2010
    20
    1
    Im a bit confused...when the switch closes the level is 0v?
     
  7. inwo

    Well-Known Member

    Nov 7, 2013
    2,433
    315
    No, just the diodes.

    With the resistors, and switch "off", the 5 volt input will see 12 volts. Maybe that's OK.

    A diode on the 5v is all you need, as it would be biased off with switch open.
     
  8. jonfarrugia

    Thread Starter Member

    Feb 19, 2010
    20
    1
    OK so like this:
     
  9. inwo

    Well-Known Member

    Nov 7, 2013
    2,433
    315
    I mean will it be considered "low" at .6 volts. TTL was 0 to .8 volts.

    Your input specs may be different.
     
  10. jonfarrugia

    Thread Starter Member

    Feb 19, 2010
    20
    1
    The 5v microprocessor is an Arduino Mega...I'd need to look at the specs for it
     
  11. jonfarrugia

    Thread Starter Member

    Feb 19, 2010
    20
    1
    looks like a low is 0-1.5 and high is 2-5
     
  12. inwo

    Well-Known Member

    Nov 7, 2013
    2,433
    315
    Except no resistors.
    But it only works if .6 volts will be seen as "logic low".

    If not use a diode with very low forward drop.
     
  13. inwo

    Well-Known Member

    Nov 7, 2013
    2,433
    315
    Good to go then.
    One diode on the 5v leg.
    Another on the 12v can't hurt.
    Also, the diodes must have some "keep alive" current thru them.
    Are there pull-ups?
     
    Last edited: Jan 7, 2014
    jonfarrugia likes this.
Loading...