Breaking just one of the rules in this video can mean a failed certification test, a pile of returns, or a battery fire in a customer’s home.
I’ve put together the 21 most important hardware design rules you should never break, covering your schematic, PCB layout, power supply, firmware, and enclosure.
Some of them look tiny, like a cheap regulator that can drain a battery in about a week while your product is doing nothing.
One of them is now against the law in parts of the world, and the last three can actually hurt somebody.
And for every rule, I’ll tell you exactly what to do instead.
You don’t have to remember all 21 of these rules on your own, because I put together a free checklist that covers every one of them, so you can run your own design through it before you order boards.
Table of Contents
Rule #21 – NEVER Put Connectors on Opposite Edges of the Board
Connector placement can decide whether your product passes radiated emissions testing, even though it looks like a purely mechanical choice.
Even a solid ground plane has a little resistance and inductance, so noise currents flowing across it create tiny voltage differences from one side of the board to the other.
With one cable on the left edge and another on the right, that voltage difference drives the two cables like the arms of an old rabbit-ear TV antenna.
A difference of just a few millivolts across the board can be enough to push a product over the limit.
Group your cable connectors close together on one edge, so all the cables sit at nearly the same ground voltage, and keep noisy circuits like regulators and clocks from sitting between them.
If your connectors truly have to go on opposite edges, pay extra attention to the ground and shield connections near each one, and add filtering where those lines need it.
Connector locations usually get locked in during enclosure design, so make this decision then, not during layout.
Rule #20 – NEVER Ship With the Watchdog Timer Turned Off
The watchdog timer is built into just about every microcontroller on the market, and unfortunately most products ship with it turned off.
A watchdog is a simple countdown that resets the chip unless your firmware keeps resetting the counter, which is sometimes called petting the watchdog.
If your code hangs, the counter stops getting reset, so the timer runs out and the chip reboots itself.
Without a watchdog, if the microcontroller hangs it stays in that hung state until someone cycles the power.
And firmware hangs for all kinds of reasons that never show up in your own testing, like an I2C sensor holding the data line low or a rare buffer overflow that only happens once a week.
The customer sees a product that just stops working, and most of them will return it rather than power cycle it.
The mistake I see even when people turn the watchdog on is resetting it from a timer interrupt.
That interrupt keeps firing even when the main loop is completely stuck, so the watchdog never trips and you’ve gained nothing.
Reset the watchdog from the main loop, and only after you’ve confirmed every critical task is still running.
Rule #19 – NEVER Design a Board Without Test Points
A board with no test points can’t be tested in production.
That means you’re either shipping units that were never verified, or you’re paying someone to probe every single board by hand.
Factories test boards using a fixture with spring-loaded pogo pins, and those pins need dedicated copper pads to land on.
If you didn’t put those pads in your layout, there’s nowhere for the pins to go, and adding them later means a new board revision.
The good news is test points are basically free, since they’re just small exposed copper circles placed on your signals and power rails.
Add them to every power rail, every communication bus, and anything you’d need for programming or debugging the board.
Test points are also a lifesaver during debugging, especially with leadless packages like QFNs and BGAs where the pins are hidden underneath the chip and there’s nothing to probe.
Rule #18 – NEVER Ignore Quiescent Current in a Battery Product
Quiescent current is the small amount of current a regulator draws just to keep itself running, even when your product is doing nothing.
In a battery product that spends most of its life asleep, it can be the biggest drain on the battery.
Take the AMS1117, a cheap linear regulator that shows up in a lot of designs because it’s on so many development boards.
It can draw around 5mA just sitting there, which would drain a 1,000mAh battery in about 8 days even if everything else in your product was turned off.
Low-power regulators can draw less than 1uA, which turns the regulator into a tiny part of your battery budget instead of the biggest part.
Regulators aren’t the only culprit, since a voltage divider that measures the battery or an LED left on can draw current around the clock too.
I learned how hard a tiny bit of extra current can be to track down while working on a low quiescent current regulator design at TI, where I spent weeks hunting current the simulations said shouldn’t be there.
It turned out to be a parasitic transistor in the physical layout, something nothing in the schematic could have shown me.
So don’t trust your schematic for sleep current, and measure it on your prototype with a meter that can read microamps.
Rule #17 – NEVER Leave the Board Without Stitching Vias
Stitching vias are the rows of ground vias that tie your ground planes together across the board.
Without them, ground currents on different layers can’t take the shortest path back to their source, and the gaps between your planes start acting like slots that leak radiation.
Stitching vias along the board edges also form a fence that helps contain noise inside the board.
I recently reviewed a board that looked clean everywhere else but had almost no stitching vias, and we caught it right before the fab order went out.
Adding them cost nothing, and it meaningfully improved that product’s odds of passing FCC testing on the first try.
So sprinkle ground stitching vias generously across the board, especially along the edges, around any high-speed routing, and around any RF circuits or antenna feedlines.
Rule #16 – NEVER Leave the Debug Port Open With No Readout Protection
The debug port on a microcontroller, usually SWD or JTAG, is how you program and debug the chip during development.
Ship a product with that port wide open and anyone with a debugger can pull your entire firmware off the chip in seconds, and that’s your whole product in a file.
For a lot of products the hardware is the easier part to copy, especially if you aren’t using any custom designed chips, so your firmware is often the only thing standing between you and a knockoff.
Don’t make it easy for them to copy that too.
Almost every chip family has a fix built in, and it’s usually one setting.
STM32 has readout protection levels, and Nordic parts have an access port protection setting.
The ESP32 needs a permanent fuse that disables the debug port, plus flash encryption to keep the firmware itself unreadable.
Most product creators never turn it on, usually because nobody wants to lose the ability to debug a returned unit.
Set it as the final step in your production programming, after the firmware is loaded and tested.
Just be careful with the permanent options some chips offer, like the highest readout level on most STM32 parts, which can never be undone even by you, so pick the level that blocks readout but still lets you do a full erase for warranty repairs.
Rule #15 – NEVER Trust Snap Fits Tuned on Your 3D Printer
Everyone has done this: print a part, test the snap fit, tweak the model by a fraction of a mm, and print it again until it closes with a perfect click.
The problem is that all of that tuning was specifically for your printer and the filament or resin you printed with.
Production molded ABS or polycarbonate has different stiffness, different friction, and different shrinkage, so the snap that works perfectly on your printer might not close at all in the production plastic.
And since printed snaps tend to break along the layer lines, people beef them up to survive on the printer, which leaves them too stiff to flex properly once they’re molded in tougher plastic.
A member of my Hardware Academy ran into exactly this issue with snap fits, and after our review he decided to go with three plain screw holes instead, to reduce the amount of snap fit optimization needed.
Snap fits can take a lot of iterations to get right even at the mold level, so if you don’t absolutely have to have them, screws tend to be simpler.
If snap fits are required for your design, then be sure to test any critical snaps in the actual plastic you’ll be molding.
CNC machining is a good way to do that, because you can have a prototype machined from real ABS or polycarbonate and get a much better feel for how the production snap will behave.
And leave yourself some room to adjust the fit after the first molded samples come back.
Rule #14 – NEVER Star-Ground a Mixed-Signal Board Because a Textbook Said So
Star grounding means running a separate ground connection from each part of the circuit back to one central point.
It’s classic advice for audio and power electronics, so engineers often carry it over to boards with microcontrollers and radios.
I’ve made this mistake myself, and years ago I even recommended star grounding in one of my own videos.
It sounds like the careful, disciplined way to ground a board, which is exactly why it’s such an easy trap to fall into.
The catch is that those separate ground connections usually end up as long traces, and fast signals need their return path to stay close to the signal.
At high frequencies, return current follows the path with the lowest inductance, and that path is directly under the signal trace on the plane below it.
A star layout takes that path away, so the return current is forced into a long detour back to the central point, and that big loop turns into an antenna.
Star grounding still has its place in audio and power circuits, including small local connections around a switching regulator, but it’s not a replacement for the ground plane under your fast signals.
Instead, use one solid ground plane under all your signal routes, and control noise with where you place your parts and how short you keep the current loops.
Rule #13 – NEVER Skip ESD Protection on External Connections
A product that works perfectly on your bench can start coming back dead once it’s in customers’ hands and they start plugging in cables.
The cause is usually static electricity, or ESD, and a person can carry thousands of volts without ever feeling a zap.
Every chip does have some ESD protection built into its pins, but that protection is only meant to get it through handling and assembly at the factory.
It’s not built to survive a customer who walks across the carpet and touches your USB port.
If you’re selling in Europe, the CE lab will even zap your product with thousands of volts on purpose to make sure it survives.
So any signal that runs to a connector, or to exposed metal a person can touch, needs an ESD protection diode placed right where that signal enters the board.
For fast signals like USB data lines, pick a low-capacitance part so the protection doesn’t mess up the signal.
Power inputs need a TVS diode, which stands for transient voltage suppressor, and it clamps voltage spikes before they can reach the rest of your circuit.
Those spikes happen more often than you’d think, because just plugging in a power adapter can make the input voltage overshoot for an instant, sometimes to almost double its normal level.
Pick a TVS that stays off at your normal input voltage but clamps below the maximum voltage your regulator can handle.
These diodes cost a few cents each, which is nothing next to a batch of returns.
Rule #12 – NEVER Ignore Undercuts in a Molded Part
An undercut is any feature that traps the part in the mold, like a snap fit, a side hole, or a groove around the outside of the part.
Your printer builds these without any problems, because 3D printing doesn’t require the part to be removed from a mold.
But a basic mold only opens in one direction, and an undercut physically locks the part inside.
Molders can solve this with side actions, which are extra pieces of the mold that slide in from the side and pull out of the way before the part ejects.
They work, but every side action adds cost to the mold, adds a mechanism that wears out, and adds one more thing that can go wrong on every single cycle.
So before you accept a side action, try these two workarounds.
The first is to redesign the feature so it isn’t an undercut at all, which is possible more often than people think.
The second one is less obvious: put a hole in the wall directly below the undercut, and the mold can form the feature through that hole with no side action needed.
That one trick has saved people thousands of dollars in tooling, and once you know about it, you’ll start spotting those holes under the snap fits in commercial products everywhere.
Rule #11 – NEVER Trust a Capacitor’s Printed Value
Ceramic capacitors are in almost every power supply, and most product creators assume a 10uF capacitor gives them 10uF.
But the common ceramic types, like X5R and X7R, lose capacitance as you put DC voltage across them, and this effect is called DC bias.
A small 10uF ceramic capacitor rated for 6.3V can lose well over half its value at 5V, leaving you with something closer to 3uF.
That’s a big problem for regulators, because most of them need a minimum amount of output capacitance to stay stable.
Fall below it and an LDO can start to oscillate, or a switching regulator can produce much more ripple than you expected.
Capacitor makers like Murata and TDK publish DC bias curves for their parts, so check what you’ll really get at your operating voltage before you pick one.
A larger package or a second capacitor can help, but go by the DC bias curve, not just the voltage rating.
Rule #10 – NEVER Ship Without a Secure, Recoverable Firmware Update Path
Firmware bugs are about the only bugs you can fix after the product ships without getting units back from customers, but only if you built a way to do it.
A surprising number of products ship with no update path at all, so the first serious bug you find becomes a permanent feature of every unit you’ve sold.
The other version of this mistake is almost worse, an update path with no security on it, where the device accepts any firmware image somebody pushes to it.
That means anyone who figures out your update protocol can load their own code onto your customers’ devices.
A proper update path needs two things.
First, every firmware image has to be signed, and the device has to check that signature before it runs any of the new code.
Second, the update has to be recoverable, so a failed download or a power loss halfway through doesn’t leave the unit non-functional.
The standard way to do that is keeping two copies of the firmware in flash, so the device runs the old one until the new one is verified and then switches over.
That also means you need room for two copies of your firmware, either in the microcontroller’s internal flash or in an external flash chip, so keep it in mind when you’re choosing a microcontroller.
Most modern chip families come with a bootloader framework that handles this, but you have to set it up before the first unit leaves the factory.
Rule #9 – NEVER Skip Input Protection
Input protection is what keeps your product alive when a customer does something you didn’t plan for.
And customers will plug in the wrong adapter, put batteries in backwards, and connect cables while the power’s already on.
Barrel jacks are a common problem, since a 12V adapter often has the exact same plug as a 5V one, and most 5V circuits won’t survive it.
For reverse polarity, a Schottky diode in series with the input works, as long as you can afford to lose a few tenths of a volt.
If you can’t afford that drop, a P-channel MOSFET wired for reverse polarity protection does the same job with almost no voltage loss.
For the wrong adapter, an overvoltage protection chip can disconnect the input before the high voltage reaches the rest of your circuit, and a TVS diode handles quick voltage spikes.
A fuse or a resettable fuse, called a PTC, sized to protect your traces and wiring, helps make sure a short circuit turns into a dead product instead of a melted one.
None of these parts cost much, but leaving them out means returns, bad reviews, and units that die the first time someone grabs the wrong adapter.
Rule #8 – NEVER Put Copper Under the Antenna
Copper placed under an antenna will kill your wireless range.
An antenna works by coupling energy into the space around it, and a ground plane or any copper sitting underneath detunes the antenna and absorbs the energy before it ever leaves the board.
Every antenna and every pre-certified wireless module has a keepout zone defined in its datasheet, which is an area where you’re not allowed to put copper, traces, or components on any layer.
The same goes for metal mounting screws and standoffs, so keep those away from the antenna too, since metal that close will detune it just like copper does.
This one also has a certification angle, because a pre-certified module is only certified when it’s used the way the datasheet specifies.
Violate the keepout, and the module in your product no longer performs as certified, which can come back to bite you during compliance testing.
Look at any dev board for a wireless module and you’ll find a bare region around the antenna, and you should copy that keepout exactly in your own layout.
Rule #7 – NEVER Break the Ground Plane Under a Signal
Ground plane breaks sneak in all the time, like a slot cut so a trace can squeeze through, a cutout around a mounting hole, or a row of vias whose clearance holes merge into one long gap.
None of these look like a problem in your layout tool, but return current wants to flow directly under its signal.
Any break in the plane under that signal forces the return current to detour around the gap.
That detour adds inductance, creates a loop that radiates, and can couple noise into other signals that share the same detour.
Cutting your ground into separate analog and digital sections creates this same kind of break for any signal that crosses between them.
And when a signal changes layers and switches to a different reference ground plane, which is the plane its return current flows on, that return current has to jump from one plane to the other.
If there’s no ground via nearby to make that jump, the return current takes a long detour, even though both planes look perfectly solid in your layout.
This is also why two-layer boards make grounding so hard, since every trace you route on the bottom layer cuts a slot through your ground plane.
On a standard 1.6mm two-layer board, the ground plane also sits much farther below your signal traces than it does on a four-layer board, so the return loops are bigger even when the plane is solid.
Unless you can keep almost all of your routing on the top layer, a four-layer board with a dedicated ground plane is usually the better choice.
When a board fails radiated emissions testing, the cause is often a single slot in the plane under one clock line or switching signal.
So pour your ground plane solid under your signal routes and keep it that way, except for keepout areas a datasheet tells you to clear, like the area under an antenna.
Before you send your board out, hide every layer except ground and look for gaps, slots, and rows of vias that have merged together.
Then check that every fast signal runs over unbroken copper from start to finish.
Rule #6 – NEVER Use a Bare Wireless Chip in Your First Product
ESP32 bare chips cost less than modules, and that price difference tempts a lot of first-time product creators.
But you still have to add the parts the module already includes, like the crystal, the flash chip, and the antenna circuit, so the real savings per board is smaller than it looks.
The bigger cost is certification, since a bare chip design needs full FCC radio testing plus the equivalent for other countries, and that often runs well over $10,000.
If your RF layout fails a test, you pay for a new board spin and another round of testing.
Even if you save a dollar per board, $10,000 in testing means selling ten thousand units just to break even.
So for a first product, use a precertified module, and save the bare chip for when your sales volume justifies the extra work.
And if size is the issue, look at Espressif’s smaller MINI modules before you take on RF design yourself.
Rule #5 – NEVER Ship One Default Password on Every Unit
This one is now against the law in parts of the world.
Shipping every unit with the same default login, like admin and password, was standard practice for years, and manufacturers even sometimes printed it in the manual so customers could get into their settings.
The problem is that attackers know those default logins too, and there are automated tools that scan the internet for devices still using them.
Since April 2024 the UK has banned universal default passwords on connected consumer products, with fines up to ten million pounds or 4% of global revenue.
California has required unique or user-set passwords on connected devices that can be logged into remotely since 2020.
And in Europe the new cybersecurity rules for internet-connected wireless products, which took effect in August 2025, treat a shared default password as a failure of the standard.
So in practice that means no CE mark through the normal self-certification route.
The fix is a unique password per unit, generated at the factory and printed on the label, or forcing the customer to set their own the first time they power it on.
Rule #4 – NEVER Use More Separate Plastic Pieces Than You Need
This one multiplies across your whole product.
Your printer makes a five-piece enclosure feel free, because printing five parts costs about the same as printing one.
But every separate plastic piece in your design needs its own mold, and every mold costs thousands of dollars, often tens of thousands.
The molds for my own product cost over $100,000.
My manufacturer believed in the product enough to finance that cost themselves and amortize it by charging me an extra dollar per unit for the first 100,000 units.
That deal saved my launch, but it also taught me exactly what every extra plastic piece costs.
The fix is to design your product to require the fewest separate plastic pieces possible.
Combine parts wherever you can, and use a stock part wherever one will do the job, so you’re not paying for a mold you don’t need.
And if you’re stuck with a few small pieces, ask your molder about a family mold, which forms several different parts in one mold as long as they’re all about the same size.
Rule #3 – NEVER Leave a MOSFET Gate Floating During Reset
Every rule so far can break your product.
These last three can hurt somebody.
When power first comes up, most microcontroller pins start out as high impedance inputs, which means they aren’t driving anything.
They stay that way until the firmware sets them up, which can take a few milliseconds, or a lot longer on chips with a slow boot.
The same thing happens every time the chip resets.
If that pin is the only thing holding a MOSFET gate off, the gate is now floating.
It drifts to whatever voltage leakage and nearby noise push it to.
That can be enough to turn the MOSFET partly on.
A MOSFET is often what switches power to a device outside the board, and if that’s something like a motor, a heater, or a pump, it can be running before a single line of your code has run.
So every gate and every driver enable pin gets a resistor that holds it off, usually around 10k.
That’s a pull-down for a low-side N-channel MOSFET, or a pull-up to the source for a high-side P-channel.
If you’re using a gate driver IC, put the same resistor on its input.
And check the reset state of the exact pin you picked, since some pins turn on an internal pull-up during startup, and some even output a signal while the chip boots.
In those cases, you can’t count on a pull-down resistor on the FET gate to keep it from turning on during reset.
Rule #2 – NEVER Charge a Lithium Battery Without a Dedicated Charger IC and Protection
Lithium batteries pack a lot of energy into a small space, and that energy has to be controlled carefully every time you charge them.
A lithium-ion or lithium-polymer cell needs to be charged with a constant current first, then held at a constant voltage, usually 4.2V, until the current tapers off.
Push it past that voltage and the cell can swell, overheat, or catch fire.
Drain it too low and you can permanently damage it, which makes it more likely to fail the next time it’s charged.
So never try to charge a lithium battery with just a resistor, a diode, or a transistor that your firmware turns on and off.
Use a dedicated charger IC with a thermistor input, and connect it to a thermistor, which is a temperature sensor, placed on the battery so charging stops when the cell is too hot or too cold.
Charging below freezing is a big one, since it can permanently damage the cell even if it seems fine afterward.
On the battery side, you also want a protection circuit that cuts the battery off if it’s overcharged, drained too low, or shorted.
Most pre-certified battery packs already include that protection board, which is one more reason to buy an off-the-shelf pack instead of building your own.
Skip either one and you’re not just risking returns, you’re risking a fire in a customer’s home.
Rule #1 – NEVER Design Your Own AC-to-DC Power Supply
Designing your own AC-to-DC power supply means your circuit connects directly to wall power, and that changes everything about your product.
Wall power can kill someone, so the safety rules are strict, and your design will need to pass safety testing to standards like UL or IEC 62368-1.
Those standards control how far apart the high-voltage and low-voltage parts have to be, what insulation you need, and how the product behaves when a part fails.
Get any of it wrong and you’re not looking at a board redesign, you’re looking at a product that can shock a customer or start a fire, and that leads to recalls and lawsuits.
And even if you get everything right, safety certification for a product that plugs straight into the wall can easily cost $10,000 or more and add months to your launch.
The better path is a certified external wall adapter, so the only thing your product ever sees is a safe, low voltage.
That makes your own safety testing much simpler and cheaper, just make sure the adapter you pick also meets the efficiency rules for wall adapters in every country where you’ll sell.
If the power supply has to be inside your product, use a pre-certified AC-to-DC module instead of designing one from scratch, though your wiring, spacing, and enclosure around it will still need a safety review.
Wall power adds a shock risk that can kill on top of the fire risk, and that’s why this rule sits at #1.
If you want help from me and other experienced engineers so you can avoid the mistakes in this video before they cost you a board spin or a failed lab test, come join us inside my Hardware Academy.