Deutsch   English   Français   Italiano  
<vmjt1f$2huom$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Chris Elvidge <chris@internal.net>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: USB controlled mains switch
Date: Sun, 19 Jan 2025 22:06:38 +0000
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <vmjt1f$2huom$1@dont-email.me>
References: <TjgqpoLGRDjnFwvW@ku.gro.lloiff> <vmjjim$2euqk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 19 Jan 2025 23:06:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="da0f6c8677eb9761e1404ce8cb9d28c4";
	logging-data="2685718"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/Wwy6NBzjFYnAF7PCWFEO2ABdEBtQ9FfI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:mATQQzW0I5D4MI10zLJTcYX2WS4=
In-Reply-To: <vmjjim$2euqk$1@dont-email.me>
Content-Language: en-GB
Bytes: 2800

On 19/01/2025 at 19:24, R.Wieser wrote:
> Adrian,
> 
>> ... the options seem to fall into two categories, either a relay device
>> which means having to rewire the device (which I'd rather avoid), priced
>> around 30Euros or one that sits in line (between the device and the
>> supply)
> 
> Whut ?   As others have already mentioned, you could take a short extension
> cord and put the relais* in that cord.  Makes it reusable too.
> 
> * also consider a solid-state relais.
> 
> Also, you say USB controlled.  How do you imagine that ?  As some kind of
> special USB device (for which it is hard to find a driver) ?

As I have said previously, it's easy. E.g.
https://www.amazon.co.uk/Control-Intelligent-Channel-Controller-Support-default/dp/B07PWPF2DT
Load 'usbrelay' to control (apt-get install usbrelay')

> 
> Perhaps consider a simple USB-to-serial thingly*, where you can use the DTR
> line to signal the relais board to switch on.  After that you can use the
> RPi build-in serial API to switch the relais.
> 
> * I would strongly suggest to use one of RPi's gazillion I/O pins for it,
> but as you specifically mentioned USB controlled ...
> 
> The only thing you will need to do (and which costs money) is to put the
> relais (and the USB-to-signal-line thingamagochy ?) in a shielding plastic
> box.  220 is lethal even when you touch it by accident. :-)   And make sure
> the 220v and the relais-driving low-voltage electronics are well seperated.
> Your RPi doesn't like 220v either. :-o
> 
> Regards,
> Rudy Wieser
> 
> 



-- 
Chris Elvidge, England
I CANNOT ABSOLVE SINS