IRF520N mosfet with Arduino Nano 33 BLE Sense

Hi guys,

I am using the Arduino Nano 33 BLE Sense board together with the ov2640 camera connected to it. I want to make a switch and turn off my camera when I don't need it, so I decided to buy the IRF520N MOSFET and try it. I followed the instructions from the datasheet but it seems that I was not able to provide power to my camera and in the end, I could not get the expected result. Based on the datasheet:

1 pin (GATE) -> GPIO on Arduino (D2)
2 pin (DRAIN) -> first I tried to connect it to the camera GND but without results, as on the graphs I observed that my device completely lost the connection at that specific time when I wanted to use the camera. So I decided to try with:

2 pin (DRAIN) -> camera VCC (but I am still not able to read 3.3V on this pin using my multimeter which means that camera cannot get enough power to operate.

  1. SOURCE -> Arduino GND

Did I maybe make somewhere a mistake or there is something that I missed to add or define in my code?

The IRF520 is not a logic level device so will not turn on fully (if at all) with 3.3V on it gate.

You need a logic level MOSFET. Be sure to include a 150 Ohm gate resistor to limit the pin current, and 10K pulldown as shown below.

Yes indeed, that's true, but I tested with LED and it works without issues. Is there any possible solution for this case?

But I have the same solution as you (with a resistor of 1MOhm between SOURCE AND GATE). As I mentioned in the previous comment, I tested the solution with LED and it works, but when I connect the camera something happens and I am not able to run it properly. In my case instead of the motor, I have the camera and that's the only difference.

That is the IMPORTANT difference. Buy a logic level MOSFET. Example

Okay, thanks for the advice. I ordered also this one (%product-title% kopen), as the one that I use, has a threshold at 4V and the camera is running at 3.3V. Can this one also be useful for my issue?

The IRLB8721 is not a logic level MOSFET, so no, it won't work.

If you look at the product page, these two specifications are stated:

U(GS)(th) max. 2.35 V
U(GS)(th) referentiestroom (max.) 25 µA

This means that when the gate voltage is 2.35V, at most 25 uA flows in the drain. That is not enough for your camera. A gate voltage of 10V is required to turn that MOSFET fully on.

See the MOSFET switches use to turn on the ESP32 camera here:

Thanks a lot for the explanation. As I live in Belgium and the one from the link you sent me is a bit too far from me and I will probably need to wait a long time to receive it, is this one also okay and can enable the part that I am missing right now: https://be.farnell.com/on-semiconductor/fqp30n06/mosfet-n-ch-60v-30a-to-220ab-3/dp/2453904?st=n-channel%20mosfet%2060v%2030a%20com-10213 ?

Rds(on) is listed at 10V on the FQP30N06 so it is not logic level and will not turn on at 3.3V. The graph in figure 2 in the data sheet confirms that.

The part number that you want is FQP30N05L. Note the L at the end of the part number. I suppose that that means logic level. The FQP30N06L data sheet shows Rds(on) at 5V so the part is logic level and the figure 2 graph bears that out.

FYI

No, as others have said. You need to look for a logic level MOSFET.

The words "logic level" will appear on the data sheet.

Hi guys,

It's me again. I ordered this MOSFET ON Semiconductor FQP30N06L MOSFET 1 N-kanaal 79 W TO-220-3 but again not possible to enable my camera to work. Do you maybe know where the problem can be? I am following this pinout:

image

It is a logic level device. How exactly is it wired? Post a schematic and/or photos. Are you sure that the MOSFET that you have has the L at the end of the part number.

I'm certain that you could have got this thing squared away with a small-signal NPN (practically speaking, most any small-signal NPN) transistor.
I'm not meaning anything personal, but the 'logic-level' obsession is a conceit and it keeps people from getting things done.

Hi, yes I am sure. This is the full name: MOSFET NCH 60V 3 FQP30NO6L TO2203. I bought one based on suggestions from the previous comments.

This is how the camera is connected:



pokit_3416a75f4cea9109507cacd8e2f2aefc

And this is how the mosfet is connected:

GATE = GPIO 2 on Arduino
DRAIN = Camera GND
SOURCE = GND on Arduino
I also put the resistor of 1MOhm that connects GATE and SOURCE.

Thanks for the advice! I can try that, it's not a problem. Everything that can help me right now is welcome as the project deadline is super close :slight_smile:

That circuit won't work, you need the camera between Drain and Vcc.
What do you suppose happens to the GS voltage when the MOSFET turns on in your circuit?

I want to turn ON and OFF the camera when I need to use it. Mosfet will act as a switch in my case so I can keep the device in a deep sleep state before and after the camera task. Otherwise, the camera will always be ON consuming a lot of power. I hope that you can catch the goal from my description :slight_smile: