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 2388 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
  • jw0752
    jw0752 over 8 years ago

    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 a protection diode across any inductive load. Just using the Nano for a connection point for the relay board would probably not cause the problem you have encountered as long as you were taking the power from the input voltage line Vin (Pin 30) and not trying to use a voltage that is regulated on the nano such as the 5 volt or 3.3 volt points. The fact that you had no problems until the solenoid clicked tells me that you got a voltage spike and killed your nano.  Sorry image

    John

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

    Awesome thanks.  Good thing I bought those Nanos in a 3-pack!  As far as the diode goes, where can I look to learn 1. How to put one into the circuit 2. How to figure out the size of diode needed.  I have a decent assortment of components including diodes so I may have the one I need.  Again, thanks so much for the help.

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

    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 reverse biased orientation. Banded end of the diode toward the + side of the supply.  This way the spike from the collapsing magnetic field will be dissipated by the diode and not your nano. The recommendation is for the voltage and current specs of the diode be twice the voltage and current of the solenoid. Of course anything higher is just fine.  The link recommends the 1N400X series of diodes but for your application any general purpose diode will likely work.

     

    John

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

    Thanks!  I'll check that out!

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

    Thanks!  I'll check that out!

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

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube