News for hackers. Stuff that matters.
Re:How we built a Smart Office system based on Raspberry Pi by detaro on Saturday October 22, 2016 @08:15PM (#12771219)
Good to see in a DIY-solution:

> The light control set up is fail-safe. If something with the RPi goes terribly wrong, we could still operate the lights in the “classic” analog way.

(I wish they'd explained how they do it, but I assume they use latching relays to switch the actual lights, so RPis and light switches can work in parallel)

Using the chrome debugging protocol for the remote screens is also quite clever.

Re:How we built a Smart Office system based on Raspberry Pi by g_hajdukiewicz on Sunday October 23, 2016 @06:46AM (#12772938)
Hey! I was happy to be designing this beauty (and using it everyday in our office). It's nothing more than just a "stair switch" configuration, where one of the manual switches was substituted with a relay. So we have all SPDT manual switches on the walls, and SPDT relays connected with them in our control cabinet. Every switch/relay can change state of the receiver (in this case a LED lamp) at any time. So even if relays or RPIs fail we can still be using manual switches. More info here https://goo.gl/sJw9F1 .
Re:How we built a Smart Office system based on Raspberry Pi by aexaey on Sunday October 23, 2016 @05:27AM (#12772731)
From what I understood looking at the photos in the article, "relays" are some fancy-looking external box. It is quite possible that those are "pulse relays", i.e. RPi sends a short voltage pulse to switch relay on, then another short pulse over the same wire to switch off.

From there all you need is two (or more) diodes to handle multiple pulse inputs. Some pulse relays even have diodes built-in (i.e. can handle multiple inputs from the get-go).

You can easily spot this sort of installation - wall-mounted light switches only go one way, and return to original position as soon as let go. And each press changes on/off state - sort of how Caps Lock works.

Re:How we built a Smart Office system based on Raspberry Pi by existencebox on Saturday October 22, 2016 @11:26PM (#12771733)
I have Rpis controlling my various plant-grow-lamps around the house; the relays they switch are set to fail-open so if they fall over I can go back to manual control; so you probably assume correctly. Now if the relays themselves get sad I'd probably be in for a bad time but fixing that seems like a reduction problem? (I speak as someone clueless about actual EE beyond treating it like legos)
Re:How we built a Smart Office system based on Raspberry Pi by beagle3 on Sunday October 23, 2016 @12:34AM (#12771973)
Most relays are rated for a "number of switches", usually in the few hundreds-of-thousands for both mechanical and SSDs. If you switch twice a day (on/off), you've got a few hundred years.

Note, however, that switching voltages/currents higher than rated will likely shorten the life of your relay.

Re:How we built a Smart Office system based on Raspberry Pi by analog31 on Sunday October 23, 2016 @12:15AM (#12771916)
I don't know what kind of relays you're using, but most relays tend to fail in a closed position, so it's worth considering what happens if a light is turned on continuously. Also, hardware or software failure in the RPi could turn on all of the lights in your house, e.g., if the same software running on every unit encounters a bug.
Re:How we built a Smart Office system based on Raspberry Pi by kamil_gorski on Sunday October 23, 2016 @08:25AM (#12773244)
And for those cases I decided to place wall switches in parallel. As automation fails you can still operate all lights with classic, wall switch, way.

Also, solution for jamming relays are SSRs. In practice there were issues only with two biggest light zones with multiple lamps switched at the same time.

Re:How we built a Smart Office system based on Raspberry Pi by analog31 on Sunday October 23, 2016 @10:07AM (#12773611)
I've had SSR's stuck shut too.
Re:How we built a Smart Office system based on Raspberry Pi by jasoncchild on Sunday October 23, 2016 @12:04AM (#12771880)
Yeah normally open relays with standard switches wired in parallel.
Re:How we built a Smart Office system based on Raspberry Pi by janci on Sunday October 23, 2016 @04:57AM (#12772660)
Just don't connect one phase to the relay and different phase to the switch.