3 ms·
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
by detaro 10y ago
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.
- existencebox 10y agoI 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)
- jasoncchild 10y agoYeah normally open relays with standard switches wired in parallel.
- janci 10y agoJust don't connect one phase to the relay and different phase to the switch.
- analog31 10y agoI 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.
- kamil_gorski 10y agoAnd 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.
- analog31 10y agoI've had SSR's stuck shut too.
- beagle3 10y agoMost 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.
- aexaey 10y agoFrom 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.
- g_hajdukiewicz 10y agoHey! 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 https://goo.gl/sJw9F1 .