3 ms·
I enjoyed the article. Thanks! But have to ask a serious question, after telling a story. Note: I am not a licensed engineer. Sometime in the late 80's, I work
by analog31 12y ago
I enjoyed the article. Thanks! But have to ask a serious question, after telling a story. Note: I am not a licensed engineer.
Sometime in the late 80's, I worked in a lab where we needed to heat an assembly to a certain temperature, while turning off the heat during data collection to minimize stray magnetic fields. I thought, a sensor, controller, and a relay. The process delivered a lot of power to the heater, due to a necessarily short duty cycle (heating in between data points).
Guess how relays fail -- open or closed?
Guess how experiments melt.
The relay failed closed. There was probably an inductive kick in the system because it was fed by a Variac. It got so hot that it melted the solder in the vacuum joints, and set us back a month.
Since then, I have always considered any system where a single fault failure can result in the uncontrolled release of power (electrical, heat, steam, momentum, hydraulic, etc.) to be dangerous.
One of my techniques is to incorporate two controllers with different set points, so the second controller only operates as a backup. I usually wire the second controller so that it shuts down the system altogether if its set point is reached. Another technique is to design the system so it can survive running uncontrolled at full power indefinitely, but that often results in massive over-design.
Now the question: I suggest taking a long hard look at your design, and answer what could happen if: 1) The relay gets stuck in either position. 2) Your code causes the same to happen. A possible measure for the air conditioner is to set its built-in thermostat to a temperature just below your intended operating point. That way, if the relay gets stuck, the a/c will go to a reasonable temperature and just sit there. Even if you conclude that it's safe after all, you will have done a useful analysis that should become a habit.
I don't want to be a wet blanket, but I'm somewhat of a safety freak due to my early experiences.
Also, the specs for that relay don't necessarily apply to inductive loads such as motors.
- bravo22 12y agoGood concerns. One thing to add here is that often times in household HVAC system the thermostat relay doesn't handle the current for the heating/cooling element. Rather, it is the on/off relay for the main relay inside the heating/cooling device.
- analog31 12y agoYes, that's a good point. I'd still be cautious because a bug in your program could make your system run amok. And it could go either way with a home furnace: Shutting down during the winter could be as bad as running full-on, due to the danger of pipes freezing. At the very least, thinking through a failure mode analysis is a good mental exercise -- especially for folks who are accustomed to living in the world of pure software.
- foobarian 12y agoInteresting that you mention HVAC. I have had my furnace control board fail last month. The failure was in the power relay gating the power to the blower motor (which is a pretty hefty 1kW load). The relay had melted to a lump of charred plastic, and the circuit board around the relay pins turned into a hole. I guess no matter which way it failed there would've been no serious consequences (blower motor stuck on) so I classified the incident as "neat." :-)
- upofadown 12y agoPresumably the AC still has a thermostat. For this application it would be set to be much higher than the set point but it would effectively serve as the second controller. Failing that, the worst that could happen is that the space would get cold. The compressor motor itself would be thermally protected.
- dnautics 12y agoCan't you pick relays that fail open or closed, as desired? By virtue of the applied voltage=closed nature of this relay, doesn't it fail open usually?
- analog31 12y agoWhat I observed in one case was that there was an arc due to the inductive kick, which eventually roughened the contacts and caused them to weld together. So under that failure mode, whatever contacts are carrying the load would be the ones to fail shut. There are relays designed to control motors, and designs for the circuit surrounding the relays to prevent the arc. In the case of solid state relays, every one I've ever seen fail, failed shut.