Shop OBEX P1 Docs P2 Docs Learn Events
clicking relay — Parallax Forums

clicking relay

ArchiverArchiver Posts: 46,084
edited 2001-01-27 21:28 in General Discussion
Friends, may have to come back to you on this one! Have built an interface
board for the BS2 with a couple of 5v relays and a ULN 2803a. driver. With
the command:
high 1
' relay 1 pulls up and the motor trundles backwards.....Great!
BUT there is an audible clicking of the relay all the time. The board has
its own 9v power supply, grounded to the Stamp. Stamp's battery has been
replaced. But why the clicking please?


FURTHERMORE if we add:
high 0
' relay 2 pulls up
high 1
' relay 1 pulls up and the motor trundles forwards....Great! But still the
clicking?
Finally, with the single command high 0 the reversing relay alone pulls up
but still this 1hz or so clicking all the time!! Please help or advise if
you can. Thanks.
Paul.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-01-27 19:15
    Two things:

    1)
    Can you tell if you are resetting? Try this:

    debug "reset",cr
    high 0


    If you are reseting, you might trying some of the suggestions in the Stamp
    FAQ http://www.al-williams.com/wd5gnr/stampfaq.htm

    2)
    Is this the Stamp's sleepy reset issue? If you stop your program, the
    outputs hold but every few seconds the Stamp resets, turns the outputs to
    inputs, and then realizes it was asleep, puts the outputs back and sleeps
    again. This is very visible if you put an LED on the output.

    Try this:

    debug "reset",cr
    high 0
    stopp: goto stopp

    Now you aren't sleeping, so no blinking.

    Hope that helps.

    Regards,

    Al Williams
    AWC
    * January sale final days: expand your Stamp I/O for 1/3 off, or find out
    how to save 50% on a PAK-I math coprocessor





    >
    Original Message
    > From: Haskew family [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=pqMyfV1ZpTrqbIhyfLhDLCsbyP6uDVjS0SZEvwQH3rLnyAmAyzXhhoew-fSc1i2vNJOLSy72fvW9O9zi3kZYMk5tRU0]PandL.Haskew@b...[/url
    > Sent: Saturday, January 27, 2001 9:36 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] clicking relay
    >
    >
    > Friends, may have to come back to you on this one! Have built an interface
    > board for the BS2 with a couple of 5v relays and a ULN 2803a. driver. With
    > the command:
    > high 1
    > ' relay 1 pulls up and the motor trundles backwards.....Great!
    > BUT there is an audible clicking of the relay all the time. The board has
    > its own 9v power supply, grounded to the Stamp. Stamp's battery has been
    > replaced. But why the clicking please?
    >
    >
    > FURTHERMORE if we add:
    > high 0
    > ' relay 2 pulls up
    > high 1
    > ' relay 1 pulls up and the motor trundles forwards....Great! But still the
    > clicking?
    > Finally, with the single command high 0 the reversing relay alone pulls up
    > but still this 1hz or so clicking all the time!! Please help or advise if
    > you can. Thanks.
    > Paul.
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-01-27 21:28
    Try something like this:

    top:
    hi 1
    goto top

    If you have just:
    hi 1

    When the program reaches the last line of code, it will start over at the
    beginning. When it does this, however, the pin is changed to an input
    for a split second. Creating the infinite loop should solve this
    problem.

    Aaron

    On Sat, 27 Jan 2001 15:36:16 -0000 "Haskew family"
    <PandL.Haskew@b...> writes:
    > Friends, may have to come back to you on this one! Have built an
    > interface
    > board for the BS2 with a couple of 5v relays and a ULN 2803a.
    > driver. With
    > the command:
    > high
    > 1
    > ' relay 1 pulls up and the motor trundles backwards.....Great!
    > BUT there is an audible clicking of the relay all the time. The
    > board has
    > its own 9v power supply, grounded to the Stamp. Stamp's battery has
    > been
    > replaced. But why the clicking please?
    >
    >
    > FURTHERMORE if we add:
    > high
    > 0
    > ' relay 2 pulls up
    > high
    > 1
    > ' relay 1 pulls up and the motor trundles forwards....Great! But
    > still the
    > clicking?
    > Finally, with the single command high 0 the reversing relay alone
    > pulls up
    > but still this 1hz or so clicking all the time!! Please help or
    > advise if
    > you can. Thanks.
    > Paul.
    >
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.