Author Topic: NPN transistor to switch on and off a MOSFET  (Read 23313 times)

0 Members and 1 Guest are viewing this topic.

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #25 on: May 04, 2015, 09:22:04 pm »
Here's the schematic I followed (attached).

I can't seem to find what's wrong! I know it works because I have gotten it to work beautifully. It before got the motor to full speed and was cool to the touch.
I'm sure that I won't need a heat sink for such a small load! It's gotten an internal resistance of like 0.0025 ohms! That's less than the jumper wires' resistance.

The problem I have is wiring somewhere. Currently, I could care less of inductance because it's not even running high frequency! It's merely, press one button, forward, other -- backwards. Or if you want, both buttons -> self destruct.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22380
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: NPN transistor to switch on and off a MOSFET
« Reply #26 on: May 05, 2015, 12:25:52 am »
The high side gates have to be driven to (V+) + Vgs(on).

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #27 on: May 05, 2015, 12:28:57 am »
The high side gates have to be driven to (V+) + Vgs(on).

Tim

I know. The push buttons in my breadboarded circuit are connected to +12v (VCC) or the drain on the upper transistors. The gates of all the MOSFETs are pulled low using 100k resistors (as suggested by my DE teacher).
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: NPN transistor to switch on and off a MOSFET
« Reply #28 on: May 05, 2015, 01:09:33 am »
The high side gates have to be driven to (V+) + Vgs(on).

Tim

I know. The push buttons in my breadboarded circuit are connected to +12v (VCC) or the drain on the upper transistors. The gates of all the MOSFETs are pulled low using 100k resistors (as suggested by my DE teacher).

Your supply is 12V, and your FETs require Vgs 10V to switch on fully. That is the gate being 10V above the source.

How can your Vgs be 10V on the high side FET if you're only applying 12V?
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: NPN transistor to switch on and off a MOSFET
« Reply #29 on: May 05, 2015, 02:18:06 am »
The high side gates have to be driven to (V+) + Vgs(on).
Tim
I know. The push buttons in my breadboarded circuit are connected to +12v (VCC) or the drain on the upper transistors. The gates of all the MOSFETs are pulled low using 100k resistors (as suggested by my DE teacher).
Your supply is 12V, and your FETs require Vgs 10V to switch on fully. That is the gate being 10V above the source.
How can your Vgs be 10V on the high side FET if you're only applying 12V?
i think you need to say it plainly.... that he needs +22V voltage on the gate...

I was hoping he might have some neurons fire.

It's already been said pretty plainly on the last page.
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #30 on: May 05, 2015, 02:26:27 am »
I'm sorry, I'm unable to understand what issue you are seeing. I am feeding in between 12 and 14v to the gate, so I'm sure that it is saturating.

I think I may have possibly worked out a solution. Basically, I'm now using an NPN transistor set up in the following way:
The collector is connected to VCC. The base is connected to the source via a 100k resistor (which can be omitted). The emitter is connected to ground via a 100k resistor. Before the resistor, connected to the emitter, the Vout pin exists.

I've attached the schematic below.
Before I build this, please, someone, let me know if this will work! :).
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #31 on: May 05, 2015, 02:27:35 am »
I was hoping he might have some neurons fire.

Yeah. I understand what you are saying, but I can't change my power source. I need to do something else!
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: NPN transistor to switch on and off a MOSFET
« Reply #32 on: May 05, 2015, 02:30:04 am »
I'm sorry, I'm unable to understand what issue you are seeing. I am feeding in between 12 and 14v to the gate, so I'm sure that it is saturating.

The gate must be 10V above the source. If the FET is fully on, the drain is at the same potential as the source, 12V. You must feed a voltage greater than present at the drain pin into the gate of an N-channel FET on the high side.

I was hoping he might have some neurons fire.

Yeah. I understand what you are saying, but I can't change my power source. I need to do something else!

Use a FET driver capable of taking the gate above the drain, or use a P-channel FET.
« Last Edit: May 05, 2015, 02:45:23 am by Monkeh »
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #33 on: May 05, 2015, 02:32:47 am »
My project is due in this week so all I have to work with is what I have currently. After the due date, I can pursue it further and improve it.
Currently, my goal is to get it to work with the least resources possible.

