Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Chris Green Newsgroups: comp.sys.raspberry-pi Subject: Re: USB controlled mains switch Date: Sun, 19 Jan 2025 09:04:06 +0000 Lines: 33 Message-ID: <6pru5l-oju1.ln1@q957.zbmc.eu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net iXHiJ3Phi8Hvy0UgZRq3NAk6Xz6IPgYcuDexhAwUbtC/8hfjc= X-Orig-Path: not-for-mail Cancel-Lock: sha1:7tzT8vtJer7h6YaZJ5IJOsmXGTk= sha256:wRwanKaoyWdse8m6o5T4etor/z01S4Qjv1O0n6t7N6Q= User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-29-amd64 (x86_64)) Bytes: 2154 Adrian 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. -- Chris Green ยท