My DIY reverse-osmosis controller was already running the purifier, but the PCB was still sitting on cardboard with cables coming from several directions. The cardboard was never meant to become a permanent component.

The next job was to give the controller a case and the display its own frame. I wanted to cover the exposed board while keeping the connectors, BOOT and RESET buttons accessible. Being able to open the case again matters: this is still a project I intend to maintain and improve.

This guide covers the enclosure assembly for my Youth Edition V2.3 controller. It starts with the printed parts and ends with fitting the controller back into the purifier. The display frame is a separate, optional part of the build. If you use only the web interface, you can skip the display step.

This is the first revision of the enclosure. The fit and installation are not perfect, and I will keep improving the case, mounting and cable routing. The two STL files are available in the download section. This guide walks through the parts, fasteners and assembly checks for this version.

The earlier first machine test covers getting the controller working in the purifier. Here, the starting point is a working board with its wiring identified.

Step 1 — Prepare the printed parts and fasteners

Check the board revision and connector layout before printing. A case needs to match the component heights and connector positions as well as the outline of the PCB. On this board, connections on the underside also need room for their plugs and cables.

The main enclosure has a base and a removable cover. My display sits in a separate printed frame, so its position can be chosen independently of the controller box.

Item Needed for Specification or purpose
Controller enclosure parts Main controller Matching base and cover for this board layout
Heat-set threaded inserts Threaded fixing points M3 × 4 × 4.6
Controller assembly screws Main controller assembly M3 × 20 mm
Display frame and screws Optional local display Matching screen frame; M3 × 5 mm screws
Cable ties and suitable cable supports Wiring Support cable bundles independently of the PCB connectors
Screwdriver and insert-installation tool Assembly Match the screws and inserts used

The two screw lengths belong to different assemblies. Keep them separated while working; the 20 mm controller screws are not substitutes for the 5 mm display screws.

Fastener Used in this build
Knurled brass heat-set threaded inserts Heat-set inserts: M3 × 4 × 4.6.
Phillips screws shown in several lengths Controller assembly: M3 × 20 mm. Display assembly: M3 × 5 mm.

Print and inspect the parts

Download and extract the ZIP from the download section. It contains WATER_Enclosure_Print.stl for the controller enclosure and WATER_Screen_Print.stl for the optional display frame. The package contains the models only; I will add my printing settings to this article separately.

After printing, let the parts cool before removing them from the bed. Remove any loose strands or support material from the connector openings and screw holes. Check that the mating edges sit flat together and that the mounting features have printed cleanly.

Do this before bringing the electronics into the case. Loose plastic is easier to remove from an empty enclosure.

White enclosure parts and a rectangular frame on the 3D printer build plate

The printed parts on the build plate, before assembly.

Step 2 — Install the heat-set inserts

Install the inserts in the printed parts with the PCB and display removed. The inserts provide the threaded fixing points used during assembly.

  1. Identify the insert pockets in the enclosure parts. Do not try to fit an insert into every opening; connector openings and clearance holes serve different purposes.
  2. Support the printed part on a stable surface. Use an insert tool or a suitable soldering-iron tip, with a temperature appropriate to the printing material and the insert supplier's guidance.
  3. Align each insert squarely with its pocket and ease it into place. Follow the pocket's intended depth, keeping the insert straight.
  4. Let the plastic cool before trying a screw. Check that the screw starts cleanly by hand and that the insert does not move with it.

If an insert goes in crooked, correct the fit before installing the electronics. Tightening a screw is not a good way to straighten an insert or pull a distorted case into shape.

Step 3 — Fit the controller board

Disconnect the 24 V supply and any USB or programming connection before moving the board. Take a photograph of the existing wiring and label plugs that could be confused with one another.

Lower the board into the base for a fit check. The PCB should rest on its intended supports without bending.

  1. Line up the mounting holes and check that the board sits level.
  2. Look underneath for contact between solder joints, components and the case. Make sure the underside connectors remain usable.
  3. Try the actual cable plugs in the openings. Check the space needed to seat and remove each plug, including its latch.
  4. Route the external antenna lead so it is not caught under the board or across a screw hole. Leave enough slack that closing the case will not pull on its connector.

Youth V2.3 controller board placed inside the white printed enclosure during a fit check

A fit check with the cover removed. This view shows how the PCB, connectors and antenna lead sit inside the case.

