I would like to use a MOSFET to behave as a switch for
control the input voltage of the circuit.
The MOSFET i am using is IRF530.
The circuit is connected as the below:
+24V -------| |-------------------
|_____^ |
------- -----------
Q1 | | COIL |
| -----------
(+5V)PWM CONTROL |
with 30KHZ |
|---
(+5V)100HZ ----|| Q2
control signal |->-
|
|
|
GROUND
I don't know why the MOSFET of Q1 is on fully turn on when
PWM control is at 5V high mode. I have used a 74HC00 (NAND)
to behave a buffer to output the PWM signal.
Or is any problem wrong in this connection?
Can anyone give me a help on it?
Thank you very much.
Don't entirely agree with responses received so far.
Problem with Q1 is that it's being used as a source-follower.
The gate threshold voltage for the IRF530 is between 2 and 4V, for a
drain/source current of only 250uA and, (ssuming for the moment that
Q2 is on), if you take Q1's gate to +5V, the source will therefore be
significantly below 5V, in order to for Q1 to be able to drive current
through the coil. The coil is never going to see anything like the
24V of the supply rail.
When you try to turn Q1 off, the negative di/dt in the coil will cause
the voltage on Q1's source to swing -ve, until it biases Q1 back on,
sufficiently to sustain coil current. Current will then decay at a
rate determined by the coil inductance and the threshold voltage of Q1
- not a very well defined state of affairs.
It's not too clear from your circuit just what you're trying to
achieve here, but I assume that you are trying to switch the coil at
100Hz using Q2, while applying PWM control to coil current by means of
Q1, in which case you are basically trying to AND the function of the
two MOSFETs. If this is what you're after, this would be much better
done by doing the AND function in logic, prior to the output stage,
doing away with Q1, and driving Q2 with the AND function.
Also, setting aside the fact that the IRF530 is not a logic level
device and therefore may well need more than the 5V available in your
circuit to saturate Q2, you can't drive power MOSFETs properly in
switching applications using the direct output of 74HC logic. You
need significantly better current drive capability to charge/discharge
the MOSFET's input capacitance fast enough to keep switching losses
down to reasonable proportions - you can achieve this either by
discrete buffering, or by using one of the many proprietary drivers
available.
Finaly, unless you plan to utilise the repetative avalanche rating of
the IRF530 to deal with inductive fly-back, (in which case you need to
study and understand the curves in the spec in terms of your
requirement, to check the device can take it), you need to add some
provision such as a reverse-recovery diode to deal with it.
Regards
Ted Wilson