I would preferably be able to build the H-Bridge with my MOSFETs and NPN transistors.

I don't have an easy source for PNP transistors and I'm already exceeding my budget.

I'm sorry if you think I'm just ignoring what you are saying. I'm not. It's just the problem that it's too late for me to do that. I designed this H-Bridge driver from my electronics experience from when I was young and had time. I CADed everything and then ordered all the parts together. Something might look perfect on paper but not work in real practice.
« Last Edit: May 05, 2015, 02:36:28 am by yash101 »
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #34 on: May 05, 2015, 02:40:35 am »
The battery would take another week to arrive.
We would need to change out our motors for 24 volt ones.
We would need to change our control logic voltage regulators because they are currently tiny LDO chips; they would die at that voltage.

Adding another battery is simply not a solution. Not to say, these high quality, high-discharge (65C) LiPos are quite expensive!

This is only practical after my project is over, if I choose to spend time and improve it. I would need to start a new fundraiser, which would be successful due to an actual physical prototype as well as experience from what we are currently facing.
« Last Edit: May 05, 2015, 02:42:23 am by yash101 »
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: NPN transistor to switch on and off a MOSFET
« Reply #35 on: May 05, 2015, 02:44:32 am »
We would need to change out our motors for 24 volt ones.

If you change your motors for 24V, and supply 24V to the drain pin, where does that leave your gate voltage?

Quote
Adding another battery is simply not a solution. Not to say, these high quality, high-discharge (65C) LiPos are quite expensive!

Use a 9V battery over the existing one. Hey presto, you're probably enough above the source to get away with it.

Got a 555? Build a charge pump. Probably take similar area with rough construction.
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #36 on: May 05, 2015, 02:47:32 am »
Monkeh, that charge pump idea is actually one I'm considering :). It's quite complicated for something so simple, but I have a bunch of 555 chips and the current requirement is quite low!

We are using a pretty high quality LiPo from HobbyKing. It would be difficult to source something that can output almost 150 amps continuous that small!

Also, why do I need that? I've gotten my circuit to work. I'm just wondering why it isn't working now! When I got it working perfectly, the MOSFETs were fully saturating and running cold. The motor was running at close to full speed at the voltage being provided.

UPDATE: Maybe I should read a bit slower ;)  :palm: "GATES"
A charge pump seems pretty simple to make. I attached a schematic to make sure it's right!
« Last Edit: May 05, 2015, 02:55:02 am by yash101 »
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: NPN transistor to switch on and off a MOSFET
« Reply #37 on: May 05, 2015, 02:54:48 am »
We are using a pretty high quality LiPo from HobbyKing. It would be difficult to source something that can output almost 150 amps continuous that small!

You don't need to put out 150A, you're only charging the gate of a FET! A 9V battery would do the trick.

Quote
Also, why do I need that? I've gotten my circuit to work. I'm just wondering why it isn't working now!

Because the gate must be raised above the source.. If the FET were fully turned on, the source pin would be at 12V. An unloaded motor might well get up to speed despite a partially turned on high side FET. Load it down and you'll have a lot of smoke in short order.
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #38 on: May 05, 2015, 02:57:01 am »
"You don't need to put out 150A, you're only charging the gate of a FET!"

I got that. Now I see what you are trying to say. It seems like quite a simple change! Thanks, guys!

Now, my new question is how to wire that up? I've never done that.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22380
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: NPN transistor to switch on and off a MOSFET
« Reply #39 on: May 05, 2015, 03:01:40 am »
Also, be extremely careful that the gates of a common side aren't turned on at the same time (i.e., both left transistors, or both right transistors).  Add some delay, 100ns minimum.  You might have very low resistance transistors, but if they touch any teensy little bit, RIP your power supply (and probably the transistors with it).

The pulses overlapping is kind of like this, so don't do it. http://roflposters.com/wp-content/uploads/2013/02/1212811803369.jpg.rofl.posters.jpg

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: NPN transistor to switch on and off a MOSFET
« Reply #40 on: May 05, 2015, 03:05:04 am »
"You don't need to put out 150A, you're only charging the gate of a FET!"

I got that. Now I see what you are trying to say. It seems like quite a simple change! Thanks, guys!