This photograph was taken during enclosure fitting. It is useful for the mechanical layout; use the board assembly and wiring guide for component placement and wiring.

Step 4 — Fit the cover and check access

Place the cover on the base without using the screws to force it shut. If it will not sit down naturally, lift it off and check for a trapped cable, a displaced board or a part touching the inside of the cover.

Before moving on, check these three things:

  • Connector access: the openings line up with the connectors, and the plugs can seat fully.
  • Service access: BOOT and RST remain reachable through their openings when needed.
  • Cable clearance: no wire is caught between the mating edges or pulled tight across a fixing point.

Closed white controller enclosure with ventilation slots, screw fixings and labelled access openings

The closed enclosure keeps U22, UART0, I2C and DISP accessible, with separate holes for BOOT and RST.

The slots and open connector cutouts make this a vented enclosure. Choose a dry mounting position away from likely drips or leaking fittings; the printed case is not a sealed waterproof box.

Step 5 — Assemble the optional display frame

The screen has its own printed frame and uses M3 × 5 mm screws. Keeping it separate from the controller lets me choose a viewing position without having to move every pump and sensor cable with it.

  1. Check that the display sits in the frame without pressure on the glass or the active screen area.
  2. Align the display's mounting holes with the frame's fixing points and fit the 5 mm screws. Check the clearance behind each screw before tightening.
  3. Route the display cable through its intended exit, leaving enough room to position the screen without pulling on the connector.
  4. Try the viewing angle and cable reach before choosing the permanent mounting position.

The separate display frame held in front of the purifier to check its position and cable reach

Trying the display position before permanent mounting.

For a build operated through the browser, leave the display out and keep the DISP connector accessible for a future addition.

Step 6 — Arrange the cables and position the enclosure

A case makes the board easier to handle, but cable routing still needs its own attention. Aim for a layout that can be disconnected, inspected and put back together without guessing which cable goes where.

Reconnect the labelled plugs while power is disconnected. Group cables by where they go, leave a little slack at each connector, and support longer bundles so their weight does not hang from the PCB headers. Keep wiring clear of filter changes, tube release collars and the removable cover.

Choose a position where the enclosure can be supported securely without relying on the connected wires. Its mounting ears provide fixing points, but the attachment to the purifier depends on the space and mounting surface available. Check that the lid can still be removed after installation.

Enclosed controller connected to several cable groups beside a powered separate display in the purifier

The enclosed controller and separate display connected in the purifier. The cable groups remain accessible for further routing.

At the stage shown in these photographs, the enclosure and cable runs had not yet been secured in their final positions. The fitting check helps establish where everything can go while keeping the connections easy to reach.

Step 7 — Check the controller after reassembly

Moving a working board into a case can disturb a plug or put tension on a cable. Before restoring power, check the connections against the photograph taken earlier and look for trapped wires, loose screws and unsupported cable bundles.

Then restore power and check the parts of the system you were already using:

  1. Confirm that the controller starts and its local web page opens.
  2. If a display is fitted, check that it starts and shows the expected interface.
  3. Check that the connected sensors still appear in the web interface. Investigate a missing device before starting a water-production cycle.
  4. Observe a normal operating cycle and the return to standby. Watch for a connector coming loose or a cable rubbing against a moving or vibrating part.
  5. Before leaving the installation in regular use, secure the case and display in their chosen positions and check the surrounding water fittings for leaks.

The web interface guide explains the controller's settings and status displays. Rehousing a working board should not require changing its valve logic or sensor configuration.

This first version gives the controller a cover and the display its own frame. There is still room to improve the fit, mounting and cable routing. I will keep refining the design as I use it, and update this post with printing details and any changes to the assembly.

Project resources

ZIP · STL · v1

First-revision enclosure STL files

Two STL files for the controller enclosure and optional display frame (ZIP, 0.93 MB). This first revision will continue to improve as I refine the fit, mounting and cable routing.

Youth Edition V2.3 controller and the separate display frame shown in this article. · No separate reuse license specified.

Download →

Continue this build

Smart RO Water Purifier Controller

Comments

Questions about this build? Share what you tried and what happened.

Loading the discussion…

Leave a comment

For troubleshooting, include your board version, firmware version, and symptoms.Links, inline code, and code blocks are welcome.

A nickname is fine.

Comments are reviewed before they appear here.