Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

本文为英文。 查看中文网站

IP66 enclosure for a Pi and battery: sealed or split

Split the build into two enclosures: a sealed IP66 box for the Pi and a ventilated compartment for the 44 Ah battery, which still releases hydrogen. At a 4 W continuous load that battery runs about 2.75 days; a 24/7 UK-winter build needs roughly 150-250 W of solar, while a 30 W panel covers only a motion-triggered camera.

NEMA4 Enclosure engineering team · Published November 24, 2026 · 7 min read

Short answer: split it into two enclosures. Put the Pi in a sealed stainless box, put the battery in its own ventilated compartment, and size the solar for a UK winter rather than summer sun. The battery in this build stores 528 Wh, good for about 2.75 days of a 4 W board, and replacing one such day in January takes roughly 150-250 W of panel. One sealed box doing both jobs fails both: its gasket traps hydrogen, and the vent hole that would fix that wrecks the rating.

Can one box hold the Pi, the battery and the charger?

An AGM battery and a sealed IP66 box solve opposite problems: valve-regulated construction still releases hydrogen toward its 4% explosive concentration in air, while the Pi wants a compartment that stays dry and sealed.

Three parts, three jobs. The sealed electronics box carries the board, camera and 5 V adapter; nothing inside it makes gas. The battery lives in a separate ventilated enclosure: sealed describes the battery's case, not an airtight installation, so give it a vent path sized to the battery instructions for its charge rate. Run that path upward, because hydrogen is about 14 times lighter than air and collects at the top. Keep the terminal covers on, and make the battery leads the last connection you tighten. The panel goes outside on the hutch roof, tilted steep for the low winter sun, with the charge controller mounted in the ventilated compartment beside the battery.

The compartment hardware is itemised in what parts a battery compartment needs, and the vented-versus-sealed question for a charging box is settled in outdoor battery charging enclosure: vented or sealed for heat. A waterproof field logger build shows the same split drawn end to end.

How long will a 44 Ah 12 V battery run the Pi?

About 2.75 days: a 12 V 44 Ah battery stores 528 Wh, stopping at 50% discharge leaves 264 Wh usable, and a 4 W board burns 96 Wh per day.

The full arithmetic:

  • Storage: 44 Ah × 12 V = 528 Wh
  • Usable: lead-acid cycle life collapses past 50% depth of discharge, so plan around 528 ÷ 2 = 264 Wh
  • Load: 4 W × 24 h = 96 Wh per day
  • Autonomy: 264 ÷ 96 = 2.75 days, call it two days and 18 hours

What moves it: a Pi 4-class board pushed hard draws 7 W, which cuts the reserve to about 1.6 days (168 Wh a day), while a Pi Zero-class board near 1.5 W stretches it past a week (36 Wh a day). Cold trims lead-acid capacity too, so treat that as the mild-weather figure — the recharge sizing below is what keeps the box alive through January.

How big does the solar panel need to be in a UK winter?

Plan on 150-250 W of panel for a 24/7 build: the 96 Wh/day load plus charge losses comes to about 120 Wh a day, and UK winter delivers just 0.5-1 kWh per kWp of panel per day.

Midwinter monitoring backs that yield: a typical 4 kW home system produces 2-5 kWh a day in January, the same 0.5-1 kWh per kWp. The sizing chain:

  • Recharge needed: the daily load ÷ 0.8 lead-acid charge efficiency ≈ 120 Wh a day
  • Array: 120 Wh ÷ (500-1000 Wh per kWp) = 0.12-0.24 kWp, so order 150-250 W and aim near 200 W

Tilt earns as much as wattage: a common winter rule sets the panel near latitude plus 15°, about 65-70° across most of Britain, which also sheds rain and hen-house dust. The 30 W panel from the original shopping list suits a lighter build: 0.03 kWp × (500-1000 Wh per kWp) gives 15-30 Wh a day, or 0.6-1.2 W continuous — enough for a camera that sleeps between motion events, not for 24/7 video.

Which rating does the Pi's enclosure need?

Order the electronics box as IP66 — dust-tight and jet-resistant — which is what a manufacturer-rated NEMA 4X / IP66 stainless wall-mount enclosure carries; it shrugs off rain, hose-down and driven spray, though it is not an immersion rating.

Both sixes mean something exact. First digit 6 is dust-tight; 5 would be merely dust-protected. Second digit 6 is powerful jets: a 12.5 mm nozzle at 100 L/min, thrown from about 2.5-3 m for at least 3 minutes in the IEC 60529 test. Digit 7 would add temporary immersion of 1 m for 30 minutes, so a coop in a flood pocket needs that specified on purpose. Type 4X layers corrosion onto Type 4's hose-directed water: NEMA 250 adds a 200 h salt-spray test for 4X (its Table 5-1D), which is the coastal bonus. Our wall-mount boxes are rated NEMA 4X / IP66 by the manufacturer; they are not UL listed. The NEMA 4 vs 4X vs IP66 guide walks the whole conversion, digit by digit.

Does the box need 316L or will 304 do?

304 is the right grade for an inland coop, and 316L earns its keep within a few miles of salt water or where washdown uses chlorine-based sanitizer; hen-house ammonia and rain alone stay well inside what 304 handles.

Molybdenum in 316L is what lifts pitting and crevice resistance against salt and chlorides. Chloride stress cracking waits near 60 °C (140 °F) for both grades, far above anything a UK coop sees. The battery compartment can drop a grade entirely: a ventilated fiberglass or polycarbonate box works well there, weighs less, and is cheap to replace if a strap fails or a terminal gets knocked.

How do you stop condensation in a sealed box through winter?

