Return to KLUBNL.PL main page

rsgb_lf_group
[Top] [All Lists]

Re: LF: Windows software to drive a relay at a given time?

To: LineOne <[email protected]>
Subject: Re: LF: Windows software to drive a relay at a given time?
From: Andy Talbot <[email protected]>
Date: Thu, 12 Apr 2018 09:57:20 +0100
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=k5P95lQYq5uSRra8lY3qd6cDQm36rzpID10Ri2qnPgc=; b=MQTtIq9kAXk95/P6JwhJVYDfXWi1B0tqIFMdvO+ZhL4fvdRUalj7+B0CF5XdwU5UJB AAmzrgKBCGinE800SZjuT1JiJqxddz0cqg2D19xST2VHiUCk2GBhl5th9A747x1NUPMM +vWwCu/Q+tCIUgN2W5CONRYnLwT7/om2ydbZ3mMjSR7Ib2Mt99J6056+NiJ39rppawU/ pmah3sbC/bLyxN3pNdtALvN7U41ZcdDTJk+yEomiSqka087dWKbpXXKQ4BvVd3QJPKJV FHKBXOqBNNd9tiDPXbuI31kz+/uvnSrNdrtv30ituLCkSxqvpZFV5SXi7pbM+r+sSuwL 2RkA==
In-reply-to: <[email protected]>
References: <[email protected]> <[email protected]> <[email protected]>
Reply-to: [email protected]
Sender: [email protected]
I used to have quite a few of an older type of those - given to me surplus.   An RS232 drive signal will drive one quite happily - they are designed to be driven from logic signals.
The 25A rating would be enough for your PSU, I think mine were rated at a bit more.

Andy  G4JNT

On 12 April 2018 at 09:21, Chris Wilson <[email protected]> wrote:


Hello Peter,

Neat, and thank you, but clicking on Andy's exe file is temptingly
simple to a PC ignoramous like myself ;) I wonder if a serial port
would drive something like this directly, or would a big input surge
be likely to kill it?

http://uk.farnell.com/opto-22/240d25/relay-solid-state-dc-25a-280vac/dp/1839015

Wednesday, April 11, 2018, 6:03:07 PM, you wrote:

> Hi Chris,

> On 11.04.2018 12:16, you wrote:
>> ...
>> Software to close a relay at a given time, perhaps via the serial port?
>> ...

> Seven lines of "Python" and a relay circuit connected to com1, RTS-pin:

> # import libraries:
> import serial # see https://pythonhosted.org/pyserial/
> import time   # needed for time delay ("sleep()")

> # Create a connection object to com1:
> com = serial.Serial('com1', baudrate=9600, bytesize=serial.EIGHTBITS,
> parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, timeout=1,
> xonxoff=0, rtscts=0 )

> com.setRTS(True)  # CLICK!

> time.sleep(60)    # Wait 60 sec. or whatever

> com.setRTS(False) # CLACK!

> com.close()
> # END

> Use the standard system tool "Windows Task Scheduler" to run it at a given
> time. I did not check it on Windows, but on Linux (device name changed and
> using cron) it works driving an old rtty-relay ("Kleinpolrelais") from
> Siemens directly.

> Peter, df3lp




--
Best regards,
 Chris                            mailto:[email protected]



<Prev in Thread] Current Thread [Next in Thread>