1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Solenoid driver

Discussion in 'Electronic Projects Design/Ideas/Reviews' started by earckens, Oct 1, 2016.

  1. KeepItSimpleStupid

    KeepItSimpleStupid Well-Known Member Most Helpful Member

    Joined:
    Oct 30, 2010
    Messages:
    9,964
    Likes:
    1,099
    I kinda goofed in terms of what I wanted to say. Brain isn't working well.

    I meant to say you can Matrix the solenoids using High and Low side drivers. Just google "high side driver" and "low side driver" and even "solenoid drivers".

    You can also Matrix the switches. It doesn;t matter if it's one switch out of 88 (like the one example) or the keypad of 000A and 000B, they still get the job done. "C" might be clear. and "D" might be erase 1 digit. True, you may need a small display too, but that should be cheap too.
    A 4x20-line serial module might work just fine.

    e.g. you type 001 and it displays the name of the switch and the state. then you type A or B to change the state. Maybe E is reserved for Toggle and "F" is "leave as display" or it just times out.

    Without doing selection, I'll just give you this http://www.nxp.com/products/interfa...us-portfolio/i2c-general-purpose-i-o:MC_41850 to look at.

    I2C is known as Inter IC Communications. It can be made long if necessary. You can't just hang any number of the same devices off the I2C bus. The addresses are assigned by Phillips. Some IC's have multiple available addresses. If you need more expanders, you need to expand the I2C bus.

    My point is, you can make it cost-effective for 50 switches or 100 solenoids. I really don't think you want 50 switches?

    I wanted to try to get you to understand one concept before moving on to another.

    Concept 1 which is the most important is controlling 50 switches. You can matrix them and create the pulse in software.
    Concept 2 is the state of the switch: A) FRAM or B) A physical switch
    Concept 3: is how to activate said switch: A) A simple display and a keypad or B) Single switches like you envision
    (50 switches are expensive vs a $10.00 USD keypad)

    Concept 4: Display the State of the switch. Basically I have no idea what your planning here.
    50 LED's?; Red/green? LEDS that the train sees? And to be weird: Some sort of positive train control where if the switch is wrong the train stops.

    I like throwing stuff out no matter how silly it is, At this point we are brainstorming, so anything goes.
     
  2. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
  3. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    Hi Erik, I Don't see a PM link?
    Send me an Email.
    chemelec at Hotmail.com
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. KeepItSimpleStupid

    KeepItSimpleStupid Well-Known Member Most Helpful Member

    Joined:
    Oct 30, 2010
    Messages:
    9,964
    Likes:
    1,099

    Chemelec: They are called Conversations. Click on a member name and then "Start a conversation". Try PM Erik.
     
  6. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    Thanks, But either way, I would prefer him to Email me and include his Mailing Address.
     
  7. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    Erik, Here is what I came up with.

    Erik-PCB-1.png Erik-Sch-2.png
     
    • Like Like x 1
  8. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,315
    Likes:
    1,230
    Location:
    Cardiff, Wales
    Text says 'Preferably with center off''. Isn't centre off essential? If any one switch is held at the 'Left' or 'Right' position then no other switch will be able to trigger the monostable.
     
  9. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    YES that is what would occur.
     
  10. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
    Nice circuit and layout too. Can I suggest that you increase the decoupling capacitor from 0.1uF to at least 1uF and perhaps drop the decoupling resistor from 100R to 10R.

    spec
     
  11. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,315
    Likes:
    1,230
    Location:
    Cardiff, Wales
    If you want a turnout left/right indicator for use with a centre-off switch, perhaps you could make something like this (excuse my graphics) :-
    Turnout-Indicator.PNG
    A slider with an elongated aperture could provide a certain amount of 'lost motion' so that it remains in the last operated left/right state even when the switch returns to the centre position.
     
    • Like Like x 1
  12. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
    An alternative is this (with an inverter transistor on the 555 trigger input) :
    2016_10_13_ETO_RAILWAY_POINTS_SWITCH.jpg
    2016_10_13_ETO_RAILWAY_POINTS_SCHEMATIC.jpg
     
  13. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    The 100 Ohm resistor will be OK to supress any Spikes from the solenoids.
    This is driving a Mosfet so Output current is almost nothing.
    A Breadboard of this Circuit has been built and tested.

    I had considered a 1uf or 10uf Tantalum, But he might have problems getting tantalums.
    That .1 Will work Ok.

    I am offering him the PCB for Free, Including the Postage Cost, just sending it in a Letter.

    I Could supply him with the PCB and All Parts, Including up to 20, Center Off Switches, But than it becomes a Parcel.
    Between the Higher Cost of Shipping and all the Parts, I Can't do that for Free.
     
  14. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
    Wow- what a helpful and thoughtful person you are.:cool:

    spec
     
  15. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    It is Either sell these parts, even at a Cheap price, or Thrown them in the Garbage in the near future.
    I have well over $100,000 of new parts in Stock.
     
  16. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
    $100K ! That's about the same value of stock as a small distributor- how come so much? What have you got?

    spec
     
  17. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    Previously, Prior to 1999, I was Designing and Manufacturing Electronic Equipment.
    In 2002, I started my website and have supplied parts for all my projects, so more increase in stock.
    It has been Fun, but all things come to an end sometime.
    I have planned to shut it down on the Oct 16 2017, Its Renewal Date.

    I live in a TINY Village, No one here to use these items.
     
    • Informative Informative x 1
  18. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
  19. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
    Have you thought about selling your stock on the net, say through your site, or on ebay?

    I once got hold of a load of 74 TTL chips that were being junked at work.

    I made a list and posted copies off to as many component brokers I could find. Nearly all made low bids, but one company must have had a customer who wanted the parts and made a very good offer. I made quite a packet on that deal. Mind you, it took me a while to sort the bits and put them in plastic tubes, which were also being dumped.

    spec
     
    Last edited: Oct 15, 2016
  20. spec

    spec Well-Known Member Most Helpful Member

    Joined:
    Oct 27, 2015
    Messages:
    5,828
    Likes:
    710
    Location:
    Somerset UK GMT
    Brilliant Alec,

    I have thought of a few schemes but, none are as neat and simple as that.

    spec
     
  21. chemelec

    chemelec Well-Known Member

    Joined:
    Apr 4, 2004
    Messages:
    2,123
    Likes:
    77
    Location:
    Hedley, B.C. Canada
    I did unload some stock to a company in the USA. (mainly 24KV Diodes)
    But didn't get much for them.

    Problem these days is Shipping Costs and Customs Declarations to other countries.
    Many Countries are cracking down on parts that don't meet ROHS Specifications.

    I Have basically No Digital Parts, Except for the 4000 Series.
    Basically just Linear electronic, Through hole Parts.
     

Share This Page