[Open Source] AiPi-Eyes-R2 Vertical Desktop Case Design

1. Interfaces and Usage Instructions

Interfaces

Once you insert the R2 board, there are only three main interactive components accessible from the outside:

Usage Notes

2. Design Process

Getting the PCB and Screen Models

 

A key detail: I designed the model to match the ribbon cable's bend based on the datasheet and physical measurements, ensuring no interference and proper length alignment.

I also included the small IR window on the screen for optional light sensing in the future.

Screen + PCB Assembly Model

Here’s the final assembled model with the screen and PCB.

Side-Mounted Programming Board – Hardware & Assembly

Initially, I wanted to bring out the 4 serial lines for flashing, but then realized the original flash button isn’t accessible. Since I couldn’t find a good solution in existing forums, I designed a small expansion board that includes the flash button.

Based on the R2 schematic, I created a simple expansion board layout.

 

PCB Model – Front and Back

The model was imported into SolidWorks (SW) for assembly. Below is the positional relationship between the expansion board and R2 PCB (headers hidden):

Case Design

This case was designed for free printing via LCSC, so the entire structure is a single-piece design.

Mounting holes include bottom chamfers for reinforcement and top chamfers for easier alignment

Complete Assembly (Other parts shown as transparent):

Type-C Port Side

All entry points are chamfered for smoother alignment.

PCB Mounting

The PCB is secured with three screws, aligning with the internal structure and external ports.

3. Assembly Guide & BOM

Bill of Materials (BOM)

Part

Qty

XiaoanPi R2 (PCB + screen)

1

Printed Case

1

Programming Expansion PCB

1

M2 Screws (3–5mm)

3

5.2 × 5.2 Metal Buttons

2

0603 10K Resistor

1

2×4P Female Header

1

2×4P Male Header

1

1×4P Male Header

1

Double-sided Tape (~5mm W)

1

 

Preprocessing Steps

3D Printed Parts

  • Sanding Since LCSC used the front face as the print base, it turned out a bit rough. You’ll need to sand it (especially the outer surfaces and the screen mount area).
  • Tapping Screw Holes Even though the screw holes are chamfered, it's best to pre-thread them a bit using an M2 screw (about 1mm deep) to make final assembly easier.

 

Tip: If you have your own printer, print with the right-side (programming interface side) down for better surface finish and easier support removal.

 

R2 PCB Preparation

  • Remove the two upright headers
  • Modify the programming header:
  • You can either use a horizontal dual-row header from Taobao

Or go DIY: solder a bent pin from the removed header to bridge the gap between the lower and upper pins (as I did — takes about 15 minutes)

If using a bent dual-row header, make sure to align the plastic bottom edge with the PCB bottom.

Assembly Instructions

  • Insert the PCB – Tilt it up slightly on the left and slide it in from the right.
  • Be careful not to pinch the ribbon cable when tightening screws. Gently hold everything in position like this:
  • Tighten the screws and press the screen into place – done!


Attach the screen and ribbon cable, apply double-sided tape to secure.


Notes on the Programming Expansion Board

 

Make sure you insert the board the right way! Reversing it could damage the R2.

Header Options

  • You can use a standard 2×4P header, or
  • Cut one from a long header strip, but be sure to sand the cut edge or it won’t fit smoothly into the side cutout.