Shop OBEX P1 Docs P2 Docs Learn Events
Need help with my RELAY — Parallax Forums

Need help with my RELAY

ArchiverArchiver Posts: 46,084
edited 2004-05-15 05:58 in General Discussion
Hello Everyone

Please I need help or any direction.

What I have:
Opto 22 - 8 channels
Basic Stamp Interface
Relay output 110V

What I did:
9 volt to interface
5+ Volt to opto 22 (from interface)
I installed a relay in number 2
I install a 6 volts C.C. lamp in the relay to turn on/off by the
program.

The program:
I var word
for i=1 to 10
high 2
pause 1000
low 2
next

Results:
The lamp turn on (never turn off)
But the led of the relay turn on and off ten times.

Am I doing something bad?

I will appreciate any help about my situation.

Thanks

Pedro Zepeda
pzepedag@h...
pzepedag@y...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-05-14 22:35
    Hello,
    Unless there is a error in the wiring try a (pause 1000) under
    the
    (low 2) before the (next). The relay maybe switching so fast the 110
    device is not having enough time to turn off.



    Stephen Swanson
    Technical Support Manager
    Parallax, Inc.
    599 Menlo Drive, #100
    Rocklin, CA 95765
    Phone (916) 624-8333

    Original Message
    From: pzepedag [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=i3-qU7AiuE6nErzJVEACr2DrSyX-sq3okLM6YZ012ywkBnkr38X6m7GH5Lq5P6G6Vhbh7hhBllQ8fX8O]pzepedag@y...[/url
    Sent: Friday, May 14, 2004 12:26 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Need help with my RELAY

    Hello Everyone

    Please I need help or any direction.

    What I have:
    Opto 22 - 8 channels
    Basic Stamp Interface
    Relay output 110V

    What I did:
    9 volt to interface
    5+ Volt to opto 22 (from interface)
    I installed a relay in number 2
    I install a 6 volts C.C. lamp in the relay to turn on/off by the
    program.

    The program:
    I var word
    for i=1 to 10
    high 2
    pause 1000
    low 2
    next

    Results:
    The lamp turn on (never turn off)
    But the led of the relay turn on and off ten times.

    Am I doing something bad?

    I will appreciate any help about my situation.

    Thanks

    Pedro Zepeda
    pzepedag@h...
    pzepedag@y...











    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







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-14 23:19
    Hi,

    If I had to write your code I would put in a PAUSE 1000 just after
    LOW 2, before the 'NEXT'.

    In your code as it is now the program jumps from LOW 2 to HIGH 2
    imediately. That is why it does not switch off the lamp :-).

    Regards,

    Klaus

    --- In basicstamps@yahoogroups.com, "pzepedag" <pzepedag@y...> wrote:
    > Hello Everyone
    >
    > Please I need help or any direction.
    >
    > What I have:
    > Opto 22 - 8 channels
    > Basic Stamp Interface
    > Relay output 110V
    >
    > What I did:
    > 9 volt to interface
    > 5+ Volt to opto 22 (from interface)
    > I installed a relay in number 2
    > I install a 6 volts C.C. lamp in the relay to turn on/off by the
    > program.
    >
    > The program:
    > I var word
    > for i=1 to 10
    > high 2
    > pause 1000
    > low 2
    > next
    >
    > Results:
    > The lamp turn on (never turn off)
    > But the led of the relay turn on and off ten times.
    >
    > Am I doing something bad?
    >
    > I will appreciate any help about my situation.
    >
    > Thanks
    >
    > Pedro Zepeda
    > pzepedag@h...
    > pzepedag@y...
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-15 05:58
    It appears as though you should have a pause after "low 2"

    pzepedag <pzepedag@y...> wrote:Hello Everyone

    Please I need help or any direction.

    What I have:
    Opto 22 - 8 channels
    Basic Stamp Interface
    Relay output 110V

    What I did:
    9 volt to interface
    5+ Volt to opto 22 (from interface)
    I installed a relay in number 2
    I install a 6 volts C.C. lamp in the relay to turn on/off by the
    program.

    The program:
    I var word
    for i=1 to 10
    high 2
    pause 1000
    low 2
    next

    Results:
    The lamp turn on (never turn off)
    But the led of the relay turn on and off ten times.

    Am I doing something bad?

    I will appreciate any help about my situation.

    Thanks

    Pedro Zepeda
    pzepedag@h...
    pzepedag@y...











    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!?
    SBC Yahoo! - Internet access at a great low price.

    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.