Now, my new question is how to wire that up? I've never done that.

In series. Negative terminal of the 9V to positive of your main battery, positive of the 9V to your gate drive. This will net you 8-9V above the main battery, which should adequately turn the FET on.

And as above, make damned sure you never end up with both transistors on a side turned on with a battery like that. Small wires become explosive fuses.
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #41 on: May 05, 2015, 03:07:49 am »
Yeah! I remember when I was playing with my initial iteration of this H-Bridge. It worked really well. It became really hot when I pressed both buttons simultaneously to see what happens. I did have some current limiting so nothing died, but it was fungerous ;)
« Last Edit: May 05, 2015, 03:25:35 am by yash101 »
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #42 on: May 05, 2015, 03:59:14 am »
I came across this article:
http://www.neufeld.newton.ks.us/electronics/?p=133
I think that transistor is acting like an invertor. That means that when the circuit is turned on, everthing will be shorted out until the microcontroller can bring the input high.
To fix that issue, I could use a typical hex invertor. The fix will be really simplistic ;).

I guess that I should place either the charge pump or 9v battery between +12v and that 10k resistor.

Do you guys think I'm heading in the right direction now?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: NPN transistor to switch on and off a MOSFET
« Reply #43 on: May 05, 2015, 08:18:59 am »
I'm sorry, I'm unable to understand what issue you are seeing. I am feeding in between 12 and 14v to the gate, so I'm sure that it is saturating.

I think I may have possibly worked out a solution. Basically, I'm now using an NPN transistor set up in the following way:
The collector is connected to VCC. The base is connected to the source via a 100k resistor (which can be omitted). The emitter is connected to ground via a 100k resistor. Before the resistor, connected to the emitter, the Vout pin exists.

I've attached the schematic below.
Before I build this, please, someone, let me know if this will work! :).
All voltages are relative.

The MOSFET will not conduct until its threshold voltage is exceeded.

A BJT will not turn on until the voltage between the base and emitter exceed 0.6V

If the voltage on the MOSFET's source needs to be 12V relative to 0V, then the gate voltage needs to be 12V plus the gate-source voltage required for it to pass the desired current.

Attached is an estimate of the voltages in your circuit.

« Last Edit: May 05, 2015, 08:21:32 am by Hero999 »
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #44 on: May 05, 2015, 11:04:06 pm »
Thanks! Do you use DipTrace? It looks like you completely redid that schematic! Thanks for the time!

I am going to use the suggestion which includes the 9V battery.

Do you by chance have a schematic for an all-N-Channel H-Bridge which possible won't need that?

Also, for my future reference, should I not use a MOSFET? I don't know if a BJT can handle high current without getting hot.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22380
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: NPN transistor to switch on and off a MOSFET
« Reply #45 on: May 06, 2015, 12:28:06 am »
You need a bootstrap gate driver, or a higher supply like the charge pump circuits shown earlier.

See how this uses +18V supply on the logic side, to drive only +12V in the all-N-channel bridge:
http://seventransistorlabs.com/PWM_Generator.pdf
Note that no time delay is provided, so the supply will be shorted out briefly during switching.  This was OK because the application had a current limited or constant current supply (simulated by the 1 ohm resistor).

Tim
« Last Edit: May 06, 2015, 12:35:34 am by T3sl4co1l »
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #46 on: May 06, 2015, 12:30:42 am »
Thank You. I just rebuilt my H-Bridge driver. It works cool to the touch with a 6 amp inductive load. As you guys have mentioned, it's not a very good idea. This is just for a display model at the moment. I'll be fixing the parts which you all are saying may not work properly.

Again, Thanks for all the time, guys!
 

Offline yash101Topic starter

  • Contributor
  • Posts: 48
  • Country: us
  • Sup there!
    • My Land
Re: NPN transistor to switch on and off a MOSFET
« Reply #47 on: May 07, 2015, 01:29:24 am »
I got some good P-Channel MOSFETs to use for the high side. Now, the circuit is working fantastically. It's taking 40A without much of an issue. There is no heat sink on the MOSFETs and they are connected to a loaded motor. The MOSFETs are barely warm after 30 seconds of use! I guess I could afford to use a small heat sink, just to be on the safe side!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf