Shop OBEX P1 Docs P2 Docs Learn Events
solenoid control ??? — Parallax Forums

solenoid control ???

ArchiverArchiver Posts: 46,084
edited 2004-03-29 02:26 in General Discussion
I am going to try to set up a stamp to read rpm from a motor and be
able to activate 1 of 2 soleniods depending on rpm. The solenoids are
12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
this or a transistor? I'm still in the learning curve and am not sure
which method is the most fool proof and rugged. Any help would be
appreciated and thanks in advance.

James

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 05:33
    Any help at all??

    --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...> wrote:
    > I am going to try to set up a stamp to read rpm from a motor and be
    > able to activate 1 of 2 soleniods depending on rpm. The solenoids
    are
    > 12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
    > this or a transistor? I'm still in the learning curve and am not
    sure
    > which method is the most fool proof and rugged. Any help would be
    > appreciated and thanks in advance.
    >
    > James
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 06:17
    Is this by any chance for nitrous???


    Original Message
    From: "pstarckt" <pstarckt@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, February 21, 2004 11:33 PM
    Subject: [noparse][[/noparse]basicstamps] Re: solenoid control ???


    > Any help at all??
    >
    > --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...> wrote:
    > > I am going to try to set up a stamp to read rpm from a motor and be
    > > able to activate 1 of 2 soleniods depending on rpm. The solenoids
    > are
    > > 12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
    > > this or a transistor? I'm still in the learning curve and am not
    > sure
    > > which method is the most fool proof and rugged. Any help would be
    > > appreciated and thanks in advance.
    > >
    > > James
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 06:55
    James,

    A relay will work, but I am going to assume you want the solenoid to activate
    as soon as possible once the target rpm is seen.

    Get a logic level mosfet, like an IRL520. www.glitchbuster.com

    This setup I am about to explain will provide a ground for the solenoid to
    operate.

    Connect the solenoid positive wire to +12 volts

    Connect the solenoid negative wire to the IRL520 drain terminal

    Connect the IRL520 source terminal to system ground

    Connect the IRL520 gate terminal to the stamp output terminal.

    Connect a 1 meg ohm resistor from the IRL520 gate terminal to system ground

    When you make the stamp output pin high, the solenoid should turn on.

    The IRL520 will easily handle the current of your solenoid. This is only of
    many methods to achieve your desired result. This solution is overkill but a
    "no brainer"

    ken

    Any help at all??

    --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...> wrote:
    > I am going to try to set up a stamp to read rpm from a motor and be
    > able to activate 1 of 2 soleniods depending on rpm. The solenoids
    are
    > 12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
    > this or a transistor? I'm still in the learning curve and am not
    sure
    > which method is the most fool proof and rugged. Any help would be
    > appreciated and thanks in advance.
    >
    > James


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 07:45
    Nope. It's for a small scale transmission in an RC model.

    --- In basicstamps@yahoogroups.com, "fiveslo" <fiveslo@s...> wrote:
    > Is this by any chance for nitrous???
    >
    >
    >
    Original Message
    > From: "pstarckt" <pstarckt@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Saturday, February 21, 2004 11:33 PM
    > Subject: [noparse][[/noparse]basicstamps] Re: solenoid control ???
    >
    >
    > > Any help at all??
    > >
    > > --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...>
    wrote:
    > > > I am going to try to set up a stamp to read rpm from a motor
    and be
    > > > able to activate 1 of 2 soleniods depending on rpm. The
    solenoids
    > > are
    > > > 12vdc 11 watts with a 13ohm coil. Would I need to use a relay
    for
    > > > this or a transistor? I'm still in the learning curve and am not
    > > sure
    > > > which method is the most fool proof and rugged. Any help would
    be
    > > > appreciated and thanks in advance.
    > > >
    > > > James
    > >
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in the
    Subject and
    > Body of the message will be ignored.
    > >
    > > Yahoo! Groups Links
    > >
    > >
    > >
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 14:29
    --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...> wrote:
    > Nope. It's for a small scale transmission in an RC model.
    >


    I'll second the suggestion for an IRL540. *VERY* stamp friendly. If
    space is a concern, the IRL540N has no mounting lug. The data sheet is
    surprisingly void of specifics, such as the use of pull-downs, so I've
    never used one. Though it may be a good design practice, if you have a
    space problem, you can eliminate the pulldown without worry.

    Stephen Weller
    American. Veteran. Patriot.
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 16:06
    Thanks! Space is not a problem. Can I get these at Radio Shack?

    --- In basicstamps@yahoogroups.com, "wun_fungi" <sweller@a...> wrote:
    > --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...>
    wrote:
    > > Nope. It's for a small scale transmission in an RC model.
    > >
    >
    >
    > I'll second the suggestion for an IRL540. *VERY* stamp friendly. If
    > space is a concern, the IRL540N has no mounting lug. The data sheet
    is
    > surprisingly void of specifics, such as the use of pull-downs, so
    I've
    > never used one. Though it may be a good design practice, if you
    have a
    > space problem, you can eliminate the pulldown without worry.
    >
    > Stephen Weller
    > American. Veteran. Patriot.
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 16:16
    Unlikely Radio Shack will have these......
    Just a side note.

    The IRL520N will handle 10 amps
    IRL530N 17 amps
    IRL540N 36 amps

    The 10 amp variety will suffice.

    www.glitchbuster.com has good prices and the best shipping prices in the US.

    Thanks! Space is not a problem. Can I get these at Radio Shack?


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-22 19:31
    --- In basicstamps@yahoogroups.com, "pstarckt" <pstarckt@y...> wrote:
    > Thanks! Space is not a problem. Can I get these at Radio Shack?
    >
    I don't believe so. I get them (by the gross. :-) from Digi-Key.

    Stephen Weller
    American. Veteran.Patriot.
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-23 21:07
    I found a IFR510 at Radio Shack. What is the difference between the
    IRL and the IFR mosfet? Also in a previous post it was recommended to
    have a 1 meg resisitor in place between the gate and system ground.
    How is the size of this resistor determined? I've got the formulas
    here but I guess I'm having trouble telling the forest for the trees.
    In the 'homework' book they use the 470 ohm resistor alot with the
    led but that seems to be as a voltage reducer. In this case wouldn't
    putting a 1 meg in line with the ground also reduce the voltage from
    the 12vdc batt to the 12 vdc solenoid?


    --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > Unlikely Radio Shack will have these......
    > Just a side note.
    >
    > The IRL520N will handle 10 amps
    > IRL530N 17 amps
    > IRL540N 36 amps
    >
    > The 10 amp variety will suffice.
    >
    > www.glitchbuster.com has good prices and the best shipping prices
    in the US.
    >
    >
    > Thanks! Space is not a problem. Can I get these at Radio Shack?
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-23 22:16
    Looking at the data sheet (fig5) it would appear the IRF510 will work, as
    long as your soleniod consumes 1 amp or less.

    I am no expert on MOSFETS, but I believe the gate resistor to ground serves
    two purposes:
    1. To prevent "ringing" at turn on (makes a "cleaner" turn on signal for your
    load)
    2. For the device to turn off when power to the gate is removed. The gate
    needs a path to get rid of the charge that is there when it is turned on. This
    probably does not apply in your case.

    The 470 ohm resistor you see with LEDs is to LIMIT the current that goes
    through the LED. An LED will have a certain voltage across it, typical 2 volts
    lets say. What ever voltage is left over (12 volt system, then 10 volts left
    over) using ohms law you calculte the resistor value for the current you want
    through the LED.

    If you want 10 mA through the LED, and 12 volts is the power
    source........12-2 = 10

    10v/10mA = 1k ohms

    or using a 5 volt system and assuming a "2 volt" led, again using ohms law, 3
    volts / 470 ohms gives 6.3 mA.

    ken

    http://www.ee.nmt.edu/~wedeward/EE443L/FA99/IRF510.pdf
    I found a IFR510 at Radio Shack. What is the difference between the
    IRL and the IFR mosfet? Also in a previous post it was recommended to
    have a 1 meg resisitor in place between the gate and system ground.
    How is the size of this resistor determined? I've got the formulas
    here but I guess I'm having trouble telling the forest for the trees.
    In the 'homework' book they use the 470 ohm resistor alot with the
    led but that seems to be as a voltage reducer. In this case wouldn't
    putting a 1 meg in line with the ground also reduce the voltage from
    the 12vdc batt to the 12 vdc solenoid?


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-02-23 23:31
    pstarckt wrote:
    >
    > I found a IFR510 at Radio Shack. What is the difference between the
    > IRL and the IFR mosfet? Also in a previous post it was recommended to
    > have a 1 meg resisitor in place between the gate and system ground.
    > How is the size of this resistor determined? I've got the formulas
    > here but I guess I'm having trouble telling the forest for the trees.
    > In the 'homework' book they use the 470 ohm resistor alot with the
    > led but that seems to be as a voltage reducer. In this case wouldn't
    > putting a 1 meg in line with the ground also reduce the voltage from
    > the 12vdc batt to the 12 vdc solenoid?

    The 1M resistor keeps the FET turned off except when driven -
    Otherwise Murphys Law decrees that the gate will float into
    the linear region of the FET, where it will dissipate lots of
    power & generally be a pain.

    regards, Jack
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 15:32
    Aside from space considerations and economics, I would look at the frequency of
    operation. I would hesitate to use relays if they are required Io operate
    hundreds of times / hour I would use transistors. The harder you use a relay,or
    any mechanical device the more likely it is to fail.

    pstarckt <pstarckt@y...> wrote:I am going to try to set up a stamp to read
    rpm from a motor and be
    able to activate 1 of 2 soleniods depending on rpm. The solenoids are
    12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
    this or a transistor? I'm still in the learning curve and am not sure
    which method is the most fool proof and rugged. Any help would be
    appreciated and thanks in advance.

    James



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.

    Yahoo! Groups Links







    Do you Yahoo!?
    Yahoo! Finance Tax Center - File online. File on time.

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 17:42
    James,

    Do you need help with the rpm reading, or solenoid activation, or both?

    For the solenoid activation, go to www.glitchbuster.com and get yourself a
    handfull of MOSFETS......IRL520

    These guys are simply the EASIEST to interface to your stamp.

    Connect the stamp output pin to the Gate
    Connect a 1 meg ohm resistor from the Gate to ground
    Connect the Source to Ground
    Connect the Drain to the minus side of your solenoid that will have positive
    12 volts connected to the other side.

    When you want the solenoid to turn on, make the stamp output pin logic high,
    this will cause the MOSFET to act like a switch to ground if wired as
    described above.

    I am not affiliated with glitchbuster.com in any way, I am simply a satisfied
    customer. His prices are very good and you cannot beat his shipping costs.

    Ken
    ========================
    pstarckt <pstarckt@y...> wrote:I am going to try to set up a stamp to
    read rpm from a motor and be
    able to activate 1 of 2 soleniods depending on rpm. The solenoids are
    12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
    this or a transistor? I'm still in the learning curve and am not sure
    which method is the most fool proof and rugged. Any help would be
    appreciated and thanks in advance.

    James


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 17:44
    Well, considering you are driving solenoids, using relays wouldn't make much
    difference reliability wise. My experience with solenoids over the last 20
    years has been that they're good for roughly two years (about 50 operations
    a day) before you have to rebuild them. The relays we use to drive them
    almost never fail.

    What I'd be considering is the delay in operating the solenoids. Already, a
    solenoid is dead slow compared to silicon. Add a relay which is also very
    slow and you have a significant delay between the signal being sent and the
    solenoid reaching full open.

    For instance - The JS1E-5V relays I have here take approximately 10ms to
    operate. If the solenoid is similar, thats 20ms delay between signal and
    full operation. Changing to a transistor will cut that time virtually in
    half. Turn on time for a transistor like the 2907 is something like 50ns

    In silicon terms, 20ms is a long time - only you know if thats fast or slow
    for your application.

    11 watts / 12 volts = .92 amps (VA=W). You should get a relay or transistor
    that can handle at least twice the required current - so 2 amps at least.
    You also want to check into contact material if you go with relays. Contacts
    are NOT all created equal by any means. Some are made for high voltage,
    others for high current, others for frequent operation, etc.

    Other considerations when deciding between the two. A relay will require a
    reverse voltage protection diode (turn off coil power and you get a BIG
    reverse voltage spike). Relays are also power hungry to operate. The
    aformentioned JS1E-5V has a nominal hold current of about 80mA and a good
    deal more than that to turn on (short duration inrush current). You couldn't
    just operate it off a stamp pin, you'd have to use an optocoupler or
    transistor to switch its power on and off.

    One complicating factor is turn on voltage. You're switching 12 volts but
    your control circuit is 5 volts. The lower the voltage you use to operate a
    relay, the higher the current required is. The JS1E-5V requires 80mA, the
    JS1E-12V requires 33mA. Whichever route you go, the stamp isn't going to be
    able to operate it directly. You'll need a transistor and/or optocoupler to
    operate the relay.

    The big deciding factor in the choice between transistor and relay is one of
    isolation. If the circuit you're switching suddenly has a gargantuan voltage
    spike, a relay will have a MUCH greater chance of not only surviving the
    spike but also of protecting your control circuit. The JS1E relay can
    protect your circuit against spikes up to 1500 volts.

    The 2907 transistor only goes to about 60v but you can (should) use an
    optocoupler between the stamp and the transistor. Optocouplers can typicaly
    protect your circuit up to several thousands of volts (though they
    themselves are slag).

    All things considered, my own choice would be an optocoupler/transistor pair
    to switch the solenoid on and off. Using a relay you just add one more
    component that can fail and cause a greater delay from signal to action.
    There are even optocouplers out there that could switch this solenoid
    directly without the need for a transistor at all.

    N.B. The PN2907 transistor is not suitable for your task - it just happens
    to be the one I have a datasheet handy for.


    >
    Original Message
    > From: PHILIP GAMBLIN [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=KH3tIpkZu-WDXDsNAux9bNfKBvTFOAVqnJt9qkaePshzCN2d__zzumwmn8cDt08qRYSzVycqPp_qegkJRw]gremlin8650@y...[/url
    > Sent: March 28, 2004 6:32 AM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] solenoid control ???
    >
    >
    > Aside from space considerations and economics, I would look at
    > the frequency of operation. I would hesitate to use relays if
    > they are required Io operate hundreds of times / hour I would use
    > transistors. The harder you use a relay,or any mechanical device
    > the more likely it is to fail.
    >
    > pstarckt <pstarckt@y...> wrote:I am going to try to set up a
    > stamp to read rpm from a motor and be
    > able to activate 1 of 2 soleniods depending on rpm. The solenoids are
    > 12vdc 11 watts with a 13ohm coil. Would I need to use a relay for
    > this or a transistor? I'm still in the learning curve and am not sure
    > which method is the most fool proof and rugged. Any help would be
    > appreciated and thanks in advance.
    >
    > James
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > Yahoo! Finance Tax Center - File online. File on time.
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 18:00
    > N.B. The PN2907 transistor is not suitable for your task - it just happens
    > to be the one I have a datasheet handy for.
    >
    http://www.fairchildsemi.com/ds/PN/PN2907.pdf
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 19:49
    Where can I get a small air pressure sensor to easily interface
    to a BS2P24? I would like to measure pressures in the range
    ~0 to 20psi.
    TIA,
    Tom Fisher
    Dallas,TX
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 19:59
    you could try a MAP (manifold air pressure) from one of several vehicles at
    a junk yard. The sensor will bolt directly to the intake manifold and have
    three terminals, typically +5v, ground and output.

    ken
    Where can I get a small air pressure sensor to easily interface
    to a BS2P24? I would like to measure pressures in the range
    ~0 to 20psi.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-28 20:40
    > Where can I get a small air pressure sensor to easily interface
    > to a BS2P24? I would like to measure pressures in the range
    > ~0 to 20psi.

    Found it:
    http://e-www.motorola.com/webapp/sps/site/prod_summary.jsp?code=MPX4115&nodeId=0\
    1126990368716#documentation

    Thanks for the ideas.
    Tom Fisher
    BigD
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-29 01:03
    Both Jameco and Digi-Key have them.
    Digi has more choices, though.

    Mike


    --- In basicstamps@yahoogroups.com, "tboonefisher"
    <tboonefisher@s...> wrote:
    > Where can I get a small air pressure sensor to easily interface
    > to a BS2P24? I would like to measure pressures in the range
    > ~0 to 20psi.
    > TIA,
    > Tom Fisher
    > Dallas,TX
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-29 02:26
    > Both Jameco and Digi-Key have them.
    > Digi has more choices, though.
    >
    Thanks. I just ordered one.
    Tom Fisher
    BigD
Sign In or Register to comment.