Pages: [1]   Go Down
Author Topic: MOSFET Question  (Read 2252 times)
0 Members and 1 Guest are viewing this topic.
Minneapolis, MN
Offline Offline
Newbie
*
Karma: 0
Posts: 40
Arduinotecture
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I am trying to interface an IRLB8748PbF MOSFET with the arduino and am having issues. It seems the MOSFET 's gate is so sensitive that it cannot tell the difference between high and low states.  As a result, the external circuit is always in a closed state regardless of the digital pin output.

Any suggestions?

Here is the current schematic:



Data sheet for IRLB8748PbF MOSFET http://www.irf.com/product-info/datasheets/data/irlb8748pbf.pdf

And the code:

Code:
int ledPin =  9;  
void setup()   {                
 
  pinMode(ledPin, OUTPUT);    
}


void loop()                    
{
  digitalWrite(ledPin, HIGH);  
  delay(5000);                  
  digitalWrite(ledPin, LOW);    
  delay(5000);                
}

Thanks!!!
« Last Edit: February 21, 2010, 01:01:28 am by berk0080 » Logged

0
Offline Offline
Tesla Member
***
Karma: 118
Posts: 8956
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are a lot of previous post concerning MOSFETs that might be of use to you. Your wiring will cause you problems because you do not have a high value resistor between the MOSFET gate and ground.
« Last Edit: February 21, 2010, 01:06:54 am by zoomkat » Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Offline Offline
Edison Member
*
Karma: 3
Posts: 1001
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It seems the MOSFET 's gate is so sensitive that it cannot tell the difference between high and low states.
I don't think anyone can unless we have a reference to compare high/low against.  smiley

Try this:

Connect plus on your 5V supply to one end of the muscle wire and the other end of the muscle to the MOSFET D terminal. Connect MOSFET S terminal to Arduino ground AND power supply minus. Mosfet gate goes to your PWM pin. Mosfet can now determine High/Low as a potential difference between Gate and Source terminal.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16540
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your circuit as drawn won't work because there is no common reference between the source/draing circuit and the gate/source circuit. Wire it as BenF discribed.

Lefty
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yep +1 to what they said,  I was trying to control a fan, and I did the same thing as you.  
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 514
Posts: 31534
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I also think the FET is wired wrong. It is drawn as a p-channel FET but this is an n-channel fet according to the data sheet.

So it should be wired source to -ve of battery to arduino ground. Drain to muscle wire, other end of wire to +ve of battery. Finally gate to pin9 preferably through a 100R resistor to protect the arduino from the current surge of the uncharged gate.

For an explanation of why you want the grounds together:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html
Logged

Minneapolis, MN
Offline Offline
Newbie
*
Karma: 0
Posts: 40
Arduinotecture
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Connect plus on your 5V supply to one end of the muscle wire and the other end of the muscle to the MOSFET D terminal. Connect MOSFET S terminal to Arduino ground AND power supply minus. Mosfet gate goes to your PWM pin. Mosfet can now determine High/Low as a potential difference between Gate and Source terminal.

Thanks Ben, that worked!!!


Here is the new schematic:

Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16540
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There you go, that looks fine. You might consider wiring a 10k resistor from the MOSFET gate to ground. This would insure that the MOSFET will turn off if the Arduino is ever turned off but the external +5vdc power for the muscle wire is still on.

Lefty
Logged

Pages: [1]   Go Up
Jump to: