Industrial FABLAB UCuenca

Week 16 - System Integration

Integration of the complete Smart Lean Cell: mechanical workstation, sensors, custom PCB, software dashboard, user interaction, and electronics packaging.

Assignment Objective

The objective of this week was to integrate the electronic system into the final project in a clean, safe, and functional way. For this task I designed a case that holds the custom PCB of the project and organizes the wiring that connects the board with the motion sensor used in the Smart Lean Cell.

The case was designed in Fusion 360 and fabricated with a Bambu Lab 3D printer. The final object protects the PCB, keeps the connectors accessible, and allows the electronics to be presented as part of the final system instead of remaining loose on the table.

System Integration Fusion 360 Bambu Lab 3D Printed Case Custom PCB HC-SR04

System Integration Plan and Evaluation Checklist

Before fabricating the enclosure, I defined a system integration plan for the Smart Lean Cell. The goal was to transform the electronics from a set of exposed components into a packaged subsystem that could be installed, inspected, connected, and presented as part of the final product. This plan considered the PCB footprint, the XIAO ESP32-C3 USB-C access, HC-SR04 sensor wiring, power lines, cable routing, visibility, maintenance, and the physical position of the module inside the final workstation.

  1. Define interfaces: identify which elements had to connect to the PCB: USB-C power/programming, HC-SR04 sensor cables, status LEDs, power pins, and jumper connectors.
  2. Design the package: create a Fusion 360 enclosure with internal clearance for the PCB, cable exits, front visibility, and an inclined angle for presentation.
  3. Fabricate and test fit: print the enclosure using a Bambu Lab 3D printer and verify that the board, headers, and cables fit without mechanical stress.
  4. Integrate with the final project: mount the packaged electronics in the Smart Lean Cell so it is accessible, protected, and visually consistent with the rest of the prototype.
  5. Document and reproduce: publish CAD screenshots, photos, videos, and downloadable 3MF/STL files so the enclosure can be reviewed or fabricated again.
Checklist Item Status Evidence in this Documentation
Made a plan for system integration for the final project. Completed The integration plan is described above as a five-step process from interface definition to reproducibility.
Documented the plan with CAD and/or sketches for system integration. Completed The Fusion 360 screenshots show the PCB footprint, mounting slots, internal cavity, cable openings, and final enclosure geometry.
Implemented methods of packaging. Completed The 3D printed case packages the PCB, protects the electronic board, routes the cables, and keeps the USB-C connector accessible.
Designed the final project to look like a finished product. Completed The electronics are installed as a visible module in the Smart Lean Cell instead of remaining as loose wires and an exposed board.
Documented system integration of the final project. Completed This page documents the complete Smart Lean Cell architecture, integration flow, functional tests, BOM, CAD process, 3D printing, assembly, packaging decisions, final integration photos, and videos.
Linked to system integration documentation from the final project page. Completed The Final Project page includes a direct link back to this Week 16 System Integration documentation.
The integration strategy focuses on accessibility and reproducibility: the editable and printable files are provided as 3MF files, while STL exports are included as a more universal geometry format for users who do not use the same slicer or CAD workflow.

Complete Smart Lean Cell System Architecture

The system integration work was not limited to designing a protective enclosure. The enclosure was one subsystem inside the complete Smart Lean Cell, a learning station where children interact with an assembly process while the electronics measure what happens in real time. The complete integration connects the physical workstation, the organized Lean tools, the sensing system, the custom PCB, the embedded firmware, the Blynk dashboard, and the user feedback elements.

Architecture Diagram

The diagram below shows how the main subsystems interact. The child performs the assembly activity in the workstation, the sensors detect inventory and finished parts, the PCB processes the signals with the XIAO ESP32-C3, and the software layer sends live values to the dashboard. The case designed in this week packages and protects the control board so it can be safely installed as part of the final product.

User
Child assembles parts
Physical Cell
Kanban trays and assembly area
Sensors
HC-SR04 inventory and finished stations
Custom PCB
XIAO ESP32-C3, headers, voltage dividers
Firmware
Cycle logic and counters
WiFi
ESP32-C3 connection
Blynk Cloud
Virtual pins and datastreams
Dashboard
Cycle time, inventory, productivity

