Skip to the content
2 layers31.1 × 66.2 mmVideo if ql vga, the printed circuit board in 3D

Video-to-VGA converter for Sinclair QL

Size
31.1 × 66.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
47
Pads
88
Tracks, vias
63, 0
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
11 Jan 2023
Updated
1 Jul 2024

Overview

Video if ql vga is an open-source printed circuit board by holmatic, from the holmatic/video_if_ql_vga repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 31.1 × 66.2 mm with 16 parts on 47 nets, routed with 63 tracks and 0 vias.

It is built around the SC0915. Its parts include 13 resistors, 2 connectors and 1 IC. It belongs with the retro computing and games boards of this library.

Main components

1

README

README.md

QLpicoVGA - Video Interface QL-to-VGA with a Pi Pico

This project creates the firmware for a DIY video interface based on the Rapsberry Pi Pico controller. It allows to connect a Sinclair QL computer to a standard VGA monitor.

Screen

One difficulty when using an old Sinclair QL nowadays is finding monitor that works well. The QL video output is a bit non-standard, many displays do not show the full 512 horizontal pixel, but instead crop the screen in some way.

This small Video-to VGA converter project is specially made for the QL signal and translates the 512x256 pixel screen to a standard pseudo-XGA resolution (1024x768 with a single QL pixel translating to a block of 2x3 XGA pixels). The Gold Standard for such a translation is the "QL-VGA" FPGA-based device by MarcelK. This project is a µC based C/C++ implementation, utilizing the highly configurable I/O of the RP2040 and its DMA capabilities for signal input and output. Phase and frequency detection and adjustment is done by the CPU on the fly utilizing fixed-point arithmetics.

  • The VGA signal generation uses MoeFH's simple but clever DMA-driven approach for the low-level part. Kudos to MoeFH!
  • QL video signals are sampled at 32MS/s - with the QL Pixel clock running at 10MHz
  • All timing parameters are specifically preset for the QL's video output, so the software will definitely not work well with any other video source, the project is not meant as a generic RGB-to-VGA converter.
  • As a small diagnostic aid, the unavoidable "No Signal" bluescreen shows a simplified logic-analyzer type of graph for the input signals

Hardware

This project is based on a Raspberry Pi Pico board and only needs a few additional components (resistors) for voltage level translation:

Schematic outline

text
Controller Module: Raspberry Pi Pico 

QL to Pico:

text
QL RGB                            Pi Pico
Connector                          Module

7 (QLRED)   ----[R 330 Ohm]----  GP3=Pin 5 ----[R 680 Ohm]---- GND 
6 (QLGREEN) ----[R 330 Ohm]----  GP5=Pin 7 ----[R 680 Ohm]---- GND
8 (QLBLUE)  ----[R 330 Ohm]----  GP7=Pin10 ----[R 680 Ohm]---- GND

4 (QLCSYNC) ----[R 100 Ohm]----  GP9=Pin12 ----[R 680 Ohm]---- GND

2 (QLGND)   -------------------  GND=Pin8

Pico to VGA:

text
Pi Pico                          VGA
Module                        Connector

GP11=Pin15 ----[R 330 Ohm]----  1 (RED)
GP13=Pin17 ----[R 330 Ohm]----  2 (GREEN)
GP15=Pin20 ----[R 330 Ohm]----  3 (BLUE)

GP16=Pin21 ----[R 100 Ohm]---- 13 (HSYNC)
GP17=Pin22 ----[R 100 Ohm]---- 14 (VSYNC)

GND=Pin23  ------------------- 6,7,8,10,5 (GND)

Note: Place all resistors close to the Pi Pico module (<5cm) for best signal integrity.

Power Supply Input

Raspberry Pi Pico needs a standard USB power suppy (needs <100mA, so no special requirements for the power supply). Some VGA monitors may even provide USB voltage via an integrated USB hub.

1st Prototype

Prototype

(Ehem - yes I know but it works ;-)

Loading the Firmware into the Pi Pico

Pi Pico operates like a USB memory stick when pushing the BOOTSEL button during while plugging into the USB port of a computer. Put the firmware "video_if_ql_vga.uf2" onto the drive. LED should show short flashes with a period of about 2 seconds. Please also refer to the Pi Pico documentation regarding firmware programming.

https://github.com/holmatic/video_if_ql_vga/releases

PCB and 3D Printable Case

So here for info on creating your own PCB and case

Version Info

0.01 Initial version

0.05 Extend boot delay (startup fix for issue opbserved on some boards); minor adjustments to timing


Instruction v1.0

Parts

16
QtyValueFootprintReferences
7330RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R5, R7, R9, R11
4680RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R6, R8, R10
2100RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR12, R13
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_HorizontalJ1
1DB15_Female_HighDensityHD15 L77HDE15SD1CH4FVGA:CONN_L77HDE15SD1CH4FVGA_AMPJ2
1SC0915MCU_RaspberryPi_and_Boards:RPi_Pico_SMD_THU1

Similar boards

  • 2 layers321.5 × 116.7 mmIMACS Keyboard, the printed circuit board in 3D

    IMACS Keyboard

    UWARG/hardware

    PCB designs for the Waterloo Aerial Robotics Group

    123 parts59
  • 4 layers100 × 100 mmRpi pico printer board, the printed circuit board in 3D

    Rpi pico printer board

    jackw01/pi-pico-printer-board

    Tinkerer-friendly Klipper compatible 3D printer control board using Raspberry Pi Pico

    224 parts42CERN-OHL-W-2.0
  • 2 layers442.7 × 208.3 mmEurope ergo, the printed circuit board in 3D

    Europe ergo

    Supermagnum/Europe-ergo

    A 94 key ergonomic, split keyboard suitable for European countries.

    236 parts8GPL-3.0
  • 2 layers139 × 139 mmScreen driver, the printed circuit board in 3D

    Screen driver

    lambdaBoost/MC6205-graphical-display

    graphical display on old neon plasma screen

    285 parts7
  • 2 layers60 × 60 mmScbs pico, the printed circuit board in 3D

    Scbs pico

    CoolNamesAllTaken/scbs

    Single Cell Battery Simulator for testing a BMS.

    64 parts4
  • 2 layers235 × 95.7 mmKeyboard, the printed circuit board in 3D

    Keyboard

    JolonB/Pico-Steno

    A Raspberry Pi Pico based stenography keyboard

    87 parts4
  • 2 layers66 × 53 mmRoxpad, the printed circuit board in 3D

    Roxpad

    roxandtol/roxpad

    A simple 3k keypad, designed specifically for osu!

    8 parts3GPL-2.0

Questions

How big is the Video if ql vga PCB?

It measures 31.1 × 66.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Video if ql vga use?

16 parts, built around the SC0915. 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 Video if ql vga KiCad files?

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

Can I use the Video if ql vga design in my own project?

Its repository publishes it under the GPL-3.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).