1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

IRF510 Mosfet Problem

Discussion in 'Arduino' started by Youran, Nov 21, 2009.

  1. Youran

    Youran New Member

    Joined:
    Sep 16, 2009
    Messages:
    3
    Likes:
    0
    Hi,

    I'm currently working on a project to control a large amount of LEDs through my Arduino Mega, but I've stumbled across the following problem:

    I have my Arduino out pin (PWM/digital, tried both) connected to the gate of the IRF510, the +12V to the drain and ground to source.
    (+12V and ground are from my external power supply)

    My LEDs light up but they flicker and I'm not able to adjust the brightness with the PWM pin.

    When I have the +12V to source and ground to drain, the LEDs light up but do not flicker. However, I'm still not able to adjust the brightness.

    I'm pretty sure that I need a pulldown resistor on the gate, but I have totally no idea where and how to wire it. I've tried numerous possibilities but to no avail :(

    When trying to "manually" ground the gate, i.e. touching it with my fingers, the circuit seems to be working and I'm able to use the PWM output to control the brightness. However, with the output set to 0, I still have a faint glow in the LEDs.
    (note it also works when I touch the ground of the external power supply, but don't ask me why :p)

    I'm sure there must be a simple solution but I just can't find it. If anybody could help me out, I'd be more than grateful !
     
  2. user_88

    user_88 Member

    Joined:
    Nov 22, 2008
    Messages:
    520
    Likes:
    4
    Location:
    Texas
    Have you looked at the IRF510 data sheet?
    There is a test circuit which might provide some insight regarding the proper arrangement and values of a working circuit.
     
  3. jpanhalt

    jpanhalt Well-Known Member Most Helpful Member

    Joined:
    Jun 21, 2006
    Messages:
    5,891
    Likes:
    501
    Location:
    Cleveland, OH, USA
    ONLINE
    Can you post a circuit diagram showing how the LED's are powered? Do you have a common ground with the Arduino?

    The IRF510 will require 10V relative to the source for the gate to turn on. Does the Arduino provide that?

    John
     

Share This Page