The Rules Change at the Wall Outlet

A battery product that fails badly gets warm and stops working. A plug-in product that fails badly can start a fire, and the legal exposure follows the company that put its name on the label. That difference is why the design process for a mains-connected product looks nothing like the process for a USB-powered one.

In the US the nominal supply is 120 V at 60 Hz, with 240 V split-phase for larger appliances. If you plan to export, the same product also has to work on 230 V at 50 Hz. Designing for the wider input from the start costs little; retrofitting it after tooling costs a redesign.

Insulation: The Barrier Between the User and the Line

Every mains product is built around one question: what separates a person's finger from the line conductor, and how many independent failures would remove that separation?

Class I products use a protective earth connection. Exposed metal is bonded to ground with a low-impedance path, so a fault trips the branch breaker instead of energizing the housing. These need a three-conductor cord and a production ground bond test verified at 25 A or more.

Class II products use double or reinforced insulation and no earth. Nothing the user can touch is conductive, or if it is, two independent barriers stand between it and the line. Most consumer plug-in products go this route because a two-prong cord is cheaper and the ground bond test disappears from the line. The price is stricter spacing and a housing that becomes a safety-critical part.

Decide before layout starts. Switching class after the PCB is routed usually means a new board and a new enclosure tool. Patient-connected equipment adds a further layer, governed by IEC 60601 electrical safety with means-of-patient-protection requirements far beyond a consumer appliance.

Creepage and Clearance on the Board

Clearance is the shortest distance through air between two conductors. Creepage is the shortest path along an insulating surface. Both are specified by the applicable standard as a function of working voltage, pollution degree, insulation type, and altitude, and both are where inexperienced layouts fail their first review.

As a working reference for an enclosed product at pollution degree 2, basic insulation between line and neutral at 120 V wants roughly 1.5 mm, while reinforced insulation between the primary side and a user-accessible secondary wants on the order of 6.4 mm creepage. Do not treat those as the specification. Pull the table from the standard your product is listed to, usually UL 62368-1, and apply it with the correct working voltage rather than the nominal line voltage.

Layout habits that survive a safety review: keep the entire primary side in one clearly bounded region of the board, cut a slot under the transformer and the optocoupler to extend the creepage path, remove copper pours and silkscreen from isolation barriers, and never route a secondary trace through the primary region. Mark the barrier on the fabrication drawing so the board house does not put a test point in it.

Protection: Fuse, Inrush, and Surge

A protection scheme is a sequence, not a single part. Work from the plug inward.

  • Fuse. Sized for steady-state current with margin for inrush, with an interrupt rating high enough for a real fault, commonly 1,500 A for a branch circuit. Place it in the line conductor ahead of everything else, and expect to need a slow-blow type.
  • Inrush limiting. A bulk capacitor charging from a cold start briefly looks like a short circuit. An NTC thermistor is the cheap answer under a few hundred watts; above that, a relay-bypassed resistor avoids the warm-restart problem where a quick power cycle finds the NTC still hot and no longer limiting.
  • Surge. A metal oxide varistor across line and neutral absorbs the transients residential wiring delivers regularly. Fuse it or use a thermally protected part, because a degraded MOV fails as a smoldering short.
  • Line filtering. An X capacitor across the line and a common-mode choke are usually mandatory to pass conducted emissions. Add a bleeder resistor across the X cap so the plug pins are not live after unplugging. Filter changes are the most common fix after a failed scan and drive most of the EMC testing cost.

Certified Power Supply or Custom Design

For most products the answer is an off-the-shelf certified supply, either an external wall adapter or an internal open-frame module. It arrives already listed, already tested for emissions, and already carrying the paperwork your safety agency wants. The added part cost, often 8 to 25 dollars, buys back months of schedule.

Designing your own primary side makes sense in three situations: very high volume, a form factor no module fits, or an unusual output such as multiple isolated rails. Understand what you are taking on. A custom offline supply adds a transformer with safety-critical winding construction, a magnetics vendor qualification, a longer certification file, and full responsibility for the isolation barrier. Expect three to six extra months and a five-figure engineering budget.

Enclosure, Materials, and Heat

The housing is part of the safety system. Plastics near live parts typically need a UL 94 V-0 or V-1 flammability rating with the grade and color combination actually listed, not just the resin family. Openings are governed by probe tests: a jointed test finger must not reach a hazardous part. Screw bosses holding the housing closed become safety-critical fasteners.

Line-voltage products also run warmer, and every safety standard sets maximum touch temperatures for accessible surfaces, typically around 158 F (70 C) for metal and higher for plastic. Vent design gets evaluated twice, once for component life and once for user contact, which is why thermal management and enclosure design have to be settled together rather than in sequence. Products that combine heat and optics, such as fixtures covered in LED lighting product development, face this constraint hardest.

Listing, Testing, and Cost

In the US, a plug-in product is normally expected to carry a mark from a Nationally Recognized Testing Laboratory. Retailers require it and some jurisdictions inspect for it. Testing includes dielectric withstand, leakage current, temperature rise under fault and abnormal conditions, mechanical strength, and flammability, plus a periodic factory inspection.

Budget 8,000 to 30,000 dollars and three to five months for a straightforward consumer product using a certified internal supply, more if you designed your own primary side or the product has heaters or motors. Production adds a mandatory per-unit hipot test, typically 1,500 V AC or its DC equivalent for basic insulation, plus a ground bond test for Class I units. Fold both into the end-of-line test plan alongside the rest of the product safety testing requirements, and confirm early which marks your channel demands using the checklist in which certifications a new electronic product needs.

Get the Line-Voltage Design Reviewed Early

Projects House designs and reviews mains-connected products end to end: insulation class, spacing on the layout, protection scheme, supply make-or-buy, enclosure material and probe compliance, and a test plan the lab will accept the first time. Send your schematic and enclosure concept through our contact form for a pre-submission review.