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
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Aaaaaargh!
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sasquatch84
  • Date Created: 29 Aug 2017 11:36 PM Date Created
  • Views 2390 views
  • Likes 0 likes
  • Comments 17 comments
Related
Recommended

Aaaaaargh!

sasquatch84
sasquatch84
29 Aug 2017

So I got everything hooked up/soldered together and it was all working great.  The relay was clicking on when I wanted it to.  The power supply had everything going without any smoke or flames.  And then I hooked up the solenoid valve to the relay.  It clicked on once and then the relay stopped working.  The light on the Nano is still on and yet the relay light is no longer blinking.  I guess I should see if there is any voltage coming from pin 8 (the one hooked up to the relay. 

The solenoid power was coming directly off of the power supply, not from the Nano.  Should I have put  a diode in there somewhere?  I'm really new to electronics as I am a logger.  image

  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 8 years ago in reply to sasquatch84 +3
    Hi Clinton, Here is a link with some info.: https://electronics.stackexchange.com/questions/110574/how-to-choose-a-flyback-diode-for-a-relay The diode goes across the contacts of the solenoid with in a…
  • jw0752
    jw0752 over 8 years ago +2
    Hi Clinton, If the power supply was supplying the solenoid as well as the Nano then it would be a good idea to have a flyback diode across the solenoid. In fact it is probably always a good idea to have…
  • dougw
    dougw over 8 years ago +2
    It looks like the relay card has opto isolators so the arduino output is protected. However the solenoid and relay will both generate spikes on the power supply when they turn off. This could damage the…
Parents
  • ntewinkel
    ntewinkel over 8 years ago

    I would personally run the Nano off a separate dedicated power supply (even a 5v cell phone charger), with the relay board run from that 5v supply too (if it has enough amp rating), and keeping the 12v separate just for the item you are trying to run. (ie, it runs through the screw terminals only, not coming near the circuit board)

    The Nano says it can take VIN of up to 12v, and that might be too close for comfort.

    Also, keeping the 12v separate means you don't have to worry about the load causing feedback to the Arduino.

     

    Or if you just want the one plug, you can get little 12v to 5v modules that might do the trick.

     

    Cheers,

    -Nico "Belt and Suspenders" teWinkel

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • ntewinkel
    ntewinkel over 8 years ago

    I would personally run the Nano off a separate dedicated power supply (even a 5v cell phone charger), with the relay board run from that 5v supply too (if it has enough amp rating), and keeping the 12v separate just for the item you are trying to run. (ie, it runs through the screw terminals only, not coming near the circuit board)

    The Nano says it can take VIN of up to 12v, and that might be too close for comfort.

    Also, keeping the 12v separate means you don't have to worry about the load causing feedback to the Arduino.

     

    Or if you just want the one plug, you can get little 12v to 5v modules that might do the trick.

     

    Cheers,

    -Nico "Belt and Suspenders" teWinkel

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • sasquatch84
    sasquatch84 over 8 years ago in reply to ntewinkel

    I definitely have been considering running a separate 5v converter for just the Nano.  Is there still a possibility of problems if I use the flyback diode Mr. Wiltrout recommended?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 8 years ago in reply to sasquatch84

    To be honest, I trust John W. more than myself image

    I'm mostly software, but from what I've learned yes a flyback diode is definitely required on any solenoid because that can cause big spikes in the wrong direction. I'm not sure if that by itself is enough to protect the more sensitive parts though.

    If you separate the 12v system from the 5v Arduino+Relays system you do make things a lot safer for the sensitive bits. I've run Arduinos on the little 5v iPhone cube chargers - they don't take much space, and cheap copies (as in $1) are available (although likely not as good, but I've found them to be good enough).

    Ps, the relay boards generally include the flyback diode, so that should be fine.

    However, looking at the Adafruit listing, they do recommend "We suggest a TIP120 or N-Channel power FET with a 1N4001 kickback diode to drive this from a microcontroller pin." - you're not driving it directly from a pin, but it's electrically connected.

     

    pps, Your name, and your handle... Northern Alberta?

     

    -Nico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sasquatch84
    sasquatch84 over 8 years ago in reply to ntewinkel

    I live in BC. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 8 years ago in reply to sasquatch84

    >I live in BC.

    Even better! I'm on Vancouver Island (Comox). The reason I guessed Northern Alberta is because I went to school there with a few Horsmans image

    Very cool to meet someone on e14 closer to home image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sasquatch84
    sasquatch84 over 8 years ago in reply to ntewinkel

    I was born in Port Alberni.  I've lived about a third of my life on the Island.  the most recent was 10 years in Lake Cowichan.  I moved to Sicamous last year.  Logging is much easier and drier around here!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • 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 © 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube