Shop OBEX P1 Docs P2 Docs Learn Events
Shaking Relays — Parallax Forums

Shaking Relays

ArchiverArchiver Posts: 46,084
edited 2003-06-17 15:12 in General Discussion
Hi everyone,

I've made a program to read in 3 switch values and the status of the
switches determines how the output pins must be.

PIN 0=switch 1
PIN 1=switch 2
PIN 2=switch 3
PIN 4=output 1
PIN 5=output 2
PIN 6=output 3

I programmed my BS2P-24 as following:

low 4
low 5
low 6

main:
inA=outB
goto main


I use a ULN-2003A to amp. the voltage also the current. With this voltage I
control 3 relays. The problem is that the relays start to shake when I
download the program into my controller. I guess that the command brings the
outputs very short on a 0 status even when my input voltage is 5V. Does
anybody have an idea to solve my program so the relays won't shake anymore.

Kindly regards,

Tim


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-06-17 15:11
    When you reprogram the BASIC Stamp the I/O pins are reset to inputs -- this
    is what's causing your relays to chatter until you make relay control pins
    outputs and low. What you can do to prevent the chatter is connect 10K
    pull-down
    resistors to the relay-control pins. These will hold the inputs to the
    ULN2003 low until your Stamp program makes a change to a pin's output state.

    -- Jon Williams
    -- Parallax


    In a message dated 6/17/2003 8:55:17 AM Central Standard Time,
    peter.christiaen@s... writes:

    > Hi everyone,
    >
    > I've made a program to read in 3 switch values and the status of the
    > switches determines how the output pins must be.
    >
    > PIN 0=switch 1
    > PIN 1=switch 2
    > PIN 2=switch 3
    > PIN 4=output 1
    > PIN 5=output 2
    > PIN 6=output 3
    >
    > I programmed my BS2P-24 as following:
    >
    > low 4
    > low 5
    > low 6
    >
    > main:
    > inA=outB
    > goto main
    >
    >
    >
    > I use a ULN-2003A to amp. the voltage also the current. With this voltage I
    > control 3 relays. The problem is that the relays start to shake when I
    > download the program into my controller. I guess that the command brings the
    > outputs very short on a 0 status even when my input voltage is 5V. Does
    > anybody have an idea to solve my program so the relays won't shake anymore.
    >
    > Kindly regards,
    >
    > Tim



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-17 15:12
    June 17, 2002 I am not exactly sure what you mean by shake, but I ran into a
    problem once when I tried to operate four relays at the same time. When I
    operated them sequentially there was no problem. When I tried to turn them on at
    the same time they would all chatter ( turn off and on very quickly). The
    problem was fixed by going to a more powerful power supply, one that was capable
    of running the Stamp & relays & LED without dropping its voltage. I hope that
    helps. Larry

    Original Message
    From: TLD-NV [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=mGobMPxXtTTxJvLjX2fMAY_mTcbkXc_RzU2ndDROUCIVdM13nEUdHkFSdM1eAed7S54yKfTf80BSUbQwjhqLIP3WMQ]peter.christiaen@s...[/url
    Sent: Tuesday, June 17, 2003 8:52 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Shaking Relays


    Hi everyone,

    I've made a program to read in 3 switch values and the status of the
    switches determines how the output pins must be.

    PIN 0=switch 1
    PIN 1=switch 2
    PIN 2=switch 3
    PIN 4=output 1
    PIN 5=output 2
    PIN 6=output 3

    I programmed my BS2P-24 as following:

    low 4
    low 5
    low 6

    main:
    inA=outB
    goto main


    I use a ULN-2003A to amp. the voltage also the current. With this voltage I
    control 3 relays. The problem is that the relays start to shake when I
    download the program into my controller. I guess that the command brings the
    outputs very short on a 0 status even when my input voltage is 5V. Does
    anybody have an idea to solve my program so the relays won't shake anymore.

    Kindly regards,

    Tim


    [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.


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