Author Topic: N-channel MOSFET problems  (Read 5222 times)

0 Members and 1 Guest are viewing this topic.

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 563
  • Country: gb
  • Electronics Enthusiast
N-channel MOSFET problems
« on: May 05, 2014, 12:31:43 pm »
I am building a boombox which runs off a 3s Li-Poly battery. These are damaged if they are discharged too low, so I have designed a circuit which has two indicators (low and critical). This uses an LM358 configured as a comparator, driving an amber and a red LED. The anode of each LED is hooked up to a 5V source and the cathode goes through a 150 ohm resistor to the output of the LM358.

Since the most power-hungry device in this project is the amplifier, I want to disconnect it when the critical LED comes on. I have some N-channel MOSFETs (datasheet attached), and have been trying to get them to work, using an LED as the load. I attach the gate to the output of the LM358, the drain to the cathode of the LED and the source to 0V. When I do this the LED turns on and the MOSFET blows (the drain and source short). I have gone through 4 of my 10 MOSFETs so far so I think there's something wrong!

The fact that the LED turns on when the gate is "low" could be because the output of the LM358 goes from 0V to about 1.5V under the load of an LED, so the gate voltage is around the threshold voltage of the MOSFET. However, the datasheet says this can vary between 1.3V (min), 1.7V (typical) and 2.15V (max). It seems unlikely that the threshold would be below 1.5V for all 4 MOSFETs.

Complicating matters is the fact that my bench is next to our house's main switchboard so there is lots of 50Hz noise. My power supply is a LASCAR PSU 130, which is a fairly cheap switch-mode supply (datasheet attached). I am aware that I need to be careful with static around FETs, so I have been regularly touching my scope's ground banana terminal. When I touch this at the same time as the cathode of the LED which the MOSFET is driving, the LED turns on! I think that this could be related to the problem but I don't know that much about ground loops or whatever... I imagine the power supply is not isolated.

Any ideas on what to do?

Thanks!
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7765
  • Country: de
  • A qualified hobbyist ;)
Re: N-channel MOSFET problems
« Reply #1 on: May 05, 2014, 12:49:29 pm »
Please take a DMM and measure the voltage between the PSU's negative terminal and the scope's ground.
 

Offline HackedFridgeMagnet

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: au
Re: N-channel MOSFET problems
« Reply #2 on: May 05, 2014, 12:55:37 pm »
For developing circuits you probably want to use a current limited supply.
It is easy to make a bad circuit and the current limit will save you. If not now then soon.

Surely your devices are failing on over power or over current.
You seem to want to be using your FET as a switch.
If you are running near the gate threshold then you aren't using the FET as a switch. Use a higher gate voltage.
With the FET properly turned on, if it is still too much current or power then add some more series resistance.

As always a schematic image will get you more help.

 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 613
  • Country: ca
Re: N-channel MOSFET problems
« Reply #3 on: May 05, 2014, 01:02:48 pm »
A couple of things:
- The LED should probably have a current limiting resistor on it (at least while testing to avoid this particular problem).
- Could you attach the exact circuit as you have it now?
- The gate of the MOSFET may also be building up a charge, so attaching a 100K resistor to ground to it may help keep it low when it needs to be (but that is probably not the "right" solution, just a noob's suggestion).
- I would also probe the gate pin on an oscilloscope and see if the op-amp is oscillating.
 
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: N-channel MOSFET problems
« Reply #4 on: May 05, 2014, 01:23:22 pm »
Yes you never mentioned any resistors on the LEDs and yes a floating gate will charge up you need a grounding resistor
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 563
  • Country: gb
  • Electronics Enthusiast
Re: N-channel MOSFET problems
« Reply #5 on: May 05, 2014, 01:27:03 pm »
The two resistors running from the LM358 each have a 150 ohm series resistor. The LED running from the MOSFET has a 560 ohm resistor.

The gate pin of the MOSFET was not oscillating last time I checked, but I will again.

I am in the process of putting my schematic into Upverter, and will post it here when I'm done.

@madires: the voltage between the negative terminal of my PSU and earth (the scope ground) oscillates at 50Hz and is about 100mV.
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 563
  • Country: gb
  • Electronics Enthusiast
Re: N-channel MOSFET problems
« Reply #6 on: May 05, 2014, 01:48:36 pm »
I attached the schematic. The text on the bottom-right should read, "Amp will be connected in place of this".

You can find it on Upverter here.

EDIT: I will try adding a grounding resistor.
« Last Edit: May 05, 2014, 01:51:08 pm by microbug »
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 613
  • Country: ca
Re: N-channel MOSFET problems
« Reply #7 on: May 05, 2014, 04:32:08 pm »
Disconnect D2 and try it again (with the grounding resistor on the MOSFET's gate).. that resistor+LED (R2+D2) pathway to V+ is charging up and slamming the MOSFET on regardless of what the op-amp is trying to do. This is assuming that REF != GND, so the best that the op-amp can do is slam the output/MOSFET gate as far down as the value of REF (ish) which is probably not enough to shut off the MOSFET.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19527
  • Country: gb
  • 0999
Re: N-channel MOSFET problems
« Reply #8 on: May 05, 2014, 04:56:04 pm »
This probably isn't the problem here but there's no hysteresis and the LM358 isn't the best IC to use as a comparator. Ideally you should use a proper comparator IC such as the LM393.
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 563
  • Country: gb
  • Electronics Enthusiast
Re: N-channel MOSFET problems
« Reply #9 on: May 05, 2014, 06:49:10 pm »
It works! Thank you very much @idpromnut!

REF is 1.222V but without a load the op-amp can go very close to 0V... I am aware that an LM393 would be a better choice but this is just a rough indication that the battery is low.

I'll figure out how to get LED back in.

Thanks!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf