Shop OBEX P1 Docs P2 Docs Learn Events
Still trying to figure out MOSFETS — Parallax Forums

Still trying to figure out MOSFETS

Zap-oZap-o Posts: 452
edited 2009-12-11 23:40 in General Discussion
I put this circuit together and I am getting no current. Any ideas on what I am doing wrong?

Post Edited (Zap-o) : 12/10/2009 3:56:17 PM GMT
1002 x 753 - 82K

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2009-12-10 16:17
    An H bridge uses complementry pairs of semiconductors - with Transistors that means PNP and NPN.

    In this case, I suspect Q2 ans Q4 are wrong.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ain't gadetry a wonderful thing?

    aka G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan
  • Zap-oZap-o Posts: 452
    edited 2009-12-10 16:25
    I disagree and think that the parts are fine.

    I am under the impression at this point that the gate voltages need to be higher. I cant seem to come up with a clever way to use the propellers voltage to drive the MOSFETs. Perhaps a comparator a transistor. Hum...
  • Peter KG6LSEPeter KG6LSE Posts: 1,383
    edited 2009-12-10 16:30
    I have never seen a H-bridge with a separate PMW FET .. I usually just apply the PWM to the Bottom FET

    there are H-Bridge driver chips out there .. the Main issue is going to be driving Q1 and Q3 as you Need to drive em hard .


    This Might help ...

    rds.yahoo.com/_ylt=A0geu6dHIyFL2rcADJBXNyoA;_ylu=X3oDMTEzMjZoczhtBHNlYwNzcgRwb3MDOARjb2xvA2FjMgR2dGlkA0Y3NTVfMTI2/SIG=12d5a40rg/EXP=1260549319/**http%3a//www.parallax.com/dl/docs/cols/nv/vol2/col/nv52.pdf


    Peter ...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "Carpe Ducktum" "seize the tape!!"
    peterthethinker.com/tesla/Venom/Venom.html
    Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. —Tanenbaum, Andrew S.
    LOL

    Post Edited (Peter KG6LSE) : 12/10/2009 4:40:02 PM GMT
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2009-12-10 16:38
    Zap-o,

    First, since your Q1 and Q3 are configured as source follower,·V_s will approximate V_g.

    Second, those are IRF transistors and may not do well with "logic" level (5V) V_g.
  • Zap-oZap-o Posts: 452
    edited 2009-12-10 16:49
    @ Peter KG6LSE
    Yes i am aware of the ICs that can do what I am trying to do. This is all for education as I want to use and learn more about the mosfets. Thanks for the suggestions.

    @ PJ Allen
    Could you elaborate on the logic level thing. When looking at the data sheet for a mosfet is this called the gate to source voltage? Also what is V_s and V_g?
  • kwinnkwinn Posts: 8,697
    edited 2009-12-10 16:58
    Zap-o, PJ is basically correct in what he says. Q2 and Q4 may conduct slightly with a 3.3 or 5V level on the gate but they need 10V to turn on fully. Q1, Q3, and the PWM transistor would need at least 10V and probably more to conduct fully.

    Peter and Loopy also have good points. Normally the bottom pair would be N channel and the top P channel transistors, and the PWM signal would be part of the gate drive signal.
  • Zap-oZap-o Posts: 452
    edited 2009-12-10 17:27
    @kwinn

    Can someone briefly explain what RDs(on) is? I found a Mosfet with a RDS(on) at 4.5Volts?
  • stamptrolstamptrol Posts: 1,731
    edited 2009-12-10 17:36
    Rds(on) - Resistance Drain-to-Source when turned on with some gate -to-source voltage ( 4.5 volts)

    You want Rds(on) to be as low as possible if driving high current loads.

    International Rectifier and Motorola usually have some good white-papers on their websites which help explain the basics of the products they sell.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-12-10 19:56
    Also, nowhere does it say which inputs you're driving in the circuit. In this setup driving the wrong inputs with the wrong signal can result in a direct short.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-12-11 04:36
    Zap-o,


    "I am under the impression at this point that the gate voltages need to be higher. I cant seem to come up with a clever way to use the propellers voltage to drive the MOSFETs."

    The voltage that needs to be supplied across the gates, can not be achieved by simply driving the gate's higher with reference to your ground. The gates need to have at least 10V between each of the Gate-Source. Q4 or Q2 will have no problem turning on, its any of the others that will have an issue.

    Take for example Q2, if it's "on" and you want to turn on "Q3" by placing 10V on C, the only way that it will turn on is if your load has a relatively low resistance (which is why you may not be seeing any results). The reason is that in order for it to come on you also need 10V across the Gate-Source. The only way for the source of Q3 to see your ground reference is through your load and Q2 when it is on. The result is that you will only see about a bandgap of voltage across your load. ... About 0.6V The same scenario for the PWM mosfet, only it will be severely in it's linear operating mode and if you are able to pass any amount of current, this will be where you get most of your heat, and probably damage the mosfet. The same is also true if the PWM mosfet were eliminated and Vin was applied to Q1 and Q3's Drain. It would be one of those two transistors getting very HOT.

    As it has been indicated, typically you have a complementary pmos transistor towards the top of the rail, however this does not always have to be the case. Sometimes, usually for better matching characteristics you might want an all n-mos H-Bridge or an all p-mos H-Bridge. This is perfectly valid, but it requires a special driver and special considerations.

    The solution that Peter KG6LSE posted is exactly what you need. You can eliminate the PWM mosfet in your design by applying PWM to one of the legs on the H-Bridge instead of keeping it steady.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Zap-oZap-o Posts: 452
    edited 2009-12-11 21:44
    Everyone!

    Thanks far for all the help. I am learning mucho. I have taken some of the wisdom in this thread and came up with this circuit. Please review and let me know the flaws....

    My question now is why do some of the complementary Mosfets have a higher current rating on the P side vs N side. Is this because the current is used up driving out the Drain?
    1001 x 752 - 107K
    cir2.jpg 106.6K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-12-11 22:00
    A few items:

    1. The pMOSFETs in your schematic are upside down.

    2. Your B and C inputs will not work from logic levels.

    3. With 10K pullups/pulldonws, the MOSFETs will not turn off very fast, and you risk getting shoot-through when you change motor directions.

    4. The speed input will not give you a linear response, and the IRF540 is going to get hot. It would be better to PWM the B and C inputs.

    MOSFET drivers, like the MIC4469, are readily obtainable and would make your job a lot easier. They would completely fix issues 2 and 3.

    -Phil

    Post Edited (Phil Pilgrim (PhiPi)) : 12/11/2009 10:05:14 PM GMT
  • Zap-oZap-o Posts: 452
    edited 2009-12-11 22:10
    @Phil Pilgrim (PhiPi)
    1. I see that the pMosfets are backwards my software is messing it up - thanks.

    2. I have the B and C inputs tied low so that when the transistor is turned on by the propeller the 12Volts will be present. This still seems a problem? Could you check again please.

    3. I want the IRF540 to get hot. I will heat sink it. My Idea is to completely turn on Q1 and Q2 to set direction. Then in a remote place in a case I will bolt on the IRF540 with heat sink. This is my effort to keep the heat directed away from the electronics board. Q1 and Q2 should generate little heat if fully on right?

    Again thanks for the reply.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-12-11 23:25
    2. What I said is correct. The emitter of an NPN transistor is always at least 0.6V lower than the base. An emitter follower can never source more voltage than its base input provides. Use a proper MOSFET driver.

    4. I think you're making a mistake trying to adjust speed linearly. A MOSFET is highly nonlinear and will not provide the smooth control you expect. Moreover, there will be temperature dependencies that make such an arrangement unreliable. Finally, adding a voltage drop below the H-bridge makes it all that much harder to drive the nMOSFET legs effectively. If you PWM the nMOSFET legs instead, all these problems go away, and your system will run cool.

    -Phil
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-12-11 23:40
    Zap-o,

    #2
    Q6 and Q7 are going to have similar problems that your Q1 and A3 mosfets had in your original design. As they are this is an improper configuration of the NPN transistors and they will only be capable of delivering about 2.75V to the gates of your nmos transistors. Instead, Q6 and Q7 should be PNP transistors ... If this sounds familiar, there is a reason, the same was true with the nmos verses the pmos transistors. ( I have attached a schematic that should work for the nmos gate drive)

    R5 and R6 should be something smaller like 1K.


    #3
    Why on earth would you want the transistor to purposefully get hot? - That is a flawed design practice. HEAT equals energy that you can either conserve in your available battery life, or direct as much as you possibly can to your motor. In order to do the latter of the two, you need to completely turn the nmos and pmos transistors on in the direction you want the motor to go. ... if anything the only thing that should be getting warm is your motor. ... for instance, I have an AC-Power-Inverter design that I am working on that draws about 40 Amps... The transistors are cool to the touch, what's warm is the transformer. It's warm, because the secondary coils have too much resistance and under a load they generate heat but the ratio between the primary and secondary are correct. In this case what I would need to do is lower the number of turns on the primary as well as the secondary while keeping the same ratio. This effectively would reduce my 'resistive' heating in the transformer, and allow me deliver more power to my load. I mention this because a very similar thing happens with a mosfet that is not fully turned on. It will operate in it's linear region and act very much like a resistor in turn generating HEAT and wasting energy when it could by design be completely avoided. This is also why the Rds "ON" value is so important with a mosfet when driving high current loads.



    Note: Since you are driving an inductive load (i.e. a motor) and even though the transistors have a built-in reverse diodes, it is a wise idea to provide additional diode protection to your transistors and NOT rely on the bulk diode inside the transistor.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
    1121 x 727 - 164K
Sign In or Register to comment.