Need help with a xor gate switching Instead of relay

Discussion in 'General Electronics Chat' started by shrikanthkp, Sep 2, 2013.

  1. shrikanthkp

    Thread Starter New Member

    Aug 30, 2013
    13
    0
    Can i use or gate for switching instead of relay? Because relay consumes more battery power than gate?.
    Here i used 1 Input of XOR gate (high or low signal) given from microcontroller 2nd input pin kept dummy.If microcontroller output high ,XOR gate output also high.then can i use this voltage to drive another circuit(5volt ) insted of using relay?.Beccause relay consumes more power from battery.So we can avoide fast discharging of battery?.Please help me.
    Thanking you,
    Regards
    Shrikanth KP
     
  2. adam555

    Active Member

    Aug 17, 2013
    858
    39
    I guess it would depend on how much current you would need to drive the other circuit.
     
  3. shrikanthkp

    Thread Starter New Member

    Aug 30, 2013
    13
    0
    Current consumption about 5mA
     
  4. adam555

    Active Member

    Aug 17, 2013
    858
    39
    Then if your gate supports that current I don't see why not. But why don't you just use a transistor?
     
  5. shrikanthkp

    Thread Starter New Member

    Aug 30, 2013
    13
    0
    if we use transistor circuit gets small leakage But there was no leakage in gate?accuracy is more than transistor.
     
  6. adam555

    Active Member

    Aug 17, 2013
    858
    39
    But you would also need to supply the gate anyway, whether it's high or low.
     
    shrikanthkp likes this.
  7. ScottWang

    Moderator

    Aug 23, 2012
    4,854
    767
    XOR gate : If the inputs are the same and then the output will be low.
    So if you want to using XOR gate as a buffer(input high and then output high, input low and then output low) then you have to connected any one of inputs to GND.

    Why you want to used that XOR gate?
    In your case that the XOR gate function didn't used as the normal XOR gate function, it just as buffer and isolation functions, even if you using a wire to shorted and replace the XOR gate, it still can be working.
     
  8. shrikanthkp

    Thread Starter New Member

    Aug 30, 2013
    13
    0
    for me XOR gate/OR gate anything is ok.my application just switching & driving the circuit.if PIC input high can i use output of gate voltage to my circuit?.it was just eliminating relay,to avoide quick battery discharge from relay.
     
  9. adam555

    Active Member

    Aug 17, 2013
    858
    39
    I thought that you could also use an optocoupler, and have both circuits isolated (as I suppose it was intended with the relay) while lowering the consumption.

    If you are using the gate to pass the output current to the other circuit, then why not just pass the current directly; why would you even need the gate?... just asking.
     
    shrikanthkp likes this.
  10. shrikanthkp

    Thread Starter New Member

    Aug 30, 2013
    13
    0
    Yes really good idea !!!!
    Thank you
    Shrikanth KP
     
  11. ScottWang

    Moderator

    Aug 23, 2012
    4,854
    767
    If you want to get the appropriate application then you have to show your circuit, sometimes we have to find the better match.
     
  12. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,790
Loading...