Shop OBEX P1 Docs P2 Docs Learn Events
Any ideas? — Parallax Forums

Any ideas?

ArchiverArchiver Posts: 46,084
edited 2003-04-03 14:10 in General Discussion
Up front, I have no experience with basic stamps, and the only
programming I've had was a little QBasic about 6 years ago. I am
looking to control 4, 12VDC solenoid air valves. I want the chip to
control the 4 valves in a set pattern when the "start" button is
pressed. Ideally it needs to complete one cycle (open and close
each of the 4 valves in order) in a second or less. I then need to
have a multi-position "toggle switch", so that when in one
position
it will perform the cycle as above, then when the switch is in the
other positions, the chip will perform a different programmed cycle
for each switch position. (Example: Position 1= valve order
1,2,3,4/ Position 2= valve order 1&2,3&4./ Position 3= valve order
1234 all at once.) Then lastly, I need another "toggle
switch" that
will give the number of cycles. (Example: Position 1= Cycle repeated
until button released/ Position 2=Cycle three times / Position 3=
Cycle one time/) Before I bought a basic stamp, I wanted to know if
this could even be done. While I learn fast, please keep in mind
I'm new to all this. Thanks much, look forward to hearing your
ideas.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-02 23:22
    In a message dated 4/2/2003 2:17:48 PM Pacific Standard Time,
    swat0fficer@y... writes:

    > Up front, I have no experience with basic stamps, and the only
    > programming I've had was a little QBasic about 6 years ago. I am
    > looking to control 4, 12VDC solenoid air valves. I want the chip to
    > control the 4 valves in a set pattern when the "start" button is
    > pressed. Ideally it needs to complete one cycle (open and close
    > each of the 4 valves in order) in a second or less. I then need to
    > have a multi-position "toggle switch", so that when in one
    > position
    > it will perform the cycle as above, then when the switch is in the
    > other positions, the chip will perform a different programmed cycle
    > for each switch position. (Example: Position 1= valve order
    > 1,2,3,4/ Position 2= valve order 1&2,3&4./ Position 3= valve order
    > 1234 all at once.) Then lastly, I need another "toggle
    > switch" that
    > will give the number of cycles. (Example: Position 1= Cycle repeated
    > until button released/ Position 2=Cycle three times / Position 3=
    > Cycle one time/) Before I bought a basic stamp, I wanted to know if
    > this could even be done. While I learn fast, please keep in mind
    > I'm new to all this. Thanks much, look forward to hearing your
    > ideas.
    >

    What experience do you have with electronics? Your answer will help to
    determine what level of help is needed.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-02 23:28
    I have little to no experience. I've done a small amount of
    soldering and messing around with small stuff from radio shack. No
    real knowledge though.
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 00:53
    Yes the bs2 stamp can handle this project very well. you need to know
    what current your 12vdc solenoid uses to select an NPN transistor for
    the stamp to switch on or off the air valve. Also you need to know if
    you apply the 12v to the solenoid is the air on or off. 2 - 3
    position switches and a push button switch and the rest is
    programming.



    --- In basicstamps@yahoogroups.com, "swat0fficer" <swat0fficer@y...>
    wrote:
    > Up front, I have no experience with basic stamps, and the only
    > programming I've had was a little QBasic about 6 years ago. I am
    > looking to control 4, 12VDC solenoid air valves. I want the chip
    to
    > control the 4 valves in a set pattern when the "start" button is
    > pressed. Ideally it needs to complete one cycle (open and close
    > each of the 4 valves in order) in a second or less. I then need
    to
    > have a multi-position "toggle switch", so that when in one
    > position
    > it will perform the cycle as above, then when the switch is in the
    > other positions, the chip will perform a different programmed cycle
    > for each switch position. (Example: Position 1= valve order
    > 1,2,3,4/ Position 2= valve order 1&2,3&4./ Position 3= valve
    order
    > 1234 all at once.) Then lastly, I need another "toggle
    > switch" that
    > will give the number of cycles. (Example: Position 1= Cycle
    repeated
    > until button released/ Position 2=Cycle three times / Position 3=
    > Cycle one time/) Before I bought a basic stamp, I wanted to know
    if
    > this could even be done. While I learn fast, please keep in mind
    > I'm new to all this. Thanks much, look forward to hearing your
    > ideas.
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 01:28
    Thanks, should I purchase a basic stamp 2 starter kit? There
    appears to be a number of different ones, what is best for what i'm
    looking for? And these NPN transistors... the solenoid draws
    1.3watts. Will I get the idea of what how to set this circut up
    from the basic stamp manual, or will I need to start doing some
    homework?




    --- In basicstamps@yahoogroups.com, "Kenneth Smith"
    <kensmith52@y...> wrote:
    > Yes the bs2 stamp can handle this project very well. you need to
    know
    > what current your 12vdc solenoid uses to select an NPN transistor
    for
    > the stamp to switch on or off the air valve. Also you need to know
    if
    > you apply the 12v to the solenoid is the air on or off. 2 - 3
    > position switches and a push button switch and the rest is
    > programming.
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 01:45
    You could also use a solid state relay, it requires 5V to drive the input
    and one can switch some big loads with them.

    Andy
    Original Message
    From: "swat0fficer" <swat0fficer@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, April 03, 2003 00:28
    Subject: [noparse][[/noparse]basicstamps] Re: Any ideas?


    > Thanks, should I purchase a basic stamp 2 starter kit? There
    > appears to be a number of different ones, what is best for what i'm
    > looking for? And these NPN transistors... the solenoid draws
    > 1.3watts. Will I get the idea of what how to set this circut up
    > from the basic stamp manual, or will I need to start doing some
    > homework?
    >
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Kenneth Smith"
    > <kensmith52@y...> wrote:
    > > Yes the bs2 stamp can handle this project very well. you need to
    > know
    > > what current your 12vdc solenoid uses to select an NPN transistor
    > for
    > > the stamp to switch on or off the air valve. Also you need to know
    > if
    > > you apply the 12v to the solenoid is the air on or off. 2 - 3
    > > position switches and a push button switch and the rest is
    > > programming.
    >
    >
    > 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.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 02:10
    If a 12V solenoid is rated at 1.3 W, then it is drawing about 0.11 Amps.
    (power = voltage x current) So you could use a NPN transistor which would
    comfortably handle that amount of current. A PN2222 is a great match - it's
    very inexpensive, and can easily handle several times that current. Connect
    a 1k ohm resistor in series from the Stamp I/O pin to the transistor base.
    The emitter is connected to ground, and the collector is connected to one
    side of the solenoid. The other side of the solenoid is connected to +12 V.
    A diode, such as a 1N4001 (or 1N4002.. 3... etc.), should be connected
    across the solenoid to prevent high voltage spikes when the transistor turns
    off. The diode's cathode is connected to the +12V side of the solenoid.
    When your software makes the I/O pin go high, the transistor will turn on,
    and the solenoid will be energized.

    As far as the BS2... my preference is the OEM BS2. It plugs right into a
    solderless breadboard for circuit development, already has a DB9 connector
    for the serial cable to your PC (so you don't need a carrier board), has a
    substantial voltage regulator so you'll have +5V available for your
    circuitry, and can easily be repaired if you have an "oops" (so you don't
    have to send it to Parallax for repair.

    If you want to download the Stamp manual from the Parallax website, all you
    really need is the OEM BS2, a DB9 serial cable, a power supply, and a
    solderless breadboard. There are other ways, of course, but this gives you
    a good setup for a very reasonable cost.

    Randy

    www.gltichbuster.com


    Original Message
    From: "swat0fficer" <swat0fficer@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, April 02, 2003 4:28 PM
    Subject: [noparse][[/noparse]basicstamps] Re: Any ideas?


    > Thanks, should I purchase a basic stamp 2 starter kit? There
    > appears to be a number of different ones, what is best for what i'm
    > looking for? And these NPN transistors... the solenoid draws
    > 1.3watts. Will I get the idea of what how to set this circut up
    > from the basic stamp manual, or will I need to start doing some
    > homework?
    >
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Kenneth Smith"
    > <kensmith52@y...> wrote:
    > > Yes the bs2 stamp can handle this project very well. you need to
    > know
    > > what current your 12vdc solenoid uses to select an NPN transistor
    > for
    > > the stamp to switch on or off the air valve. Also you need to know
    > if
    > > you apply the 12v to the solenoid is the air on or off. 2 - 3
    > > position switches and a push button switch and the rest is
    > > programming.
    >
    >
    > 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.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 02:30
    Big thanks to everyone, anyother ideas are more than welcome, looks
    like i've got some good information to start with. Thanks!



    --- In basicstamps@yahoogroups.com, "Randy Jones" <randyjones@w...>
    wrote:
    > If a 12V solenoid is rated at 1.3 W, then it is drawing about 0.11
    Amps.
    > (power = voltage x current) So you could use a NPN transistor
    which would
    > comfortably handle that amount of current. A PN2222 is a great
    match - it's
    > very inexpensive, and can easily handle several times that
    current. Connect
    > a 1k ohm resistor in series from the Stamp I/O pin to the
    transistor base.
    > The emitter is connected to ground, and the collector is connected
    to one
    > side of the solenoid. The other side of the solenoid is connected
    to +12 V.
    > A diode, such as a 1N4001 (or 1N4002.. 3... etc.), should be
    connected
    > across the solenoid to prevent high voltage spikes when the
    transistor turns
    > off. The diode's cathode is connected to the +12V side of the
    solenoid.
    > When your software makes the I/O pin go high, the transistor will
    turn on,
    > and the solenoid will be energized.
    >
    > As far as the BS2... my preference is the OEM BS2. It plugs right
    into a
    > solderless breadboard for circuit development, already has a DB9
    connector
    > for the serial cable to your PC (so you don't need a carrier
    board), has a
    > substantial voltage regulator so you'll have +5V available for your
    > circuitry, and can easily be repaired if you have an "oops" (so
    you don't
    > have to send it to Parallax for repair.
    >
    > If you want to download the Stamp manual from the Parallax
    website, all you
    > really need is the OEM BS2, a DB9 serial cable, a power supply,
    and a
    > solderless breadboard. There are other ways, of course, but this
    gives you
    > a good setup for a very reasonable cost.
    >
    > Randy
    >
    > www.gltichbuster.com
    >
    >
    >
    Original Message
    > From: "swat0fficer" <swat0fficer@y...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Wednesday, April 02, 2003 4:28 PM
    > Subject: [noparse][[/noparse]basicstamps] Re: Any ideas?
    >
    >
    > > Thanks, should I purchase a basic stamp 2 starter kit? There
    > > appears to be a number of different ones, what is best for what
    i'm
    > > looking for? And these NPN transistors... the solenoid draws
    > > 1.3watts. Will I get the idea of what how to set this circut up
    > > from the basic stamp manual, or will I need to start doing some
    > > homework?
    > >
    > >
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "Kenneth Smith"
    > > <kensmith52@y...> wrote:
    > > > Yes the bs2 stamp can handle this project very well. you need
    to
    > > know
    > > > what current your 12vdc solenoid uses to select an NPN
    transistor
    > > for
    > > > the stamp to switch on or off the air valve. Also you need to
    know
    > > if
    > > > you apply the 12v to the solenoid is the air on or off. 2 - 3
    > > > position switches and a push button switch and the rest is
    > > > programming.
    > >
    > >
    > > 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.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
    > >
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 03:55
    It sounds like a simple darlington array ULN2003, with it's 7 outputs
    will handle the load from 7 Stamp pins.

    your inputs for sheer simplicity could also be one channel per 'state'

    or if you do just a smidigen of programming, 3 pins could represent 8
    states for one input while 2 othe pins could be 4 stats, remeber on
    state is probably an off posistion.

    Since you don't mention the speed, it seems the standard BS2 could
    handle he whole thing.

    seems your basic task is to verify how many total outputs you need
    and how many inputs.

    If this is all you need, considder starting with the board of
    education. It should have pleanty of room for all your chips and
    would make life a lot easier.

    Dave





    --- In basicstamps@yahoogroups.com, "swat0fficer" <swat0fficer@y...>
    wrote:
    > Thanks, should I purchase a basic stamp 2 starter kit? There
    > appears to be a number of different ones, what is best for what i'm
    > looking for? And these NPN transistors... the solenoid draws
    > 1.3watts. Will I get the idea of what how to set this circut up
    > from the basic stamp manual, or will I need to start doing some
    > homework?
    >
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Kenneth Smith"
    > <kensmith52@y...> wrote:
    > > Yes the bs2 stamp can handle this project very well. you need to
    > know
    > > what current your 12vdc solenoid uses to select an NPN transistor
    > for
    > > the stamp to switch on or off the air valve. Also you need to
    know
    > if
    > > you apply the 12v to the solenoid is the air on or off. 2 - 3
    > > position switches and a push button switch and the rest is
    > > programming.
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 05:33
    In a message dated 4/2/2003 4:31:26 PM Pacific Standard Time,
    swat0fficer@y... writes:

    > Thanks, should I purchase a basic stamp 2 starter kit? There
    > appears to be a number of different ones, what is best for what i'm
    > looking for? And these NPN transistors... the solenoid draws
    > 1.3watts. Will I get the idea of what how to set this circut up
    > from the basic stamp manual, or will I need to start doing some
    > homework?

    What city are you in? I am in CA. If you give me your phone number I would be
    glad to explain some of the details.

    The BS2 starter kit is excellent and the support from this forum is
    unparalled. The Parallax kit will have you up and running in one weekend.
    That's with little or no programming and electronics experience. The Parallax
    information will start you off with real easy projects and build from there.


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-03 14:10
    Check out this web site for a board which has the peripheral devices that
    should work with your application. I've done several applications like
    this. Use the 'button' command to monitor the inputs and jump to a
    subroutine to give you the output conditions you require. A bs2 should work
    fine with your design.

    http://www.geocities.com/jimforkin2003/

    jim

    Original Message
    From: swat0fficer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=bSdTrWbFbwNbSEUqPNvzG8d36mCWKKOo3CTAqgLuwF1SPyrxqRWD4yGYYPAhhtxzBb3BDvDX5bnirnKxuIEbEw]swat0fficer@y...[/url
    Sent: Wednesday, April 02, 2003 5:16 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Any ideas?


    Up front, I have no experience with basic stamps, and the only
    programming I've had was a little QBasic about 6 years ago. I am
    looking to control 4, 12VDC solenoid air valves. I want the chip to
    control the 4 valves in a set pattern when the "start" button is
    pressed. Ideally it needs to complete one cycle (open and close
    each of the 4 valves in order) in a second or less. I then need to
    have a multi-position "toggle switch", so that when in one
    position
    it will perform the cycle as above, then when the switch is in the
    other positions, the chip will perform a different programmed cycle
    for each switch position. (Example: Position 1= valve order
    1,2,3,4/ Position 2= valve order 1&2,3&4./ Position 3= valve order
    1234 all at once.) Then lastly, I need another "toggle
    switch" that
    will give the number of cycles. (Example: Position 1= Cycle repeated
    until button released/ Position 2=Cycle three times / Position 3=
    Cycle one time/) Before I bought a basic stamp, I wanted to know if
    this could even be done. While I learn fast, please keep in mind
    I'm new to all this. Thanks much, look forward to hearing your
    ideas.


    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.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.