A different category of project
Most hobby electronics involves low voltages from batteries or small adapters, where the main risks are heat, short circuits and damaged components. Household mains is a different category. The voltage is high enough to cause serious injury or death, and the energy available behind it is large. Because of this, mains work is regulated in many places and generally belongs to qualified people.
The point of this article is to explain why, and to steer makers toward safe alternatives. It is not a how-to. Do not use it as instructions for mains work. Rules vary by country and region, so check what applies where you live.
The shock hazard
The human body conducts electricity, and mains voltage can drive enough current through it to disrupt the heart’s rhythm, cause burns and make muscles clench so a person cannot let go. The outcome depends on factors such as the current, the path it takes through the body, how long it flows, and conditions such as wet skin. Serious harm does not require a long exposure or an unusual situation.
Several things make mains shock more likely than beginners expect:
- Damp conditions and a good connection to the ground lower the body’s resistance.
- A single mistake, such as touching one exposed conductor, can be enough, particularly if there is a path to earth.
- Metal enclosures can become live if insulation fails or a wire comes loose.
- Some parts can remain charged after unplugging. Capacitors in power supplies can hold energy, so “it’s switched off” is not the same as “it’s safe”.
Low-voltage work builds good habits, such as multimeter readings and basic checks, but those skills do not transfer automatically to mains. Using a multimeter safely on a low-voltage circuit is quite different from measuring on live household wiring, and instrument ratings and categories matter in the latter case.
The fire hazard
Mains circuits can deliver large currents. If a connection is loose, a wire is too thin, an insulation layer is damaged or a device develops a fault, heat builds up at the weak point. Resistance heating grows quickly with current, which is the same principle that makes thin wire dangerous in low-voltage builds and is covered in the discussion of fuses, wire gauge and current limits. In a mains installation, the consequences are larger, because the available current is much greater and the wiring is hidden inside walls, ceilings and enclosures.
Protection devices such as circuit breakers, fuses and residual-current devices exist in installations to limit these dangers, but they only work if the installation is correct. A device wired incorrectly, a missing earth connection or the wrong rating of protection can leave a hazard that looks fine from the outside and fails when it matters.
Why regulations exist
Many countries have rules governing electrical work in homes and buildings. The details differ widely. Some require certain work to be carried out or inspected by licensed electricians, some set standards for products placed on the market, and some are linked to building codes and insurance conditions. They exist because mistakes cause deaths, injuries and fires, and because faults can harm people other than the person who did the work, such as later occupants, neighbours or firefighters.
Practical consequences include:
- Some mains work may be illegal for unlicensed people in your area.
- Home insurance may be affected if a fire is traced to unapproved electrical work.
- Products sold for use on mains typically have to meet safety standards and carry markings, which is why certified supplies matter.
Check with your local authority or a licensed professional about what is allowed where you live. Do not rely on general internet advice for this.
Why “I’ll be careful” is not enough
Experience helps, but mains safety is more than caution. It depends on knowing the standards, using the right components and tools, testing correctly, and understanding how protection devices, earthing and fault conditions interact. A skilled person with the proper training and test equipment still follows procedures such as isolating and verifying that a circuit is dead before working on it. Hobbyists often lack both the training and the test equipment, and the gaps tend to show up only when something goes wrong.
Home-made mains devices are especially risky because the failures are often silent. A badly insulated joint can work for months before it fails. A homemade power supply may seem to work perfectly while lacking the spacing and insulation that make it safe.
Safer ways to build
Makers have good alternatives that avoid exposure to mains voltage altogether.
Use certified ready-made supplies. A tested adapter or supply converts mains to a low voltage inside a sealed, approved enclosure, so your project only ever sees the safe side. The reasoning is set out in the article on using ready-made power supplies. Such certified power supplies are cheap compared with the risk.
Use batteries where suitable. Portable and low-power projects can run from cells, with their own care requirements covered by safe charging practices and other guidance in this cluster.
Use certified mains products for switching. To control a lamp or appliance, consider commercially made, approved products designed for the purpose, used according to their instructions and ratings, instead of wiring your own. Smart plugs and approved controllers are examples of products designed to keep the mains parts sealed. Check that the load is within their rating and follow the instructions.
Hire a professional. If a project genuinely needs new mains wiring, such as a new socket, a fixed installation or work on a distribution board, a qualified electrician should do it or at least sign it off.
Stay on the low-voltage side. Many projects, including those based on microcontroller boards, work entirely at low voltage. Keep your experiments there.
If you must work near mains equipment
Sometimes an item, such as an old appliance, is involved. Basic precautions include unplugging it and never relying on a switch alone, avoiding opening sealed supplies and appliances, working dry and never alone, and keeping a clear workspace as set out in guidance on a safe home workshop setup. If anything is uncertain, stop and ask a qualified person. Do not defeat safety features such as earth pins, fuses or residual-current devices.
What to do in an emergency
If someone receives a mains shock, do not touch them while they might still be in contact with the source. Switch off the supply if it can be done safely, or use proper emergency procedures, and call the emergency services. Anyone who has had an electric shock generally needs medical assessment even if they seem fine. Local first-aid training is the right place to learn the details.
The short version
Mains voltage can kill and start fires, regulations exist to reduce those risks, and the safest approach for a maker is to use certified products and leave mains installation to qualified electricians. Your skills are best spent on the low-voltage side, where mistakes are far less likely to be catastrophic, but even there safety, manufacturer guidance and local rules apply.