element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs CPLD Controlled Door Lock - Output Circuit
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: oldmanraskers
  • Date Created: 28 Apr 2015 7:28 PM Date Created
  • Views 350 views
  • Likes 1 like
  • Comments 6 comments
  • max_v_cpld
Related
Recommended

CPLD Controlled Door Lock - Output Circuit

oldmanraskers
oldmanraskers
28 Apr 2015

The weekend is over and I'm back to my design... I don't have much to say about the output circuit, except that I want to drive a bunch of 24V solenoids and provide an indication (via LEDs) when the output should be active. Below is the circuit I have come up with and hopefully there is nothing more to be done image Next I will be moving on to look at providing the CPLD with an external oscillator circuit and dealing with the JTAG connector image

 

image

  • Sign in to reply
  • oldmanraskers
    oldmanraskers over 8 years ago in reply to michaelkellett

    Ah, nothing to be sorry about Michael, you have helped me out tons, its actually my fault if any confusion came into play because I'm guilty of using silly names. The CPLD output should not really be labelled "output" in a system where further processing takes place before the signal truly becomes an "output". Something that needs changing for the sake of clarity image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 8 years ago in reply to oldmanraskers

    It's a trade off, small amount of wasted power if LEDs on output but you are indicating much more directly the drive state of the solenoid. Probably doesn't matter much which way you go. Now that I look again I see that your labels did indicate what you meant - they are in rather pale grey on my monitor and I didn't look carefully enough. Sorry.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • oldmanraskers
    oldmanraskers over 8 years ago in reply to michaelkellett

    Ah thank you, I see now what you are saying Michael - In my original post I had intended to have the LED between the output pin of the CPLD and the input pin of the ULN2803 - in my schematic OUTxx is the output of the CPLD pin; the outputs of the ULN are the terminal connections labelled X6-7 etc... Do you think it's better then to have the LEDs on the output of the ULN as apposed the outputs of the CPLD? I was thinking along the lines of our previous discussion about wasting power in the current limiting resistors.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelkellett
    michaelkellett over 8 years ago in reply to oldmanraskers

    Here's a diagram showing one stage of ULN2803 (except with normal transistor instead of the darlington it actually has (don't use a  BC184 in real life  !!)), the load and both ways of driving the LED.

     

    image

    L1 is the solenoid.

    When the input is high Q1 turns on, pulls OUT low and current flows through the solenoid and LED2. There's about 1V at OUT for  a real ULN2803 so LED1 will not light.

    When the input is low Q1 is off, OUT will be pulled up by current through the solenoid (which is like a 200R resistor at DC) so LED1 will be on. The current through LED1 also flows though the solenoid and unless it's quite low it might keep the solenoid pulled in.

    So the LED2 arrangement is better because the LED is on when the load is on and the LED current doesn't flow through the load.

     

    Hope that helps - ask again if not.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • oldmanraskers
    oldmanraskers over 8 years ago in reply to michaelkellett

    I don't really  understand Michael - I think what your saying is, that the way I have my LED connected means that the LED will be on when the solenoid is off (because the CPLD must turn the output on for the solenoid to be off and vice-versa) - but that is where you lost me image Can you please offer me more explanation when you have the time?

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

  • Facebook
  • Twitter
  • linkedin
  • YouTube