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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Controlling 12V Solenoid using Piface
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 30 replies
  • Subscribers 678 subscribers
  • Views 3479 views
  • Users 0 members are here
  • pi
  • circuit
  • raspberry_pi
  • piface
  • solenoid
Related

Controlling 12V Solenoid using Piface

Former Member
Former Member over 11 years ago

I have 12V Solenoid(Makeblock DC Frame Type Solenoid HCNE1-0530) and I want to control it using Piface, can this be done entirely using Piface ? or additional component will be require ?. circuit arrangement will be helpful

  • Sign in to reply
  • Cancel
Parents
  • D_Hersey
    0 D_Hersey over 11 years ago

    NVM, still can't dl images.

     

    I would use a TLP351 logic optocoupler for my first stage.  Output is CMOS push-pull totem pole.  This is how I would get from logic voltage to solenoid voltage.

     

    I would follow with a complementary-symmetry bipolar stage.  NPN pull up, PNP pull down, bases bussed and connected to the output of the optocoupler.  Emmiters bussed and connected to the load, far side of load to (solenoid)V-.  Collectors go to respective sides of the solenoid supply.  NPN energizes coil, PNP catches spikes.

     

    I would simulate the stuffing out of this using SPICE before I attempted to assemble this, for you have little reason to trust me, or authority (not that I represent authority) generally.  Try and measure the inductance of your coil so you can input it to SPICE.

     

    Use Qs rated for at least a coupla amperes, we like to employ design-margin, esp. in one-offs.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to D_Hersey

    what is SPICE ?

    also I bought MOSFET Power Control Kit(https://www.sparkfun.com/products/10256) and successfully able to operate solenoid using piface digital output pin. but it is overheating now :-(

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 11 years ago in reply to Former Member

    Spice is a "golden-oldie" electronic circuit simulator. I remember working with it in the 1980's. and even then it was an "old" program. Nowadays there are GUI frontends, but the calculations are still done mostly with the "old code".

     

     

    Your mosfet is about 0.05 ohms. So at 1A (you look up and report back what your solenoid actually uses!  it uses even less, 0.45A) you would get a voltage drop of about 0.05V. This would, at 1A generate about 50mW of power. This is so very little that it is hard to measure. So if it is overheating, there is something wrong. Show us your circuit (draw a circuit diagram of how you WANTED to connect things. Then also show us a picture of your actual build!).

     

    Now for solenoids, the problem is that the solenoid will generate a voltage spike when it is turned off. If you turn it off often, that can cause heating. The mosfet is specified to tolerate a bit of misuse (*) in this area, but it is possible that you are exceeding the "a bit" part.... :-)

     

    Still, the freewheeling diode may be a good idea anyway: it can't hurt (if connected right side up).

     

     

    (*) Many electronics engineers will say you HAVE to provide a freewheeling diode, but this mosfet is SPECIFIED to work without one, as long as certain requirements are met.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ravi_butani
    0 ravi_butani over 11 years ago in reply to Former Member

    as internal resistance of your device is 27ohms it may not heat up mosfet... if mosfet heating up slowly then its fine put some heatsink..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to ravi_butani

    sorry for confusion, it is not mosfet heating up, it is a Solenoid which is overheating.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to rew

    sorry for confusion, it is not mosfet heating up, it is a Solenoid which is overheating.

     

    I will assemble my circuit and post picture soon

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 11 years ago in reply to Former Member

    The solenoid is specified to have  a resistance of 27 ohms. That results in 0.45A of current. That should come to about 5.4W.

     

    It should get noticably warm with that. I'm not sure if the solenoid is specified to be "continuously on", or if it is meant to be on for only short periods. Does it really overheat (and break?) , or is it just that you find that it is getting too hot to touch?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to rew

    I did not run it until it breaks, but it is getting too hot to touch. also I notice that piface Pin LED slightly remain lit up even after supplying signal zero.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    if your leaving the solenoid energized then it will be drawing 500mA at 12V meaning 6W of heat dissipation

     

    if it is excessively hot then I would suspect it is not 12V 500mA or requiring a lower holding voltage as described above

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    if your leaving the solenoid energized then it will be drawing 500mA at 12V meaning 6W of heat dissipation

     

    if it is excessively hot then I would suspect it is not 12V 500mA or requiring a lower holding voltage as described above

    • Cancel
    • Vote Up 0 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 © 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