0
\$\begingroup\$

I have 2 x 2N2222 BJTs powering 2 relays of 200mA each.

I am using 2 output pins with 500ohm resistors to power the transistors.

After powering it the circuit not working well, while replacing the relays with LEDs works well.

So I want to try and replace the 2 BJTs with 1 power FET. I have an IRFZ44N.

But after reading articles about the transistor, it seems like I cannot use it at all - looks like the gate needs +20V to work, while my AVR output 5V.

Is this true, and if so, what can I do?

\$\endgroup\$
  • \$\begingroup\$ You can use the mosfet to drive the two relays with a Vgs of about 5V. Please refer to electronics.stackexchange.com/a/106428/33841 to see how you can figure out a proper Vgs level for any mosfet. \$\endgroup\$ – alexan_e Apr 15 '14 at 14:11
  • \$\begingroup\$ If you want to cheat, you can use a high side driver IC (e.g. BSP452). Possibly even to replace the relay \$\endgroup\$ – Will Apr 15 '14 at 14:25
  • \$\begingroup\$ The real issue is that "it's not working very well". Well, why not? What is wrong? 2N2222 transistors ought to be able to deliver 200 mA and be easy to turn on from the AVR. Please document the problem with schematics and specific key observations and measurements. Otherwise, "unclear what you're asking". \$\endgroup\$ – Kaz Apr 15 '14 at 21:31
4
\$\begingroup\$

That part needs 10V to turn on to a guaranteed resistance. It's shown in this part of the datasheet:

enter image description here

20V is the absolute maximum (never exceed) value for the voltage.

It's also a beast of a MOSFET to replace a 2N2222A. To operate from a 5V input, you need a "Logic Level" MOSFET. A 2N7000 (TO-92) or 2N7002 (SOT-23) might work for you, but personally, I like some of the Alpha Omega parts such the AO3422 (SOT-23). It's not only rated for 55V and >2A, but it will also work well with 3V drive.

enter image description here

Edit: Vgs rating, as I said above, is an absolute maximum rating. You must never drive the gate beyond 12V in either direction with respect to the source. It has nothing directly to do with what it takes to turn the MOSFET on or ensure that it is off.

For that, you need to look at the Vgs for Rds(on) specification. The spec says it will have a resistance of < 160m\$\Omega\$ if you drive it with 4.5V (5V will be at least as good). So, at 200mA, you'll have a voltage drop of only 32mV, pretty close to a perfect switch. It's also pretty good with only 2.5V drive.

enter image description here

You also need to know what it takes to turn the MOSFET off, and the threshold voltage Vth gives you a clue:

enter image description here

250uA is not completely off, so you want to get well below 600mV on the gate to ensure it's fully off, although typically 1V would be okay. Any CMOS output will easily do this, unless you're sinking a lot of current through it for some other purpose.

\$\endgroup\$
  • \$\begingroup\$ on the AO3422 I can see Vgs is +-12V, how can I use it for 3 or 5V? Can you explaing the Rds parameter please? It is the R of the relay or some internal resistance? \$\endgroup\$ – gabi Apr 15 '14 at 14:30
  • \$\begingroup\$ th 2N7000 is 200mA Id (which means I cannot use any relay that takes more than that right?) , and my 2 relays are 400mA.. \$\endgroup\$ – gabi Apr 15 '14 at 14:33
  • 1
    \$\begingroup\$ He already has the mosfet he mentioned and for two 200mA relays it doesn't really matter if the Rds-on is not very low. With Vgs=5v, Rds-on will be about 0.025 Ohm (or 0.1 Ohm with Vgs=4.5V) which is fine for the specific task. \$\endgroup\$ – alexan_e Apr 15 '14 at 14:40
  • 1
    \$\begingroup\$ @Spehro alexan_e is refering to Figure 1 (or 2) where you could infer Rds-on. Agreed that the mosfet is overkill, but what he has will work for his app. gabi Rds is the "ON" resistance from Drain to Source of the mosfet. So when you turn it on, it acts like a small resistor between those two points. The higher you make Vgs, the lower the resistance will be between D and S. \$\endgroup\$ – horta Apr 15 '14 at 14:59
  • 1
    \$\begingroup\$ @SpehroPefhany Ah, I see what you're saying. This makes light of the difference between business work and hobbyist work. In one case, millions can be at stake, so your point is well taken. \$\endgroup\$ – horta Apr 15 '14 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.