About the Relay Computer

The project

This is Joe Allen's Single Board Relay Computer, a kit whose CPU is made of electromechanical relays, with semiconductor memory and a front-panel interface.

I sourced the parts and assembled the board myself.

By the numbers

The official bill of materials lists 584 parts, including 83 relays.

Across the livestream series I described the build as having over 3,500 solder joints.

The build on stream

I assembled the computer over a livestreamed series on my YouTube channel, PenGuinn Tech, called PenGuinn Builds: A Relay Computer — Because Why Not.

The series is eight parts, from January 27, 2025 through September 1, 2025:

On August 31, 2025 I also posted a short, It's working!, of the computer running.

Debugging the heat fault

During bring-up I diagnosed and fixed a heat-dependent fault.

Dockerizing the toolchain

In April 2026 I containerized the kit's assembler, simulator, and web documentation tools with Docker, on a dockerize branch of the relay-computer repository on my self-hosted GitLab.

Joe Allen wrote the original assembler, simulator, and HTML documentation. My work was packaging those tools so they can be built in containers.

The tools image compiles the assembler and simulator for both Linux and Windows. The documentation image builds the HTML docs. I used Docker Compose so the build outputs land in a local directory.

The tools image:

tools/Dockerfile
# Use a lightweight base image with gcc and mingw-w64
FROM ubuntu:24.04

# Install necessary tools: make, gcc, mingw-w64
RUN apt-get update && apt-get install -y \
    make \
    gcc \
    g++ \
    mingw-w64 \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy project files (Makefile and source files)
COPY *.c .
COPY *.h .
COPY Makefile .

# Create build directory and run make
RUN mkdir -p /app/build

ENTRYPOINT ["make", "all"]

The tools Compose file:

tools/docker-compose.yml
version: '3.8'

services:
  relay-trainer-tools:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - ../build:/app/build

The documentation image:

htdocs/Dockerfile
# Use a lightweight base image
FROM alpine:latest

# Install necessary tools: make, sed, and coreutils (for cat)
RUN apk add --no-cache make sed coreutils

# Set working directory
WORKDIR /app

# Copy project files (Makefile, source HTML files, and images)
COPY Makefile ./
COPY *.html ./
COPY *.gif *.jpg ./
COPY entrypoint.sh ./

RUN mkdir -p /app/build

# Run the make command to build HTML files
ENTRYPOINT ["make", "all"]

The documentation Compose file:

htdocs/docker-compose.yml
version: '3.8'

services:
  relay-trainer-htdocs:
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - ../build:/app/build

That repository is not public yet.

Watch the build