Integration Flow

  1. Preparation: the physical Lean tools organize the parts before the activity begins. This supports 5S and reduces searching time.
  2. User interaction: the child takes a part from the inventory area and starts the assembly challenge.
  3. Sensor event: the inventory HC-SR04 detects when the part leaves or enters the inventory station.
  4. Embedded processing: the custom PCB receives the sensor signals through protected input lines and the XIAO ESP32-C3 runs the cycle logic.
  5. Status feedback: the firmware updates status LEDs and sends process values through WiFi.
  6. Software interface: Blynk receives the values using virtual pins and displays distance, cycle time, average time, pending cycles, inventory, finished parts, and productivity.
  7. Finished part event: the second sensor detects the completed assembly and the system closes the cycle measurement.
  8. Learning feedback: the dashboard gives immediate information so the learner can compare attempts and understand improvement.

Subsystem Interfaces

Subsystem Connected To Interface Type Integration Purpose
Kanban trays and assembly board User and sensors Physical interaction Organizes the learning activity and defines where parts enter, move, and finish.
HC-SR04 sensors Custom PCB Digital trigger/echo signals Detects part presence at inventory and finished stations.
Custom PCB XIAO ESP32-C3, sensors, LEDs, cables Electrical and signal routing Centralizes wiring and protects the microcontroller inputs with voltage dividers.
3D printed enclosure PCB and workstation Mechanical packaging Protects the electronics and fixes the controller in a visible, serviceable position.
Firmware Sensors, LEDs, Blynk Embedded logic Calculates cycle time and converts sensor events into learning indicators.
Blynk dashboard XIAO ESP32-C3 through WiFi IoT communication Displays real-time performance and supports user evaluation of the process.

Complete System Functional Tests

To validate system integration, I checked that the mechanical station, sensors, PCB, firmware, dashboard, and user interaction worked together. The goal was not only to verify that the printed enclosure fit the PCB, but also to confirm that the packaged electronics could operate inside the Smart Lean Cell while the user performs the assembly activity.

Test What Was Verified Expected Result Observed Result
PCB packaging and cable routing The custom PCB fits inside the case and the sensor cables exit without stress. The board remains fixed, visible, and accessible for USB-C programming. The PCB was mounted correctly and the connector area remained accessible.
Sensor to PCB test The HC-SR04 sensor connects to the PCB and sends stable signals to the XIAO ESP32-C3. The firmware reads distance values without loose wiring or exposed connections. The sensor wiring stayed organized through the packaged module.
Firmware and dashboard test The ESP32-C3 processes sensor data and sends values to Blynk through WiFi. The dashboard updates cycle values and process status in real time. The dashboard was used as the monitoring layer for the final Smart Lean Cell.
User interaction test A learner interacts with the assembly station while the system monitors the process. The user can assemble parts while the electronics measure and display process information. The workstation, storage modules, sensor, PCB case, and dashboard worked as one demonstrator.
Complete Smart Lean Cell with dashboard and packaged electronics
Complete Smart Lean Cell with organized trays, sensor station, packaged PCB, and dashboard context.
Packaged electronics integrated into Smart Lean Cell
Packaged electronics installed as a visible subsystem inside the final workstation.
Functional integration evidence: electronics package and project setup during system testing.
Additional system test showing the packaged PCB working as part of the final project environment.

Bill of Materials

The integration required the mechanical case, the electronic control board, and the components needed to connect the sensing system. The BOM was kept simple because the goal was to make the electronic subsystem easier to mount, inspect, and maintain.

Component Quantity Function in the System
Custom PCB 1 Main electronic board of the project. It holds the XIAO module, headers, resistors, and connection points.
Seeed Studio XIAO ESP32-C3 1 Microcontroller used to read sensor data and communicate with the rest of the project system.
HC-SR04 ultrasonic motion/distance sensor 1 Detects object presence or movement near the assembly area.
Ribbon cables and jumper wires Several Connect the PCB with the sensor and external parts of the prototype.
3D printed PCB case 1 Protects the PCB and organizes cable routing inside the final project.
PLA filament As needed Material used to fabricate the case on the Bambu Lab printer.
PCB, HC-SR04 sensors, and ribbon cable
Electronic components used for the system integration.
PCB mounted inside the printed case
Custom PCB positioned inside the printed case.

Design Process in Fusion 360

The design started by measuring the PCB and defining the internal volume required to place the board without pressing the headers or the USB-C connector. The case needed enough clearance for the cable connectors, the sensor wires, and the power/programming cable. For this reason, the design includes side and rear openings for routing cables.

In Fusion 360 I first created a rectangular sketch based on the PCB footprint. Then I added the external frame, the internal cavity, mounting slots, and a front opening that allows the board to be visible. The case also has an inclined body so the PCB can be presented at a readable angle in the final project.

Fusion 360 initial sketch with PCB dimensions
Initial sketch with the PCB footprint and basic dimensions.
Fusion 360 sketch with mounting slots
Definition of mounting holes and elongated slots for adjustment.
Fusion 360 base extrusion of the case
First 3D extrusion of the case base and internal mounting area.
Fusion 360 case with Fab Academy text
Adding the front frame, internal cavity, and Fab Academy 2026 text.
Fusion 360 angled case view
Inclined case geometry for better visibility in the final prototype.
Fusion 360 internal case view
Internal view showing cable slots and the space reserved for the board.

Construction with Bambu Lab 3D Printer

After finishing the model, the case was exported for 3D printing and prepared for fabrication on a Bambu Lab printer. PLA was selected because it is rigid, easy to print, and strong enough for a protective electronics enclosure. The print was oriented so the main cavity remained clean and the front frame had a good surface finish.

During printing, I checked the first layers and the adhesion to the build plate. This was important because the case has a flat base, thin walls, and long slots that need to remain dimensionally stable to fit the PCB correctly.

Assembly

Once the print was finished, the PCB was placed inside the case to check the fit. The board was aligned with the internal rectangular area and the slots were used to route the cables without bending them sharply. The front opening makes it possible to inspect the PCB, verify the connections, and access the USB-C port of the XIAO ESP32-C3.

The HC-SR04 sensor was connected to the PCB using jumper wires. The sensor was positioned in the final project so it could detect object presence near the assembly area. The case works as the electronic control module of the project: it groups the board, protects it, and separates the electronics from the moving or handled parts of the prototype.

Close-up of PCB case with custom board
PCB mounted inside the purple case with visible connections.
PCB case placed in the final project
Case installed near the storage modules of the Smart Lean Cell.
Angled case with PCB installed
Angled view showing the inclined body and front access.
Case integrated into final project
Electronic module integrated into the final project environment.

Final Project Integration

The final integration connects the mechanical, electronic, and sensing parts of the project. The printed case gives the PCB a defined location inside the Smart Lean Cell, while the HC-SR04 sensor detects movement or object presence near the working area. This makes the electronics easier to present, debug, and protect during demonstrations.

The case also improves the visual presentation of the final project. Instead of showing loose wires and an exposed PCB, the electronics are organized as a module that belongs to the system. This is important because the final project is not only a set of separate parts; it must work as one integrated prototype.

Final presentation of Smart Lean Cell
Final presentation of the project with storage modules, sensor, and PCB case.
Fusion 360 final external view of the case
Final external Fusion 360 view showing cable slots and inclined geometry.
3D printed case on Bambu Lab printer
Printed case on the Bambu Lab build plate.
Bambu Lab printer fabricating the case
Printing process and layer construction of the case.
Video evidence of the printed case and system setup.
Additional video of the case integrated with the final project.

Packaging and Finished Product Criteria

The packaging method was based on a simple requirement: the electronic system had to be protected without hiding its function. For this reason, the PCB is visible from the front of the case, but the board is no longer exposed to direct handling. The enclosure creates a defined boundary between electronics, cables, sensors, and the learner interaction area of the Smart Lean Cell.

Packaging Requirement Design Decision Result
Protect the PCB during demonstrations. Rigid PLA enclosure with a front frame and internal cavity. The board is held in a stable position and is less exposed to accidental contact.
Keep connectors serviceable. Open front and cable slots for USB-C and jumper wires. The electronics can be programmed, powered, inspected, and rewired without removing the full module.
Make the product look finished. Inclined case geometry, visible PCB, clean cable routing, and consistent placement in the final station. The electronic subsystem reads as part of the product rather than a temporary prototype.
Support reproducibility. Publish 3MF and STL versions of the case files. The case can be fabricated again using common slicers and 3D printers.

Download Files

The printable case files are available below. The 3MF files preserve the slicer-ready geometry used for the PCB enclosure, while the STL files provide a more universal format that can be opened in most CAD viewers and 3D printing slicers. Both formats are included to improve accessibility and reproducibility.

Conclusion

This week helped me transform the electronics from a functional prototype into an integrated subsystem for the final project. Designing the case in Fusion 360 allowed me to consider the real size of the PCB, the position of the connectors, cable routing, and presentation inside the Smart Lean Cell.

The Bambu Lab 3D print produced a rigid case that protects the board and makes the electronic module easier to install. The final result integrates the custom PCB, cables, HC-SR04 sensor, and printed enclosure into a more organized and professional system.