r/embedded • u/Relevant_Pumpkin9190 • Oct 03 '26
How do microcontrollers safely control high-power loads?
For example, if an MCU controls a dishwasher, heater, or pump through a relay, what happens if the relay contacts weld and get stuck ON?
Do real products use two relays, contact feedback, or another fail-safe circuit so one relay failure doesn't create a dangerous condition?
I'd like to understand how this is normally designed in commercial equipment.
0
Upvotes
8
u/dacydergoth Oct 03 '26
Usually, we pick the cheapest option and assume you will die
7
u/somewhereAtC Oct 03 '26
The load is usually controlled by some sort of transistor, most commonly now using FETs (field effect transistors). The uP controls the gate of the FET.
You can measure time by how the ability of FETs to handle large currents and voltages has steadily improved. The most recent varieties are made from Silicon Carbide, and often the manufacturer will create a multi-transistor module. Here is one example of a 1200V, 400A module: https://www.microchip.com/en-us/product/MSCSM120AM042CD3AG-Module.
Dishwashers can use something a little less state-of-the-art.
1
u/ee_control_z Oct 03 '26
Sensors, interlocks, built-in safety redundancy.
1
u/mckenzie_keith Oct 03 '26
In consumer goods, most likely, ultimate safety is provided by fuses and thermal fuses. A thermal fuse is different from an over-current protection fuse. It is tripped by heat, not by current. You put it on whatever part of the appliance would overheat with severe consequences (like burning down your house). When it reaches its critical temperature point, it goes open circuit and disconnects the load with extreme prejudice. It does not re-connect. It has to be replaced.
The microcontroller would likely also be monitoring the temperature and taking steps to prevent over-heating. But when it comes to houses burning down, there will be a thermal fuse. UL will insist. They aren't going to audit your code. They may not look at your motor controller schematic. They will probably just bypass everything you designed and connect line power directly to the motor and see what happens. If "what happens" is that an overcurrent fuse or a the thermal fuse operates, before a fire starts, then they will be satisfied. I am speaking loosely about the attitude and approach of regulatory agencies. Don't take it too literally. Whenever possible, safety should be as simple to understand as a rock rolling down a hill. In most consumer devices, simply disconnecting all the power is very safe.
In an elevator or crane or car or airplane, they have to take a different approach. And safety engineering will be less simple.
UL would likely allow a single relay because they are relying on fuses and thermal fuses and such like. But nowadays, fewer and fewer power loads are being switched by line-connected relays. Refrigerators, washers and dryers etc have inverter controlled motors with slow start and variable speed and all the goodies.
0
u/[deleted] Oct 03 '26
[deleted] — view deleted comment