Let the Pi's own heat do most of it: 4 W in a small stainless box holds the interior walls a few degrees above the outside air, which usually keeps them clear of the night dew point, backed by silica gel and well-chosen glands.

Worked through: a 200 × 300 × 150 mm box has about 0.27 m² of wall, so the lift is 4 W ÷ (3.7 W/m²·K × 0.27 m²) ≈ 4 K, using the stainless wall coefficient our heat guides use. A larger shell or a lighter board shrinks that margin — one more reason to size the box to the build. Stay sealed rather than vented: an equalising vent swaps damp air in as readily as it releases pressure. Pack silica gel, refresh it at each visit, and land every cable on a gland whose clamping range covers its outside diameter; a 6 mm camera lead wants a gland gripping 6 mm. Removing heat from a small sealed IP66 enclosure takes the thermal side further, the outdoor enclosure guide carries the breather-and-heater playbook for bigger swings, and the cold-weather electronics plan covers hard freezes.

Is a cigar-lighter socket and USB adapter safe for the Pi?

Yes, when the adapter is a regulated buck converter giving a clean 5 V at 3 A, fed through a 5 A fuse within 150 mm (6 in) of the battery's positive terminal; the Pi is hurt by sagging voltage, not by a good regulator.

The classic failure is brownout: unregulated adapters sag below 4.8 V under load and the board reboots or corrupts its SD card. Wiring stays simple: 16 AWG (1.5 mm²) over a 2 m run there and back drops 0.14 V at 3 A (0.0172 Ω·mm²/m × 4 m ÷ 1.5 mm² = 0.046 Ω, × 3 A ≈ 0.14 V). The battery side deserves the care: the controller runs the charge stages, and typical 12 V VRLA datasheets call for 14.4-14.7 V absorption and 13.5-13.8 V float, with a temperature sensor on the battery worth having at a winter site. Fit the fuse before the battery lead goes on, and keep rings off; a shorted spanner across these terminals can weld itself in place.

What do you put on the order?

Order two enclosures and the array as three line items: a sealed 304 or 316L box manufacturer-rated NEMA 4X / IP66 with cutouts pre-cut, a ventilated battery compartment, and about 200 W of panel if the camera runs 24/7 through a UK winter.

Part What to order The numbers behind it
Electronics enclosure One-piece 304 or 316L stainless wall-mount box, manufacturer-rated NEMA 4X / IP66 (not UL listed), cutouts pre-cut Example 200 × 300 × 150 mm for a Pi stack plus two gland entries
Camera window Ordered with the box, bonded and gasketed by the builder Same rating as the box
Battery compartment Separate ventilated enclosure, fiberglass or polycarbonate Top vents, strap, controller inside
Solar array About 200 W for 24/7 duty; 30 W class only for motion-triggered builds 0.5-1 kWh/kWp/day UK winter; tilt near latitude + 15°
Charge controller MPPT with a battery temperature sensor Charge stages per the battery datasheet
DC wiring 16 AWG (1.5 mm²), 5 A fuse at the battery positive ≈0.14 V drop over a 2 m run at 3 A

The decision, one line each. Motion-triggered snapshots: a 30 W panel, one battery and a small sealed box cover it. 24/7 video over wifi: the array sized above, the same split enclosures, and 2.75 days of reserve between clear spells. Either way you set the material, the dimensions and every cutout, and the box arrives in 10 business days from your order — custom work from your approval of the drawing — via custom enclosures, alongside the manufacturer-rated NEMA 4X / IP66 wall-mount range.

Catalog dimensions to compare

Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.

EnclosureMaterialOutside H x W x D / displayRating
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
16 × 14 × 8 in304 stainless16 x 14 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 8 in304 stainless20 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
10 × 8 × 6 in304 stainless10 x 8 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Can one sealed box work if I just vent the battery section?

Splitting them is the reliable layout. A vent hole cut in the field breaks the enclosure's rating, and hydrogen from a 44 Ah battery needs a vent path to outside that the battery instructions define, so one box cannot serve both jobs well. Keep the sealed box for electronics and vent the battery compartment upward.

What happens if the solar panel is undersized in January?

The battery never recovers. A 30 W panel harvests roughly 15-30 Wh a day against a 96 Wh draw, a deficit of 66-81 Wh per day, so the 264 Wh of usable storage is flat inside 3-4 dark days — and lead-acid left flat sulphates. Match the array to winter yield first.

Does wifi work from inside a stainless enclosure?

Poorly. A stainless wall blocks most of a 2.4 GHz signal, so plan the radio early: order a gland cutout and mount the antenna or dongle outside the box in a small weatherproof cap, or choose an antenna with an external mount. Give the camera lead and the antenna lead their own sealed entries.

Does a camera window keep the IP66 rating?

Only when the window is part of the enclosure order, bonded and gasketed by the maker to the same rating. A sheet of acrylic glued over a field-cut hole rarely survives the jet test, which drives 100 L/min from a 12.5 mm nozzle; water finds any unbonded edge. Order the window with the box.

Is an AGM battery really sealed?

Sealed as a case, not as an installation. Valve-regulated construction recombines most charge gases but still vents hydrogen under fast or faulty charging, and hydrogen turns explosive at 4% in air. That is why the battery gets its own ventilated compartment even though the case never needs topping up.

Can the panel charge the Pi directly, without a battery or controller?

Keep the battery for the nights and the controller to manage it. A nominal 12 V panel can sit above 20 V open-circuit on a cold bright morning, which is well past what a plain USB adapter expects, and the controller is what sets the absorption and float stages the datasheet asks for.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 12 × 10 × 6 inRequest a custom quote

NEMA 4X enclosures: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides