Shop OBEX P1 Docs P2 Docs Learn Events
solenoid valve at 12v — Parallax Forums

solenoid valve at 12v

ArchiverArchiver Posts: 46,084
edited 2004-03-13 19:51 in General Discussion
Hi
I am new to all of this and I want to use a BS2 to control a solenoid valve at
12v.
What do I need to interface it with the BOE since it is at 5v?
Help

Kevin

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 16:03
    I am SURE someplace in one of the parallax tutorials this is covered.....In
    the mean time a no brainer solution is get a MOSFET......IRL520.

    Connect stamp output directly to the GATE
    Connect 1 meg from the GATE to ground
    Connect the SOURCE to ground
    Connect the DRAIN to the solenoid minus terminal
    Connect the solenoid positive terminal to 12 volts
    DONE.......overkill but DONE....ie....no brainer

    see www.glitchbuster.com
    I am not affiliated with glitch buster at all, but inexpensive shipping.

    ken

    Hi
    I am new to all of this and I want to use a BS2 to control a solenoid valve
    at
    12v.
    What do I need to interface it with the BOE since it is at 5v?
    Help

    Kevin


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 16:31
    Kevin,
    The no brainer solution is almost there but left off what I believe to
    be one critical component to prevent the inductive kick from the
    solonoid coil from killing your MOSFET. You need to add a garden
    variety power diode (ie, 1N4001....4005) reverse biased across the
    solonoid coil, or from drain to source.

    Case 1: diode anode to Drain, cathode to +12Volts
    or
    Case 2: diode anote to (source)ground, diode cathode to Drain

    Either one should keep your MOSFET from going west the first time you
    release the solonoid.

    Call this the "brainer" solution. Actually, it comes from years of
    experience. Have fun.

    Horace

    --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > I am SURE someplace in one of the parallax tutorials this is
    covered.....In
    > the mean time a no brainer solution is get a MOSFET......IRL520.
    >
    > Connect stamp output directly to the GATE
    > Connect 1 meg from the GATE to ground
    > Connect the SOURCE to ground
    > Connect the DRAIN to the solenoid minus terminal
    > Connect the solenoid positive terminal to 12 volts
    > DONE.......overkill but DONE....ie....no brainer
    >
    > see www.glitchbuster.com
    > I am not affiliated with glitch buster at all, but inexpensive
    shipping.
    >
    > ken
    >
    >
    > Hi
    > I am new to all of this and I want to use a BS2 to control a
    solenoid valve
    > at
    > 12v.
    > What do I need to interface it with the BOE since it is at 5v?
    > Help
    >
    > Kevin
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 17:01
    Horace brings up an important and very valid point.

    Regarding case 2, it is intrinsic to the IRL520. Diode is built in to the
    IRL520, anode to source and cathode to drain.

    Case 1 is the prefered method IMHO

    Ken\


    The no brainer solution is almost there but left off what I believe to
    be one critical component to prevent the inductive kick from the
    solonoid coil from killing your MOSFET. You need to add a garden
    variety power diode (ie, 1N4001....4005) reverse biased across the
    solonoid coil, or from drain to source.

    Case 1: diode anode to Drain, cathode to +12Volts
    or
    Case 2: diode anote to (source)ground, diode cathode to Drain

    Either one should keep your MOSFET from going west the first time you
    release the solonoid.

    Call this the "brainer" solution. Actually, it comes from years of
    experience. Have fun.

    Horace


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 17:07
    Kevin, Ken,

    Looks like I spoke too quickly. I just looked up specs for the IRL520
    MOSFET and found that they have already built in the diode (case2)
    right into the FET so that you don't need to add an external one. In
    the old days, to go without the diode was circuit suicide, but it is
    becoming much more common to see them added internal to the device
    itself as a self protection feature. I found specs at:

    http://www.fairchildsemi.com/ds/IR/IRL520A.pdf

    The reason for the diode is as I stated. It gives the current in the
    solonoid coil a place to go once you turn off the FET. Remember, laws
    of physics says you can't instantly change current through an inductor
    (the coil). This gives the current a path throught the diode and lets
    it drop gradually to zero without developing a giant reverse voltage
    spike that can damage devices. Anyway, score 1 for no-brainer!

    Horace


    --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > Kevin,
    > The no brainer solution is almost there but left off what I believe to
    > be one critical component to prevent the inductive kick from the
    > solonoid coil from killing your MOSFET. You need to add a garden
    > variety power diode (ie, 1N4001....4005) reverse biased across the
    > solonoid coil, or from drain to source.
    >
    > Case 1: diode anode to Drain, cathode to +12Volts
    > or
    > Case 2: diode anote to (source)ground, diode cathode to Drain
    >
    > Either one should keep your MOSFET from going west the first time you
    > release the solonoid.
    >
    > Call this the "brainer" solution. Actually, it comes from years of
    > experience. Have fun.
    >
    > Horace
    >
    > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > > I am SURE someplace in one of the parallax tutorials this is
    > covered.....In
    > > the mean time a no brainer solution is get a MOSFET......IRL520.
    > >
    > > Connect stamp output directly to the GATE
    > > Connect 1 meg from the GATE to ground
    > > Connect the SOURCE to ground
    > > Connect the DRAIN to the solenoid minus terminal
    > > Connect the solenoid positive terminal to 12 volts
    > > DONE.......overkill but DONE....ie....no brainer
    > >
    > > see www.glitchbuster.com
    > > I am not affiliated with glitch buster at all, but inexpensive
    > shipping.
    > >
    > > ken
    > >
    > >
    > > Hi
    > > I am new to all of this and I want to use a BS2 to control a
    > solenoid valve
    > > at
    > > 12v.
    > > What do I need to interface it with the BOE since it is at 5v?
    > > Help
    > >
    > > Kevin
    > >
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 17:22
    Hi
    Thanks for all the info.

    Kevin


    --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > Kevin, Ken,
    >
    > Looks like I spoke too quickly. I just looked up specs for the IRL520
    > MOSFET and found that they have already built in the diode (case2)
    > right into the FET so that you don't need to add an external one. In
    > the old days, to go without the diode was circuit suicide, but it is
    > becoming much more common to see them added internal to the device
    > itself as a self protection feature. I found specs at:
    >
    > http://www.fairchildsemi.com/ds/IR/IRL520A.pdf
    >
    > The reason for the diode is as I stated. It gives the current in the
    > solonoid coil a place to go once you turn off the FET. Remember, laws
    > of physics says you can't instantly change current through an inductor
    > (the coil). This gives the current a path throught the diode and lets
    > it drop gradually to zero without developing a giant reverse voltage
    > spike that can damage devices. Anyway, score 1 for no-brainer!
    >
    > Horace
    >
    >
    > --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > > Kevin,
    > > The no brainer solution is almost there but left off what I believe to
    > > be one critical component to prevent the inductive kick from the
    > > solonoid coil from killing your MOSFET. You need to add a garden
    > > variety power diode (ie, 1N4001....4005) reverse biased across the
    > > solonoid coil, or from drain to source.
    > >
    > > Case 1: diode anode to Drain, cathode to +12Volts
    > > or
    > > Case 2: diode anote to (source)ground, diode cathode to Drain
    > >
    > > Either one should keep your MOSFET from going west the first time you
    > > release the solonoid.
    > >
    > > Call this the "brainer" solution. Actually, it comes from years of
    > > experience. Have fun.
    > >
    > > Horace
    > >
    > > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > > > I am SURE someplace in one of the parallax tutorials this is
    > > covered.....In
    > > > the mean time a no brainer solution is get a MOSFET......IRL520.
    > > >
    > > > Connect stamp output directly to the GATE
    > > > Connect 1 meg from the GATE to ground
    > > > Connect the SOURCE to ground
    > > > Connect the DRAIN to the solenoid minus terminal
    > > > Connect the solenoid positive terminal to 12 volts
    > > > DONE.......overkill but DONE....ie....no brainer
    > > >
    > > > see www.glitchbuster.com
    > > > I am not affiliated with glitch buster at all, but inexpensive
    > > shipping.
    > > >
    > > > ken
    > > >
    > > >
    > > > Hi
    > > > I am new to all of this and I want to use a BS2 to control a
    > > solenoid valve
    > > > at
    > > > 12v.
    > > > What do I need to interface it with the BOE since it is at 5v?
    > > > Help
    > > >
    > > > Kevin
    > > >
    > > >
    > > > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 17:58
    Hi Kevin,

    My first question is what is the current ? AC or DC ?

    All the responses have been for DC solenoids.

    Second, is the resistance of the coil of the unit ?

    I have some 1.5 watt solenoids. 12 volts, 1.5 watts is near 700 mA
    and is way too much for a PN2222.

    I have relays that pull closer to 200mA.

    Also, depending on how often you change state of the coil, a coil
    for a solenoid or relay will use one current to operate and another
    to hold. Typically, half the rating is needed to hold the coil in
    posistion. Overheating of the semi may occur over time, but for
    short bursts a lower rated device might get you by.

    Here you are subject to manufacturinrs claims and spec sheets. One
    may rate the coil for holding current, another for actuation current.

    I've been successful on temporary project to use the 2222 for much
    larger coils than they should handle, but would use a higher rated
    MOSFET if putting out a full circuit of more than just testing.

    Dave






    --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > Kevin, Ken,
    >
    > Looks like I spoke too quickly. I just looked up specs for the
    IRL520
    > MOSFET and found that they have already built in the diode (case2)
    > right into the FET so that you don't need to add an external one. In
    > the old days, to go without the diode was circuit suicide, but it is
    > becoming much more common to see them added internal to the device
    > itself as a self protection feature. I found specs at:
    >
    > http://www.fairchildsemi.com/ds/IR/IRL520A.pdf
    >
    > The reason for the diode is as I stated. It gives the current in the
    > solonoid coil a place to go once you turn off the FET. Remember,
    laws
    > of physics says you can't instantly change current through an
    inductor
    > (the coil). This gives the current a path throught the diode and
    lets
    > it drop gradually to zero without developing a giant reverse voltage
    > spike that can damage devices. Anyway, score 1 for no-brainer!
    >
    > Horace
    >
    >
    > --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > > Kevin,
    > > The no brainer solution is almost there but left off what I
    believe to
    > > be one critical component to prevent the inductive kick from the
    > > solonoid coil from killing your MOSFET. You need to add a garden
    > > variety power diode (ie, 1N4001....4005) reverse biased across the
    > > solonoid coil, or from drain to source.
    > >
    > > Case 1: diode anode to Drain, cathode to +12Volts
    > > or
    > > Case 2: diode anote to (source)ground, diode cathode to Drain
    > >
    > > Either one should keep your MOSFET from going west the first time
    you
    > > release the solonoid.
    > >
    > > Call this the "brainer" solution. Actually, it comes from years of
    > > experience. Have fun.
    > >
    > > Horace
    > >
    > > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > > > I am SURE someplace in one of the parallax tutorials this is
    > > covered.....In
    > > > the mean time a no brainer solution is get a MOSFET......IRL520.
    > > >
    > > > Connect stamp output directly to the GATE
    > > > Connect 1 meg from the GATE to ground
    > > > Connect the SOURCE to ground
    > > > Connect the DRAIN to the solenoid minus terminal
    > > > Connect the solenoid positive terminal to 12 volts
    > > > DONE.......overkill but DONE....ie....no brainer
    > > >
    > > > see www.glitchbuster.com
    > > > I am not affiliated with glitch buster at all, but inexpensive
    > > shipping.
    > > >
    > > > ken
    > > >
    > > >
    > > > Hi
    > > > I am new to all of this and I want to use a BS2 to control a
    > > solenoid valve
    > > > at
    > > > 12v.
    > > > What do I need to interface it with the BOE since it is at 5v?
    > > > Help
    > > >
    > > > Kevin
    > > >
    > > >
    > > > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 19:15
    HI Dave
    the solenoid valve is 12v dc and says watt rating 6.9/F
    made by www.ascovalve.com
    part U8225B2V/DC
    Thanks
    Kevin

    --- In basicstamps@yahoogroups.com, "Dave Mucha" <davemucha@j...> wrote:
    > Hi Kevin,
    >
    > My first question is what is the current ? AC or DC ?
    >
    > All the responses have been for DC solenoids.
    >
    > Second, is the resistance of the coil of the unit ?
    >
    > I have some 1.5 watt solenoids. 12 volts, 1.5 watts is near 700 mA
    > and is way too much for a PN2222.
    >
    > I have relays that pull closer to 200mA.
    >
    > Also, depending on how often you change state of the coil, a coil
    > for a solenoid or relay will use one current to operate and another
    > to hold. Typically, half the rating is needed to hold the coil in
    > posistion. Overheating of the semi may occur over time, but for
    > short bursts a lower rated device might get you by.
    >
    > Here you are subject to manufacturinrs claims and spec sheets. One
    > may rate the coil for holding current, another for actuation current.
    >
    > I've been successful on temporary project to use the 2222 for much
    > larger coils than they should handle, but would use a higher rated
    > MOSFET if putting out a full circuit of more than just testing.
    >
    > Dave
    >
    >
    >
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > > Kevin, Ken,
    > >
    > > Looks like I spoke too quickly. I just looked up specs for the
    > IRL520
    > > MOSFET and found that they have already built in the diode (case2)
    > > right into the FET so that you don't need to add an external one. In
    > > the old days, to go without the diode was circuit suicide, but it is
    > > becoming much more common to see them added internal to the device
    > > itself as a self protection feature. I found specs at:
    > >
    > > http://www.fairchildsemi.com/ds/IR/IRL520A.pdf
    > >
    > > The reason for the diode is as I stated. It gives the current in the
    > > solonoid coil a place to go once you turn off the FET. Remember,
    > laws
    > > of physics says you can't instantly change current through an
    > inductor
    > > (the coil). This gives the current a path throught the diode and
    > lets
    > > it drop gradually to zero without developing a giant reverse voltage
    > > spike that can damage devices. Anyway, score 1 for no-brainer!
    > >
    > > Horace
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > > > Kevin,
    > > > The no brainer solution is almost there but left off what I
    > believe to
    > > > be one critical component to prevent the inductive kick from the
    > > > solonoid coil from killing your MOSFET. You need to add a garden
    > > > variety power diode (ie, 1N4001....4005) reverse biased across the
    > > > solonoid coil, or from drain to source.
    > > >
    > > > Case 1: diode anode to Drain, cathode to +12Volts
    > > > or
    > > > Case 2: diode anote to (source)ground, diode cathode to Drain
    > > >
    > > > Either one should keep your MOSFET from going west the first time
    > you
    > > > release the solonoid.
    > > >
    > > > Call this the "brainer" solution. Actually, it comes from years of
    > > > experience. Have fun.
    > > >
    > > > Horace
    > > >
    > > > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > > > > I am SURE someplace in one of the parallax tutorials this is
    > > > covered.....In
    > > > > the mean time a no brainer solution is get a MOSFET......IRL520.
    > > > >
    > > > > Connect stamp output directly to the GATE
    > > > > Connect 1 meg from the GATE to ground
    > > > > Connect the SOURCE to ground
    > > > > Connect the DRAIN to the solenoid minus terminal
    > > > > Connect the solenoid positive terminal to 12 volts
    > > > > DONE.......overkill but DONE....ie....no brainer
    > > > >
    > > > > see www.glitchbuster.com
    > > > > I am not affiliated with glitch buster at all, but inexpensive
    > > > shipping.
    > > > >
    > > > > ken
    > > > >
    > > > >
    > > > > Hi
    > > > > I am new to all of this and I want to use a BS2 to control a
    > > > solenoid valve
    > > > > at
    > > > > 12v.
    > > > > What do I need to interface it with the BOE since it is at 5v?
    > > > > Help
    > > > >
    > > > > Kevin
    > > > >
    > > > >
    > > > > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-13 19:51
    --- In basicstamps@yahoogroups.com, "Kev" <kevinhjones@h...> wrote:
    > HI Dave
    > the solenoid valve is 12v dc and says watt rating 6.9/F
    > made by www.ascovalve.com
    > part U8225B2V/DC
    > Thanks
    > Kevin

    12VDC @ 7 watts is 580mA or a tad too high for a PN2222 with a 500mA
    rating.

    For testing (while waiting for the MOSFETS to arrive) I would use a
    PN2222.

    for a final curcuit, use the MOSFETS listed or even a TIP120 (122?)
    that also has an internal diode.

    Dave







    >
    > --- In basicstamps@yahoogroups.com, "Dave Mucha" <davemucha@j...>
    wrote:
    > > Hi Kevin,
    > >
    > > My first question is what is the current ? AC or DC ?
    > >
    > > All the responses have been for DC solenoids.
    > >
    > > Second, is the resistance of the coil of the unit ?
    > >
    > > I have some 1.5 watt solenoids. 12 volts, 1.5 watts is near 700
    mA
    > > and is way too much for a PN2222.
    > >
    > > I have relays that pull closer to 200mA.
    > >
    > > Also, depending on how often you change state of the coil, a
    coil
    > > for a solenoid or relay will use one current to operate and
    another
    > > to hold. Typically, half the rating is needed to hold the coil
    in
    > > posistion. Overheating of the semi may occur over time, but for
    > > short bursts a lower rated device might get you by.
    > >
    > > Here you are subject to manufacturinrs claims and spec sheets.
    One
    > > may rate the coil for holding current, another for actuation
    current.
    > >
    > > I've been successful on temporary project to use the 2222 for
    much
    > > larger coils than they should handle, but would use a higher
    rated
    > > MOSFET if putting out a full circuit of more than just testing.
    > >
    > > Dave
    > >
    > >
    > >
    > >
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > > > Kevin, Ken,
    > > >
    > > > Looks like I spoke too quickly. I just looked up specs for the
    > > IRL520
    > > > MOSFET and found that they have already built in the diode
    (case2)
    > > > right into the FET so that you don't need to add an external
    one. In
    > > > the old days, to go without the diode was circuit suicide, but
    it is
    > > > becoming much more common to see them added internal to the
    device
    > > > itself as a self protection feature. I found specs at:
    > > >
    > > > http://www.fairchildsemi.com/ds/IR/IRL520A.pdf
    > > >
    > > > The reason for the diode is as I stated. It gives the current
    in the
    > > > solonoid coil a place to go once you turn off the FET.
    Remember,
    > > laws
    > > > of physics says you can't instantly change current through an
    > > inductor
    > > > (the coil). This gives the current a path throught the diode
    and
    > > lets
    > > > it drop gradually to zero without developing a giant reverse
    voltage
    > > > spike that can damage devices. Anyway, score 1 for no-brainer!
    > > >
    > > > Horace
    > > >
    > > >
    > > > --- In basicstamps@yahoogroups.com, "xibm65" <cce@t...> wrote:
    > > > > Kevin,
    > > > > The no brainer solution is almost there but left off what I
    > > believe to
    > > > > be one critical component to prevent the inductive kick from
    the
    > > > > solonoid coil from killing your MOSFET. You need to add a
    garden
    > > > > variety power diode (ie, 1N4001....4005) reverse biased
    across the
    > > > > solonoid coil, or from drain to source.
    > > > >
    > > > > Case 1: diode anode to Drain, cathode to +12Volts
    > > > > or
    > > > > Case 2: diode anote to (source)ground, diode cathode to Drain
    > > > >
    > > > > Either one should keep your MOSFET from going west the first
    time
    > > you
    > > > > release the solonoid.
    > > > >
    > > > > Call this the "brainer" solution. Actually, it comes from
    years of
    > > > > experience. Have fun.
    > > > >
    > > > > Horace
    > > > >
    > > > > --- In basicstamps@yahoogroups.com, smartdim@a... wrote:
    > > > > > I am SURE someplace in one of the parallax tutorials this is
    > > > > covered.....In
    > > > > > the mean time a no brainer solution is get a
    MOSFET......IRL520.
    > > > > >
    > > > > > Connect stamp output directly to the GATE
    > > > > > Connect 1 meg from the GATE to ground
    > > > > > Connect the SOURCE to ground
    > > > > > Connect the DRAIN to the solenoid minus terminal
    > > > > > Connect the solenoid positive terminal to 12 volts
    > > > > > DONE.......overkill but DONE....ie....no brainer
    > > > > >
    > > > > > see www.glitchbuster.com
    > > > > > I am not affiliated with glitch buster at all, but
    inexpensive
    > > > > shipping.
    > > > > >
    > > > > > ken
    > > > > >
    > > > > >
    > > > > > Hi
    > > > > > I am new to all of this and I want to use a BS2 to control a
    > > > > solenoid valve
    > > > > > at
    > > > > > 12v.
    > > > > > What do I need to interface it with the BOE since it is at
    5v?
    > > > > > Help
    > > > > >
    > > > > > Kevin
    > > > > >
    > > > > >
    > > > > > [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.