Thermal Design for Sealed Enclosures
Thermal Design for Sealed Enclosures
Overview
Section titled “Overview”“Sealed means better protection” and “good cooling means holes” are two sides of one coin. This section gives a deliverable order of work: compute the steady-state rise first, then choose conduction, convection or derating. By the end you will be able to:
- List the real heat sources in the box and their continuous dissipation, not just nameplate figures
- Turn “how many watts can a sealed shell take” into a measured quantity via equivalent thermal resistance
- Weigh conduction, convection and radiation realistically for small IoT enclosures
- Verify both hot-end and cold-end failures, and encode battery charge temperature protection in firmware
Prerequisites
Section titled “Prerequisites”- Completed Chapter 23 Sections 4 and 5 (sensor airflow, ingress protection)
- Have a power budget (the table in Chapter 25 Section 14 works directly)
- Have thermocouples or an IR thermometer and can run to steady state
Key Concepts
Section titled “Key Concepts”Identify the sources before designing cooling
Section titled “Identify the sources before designing cooling”Typical internal heat sources in an ESP32 product:
| Source | Character | Watch out for |
|---|---|---|
| Wi-Fi power amplifier | Short bursts, current spikes to hundreds of mA during transmission | Low average power but distinct local hot spots |
| LDO | Continuous heat = (Vin − Vout) × I | Usually the worst efficiency link, brutal on battery products; a main contributor to internal temperature |
| DC-DC | Efficient, but switching noise; inductor and IC both warm | Copper area and via stitching beat adding a heatsink |
| Heated gas sensor (MQ class) | Continuous heater, tens to over a hundred milliwatts and up | The single biggest continuous load; generally unsuitable for battery products |
| Actuator drivers (H-bridge, relay, MOS) | Heat concentrated during motion, worst at stall | Size for the stall case |
| Li-ion charging | Chemical heating with a hard temperature ceiling | No charge when hot, limited current when cold |
| Display backlight / LEDs | Moderate continuous heat | Can be conductively coupled to the wall |
Key point: separate peak from average. Thermal design runs on continuous dissipation and duty cycle; transient peaks belong to power integrity (Chapter 25 Section 14).
Equivalent thermal resistance: make “how many watts” measurable
Section titled “Equivalent thermal resistance: make “how many watts” measurable”At steady state, approximately ΔT = P × Rth:
ΔT: temperature difference between the critical component inside and ambientP: continuous total dissipationRth: whole-assembly equivalent thermal resistance (a mix of shell material, thickness, surface area, emissivity, mounting surface and airflow)
Rth cannot be calculated reliably, but it can be measured and then used: run a prototype to steady state at full load, record ΔT and P, derive Rth = ΔT / P. Every subsequent change (material, venting, wall coupling, larger mounting area) gets re-measured the same way, giving one Rth value per version. That is what makes a claim defensible.
The pass criterion comes from component datasheets: maximum working ambient for the MCU, capacitors and cell are hard boundaries. Exceeding them means changing structure or reducing load — not “it just runs a bit warm”. Electrolytic capacitor life is extremely temperature-sensitive (the familiar rule of thumb is roughly doubling life per 10 °C reduction — use the manufacturer’s life curve), which is the most underestimated factor in low-power products.
What the three paths actually contribute
Section titled “What the three paths actually contribute”- Conduction (the most effective route in small shells): move heat from the source to the wall via thermal pads or a metal mounting plate, then let the outer surface reject it. Practical moves: heavy copper pour plus via arrays under LDO/DC-DC, coupling hot parts to a metal bracket or wall, thickening ribs locally at hot spots
- Convection (depends entirely on apertures and orientation): natural convection needs inlets low, outlets high, unobstructed. Venting collides head-on with IP, dust and condensation (Section 5), so labyrinths or breathable membranes are the compromise
- Radiation (modest but tunable): outer surface emissivity, colour and mounting surface matter; light-coloured shells under direct sun absorb far less than dark ones — outdoors, solar load often dominates internal dissipation
Rule of thumb: for a small sealed plastic shell, do conduction plus more outer surface; vent only when the power really demands it, because once you open holes the protection cost from Section 5 jumps immediately.
Derating is a third design lever, not a fallback
Section titled “Derating is a third design lever, not a fallback”When the rise is too high, you can also change operating conditions — often cheaper than mechanics:
- Limit charge current (cell temperature tracks charge current strongly)
- Reduce radio duty: batch reports, longer sampling intervals, event-driven instead of polling
- Power heavy peripherals on demand rather than always on (Chapter 25 Section 14)
- Stagger start-up so multiple actuators do not add their surges together
How to document it: publish a “thermally constrained operating cycle”, e.g. reporting interval shall not be shorter than N seconds to keep steady-state rise below X °C, and archive that statement with the measured curve.
The cold end is equally dangerous
Section titled “The cold end is equally dangerous”- Li-ion cells show higher internal resistance and voltage sag at low temperature — “charge left but it shuts down” is common; charging below the permitted temperature damages cells (most vendors forbid charging below 0 °C — follow the cell datasheet)
- Low-temperature ratings of cells and electrolytics are hard limits; outdoor products must check both ends of the range
- Rapid cooling condenses internal vapour (Section 5) — vent placement and cold-spot layout decide where it forms
- If the site may fall below part ratings, consider insulation, deliberate self-heating, or wide-temperature parts
Recording sheet and back-out script
Section titled “Recording sheet and back-out script”One steady-state test yields the version’s thermal resistance, worth tabulating (the values below are a format example, not measured results — replace them with your own data in projects):
| Version | Structural change | Ambient | Steady key temperature | ΔT | Continuous P | Derived Rth | Verdict |
|---|---|---|---|---|---|---|---|
| v1 | Sealed ABS, no ribs | 25 °C | 52 °C | 27 K | 0.35 W | 77 K/W | Near the limit, must change |
| v2 | Thermal pad to shell | 25 °C | 44 °C | 19 K | 0.35 W | 54 K/W | Acceptable, keep |
The example only shows how to structure the table and how Rth moves with design changes; it is not a performance basis for any actual product.
Pair it with a small script so nobody does this arithmetic by hand:
# Derive equivalent thermal resistance from measurement, then predict rise at other loadsmeasured = {"dT_K": 19.0, "power_W": 0.35} # from the prototype, not an estimaterth = measured["dT_K"] / measured["power_W"] # K/W
ambient, limit_part_C = 40.0, 85.0 # site maximum ambient, part rating ceilingfor p in (0.2, 0.35, 0.5, 0.8): t = ambient + p * rth print(f"P={p:.2f} W -> critical part about {t:.1f} C {'OK' if t <= limit_part_C else 'over limit: change structure or derate'}")Two disciplines: measured must be measured data; ambient and limit_part_C must come from the site profile and the datasheet, not from memory. Keep the sheet and the script output in the project record.
Verification
Section titled “Verification”| Check | Expected result | Verified |
|---|---|---|
| Full-load steady-state curve | Time constant and steady value recorded, Rth entered in the sheet | |
| Critical part temperature | Below the datasheet maximum working ambient with margin | |
| Hot environment test | Function normal at the rated maximum ambient, no radio rollback | |
| Cold environment test | Discharge and charge inside cell limits, no unexpected shutdown | |
| Charge temperature rise | Cell surface peak within limits, protective action triggers if exceeded | |
| Re-verify IP after venting | Protection retested once holes exist — never inherited | |
| Version comparison | Each revision has its own Rth so improvements are quantified | |
| Long-duration ageing | No capacitor bulging or seal degradation after extended hot operation |
Troubleshooting
Section titled “Troubleshooting”Issue 1: the shell runs hot, or radio becomes unstable on site
Section titled “Issue 1: the shell runs hot, or radio becomes unstable on site”Cause: continuous dissipation exceeds the structure’s ability; parts derate and PA performance rolls back at high temperature.
Fixes:
- Measure steady state before judging — do not rely on touching it; back out Rth to find the bottleneck
- Add conduction paths (wall coupling, metal bracket, copper plus vias); prefer conduction
- If power cannot drop, accept venting and change the protection design accordingly — never quietly lower the IP claim
Issue 2: it dies in winter
Section titled “Issue 2: it dies in winter”Cause: cold raises internal resistance and sags voltage; charging below permitted temperature damages the cell.
Fixes:
- Set brown-out thresholds from the low-temperature discharge curve (the battery management of Chapter 25 Section 14 applies)
- Let a temperature sensor gate charging: forbid or limit current below the permitted range
- For outdoor winter units, consider insulated placement or wide-temperature cells
Issue 3: electrolytics or seals age prematurely
Section titled “Issue 3: electrolytics or seals age prematurely”Cause: sustained high internal temperature; wrong LDO choice leaving a large permanent dropout.
Fixes:
- Re-examine the heat source — fix the power architecture (DC-DC, lower input voltage) rather than bolting on a heatsink
- Re-derive capacitor voltage and temperature ratings from measured rise, with margin
- Choose gasket material for the measured maximum temperature and re-run weathering checks (Section 5)
Issue 4: venting made condensation worse
Section titled “Issue 4: venting made condensation worse”Cause: apertures create cold bridges and air paths that deposit water on cold walls.
Fixes:
- Move and reorient vents so they do not blow across the sensor or cold surfaces
- Use labyrinths instead of straight-through holes, balancing cooling and anti-condensation
- Keep sensors away from cold spots (reuse the cold-spot marking from Section 4)
Best Practices
Section titled “Best Practices”- Do: run thermal design as “one measured Rth per version”; changes must be quantitatively comparable
- Do: prefer conduction in small sealed shells (wall coupling, pads, copper and vias); venting is the last resort
- Do: decide thermal, ingress and EMC together on the drawing instead of each locally optimal
- Do: treat hot and cold as hard limits, and implement charge temperature protection in firmware rather than in prose
- Don’t: substitute “doesn’t feel hot” for a steady-state measurement
- Don’t: open vents and keep the previous IP claim
- Don’t: design with peak power as if it were continuous, or ignore stall as a worst case
Summary
Section titled “Summary”Key points of this section:
- Separate peak from average: thermal sizing uses continuous dissipation and duty; transients belong to power integrity
- Derive Rth from measurement: ΔT = P × Rth turns “can it take it” into comparable numbers
- Conduction beats convection in small shells; holes raise protection cost immediately
- Derating is a co-equal third lever, documented as a constrained operating cycle
- The cold end kills too: voltage sag, charge damage and vent-induced condensation are designed for at proposal stage
Next section: mounting hardware and fixing methods — load paths, anchors and failure modes for wall, rail and pole installation.
We provide ESP32 ODM design-to-manufacturing services. From prototype to production — the team behind this tutorial can build it with you.
💡 Mention tutorial.imagrove.com in your Alibaba chat with us — get 10% off your custom project quote.
First published attutorial.imagrove.com/enclosure-design/06-thermal-design-for-sealed-enclosures/Please credit Imagrove and link back to this page when quoting or republishing.
Questions or issues with this tutorial?
Sign in with GitHub to leave a comment. If a step fails for you, tell us — we verify it and update the tutorial.
© Imagrove · ESP32 IoT Tutorial