Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vmitf7$2719a$10@dont-email.me>
Deutsch   English   Français   Italiano  
<vmitf7$2719a$10@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: The Natural Philosopher <tnp@invalid.invalid>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: USB controlled mains switch
Date: Sun, 19 Jan 2025 13:07:51 +0000
Organization: A little, after lunch
Lines: 55
Message-ID: <vmitf7$2719a$10@dont-email.me>
References: <TjgqpoLGRDjnFwvW@ku.gro.lloiff> <6pru5l-oju1.ln1@q957.zbmc.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 19 Jan 2025 14:07:51 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3b24013de1d74da0f1eb7d95525187f1";
	logging-data="2327850"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+JsE1X0kerdhZ2QENLHu4Ir1YcIsQ0ODU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6lGHeF8cS0JALo7bd2puKZPcE+0=
In-Reply-To: <6pru5l-oju1.ln1@q957.zbmc.eu>
Content-Language: en-GB
Bytes: 3284

On 19/01/2025 09:04, Chris Green wrote:
> Adrian <bulleid@ku.gro.lioff> wrote:
>> I'm looking for a USB controlled mains switch (230V AC) that I can
>> connect to a PI to turn a mains power supply on and off.
>>
>> I've done a bit of digging around on the net, and 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).  The latter
>> appears to be in excess of 100Euros, which is considerably more than I
>> want to pay.
>>
> I don't understand the difference. Surely anything that's going to
> turn something on/off needs to be "one that sits in line (between the
> device and the supply)" doesn't it?
> 
> Do you mean (the ones that cost 100 Euros or more) something that
> already has a mains plug and socket on it?  I think they're going to
> be expensive simply because they aren't much in demand.  What 'the
> world' wants is a WiFi connected switch and they're two a penny of
> course.
> 
> 
>> Any suggestions on where to look ?  I'm not interested in a wireless
>> solution, as it is likely to be used in places where signals are not
>> reliable.
>>
> I think you'll probably have to bite the bullet and get a relay board
> of some sort. Does it **have** to be USB?  There's lots of quite neat
> relay hats for the Pi.
> 

They aren't especially able to handle 230V at sane currents.

I made my own board up.  Featuring onboard PSU and mains chokes and 
filers and a fuse, a 13A capable relay and a pi PICO. Also has an 
optional temperature sensor hooked up to the ADC

Can send you the Gerbers if interested


-- 
If you tell a lie big enough and keep repeating it, people will 
eventually come to believe it. The lie can be maintained only for such 
time as the State can shield the people from the political, economic 
and/or military consequences of the lie. It thus becomes vitally 
important for the State to use all of its powers to repress dissent, for 
the truth is the mortal enemy of the lie, and thus by extension, the 
truth is the greatest enemy of the State.

Joseph Goebbels