Mosfet Latching

Kiwi Bruv

Dec 23, 2004
36
Joined
Dec 23, 2004
Messages
36
I have built a simple PWM drive with a 555 and an op amp. The op amp drives a trans which drives a mosfet. However the mosfet seems to be latching.

The mosfet is conducting, with no gate signal present, a test bulb lights brightly. When I apply the PWM to the gate the bulb dims as it should. I'm using an IRF 530.

I simplified the circuit just driving straight from a 555, again it works fine until the gate signal is removed when it lights the bulb brightly again. PS is a 12V batt.

I put a 91 ohm resistor in the gate line and a 100 microF cap across the power supply, but it made no difference.

Can someone help me fix the problem?

View attachment 37843

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi


Hi Kiwi,
You shouldn't just "remove" a gate signal to turn-off a Mosfet, you should leave the resistor from its gate to its source.

Mosfets have a fairly high capacitance from gate to source that can hold a charge for a long time without a discharge path. So of course they will be on. ;D










kiwi

 

Staigen1

Oct 26, 2003
695
Joined
Oct 26, 2003
Messages
695
Hi

Also the diode D1 is connected wrong, it should be connected between +12Volt and the mosfets drain, cathode to +12Volt

//Staigen

 
A

Alun

Jan 1, 1970
0
No staigen, D! is built into the MOSFET, it's parasitic there's no avoiding it.

 

Kiwi Bruv

Dec 23, 2004
36
Joined
Dec 23, 2004
Messages
36
Audio guru,

I don't think I explained properly.

When the circuit powers up the bulb comes on fully. The signal is oscillating at the gate at 50% duty cycle but the mosfet isn't switching. I can remove the drive trans completely (source gate res remains in place) and the load remains on.

So I thought it was the mosfet. I built the straight 555 astable to test the mosfet and as described the mosfet is switching at 50% duty in that circuit.

Many thanks for your help

 

Kiwi Bruv

Dec 23, 2004
36
Joined
Dec 23, 2004
Messages
36
Found it, wired the mosfet and driver trans wrongly. Both working now though!

Sorry for the bother.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
A 2N2222 or any other silicon transistor makes a pretty good 7V zener diode when its collector and emitter are reversed, doesn't it? Therefore the gate couldn't go lower than 5V. ;D

 

Kiwi Bruv

Dec 23, 2004
36
Joined
Dec 23, 2004
Messages
36
Thnaks Audioguru, one more question if you please.

I am finding that up to about 15kHz the full 0 to 100% duty cycle is covered by the full range of the 10K pot. As expected the 555 puts out 4 to 8V so the pot divider at the comparator is designed to duplicate that range.

However at 25kHz the duty cycle is behaving strangely. 100% duty is at about 60% of the pot range ie 100% duty has shifted from 4V on the pot to maybe 6V and the range on the pot from 100% to 60% duty seems sharp or compressed, but after 50% it's smooth again.

It's like the 555 is only putting out 6 to 8V at higher freq. I don't have a scope so can't see it.

I wanted to operate the drive out of audible range so would liek to get it to 20Khz.

Can you see why this might occur?

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Kiwi,
You don't show what the PNP transistor is doing.

The old 741 opamp isn't any good above about 9kHz. A TL071 or TL081 and many new opamps are good for up to 100kHz.

 

Kiwi Bruv

Dec 23, 2004
36
Joined
Dec 23, 2004
Messages
36
OK, I'll change the op amp.

The pnp is to make the 555 timing cap charge linearly instead of exponentially so it gives a sawtooth output.

 
A

Alun

Jan 1, 1970
0
audioguru said:
Hi Kiwi,
You don't show what the PNP transistor is doing.

The old 741 opamp isn't any good above about 9kHz. A TL071 or TL081 and many new opamps are good for up to 100kHz.
That depends on the gain, which in my experiance when the gain is <10 the uA741 is good enough for audio i.e the bandwidth exceeds 20kHz.

In this situation the 741 us being used as a comparator so it's open-loop which is the problem here, as audioguru said the 741 is far too slow to keep up with the 555. I'd also recommend a faster op-amp but not the TL071 or TL081, I'd go for the LM311 comparator with its output connected to +V with a 1k pullup, then I'd remove Tr2 and R3 and connect its output directly to Tr3.

There are also far simpler ways to build a PWM, it can be done with a single IC like a dual op-amp or a 555. ;D
 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Alun said:
That depends on the gain, which in my experience when the gain is <10 the uA741 is good enough for audio i.e the bandwidth exceeds 20kHz.
The slow, old 741 produces triangle-waves above 9kHz at high output levels, and although you can't hear its 3rd harmonics beginning at about 27kHz, they cause intermodulation with some real harmonics producing artifacts that are audible.

So a loud cymbals beat will sound something like a glass window being broken.
The 741 with low gain (lotsa negative feedback) might reproduce alright the tiny, low-level, high frequency bells in a David Usher song. If your speakers, earphones and hearing can go that high.

Many people think that a loud cymbals beat is supposed to sound like a glass window being broken!
Many people can't hear frequencies above only about 4kHz!
 
A

Alun

Jan 1, 1970
0
All I know is awhile ago we were tasked to design a simple non-inverting 714 amplifier with a gain of 10 at college and write a report on it. We had to comment on the bandwidth, I measured 22kHz with a 100mV sinewave on the input and a +-12V supply. I was very impressed at how smooth the sinewave looked on the scope despite its high frequency and it near it was to the clipping limits.

I can understand how a squarewave can produce a triangle wave output but I don't see how a pure sinewave can be distorted in such a manner when in theory the parasitic low pass filter in the 741 should reduce the higher frequency harmonics in the signal.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Alun said:
All I know is awhile ago we were tasked to design a simple non-inverting 714 amplifier with a gain of 10 at college and write a report on it. We had to comment on the bandwidth, I measured 22kHz with a 100mV sinewave on the input and a +-12V supply. I was very impressed at how smooth the sinewave looked on the scope despite its high frequency and it near it was to the clipping limits.
A 100mV input to an opamp with a gain of only 10 results in an output of only 1V. Far from 10V or 20Vp-p clipping.

I can understand how a squarewave can produce a triangle wave output but I don't see how a pure sinewave can be distorted in such a manner when in theory the parasitic low pass filter in the 741 should reduce the higher frequency harmonics in the signal.
When an opamp's output exceeds its max slew-rate, its output ramps and looks and sounds like a triangle wave.
The typical slew-rate of a 741 opamp is only 0.5V/us. A TL071 opamp is 26 times faster.

The high frequency rolloff of an opamp is different from it slew-rate limitation. A 741 opamp is flat to about 700kHz with a gain of 1 and an output level of a few mV. With a gain of 1000, it rolls-off above only 300Hz. View attachment 37852

 
A

Alun

Jan 1, 1970
0
I understand now, so due to the slew rate the bandwidth of the amplifier will go down as the amplitude increases, this non-linear effect will distort the waveform a lot so a sinewave will become trianglular.

I now I got my decimal in the wrong place before but to be truthful I can't remember what the input and output voltages were I think I just adjusted it so it wasn't clipping I think the times 10 probe may've also confused me.  ;D

I know there is a formula to count all of this but I've forgotton it, can you remeber it?

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
I don't use a formula, I just never use a lousy old 741 opamp.
I used one as an audio amp in 1965 and it sounded so bad, I never used one again! ;D

Over the years I've seen and heard many audio amps with 741 opamps. I think I can recognise their terrible sound. An LM358 or LM324 low-power opamp is even worse for audio.

 
A

Alun

Jan 1, 1970
0
audioguru said:
I don't use a formula, I just never use a lousy old 741 opamp.
Neither do I, I'm just interested in the mathematical relationship between the slew rate, frequency, ampitude and bandwidth, I gen the general idea but I've looked though my notes and I can't find it. :(

I used one as an audio amp in 1965 and it sounded so bad, I never used one again! ;D
The worst audio amp I built was when I was 13 I connected up a 741 with a complementary pair on the output like this:
741boost.gif

It suffered from terible cross over distortion as the poor little 741 pathetically tried to jump 1.4V every cycle.


Over the years I've seen and heard many audio amps with 741 opamps. I think I can recognise their terrible sound. An LM358 or LM324 low-power opamp is even worse for audio.
As far as I'm aware the latter two were never designed for audio, I'm thinking about doing an experiment by making a basic audio amplifier and testing several cheep and nasty op-amps to see which is the worse. ;D
 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Alun,
Ha, your boosted-output 741 circuit was used with gain in a Korean (Goldstar, now called LG Electronics) speakerphone that I had to install and service in 1980. It had the worst pcb that I've ever seen. The copper was poorly stuck on the pcb with rice stuff. Users all complained about the buzzy sound so I added a resistor to fix it.
I let the opamp drive the speaker through the resistor until there was enough current producing enough voltage drop to allow the transistors to take over for more current.

When word (sound?) got around then I had to fix every phone in every company's office, a big job.

View attachment 37854

 
Top