To: | "P. W. Schnoor" <[email protected]> |
---|---|
Subject: | Re: LF: Windows software to drive a relay at a given time? |
From: | Chris Wilson <[email protected]> |
Date: | Thu, 12 Apr 2018 09:21:15 +0100 |
Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:message-id:to:subject:in-reply-to:references:mime-version :content-transfer-encoding; bh=isMlaAJCPMphc3LYbRDZmz52kdTAl8fNfjAR2sRGLWM=; b=Oh+sWsGS8bkFlb+gu3G7Rt0bt7IcVECUScmQEKecoQTDXH5t32Z/iXfmT33P9uop9T JGZxtE9tl29in0q78/B71bIyCzwVQ2nhbBlZgY8Un1i4wOtusQR+GV0754J1hcMYD5ue xC8lfG1rdmdGZ4XUXEB1g8s8jQhsFuGd22XcdImQzUZcvPPNSH2ZaJnCwkLqhfCED1nJ KMIqj19Erw/LVYLTTf1TXnpfEyuf8efn8Y2pvA8d9/IuQ10w3q0Dk6gw8SI9eppunNWR yFdfWKCdnZ59dUPt1HK7fpwT10zNb12lub28c2opKzbPOtAhD471UDV+adfovzYHYBrW DWNQ== |
In-reply-to: | <[email protected]> |
References: | <[email protected]> <[email protected]> |
Reply-to: | [email protected] |
Sender: | [email protected] |
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> |
---|---|---|
|
Previous by Date: | Re: LF: W1VD amp help - more waveforms, [email protected] |
---|---|
Next by Date: | Re: LF: Windows software to drive a relay at a given time?, Chris Wilson |
Previous by Thread: | Re: LF: Windows software to drive a relay at a given time?, Roger Rehr W3SZ |
Next by Thread: | Re: LF: Windows software to drive a relay at a given time?, Andy Talbot |
Indexes: | [Date] [Thread] [Top] [All Lists] |