Connect with us

MOSFET getting stuck open?

Discussion in 'General Electronics Discussion' started by octovert, Feb 18, 2014.

Scroll to continue with content
  1. octovert

    octovert

    3
    0
    Feb 18, 2014
    I suppose it's more accurate to say "stuck closed", not an engineer here. I'm using an ATTiny chip to drive an n-channel mosfet which in turn is controlling a motor. Here's a pic of the schematic.

    [​IMG]

    This circuit works exactly as designed if I use a motor that draws about half an amp. Once I use the motor I actually like (which draws about 1.5-2 amps) it's like the mosfet gets stuck open, and the motor never shuts off. The mosfet in question is this one: https://www.sparkfun.com/products/10213

    I've tried heat sinking the mosfet, which changes nothing. What am I missing? I built this part of the circuit using the tutorial found here:

    http://bildr.org/2012/03/rfp30n06le-arduino/

    Also, this is an older schematic that used an 8V reg on the motor - I've since moved on to a different motor and have removed the regulator altogether, so that isn't it.
     
    Last edited: Feb 18, 2014
  2. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,480
    2,826
    Jan 21, 2010
    What is happening on the gate of the mosfet when it's "stuck on"?

    What happens if you disconnect the gate from the microcontroller (leaving the resistor in place)?
     
  3. octovert

    octovert

    3
    0
    Feb 18, 2014
    Alright, tried both of those. When the mosfet gets stuck on, the gate pin is almost continually receiving voltage, and the output pin on the microcontroller is also putting it out when it apparently shouldn't be. Pulling the microcontroller from the circuit does shut everything off, so the MOSFET doesn't appear to be latching on.

    Gonna try a new microcontroller - maybe I fried this one. Anything else to look at?
     
  4. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    25,480
    2,826
    Jan 21, 2010
    What you may have is noise on the power supply which is causing the microcontroller to behave strangely. If this is true, replacing it won't help -- you have to fix the problem.

    Have you decoupled the power supply to the uC at all?

    The simplest thing is to place a 0.1uF capacitor across its power pins as close as possible to the device. If this doesn't work, you may need more effective measures.

    You could google "microcontroler power supply decoupling"
     
  5. octovert

    octovert

    3
    0
    Feb 18, 2014
    I soldered the 0.1uF cap directly to the power and ground pins on the microcontroller (as you mentioned distance was an issue) and everything worked perfectly! Thanks so much! Revising the schematic as we speak.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-