Skip to Content
PCB Designs

PCB Designs

The electronics for replicant are split around PCB’s in two different areas. The Motor Board is mounted next to the stepper motor, to control the linear motion of the Sensor Board collecting measurements from the Lidar/ToF/IMU.

Motor

Motor Board V1

The Motor Board takes in 20V power, negotiated over USB Type-C Power Delivery using the TPS25730D  controller. This 20V is used directly by the TMC2209  Stepper Motor driver, and converted to 5V/2A by the TPS54202 . The 5V rail then powers the ESP32-S3-Zero microcontroller, which also forwards it over its USB Type-C port to the Sensor Board.

Sensor

Sensor Board V1

The Sensor Board collects measurements from the Lidar, Time of Flight, and IMU, and stores it to the attached microSD card, as well as streaming it over WiFi to provide live scanning feedback.

KiCad

The custom PCB’s are created with KiCad , the Open Source PCB Design Suite. Project files are currently on version 10.0.5; they can be viewed using newer versions, but for edits/changes you have to use the same specific version. Specific versions can be found in the release archives for Linux , macOS , and Windows .

Board exports (Production)

Production files are generated using the JLCPCB tools plugin . From the PCB Editor, open JLCPCB Tools, and click Generate. This will update the ./jlcpcb/production_files/ directory, which has the GERBER-xxx.zip file to upload for the PCB itself, as well as the BOM (Bill of Materials) and CPL (Component Placement Location) CSV files for assembly. The design and part selection is optimized for JLCPCB  PCB and PCB Assembly services, but the boards are manufacturable elsewhere if you assemble them yourself. Components can be ordered from LCSC  with the included part numbers.

Board exports (for Onshape)

For integration with the mechanical design, the boards can be exported as STEP 3D models from KiCad.
This helps with checking for clearance, modelling mounting brackets, and the overall completeness of the CAD model.

Some components should be excluded from the export, as they make the files much bigger, and are better represented by native Onshape assemblies. Open the PCB Editor, and before exporting, change the ‘Selection filter’  to just Footprints. Select all (Ctrl + A), and then exclude (Ctrl + Click) the following footprints:

Motor Board: deselect the ESP32-S3 group (A1/J1/J2), and screw terminal blocks (J4, J6).
Sensor Board: deselect the ESP32-S3 group (A1/J1/J2).

Then export with File -> Export -> STEP / GLB / BREP / XAO / PLY / STL…​. .
Ensure the following settings are set: KiCad PCB Editor STEP export dialog screenshot with the following options checked: export board body, export components, with sub-selection only selected. Board center origin. Substitute similarly named models, Overwrite old file, Don't write P-Curves to STEP file.

Then update the Onshape part by right-clicking the Import feature, then ‘update’, and uploading the exported ‘.step’ file.

Onshape Part Studio with the Import feature's context menu open, the mouse is hovering over 'Update'

The silkscreen decal is exported separately; using File -> Plot  with Plot format SVG, only including the F.Silkscreen layer, and checking ‘Use drill/place file origin’, ‘Negative plot’, and ‘Fit page to board’. The plotted SVG then has to be rendered as a PNG (for example using Inkscape ), after deleting the black background rectangle.

For the Sensor Board the visible side is B.Silkscreen.