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 3465 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
  • D_Hersey
    0 D_Hersey over 11 years ago

    You will need a switching amp capable of handling an inductive load.  I am off to my office, I will dig some drawings out of my compy there and post them in a couple of hours.  If you are in a hurry, I have posted them previously, maybe you can find the drawings by searching this site using my name, dunno.

    • 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 D_Hersey

    assuming your using the PI Face Digital, you can use the relays to drive the solenoid and you should have no problems

     

    it will need a separate 12V 500mA supply though, preferably 1A

     

    look out for Dons circuit later too to help clarify how to connect things up

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

    Also, can you characterize your on time and duty-cycle expectations?  Solenoids that are on for a long time can be energized at one power level and held at a lesser one to minimize dissipation.  Can you also tell us the type of power source/system you intend to deploy?

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

    The final DOF is hard clamp or soft clamp.  The hard clamp is cheap and effective.  The only downside for some mechanical situations is that it (the solenoid) lets go precipitantly when it is de-energized.  A soft clamp would be more elaborate and compute intensive to design, but would yield a smoother response in this phase of operation.

    • 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

    I cant find drawing on this site using your name, can you please post it again, thanks

    • 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

    I am trying to emulate touch screen tapping, so it will be frequent forward and backward motion. I am having 12V DC power adaptor as my power source 

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

    This one is a little big for the situation, you only need about half an ampere, but it is illustrative, I'll keep digging.  All the stuff at the bottom is integrated into a three-terminal package.  It is an NPN Darlington pair:

     

    This site isn't taking JPEG images right now, it seems.

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

    Hello D_Hersey,

    I do apologize for the inconvenience we are working on the image issue and hope to have it resolved as quickly as possible.

     

    Thank you,

     

    Jamie

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

    Image is still not up :-(

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