Skip to the content
2 layers33 × 30.5 mmA2Relay, the printed circuit board in 3D

Apple II Gameport Relay Interface

Size
33 × 30.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
25
Pads
79
Tracks, vias
94, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 May 2026
Updated
13 Jun 2026

Overview

A2Relay is an open-source printed circuit board by dkgrizzly, from the dkgrizzly/A2Relay repository on GitHub, published under the Unlicense licence. It is a 2-layer board of 33 × 30.5 mm with 9 parts on 25 nets, routed with 94 tracks and 0 vias.

It is built around the SN74ALS259D and SN74ALS259DRE4. Its parts include 4 connectors, 2 capacitors and 2 ICs. It belongs with the home automation and IoT and retro computing and games boards of this library.

Main components

2

README

README.md

[!WARNING] This design is currently untested as of 5/26/2026. There may be errors in the design or example code.

Update 6/12/2026: Because the 74_259 resets to all outputs low and the relay module is active low, all the relays default to being on at startup. Adding a 74_240 inline between the 74_259 and relay board will correct for this in a future revision.

Schematics and Gerbers for an "OOPS! Inverter" board will be uploaded soon.

[!CAUTION] It is advisable to remove the VCC jumper on the relay board and power the relays with the GND and JD-VCC pin. The game port is designed to provide a maximum of 100ma, and with all relays turned on more than 500ma load will be present.

Apple II Gameport Relay Interface

PCB Rendering

This is a design for a small PCB to control inexpensive 8-relay modules (Amazon affiliate link) using the Apple II's gameport annunciators and strobe output. Use AN3 to set on/off state, AN0-AN2 to select which relay to control, and $C040 strobe to store the value. All pins are passed through to a socket where you can attach a gamepad, paddles, or other input device.

Applesoft BASIC Example

text
10 REM To turn on the first relay:
20 PEEK -16295 : REM Clear AN0 $C059
30 PEEK -16293 : REM Clear AN1 $C05B
40 PEEK -16291 : REM Clear AN2 $C05D
50 PEEK -16290 : REM  Set  AN3 $C05E
60 PEEK -16320 : REM Strobe    $C040

6502 ASM Example

text
0300  lda $C059 ; Clear AN0
0303  lda $C05B ; Clear AN1
0306  lda $C05D ; Clear AN2
0309  lda $C05E ;  Set  AN3
030c  lda $C040 ; Strobe
030f  rts

Parts

9
QtyValueFootprintReferences
1/RESETConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ3
10.1uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2
10.1uFCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC1
1GamepadPackage_DIP:DIP-16_W7.62mmJ2
1GameportPackage_DIP:DIP-16_W7.62mm_SocketJ1
1LOGOcityxen:deadline97G***
1RELAYConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ4
1SN74ALS259Package_DIP:DIP-16_W7.62mmU1
1SN74ALS259DRPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU2

Similar boards

  • 2 layers103 × 30.5 mmTS Back Endcap, the printed circuit board in 3D

    TS Back Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    9 parts1.3kMIT
  • 2 layers31.8 × 47.6 mmNGC 38 connector, the printed circuit board in 3D

    NGC 38 connector

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    9 parts1.2k
  • 2 layers24 × 27.3 mmExpansion Card Retrofit, the printed circuit board in 3D

    Expansion Card Retrofit

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    9 parts1.1kCC-BY-4.0
  • 2 layers15.6 × 17.3 mmSKR Mini TFT Thermistor Board, the printed circuit board in 3D

    SKR Mini TFT Thermistor Board

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    9 parts1.1kGPL-3.0
  • 2 layers39.1 × 49.5 mmLearnoliver, the printed circuit board in 3D

    Learnoliver

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    9 parts915
  • 2 layers17.4 × 16.9 mmToolhead, the printed circuit board in 3D

    Toolhead

    tanaes/whopping_Voron_mods

    9 parts787GPL-3.0
  • 2 layers9.8 × 108 mmExpander, the printed circuit board in 3D

    Expander

    wntrblm/Castor_and_Pollux

    A Juno-inspired dual oscillator

    9 parts587
  • 2 layersKeyboard after, the printed circuit board in 3D

    Keyboard after

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    9 parts547GPL-3.0

Questions

How big is the A2Relay PCB?

It measures 33 × 30.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the A2Relay use?

9 parts, built around the SN74ALS259D and SN74ALS259DRE4. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the A2Relay KiCad files?

From the dkgrizzly/A2Relay repository on GitHub, at the commit this page was made from: the board is A2Relay.kicad_pcb and its schematic A2Relay.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the A2Relay design in my own project?

Its repository publishes it under the Unlicense licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).