PCB: Software V0.5
Overview
This system uses
- ROS 2 for orchestration and internal communication
- Headless Ubuntu as the embedded operating system
- DRM/KMS for direct camera control
- OpenCV for image processing <Planned>
- C++ for hardware interactions
- Systemd for boot, supervision, and recovery.
Work Flow
The system currently runs a Raspberry Pi 4B with 1 Gb of memory attached to the exposure tool.
The target is designed in a tool (KiCad, Altium, Inkscape, etc.) uploaded to a web interface as a gerber file with configuration given. Then sent to orchestrator.
There are then two ways to prepare the exposure: Artwork and Dimensional. Artwork preparation allows for more customization and scaling; Dimensional preparation allows for creating of preparation groups, all exposures in the preparation group share a common transform. Dimensional preparation also blocks both rotation and scaling.
Once a exposure is prepared it can be ran using the run exposure card on the home page.
Software Layout
ROS Packages
| Package | Responsibility |
|---|---|
| pcb_web | Validation of http requests, store and upload jobs, and translate approved endpoints into ROS calls. |
| pcb_orchestrator | Handles any multi step process, manages ownership of the tools, and system health tracking. |
| pcb_calibration | Handles validation of calibration and is source of truth for latest calibration. |
| pcb_renderer | Handles rasterization of Rgb8 images into working area, asks pcb_projector to render each frame. |
| pcb_projector | Sole authority for exposure tool output. Enforces session fencing, presents frames using either DRM/KMS or a simulated PPM output. Handles lease expiry and emergency clear actions. <Planned to:> Handle turning on and off projector over RS-232 and opening and closing a shutter |
| pcb_interfaces | Defines are each package communicates with another. |
| pcb_bringup | Defines the launch files for both production and simulation. |
Web services
| Name | Responsibility |
|---|---|
| Exposure | Handles interfaces with exposure tool. |
| Jobs | Handles saving and loading of a exposure job. |
| Preparations | Handles saving and loading of a preparation groups. |
| Svg | Convert svg to standard xml (same as gerber). |
| Via Jig | Generate via jig for manufacturing step. |