System Integration

clock-on-dock.png

1. Week Assignments

Design and document the system integration for your final project.

2. Prior Knowledge

Oh my… this is definitely a first for me! It feels like packing for some outlandish expedition and designing all it at the same time…

3. Work!

I composed all the components of my final project into a 3D model using OpenSCAD. Before I did that, I checked all PCB board sizes to be multiples of 5mm to make it easier to fit them onto a frame and into the exterior.

3.1. TODO Diagrams?

3.2. Bill of Materials

Below is a list of components to build this clock.

Amount Description Price Sum Function
1 SEEED STUDIO XIAO 5.75 5.75 Main / RP2350
1 DCF77 2.69 2.69 Main / Radio Clock Receiver
1 DFPLAYER - A MINI MP3 PLAYER 5.01 5.01 Main / Audio source
1 8Gb TF (Mini SD) 12.40 12.40 Main / Audio storage
1 Speaker   0.00 Main / Audio output
1 RES 0 OHM JUMPER 1/4W 1206 0.10 0.10 Main / Electrical
1 RES 1K OHM 1% 1/4W 1206 0.10 0.10 Main / Electrical
1 Makerfocus 3.7V 3000mAh Lithium 15.00 15.00 Main / Battery
30 ADDRESS LED SERIAL RGB 0.25 7.50 Display / Light
4 CAP CER 1UF 50V X7R 1206 0.25 1.00 Display / Electrical
1 KY-040 Rotary Encoder 2.44 2.44 Docking / Time selection
1 CONN SPRING MOD MALE 6POS SMD 1.95 1.95 Docking / Connector dock
1 CONN SPRING MOD FEMALE 6POS SMD 1.92 1.92 Docking / Connector clock
4 Magnets   0.00 Docking / Placement
1 USB-C PD Trigger Board 1.67 1.67 Docking / Power
1 Wood??   0.00 Housing and dock
1 Clear acrylic??   0.00 Housing
  Total ex. VAT   €57.53  

3.3. PCBs

I exported all PCBs to STL models and imported them into OpenSCAD.

digit.png
Figure 1: Single digit
dots.png
Figure 2: Dots go between hours and minutes

The above are connected as follows.

display.png
Figure 3: Display side of the clock

Note the holes on the top and bottom edges. They're be used to mount them on a frame.

main.png
Figure 4: Main board

The main board goes on the back of the display, so the holes in this board align with the holes in the display.

3.4. Electrical components

Apart from the PCBs there are some more components: a battery, a DCF77 antenna and a speaker. I arrange them as follows.

components-top.png
Figure 5: Component arrangement display side
components-bottom.png
Figure 6: Component arrangement main board side

I created a frame (to be 3D printed) to mount the components on.

frame.png
Figure 7: Frame to mount components
framed-front.png
Figure 8: Framed display side
framed-back.png
Figure 9: Framed main board side

Note that the speaker is not attached to the frame. It will vibrate and should be attached to the housing.

3.5. Housing

For the outside, I decided on a basic box with rounded sides. The clock will be in the center with transparent acrylic on the outsides, allowing one to see the internals. I am planning on CNC milling these "rings" and providing slits in the edges to lock in the components frame and acrylic windows.

exterior.png
Figure 10: Exterior with slits for mounting
exterior-front.png
Figure 11: All in one front
exterior-back.png
Figure 12: All in one back

3.5.1. TODO Stacking and locking

The position of the slits will depend on the thickness of the wood to be milled because it is not possible to make a horizontal cut.

3.5.2. TODO Connector

Need to design a PCB for this (both side have the same footprint) but still need to design some 3D printable component to hide the wires.

screenshot-2026-05-12_18-36-25.png.jpg
Figure 13: PCBs design for connector

3.5.3. TODO Snooze

To detect a snooze action the clock needs two metal plates to do a step response detection of a hand. First I need to figure out if a hand can be detected through the wood. If not, the plates can go on top of the clock and be coated with something to keep them for oxidizing.

Another option is the use a basic vibrating sensor switch like the Adafruit 1766 of 2384. I think is will be a lot easier to work with.

3.5.4. TODO USB access to RF2350

To make updating the software easier, it would be really nice to have easy access to the USB port on the RF2350. Maybe use a Sparkfun 15455 or make my own extension cable?

3.6. Dock

The base docking station will look something like below.

dock-base.png
Figure 14: Base docking station
clock-on-dock.png
Figure 15: Clock on dock

3.6.1. TODO Connector

See also 3.5.2.

3.6.2. TODO Rotary Encoder

A big 3D printed knob on a rotary encoder. I do not yet know how to attach this properly to the dock.

3.7. TODO Other Loose Ends

  • Wiring (pretty ribbon wire with pin header / connectors + heat shrink)
  • Power adapter (USB-C or some other 5V adapter)

4. TODO Reflection

4.1. TODO Good

4.2. TODO Bad

4.3. TODO Ugly

5. Source Files

Copyright © 2026 Remco van 't Veer

Licensed under a
CC BY-NC-SA 4.0

Build using
GNU Emacs, Org Mode and GNU Guix

Source code hosted at
gitlab.fabcloud.org