element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Breadboard / Circuit feedback for a switch controlling MOSFETs
  • 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
  • Replies 2 replies
  • Subscribers 391 subscribers
  • Views 279 views
  • Users 0 members are here
  • mosfets
  • circuit
  • arduino
Related

Breadboard / Circuit feedback for a switch controlling MOSFETs

Former Member
Former Member over 10 years ago

Hi, newcomer here and a total newbie when it comes to circuits / electronics.

 

I've tasked myself to build a circuit using the Arduino to control 3 sets of fairy lights. A lot of research and advice later, I've managed to get a working prototype for one set of lights with a switch, but now I'm moving on to all 3 and want to make sure that it makes sense for others.

 

The idea is that all 3 fairy light sets are turned on at their respective power sources (batteries), but are off. The Arduino waits for the switch to be closed. Once it's closed, it sends output through pins 9-11 into the MOSFETS which then effectively close the fairy light circuit, turning them on. In reality, each set of lights is timed to turn on at different intervals and at different speeds using PWM to fade them in. This is why they're separate.

 

This circuit was based heavily off of two tutorials. First, the switch is based off of the debounce tutorial offered by Arduino (Arduino - Debounce), and the second is based off of an N-Channel MOSFET/Arduino Tutorial on bildr (bildr » High-Power Control: Arduino + N-Channel MOSFET). My work is simply combining these together.

 

My main concern is how everything is connected to one ground (on the schematic). Would not using diodes to regulate the flow cause problems here?

 

Generally though, is this a valid solution? Are there any issues that I should probably know about? As mentioned, I'm still super new to this, so any feedback would be hugely appreciated.

 

Apologies in advance for the images if they're messy. This is my first real time prototyping and using the Fritzing tool. I've tried to reflect the colored wires between the breadboard and the schematic. Note that the LEDs shown in both images represent the fairy lights.

 

Breadboard view

 

Schematic view

  • Sign in to reply
  • Cancel

Top Replies

  • johnbeetem
    johnbeetem over 10 years ago +2
    No problem connecting everything to the same ground as you did in the schematic. The NFETs do a fine job of keeping the batteries isolated from each other. The LEDs are backwards in the schematic: anode…
  • johnbeetem
    johnbeetem over 10 years ago

    No problem connecting everything to the same ground as you did in the schematic.  The NFETs do a fine job of keeping the batteries isolated from each other.

     

    The LEDs are backwards in the schematic: anode should go to +V.  If you're using LEDs to test the circuit, you'll need current-limiting resistors or your LEDs will emit a lot of light... once.  1K is a good starting value for 5V batteries.  I didn't check the threshold voltage on the NFETs.  Some NFETs require a gate voltage of 2 or more volts to turn on at all, and roughly 10V to have low resistance from drain to source.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to johnbeetem

    Thank you! I've tested the NFETs I'm planning in on using one one set of lights hooked up to the Arduino and they work well. Made sure to get the right ones!

    As for the LEDs, they're just a placeholder for sets of 20 or so LEDs in a parallel circuit. I didn't want to overcomplicated the schematic any more than I needed to.

    Thanks for your confirmations, now it's time to do the physical building!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube