element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Simple circuiting question, using Arduino
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 30 replies
  • Answers 2 answers
  • Subscribers 420 subscribers
  • Views 3150 views
  • Users 0 members are here
Related

Simple circuiting question, using Arduino

e14 Contributor
e14 Contributor over 13 years ago

I want to control a 24v DC circuit with a my arduino, what would be the proper component and roughly how would I use it. Basically when I set a pin to high, I want it to switch the 24V on, and turn it off when set to low. From what I can gather, I need a MOSFET, but I have minimal knowledge on what to look for in one. Would someone be able to assist me?

 

(p.s. This is my first discussion, sorry if I am doing this incorrectly)

  • Sign in to reply
  • Cancel

Top Replies

  • johnbeetem
    johnbeetem over 13 years ago in reply to ntewinkel +2
    Nico teWinkel wrote: You should probably at least have a resistor between the Arduino pin and the mosfet. [I've never designed with Arduino, so these are comments that apply to most microcontrollers.]…
  • ntewinkel
    ntewinkel over 13 years ago +1 suggested
    Hi Mason, You should probably at least have a resistor between the Arduino pin and the mosfet. Oomlout has a circuit example using a smaller transistor: http://www.oomlout.com/oom.php/products/ardx/circ…
  • ntewinkel
    ntewinkel over 13 years ago +1
    ps, this Instructable might also help: http://www.instructables.com/id/Use-Arduino-with-TIP120-transistor-to-control-moto/
Parents
  • ntewinkel
    0 ntewinkel over 13 years ago

    Hi Mason,

     

    You should probably at least have a resistor between the Arduino pin and the mosfet.

     

    Oomlout has a circuit example using a smaller transistor: http://www.oomlout.com/oom.php/products/ardx/circ-03

     

    Not sure if in your case you might also want an optocoupler (http://en.wikipedia.org/wiki/Opto-isolator) because of the difference in voltage.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 13 years ago in reply to ntewinkel

    Nico teWinkel wrote:

     

    You should probably at least have a resistor between the Arduino pin and the mosfet.

    [I've never designed with Arduino, so these are comments that apply to most microcontrollers.]

     

    I agree with this.  You need to protect the Arduino in the unlikely event that the NFET shorts between gate and source and presents 24V to the Arduino pin.  I would guess that the Arduino has internal clamping diodes to prevent pins from going too high, but those burn out at high currents.  So having a resistor (I usually start with 1K) controls the amount of current so that the clamp doesn't burn out.

     

    With an NFET, you also need to be concerned with what happens at power on.  Most micro-controllers boot with I/O pins floating, though some have weak pull-up or pull-down.  You'll probably want a pull-down resistor to ensure that your NFET is off when you first turn power on.  You don't need this with an NPN driver because the base-emitter junction will pull down if not driven high.

     

    If you're driving an inductive load like a motor, don't forget the flyback diode.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • johnbeetem
    0 johnbeetem over 13 years ago in reply to ntewinkel

    Nico teWinkel wrote:

     

    You should probably at least have a resistor between the Arduino pin and the mosfet.

    [I've never designed with Arduino, so these are comments that apply to most microcontrollers.]

     

    I agree with this.  You need to protect the Arduino in the unlikely event that the NFET shorts between gate and source and presents 24V to the Arduino pin.  I would guess that the Arduino has internal clamping diodes to prevent pins from going too high, but those burn out at high currents.  So having a resistor (I usually start with 1K) controls the amount of current so that the clamp doesn't burn out.

     

    With an NFET, you also need to be concerned with what happens at power on.  Most micro-controllers boot with I/O pins floating, though some have weak pull-up or pull-down.  You'll probably want a pull-down resistor to ensure that your NFET is off when you first turn power on.  You don't need this with an NPN driver because the base-emitter junction will pull down if not driven high.

     

    If you're driving an inductive load like a motor, don't forget the flyback diode.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube