Connect with us

Help with voltage controlled switch

Discussion in 'LEDs and Optoelectronics' started by VideoTechGuides, Feb 23, 2012.

Scroll to continue with content
  1. VideoTechGuides

    VideoTechGuides

    2
    0
    Feb 23, 2012
    Hi, I am trying to design a circuit that switches a power supply on and off depending on whether the engine is running in my car. When the engine is off, supply voltage is 12.6v or below. With the engine running it is 14.0v The load is about 2A (LED running lights)

    I've come up with the below circuit which I hope will switch on at 13v plus the fets internal diode forward volt drop (13.6v?) and then off again below 13v, which would be ideal for my application. Can someone tell me if this would work, or point me in the right direction?

    Thanks

    [​IMG]
     
    Last edited: Feb 23, 2012
  2. jackorocko

    jackorocko

    1,284
    1
    Apr 4, 2010
    As far as I can tell the above schematic will not work. You have a p-channel mosfet, the gate has to be more negative then the source to turn on.

    edit: I should read more closely. You want the on and off switch to be automatic when you start the car. I get it now.
     
    Last edited: Feb 24, 2012
  3. duke37

    duke37

    5,364
    769
    Jan 9, 2011
    Your fet looks to be the wrong way round?

    The main problem here is that the fet will need a few volts to turn on so that diagram you have given, will need 13V plus a few to get the fet into the start of conduction. You need several volts on the gate to turn it on fully.

    You will need a voltage reference and a comparator to drive the fet.
     
  4. arg733

    arg733

    89
    0
    Dec 14, 2010
    Completely wrong!

    This circuit is completely wrong.
    see attachment

    you can connect the gate of mosfet to an electronic device that takes power when you start the engine or to the alternator or you may have a separate switch
    you need to use n-channel mosfet because the p-channel closes when it receives a positive pulse at the gate.
    you can buy any n-channel mosfet like irf 540 (100v 33A so you should be ok)
     

    Attached Files:

    Last edited: Feb 23, 2012
  5. VideoTechGuides

    VideoTechGuides

    2
    0
    Feb 23, 2012
    Ok guys perhaps I got carried away trying to design something myself with no prior experience. Maybe just ignore my little sketch above.

    Just to clarify the purpose of my circuit:

    I want a circuit to switch on a 12v load when the supply exceeds 13.0 volts, and switch off the load when the supply drops below 13.0 volts. That is all. And I want to make it as simple and compact as possible, and use a FET of some kind to switch the load, rather than a relay.

    Thanks
     
  6. Rleo6965

    Rleo6965

    585
    9
    Jan 22, 2012
    Try this circuit. It might work. You can change Mosfet and load components to your requirement.
    [​IMG]
     
  7. twister

    twister

    172
    7
    Feb 12, 2012
    That's a nice circuit, but I would make a couple of changes. From my playing around with mosfets, I found out that they won't turn on completely in a voltage follower circuit. I would recommend putting the load on the drain and ground the source. Also if the mosfet shorts it will overload the LM311 and take it out. I would change the R3 to at least 300 ohms. Don't ask me how I learned this lesson!
     
  8. Rleo6965

    Rleo6965

    585
    9
    Jan 22, 2012
    Very good observation twister. Thanks.
     
  9. duke37

    duke37

    5,364
    769
    Jan 9, 2011
    Does the LM311 need a pull-up resistor (1k) output to 12V?
     
  10. jackorocko

    jackorocko

    1,284
    1
    Apr 4, 2010
    I would say yes, seeing as how the LM311 has an open-collector. I was thinking same thing.
     
  11. Rleo6965

    Rleo6965

    585
    9
    Jan 22, 2012
    Yes, just saw datasheet. It's an open collector output that can switch voltage up to 50V.

    I rely on components library of ExpressSch Software when I draw the diagram.:)
     
  12. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,477
    2,820
    Jan 21, 2010
    If you're wanting a high side switch, you really have to use a P channel MOSFET
     
  13. Rleo6965

    Rleo6965

    585
    9
    Jan 22, 2012
    Then , I have to interchange the circuit on input of LM311. Thanks for the advice.

    [​IMG]
     
    Last edited: Feb 25, 2012
  14. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,477
    2,820
    Jan 21, 2010
    You also may want to pup a capacitor across R2 so that it's not affected by brief transients.

    You also probably want to protect the LM311 from transients. Unfortunately this may affect the sensitivity to supply voltage changes that you want to detect.

    The answer is to place RVR1 and R2 outside the protection. An 8V (ish) zener diode across R2 should provide protection for the LM311 from transients entering via this route.
     
  15. twister

    twister

    172
    7
    Feb 12, 2012
    A 8 volt zener would stop the op amp from working. It would have to be lower than the other zener.
     
  16. jackorocko

    jackorocko

    1,284
    1
    Apr 4, 2010
    must be I am slightly confused, anyone care to explain this high side low side thing?

    I thought for a high side load the transistor has to source current(connected to the battery side) and a low side has to sink current(be connected to ground). Is that not true?


    also, why couldn't you have used an N-channel depletion mode mosfet in the above example?
     
  17. Rleo6965

    Rleo6965

    585
    9
    Jan 22, 2012
    8V zener ( non-inverting ) was still higher than 6.2V reference voltage ( inverting ). Non-inverting input need only around 0,5V difference voltage from the 6.2V reference voltage to change its output. 8V zener was only for transient protection as steve suggested.

    Initially at 13V car battery voltage RVR1 setting voltage of inverting input was 6.25 and causing the Load on.. When battery voltage drop to 12V. Inverting input voltage 5.7V and causing the output load off.
     
    Last edited: Feb 26, 2012
  18. twister

    twister

    172
    7
    Feb 12, 2012
    What was I thinking? You are right. The 8v zenner would only keep the voltage from going higher not lower. :eek:
     
  19. Rleo6965

    Rleo6965

    585
    9
    Jan 22, 2012
    We can use N-channel Depletion Mosfet with its drain connected to ground and source connected to the LED ,

    I wrongly placed N-channel Depletion Mosfet as voltage follower in my 1st schematic.:D

    twister notice my mistake.:D

     
    Last edited: Feb 26, 2012
  20. jackorocko

    jackorocko

    1,284
    1
    Apr 4, 2010
    Now that I am looking at it, that symbol you posted in last schematic is for p-channel depletion mode mosfet. Enhancement mosfets have dashed lines if I recall correctly. Or is that what you meant?

    I am just now getting used to mosfets. Never really used them before

    edit: http://www.electronics-tutorials.ws/transistor/tran_6.html this is what I am referencing.
     
    Last edited: Feb 26, 2012
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-