Author Topic: Drive mosfet with arduino  (Read 512 times)

0 Members and 1 Guest are viewing this topic.

Offline bonuscafeTopic starter

  • Newbie
  • Posts: 3
  • Country: hu
Drive mosfet with arduino
« on: May 11, 2024, 08:34:29 pm »
Hello,

I would like to drive a mosfet with Arduino Nano RP2040 Connect to control a fan.
I can see proper square signal at one of the digital output on arduino. I connected this output to the mosfet gate (no resistor). Source is connected to GND on arduino.

I was curious and measured mosfet's drain and source pin with oscilloscope and I surprised I can see same square signal which goes to gate.
I though there should be nothing to measure if there is not connected anything to mosfet D and S recently. Somehow gate leaks the whole signal? I tested with STD16N65M5 and STU10NM60N mosfets.
Can you help me out why is this situation?
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11359
  • Country: us
    • Personal site
Re: Drive mosfet with arduino
« Reply #1 on: May 11, 2024, 10:06:40 pm »
Can you show your circuit and measurement points. You say that you have connected source to the ground, yet you somehow measure the same voltage as on the gate?
Alex
 

Offline bonuscafeTopic starter

  • Newbie
  • Posts: 3
  • Country: hu
Re: Drive mosfet with arduino
« Reply #2 on: May 11, 2024, 11:26:31 pm »
Hello Alex,

I attached a drawing.
Yes, I can see the same signal as on the gate.
« Last Edit: May 11, 2024, 11:28:21 pm by bonuscafe »
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11359
  • Country: us
    • Personal site
Re: Drive mosfet with arduino
« Reply #3 on: May 11, 2024, 11:40:22 pm »
Ok, so you are measuring S-D voltage? You are likely observing parasitic coupling. Add even slightest load (500 kOhm) to the drain and your signal will go away.
Alex
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1124
  • Country: lt
Re: Drive mosfet with arduino
« Reply #4 on: May 12, 2024, 01:04:04 am »
Yes, I can see the same signal as on the gate.

Question is, how much same same signal is? Does it match exactly by amplitude and shape? If that is so, it's not because of parasitic capacitance, it must be something else. Maybe source is not connected to Arduino GND.
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2558
  • Country: us
Re: Drive mosfet with arduino
« Reply #5 on: May 12, 2024, 02:42:36 am »
With those two N-channel MOSFETs mentioned and a 3.3V Arduino Nano, you will barely
be able to turn ON the MOSFET.  If at all.

It would be better to use a P-channel MOSFET instead.  (Leave out R4.)

 
The following users thanked this post: bonuscafe

Offline aliarifat794

  • Regular Contributor
  • *
  • Posts: 110
  • Country: bd
Re: Drive mosfet with arduino
« Reply #6 on: May 12, 2024, 08:42:47 am »
Can you specify the model of the MOSFET that you are using?
 

Offline bonuscafeTopic starter

  • Newbie
  • Posts: 3
  • Country: hu
Re: Drive mosfet with arduino
« Reply #7 on: May 12, 2024, 09:52:48 pm »
Hello,

Finally it seems root cause of the issue my four mosfets were broken, all of them.
I don't understand why this happened because I only tested with some milliamps.
Now I used brand new and I cannot see previous strange square signals.
Thank you very much everybody's help!

Anyway, I attached measurement with the good mostfet (STD16N65M5).
I marked with green two points on the blue measurement. Maybe this is indicating parasitic coupling?
2195242-0
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2558
  • Country: us
Re: Drive mosfet with arduino
« Reply #8 on: May 12, 2024, 11:57:29 pm »
If your measurements are with the circuit you posted earlier, they are totally meaningless.

You have:
  - No voltage source
  - No load
  - No current limiting
  - A gate voltage that barely meets the min VGS of 3V in the datasheet (4V typical)
  - No valid circuit to speak of

You have a MOSFET hanging out in the breeze.  I'm not surprised you blew up all of your old ones.
Until you've connected the MOSFET in some sensible manner, there is no point in discussing your readings.

 

Offline mianos

  • Contributor
  • Posts: 43
  • Country: au
Re: Drive mosfet with arduino
« Reply #9 on: May 13, 2024, 12:45:51 am »
Yes, in case it's not clear, you can't use a MOSFET like that with no load.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf