

Ql flex
512kB external RAM expansion board for the Sinclair QL, with SuperBASIC/68008 RAM test software (KiCad, CERN-OHL-S v2)
- Size
- 97.8 × 35.6 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 16
- Nets
- 72
- Pads
- 209
- Tracks, vias
- 750, 57
- Pours
- 3
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 7 Aug 2026
- Updated
- 12 Aug 2026
Overview
Ql flex is an open-source printed circuit board by arleybls, from the arleybls/ql-flex-memory repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 2-layer board of 97.8 × 35.6 mm with 16 parts on 72 nets, routed with 750 tracks and 57 vias.
It is built around the LM1117-5.0. Its parts include 4 capacitors, 3 resistors, 3 ICs and 2 connectors. It belongs with the retro computing and games boards and the FPGA and CPLD boards of this library.
Main components
1README
README.mdQL Flex Memory Expansion
A 512kB external RAM expansion for the Sinclair QL, based on Alvaro Alea Fernandez's design. The circuit is unchanged. This version reworks the board to make assembly and reconfiguration easier, hence the name.
Original project: https://github.com/alvaroalea/QL_512kb_External_Expansion
Changes in the 2025 revision
- Standard 2.54mm pin headers replace the configuration solder jumpers. Jumper caps now control the memory configuration and Trump Card mode.
- The GAL16V8 uses a PLCC-20 SMD socket instead of a DIP-20 through-hole package. The GAL remains removable and reprogrammable while taking up less board space.
- The resistors and 100nF capacitors use the 0805 size instead of 1206.
- The silkscreen includes the memory configuration table (00-512kB / 01-256kB / 10-192kB / 11-128kB), NORMAL/TRUMP labels for the mode header, and the board dimensions.
- All fabrication outputs are in one
gerbers/folder.
Board size (97.79 × 35.56 mm) and the circuit itself are unchanged from the original rev 3.
About the board
The board adds up to 512kB of static RAM (fast RAM) to the Sinclair QL.
Stacking two boards provides up to 896kB of memory, the same capacity as Miracle's Trump Card.
Two memory expansions cannot occupy the same address range. This applies to Jose Leandro's QBide, the Trump Card, and similar hardware.
The board has an expansion connector for additional interfaces.
The configuration headers provide four settings. The original board uses solder jumpers instead.
- 512kB: The standard expansion for any QL.
- 256kB: Used as a second expansion to reach the QL's 896kB maximum. This setting conflicts with many expansion cards. Any card without configuration jumpers will be incompatible.
- 192kB: Similar to the 256kB setting, but leaves more address space for properly configured expansion cards.
- 128kB: Similar to the 256kB setting, with still more address space left for properly configured expansion cards.
The 128kB configuration cannot be installed alone. To use it for a total of 768kB, another expansion card must provide ROM at address E00000h. Without that ROM, an overlap between the internal and external 128kB causes the QL ROM to report a RAM malfunction and hang.
https://www.instagram.com/p/CZWfWcUM5mx/
The gal folder contains source code for GALasm:
https://github.com/daveho/GALasm
RAM test software
software/memtest/ contains a RAM test for checking an assembled card on the QL.
It combines a SuperBASIC front end with a 68008 machine-code core. The suite
tests the data bus, address bus, aliasing (GAL decode), March C-minus, and
checkerboard patterns. It supports a QDOS-safe mode and a destructive test of
the complete window. See
software/memtest/README.md.
Mini Trump Card compatibility
Alvaro also made the MiniTrump version of the Trump Card disk interface: https://github.com/alvaroalea/QL_MiniTrump3. Unlike the original, the MiniTrump does not include memory. Combining it with two of these RAM cards provides the same functions as the original Trump Card.
Connect the 512kB card to the QL, the MiniTrump to the 512kB card, and the +256kB card to the MiniTrump. Set this board's three-pin mode header, labelled NORMAL/TRUMP on the silkscreen, to TRUMP so the MiniTrump can coordinate with the second memory card.
Credits and license
Original design (C) 2022 Alvaro Alea Fernandez, based on the work of McLeod Ideafix, Jose Leandro, Zerover and tcat among others, with contributions from www.va-de-retro.com
2025 revisions by ArleyJr.
Licensed under: CERN Open Hardware Licence Version 2 - Strongly Reciprocal
https://ohwr.org/cern_ohl_s_v2.txt

Parts
16| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 10K | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R3 |
| 2 | 100n | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C4 |
| 2 | Conn_01x02_Pin | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | JP1, JP2 |
| 1 | 100u/16V | Capacitor_SMD:CP_Elec_6.3x5.4 | C2 |
| 1 | 100u/25V | Capacitor_SMD:CP_Elec_6.3x5.4 | C1 |
| 1 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | JP3 |
| 1 | GAL16V8B-25QP | Package_LCC:PLCC-20_SMD-Socket | U2 |
| 1 | HM628512BLFP-7 | Package_SO:SSOP-32_11.305x20.495mm_P1.27mm | U1 |
| 1 | LM1117-5.0 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | LOGO | LOGO | G*** |
| 1 | QL_SLOT_DIN41612_FEMALE-90degrees | 8bits:DIN41612_B_2x32_Female_Horizontal_THT | J1 |
| 1 | QL_SLOT_DIN41612_MALE_90degrees | 8bits:DIN41612_B_2x32_Male_Horizontal_THT | J2 |
Questions
How big is the Ql flex PCB?
It measures 97.8 × 35.6 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Ql flex use?
16 parts, built around the LM1117-5.0. 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 Ql flex KiCad files?
From the arleybls/ql-flex-memory repository on GitHub, at the commit this page was made from: the board is ql-flex.kicad_pcb and its schematic ql-flex.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Ql flex design in my own project?
Its repository publishes it under the CERN-OHL-S-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
Similar boards
- 2 layers40 × 108 mm

- 2 layers133 × 98 mm

Precharge
michaelruppe/FSAE
Projects for Formula SAE Electric Vehicle competition (Australia 2019/2020)
121 parts59MIT - 2 layers84.3 × 58.4 mm

EnocderDriver
NikodemBartnik/Small-Projects
All of smaller projects (Arduino, PCBs, electronics, code)
35 parts55 - 2 layers109.4 × 108.5 mm

- 2 layers240 × 194 mm

Infinitas
freeDSP/freeDSP-INFINITAS
USB Audio Class 2 compliant audio interface with up to 32 input and up to 32 output channels and optional ADAU1452 DSP.
1,020 parts35 - 2 layers100 × 88 mm

- 2 layers38.1 × 101.6 mm

RP2040 Audio
emeb/RP2040_Audio
A Eurorack module for stereo audio effects based on the Raspberry Pi RP2040 MCU
121 parts23MIT - 2 layers97 × 97 mm

QO100 RX
barisdinc/N3B_SDR_Transceiver_HW
V/U/SHF and QO-100 SDR Transceiver Project
167 parts20GPL-3.0